Marvell 88E6065 switch with imx6 Sololite based custom board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Marvell 88E6065 switch with imx6 Sololite based custom board

3,160件の閲覧回数
jagsgediya
Contributor II

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

ラベル(4)
0 件の賞賛
返信
2 返答(返信)

1,663件の閲覧回数
jbd64
Contributor III

Hi,

I'm facing the same situation but using an i.MX6D with an 88E6352 switch.

Did you manage to make it work ?

If so, how did you configure your device tree ?

I'm guessing "dsa,ethernet" shoult be set to "<&fec>" but I don't know for "dsa,mii-bus" since, as far as I understand, we don't have any phandle available for "mii-bus" of the i.MX6.

Any advice ?

Best regards.

JBD.

0 件の賞賛
返信

1,663件の閲覧回数
CarlosCasillas
NXP Employee
NXP Employee

Hi jags,

Since your request it is on a custom board, you could refer to the Professional Software Services for this cases, but as a recommendation you can check whether "Porting the Fast Ethernet Controller Driver" in i.MX_6Dual6Quad_BSP_Porting_Guide.pdf is helpful.


Hope this will be useful for you.
Best regards!
/Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信