AnsweredAssumed Answered

Marvell 88E6065 switch with imx6 Sololite based custom board

Question asked by jags gediya on Dec 11, 2014
Latest reply on Feb 2, 2017 by jbd64

Hi,

 

We are using the marvell 88e6065 switch with the imx6 sololite processor. Now i need to configure this switch in the kernel. I am making the changes in device tree by taking the reference of the

Documentation/devicetree/bindings/net/dsa/dsa.txt in the kernel.

I am making the below changes in the device tree.

dsa@0 {

        compatible = "marvell,dsa";

        #address-cells = <2>;

        #size-cells = <0>;

        dsa,ethernet = <&ethernet0>;

        dsa,mii-bus = <&mii_bus0>;

 

        switch@0 {

            #address-cells = <1>;

            #size-cells = <0>;

           reg = <16 0>;   /* MDIO address 16, switch 0 in tree */

 

            port@0 {

                reg = <0>;

                label = "lan1";

            };

            port@1 {

                reg = <1>;

                label = "lan2";

            };

            port@2 {

                reg = <2>;

                label = "lan3";

            };

            port@3 {

                reg = <3>;

                label = "lan4";

            };

            port@5 {

                reg = <5>;

                label = "cpu";

            };

        };

    };  

 

From the dsa.txt file,

dsa,ethernet  : Should be a phandle to a valid Ethernet device node
dsa,mii-bus   : Should be a phandle to a valid MDIO bus device node

and

reg       : Describes the switch address on the MII bus

 

but i am not understanding what value should i provide for above field in device tree. Have anyone used the marvell switch with imx6 processor, then what changes need to be done in device tree?

Any other kernel changes required?

 

Thanks,

jags

Outcomes