Part Number: AM3352
Tool/software:
Hi Expert,
The customer is currently using TI AM3352 with Broadcom BCM54210S PHY, and there is no problem at 1000 or 100Mbps.
But it doesn’t work at 10Mbps!
The PHY has detected that the other party is 10Base-T and Link Up. Using tcpdump, you can receive the packets sent by the other party, but the CPU cannot send out the TX packets!
Check the _cpsw_adjust_link function in cpsw.c. I'm sure we have set the in-band mode (MACCONTROL BIT 18). Is there anything else we need to pay attention to?
The customer has confirmed that the in-band mode (MACCONTROL BIT 18) has been set. Is there anything else that needs attention?
SDK 06_03_00_106, Linux kernel is 4.19.94
_cpsw_adjust_link :
|
if (phy->link) { } else { |
device tree:
|
... ... cpsw_default: rgmii1_pins_default { ... ... &mac { pinctrl-names = "default"; pinctrl-0 = <&cpsw_default>; pinctrl-1 = <&cpsw_sleep>; status = "okay"; dual_emac ;
};
&davinci_mdio { pinctrl-names = "default"; pinctrl-0 = <&davinci_mdio_default>; /*pinctrl-1 = <&davinci_mdio_sleep>;*/ status = "okay"; ethernet-phy@0 { compatible = "brcm,bcm54210", "ethernet-phy-ieee802.3-c22"; device_type = "ethernet-phy"; reg = <0>; }; ethernet-phy@1 { compatible = "brcm,bcm54210", "ethernet-phy-ieee802.3-c22"; device_type = "ethernet-phy"; reg = <1>; }; };
&cpsw_emac0 { phy_id = <&davinci_mdio>, <0>; phy-mode = "rgmii-id"; dual_emac_res_vlan = <1>; };
&cpsw_emac1 { phy_id = <&davinci_mdio>, <1>; phy-mode = "rgmii-id"; dual_emac_res_vlan = <2>; };
|
Thanks
Daniel



