Dear Sir,
I want to let the AM437x two ethernet ports working as a ethernet switch, the two ports work normally, there are eth0 and eth1 working under Linux. How do I work as a ethernet switch? Thanks so much. I paste the device tree about the ethernet.
&mac {
/* slaves = <1>; */
pinctrl-names = "default", "sleep";
pinctrl-0 = <&cpsw_default>;
pinctrl-1 = <&cpsw_sleep>;
dual_emac;
status = "okay";
};
&davinci_mdio {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&davinci_mdio_default>;
pinctrl-1 = <&davinci_mdio_sleep>;
status = "okay";
};
&cpsw_emac0 {
phy_id = <&davinci_mdio>, <4>;
phy-mode = "rgmii";
};
&cpsw_emac1 {
phy_id = <&davinci_mdio>, <5>;
phy-mode = "rgmii";
};
BR.
Hans.