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 = <ðernet0>;
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
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.
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!
-----------------------------------------------------------------------------------------------------------------------