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.

dual LAN on SDK7



I am working my AM335X custom board from SDK6 to SDK7. The board run quite well on my SDK6. For Linux 3.12y based (SDK7), I am trying to enable two RMII LAN port, but got package losses. It seem the my gmii_sel did not configure well.

In my device tree, except set up the pinmux. I also have  

&cpsw_emac0 {
phy_id = <&davinci_mdio>, <0>;
phy-mode = "rmii";
dual_emac_res_vlan = <1>;
};

&cpsw_emac1 {
phy_id = <&davinci_mdio>, <1>;
phy-mode = "rmii";
dual_emac_res_vlan = <2>;
};

&mac {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&cpsw_default>;
pinctrl-1 = <&cpsw_sleep>;
dual_emac = <1>;
};

But when look into drivers/net/ethernet/ti/cpsw-phy-sel.c

#define AM33XX_GMII_SEL_MODE_RMII       1

This seems only port 1 is enabled.  My question is: how to enable port 2 as a RMII mode for gmii_sel?

-Eric