Hi,
I can't get the CPSW switch driver to read in phy_id values from "am335x-bone-common.dtsi".
I have put the following values, and it seems to register vlan values and so on, but completely disregards
the <0> or <8> value in the phy_id field property. Instead it always gives me <0> and <1> no matter what.
I can see how it traverses the slaves and reads in values in cpsw.c but I don't know where <1> comes from?
What could be wrong?
&cpsw_emac0 {
phy_id = <&davinci_mdio>, <0>;
phy-mode = "rgmii";
dual_emac_res_vlan = <1>;
};
&cpsw_emac1 {
phy-mode = "mii";
phy_id = <&davinci_mdio>, <8>;
dual_emac_res_vlan = <2>;
};
&mac {
slaves = <2>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&cpsw_default>;
pinctrl-1 = <&cpsw_sleep>;
dual_emac = <1>;
};
Best regards, Johan