This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How does the AM437x work a ethernet switch mode?

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.