Part Number: TDA4VH-Q1
Hello
SerDes2 Lane2 and Lane3 are connected to a 10Gbps PHY.
Using k3-j784s4-evm-usxgmii-exp1-exp2.dtbo under Linux.
&main_cpsw0_port1 {
status = "okay";
phy-mode = "usxgmii";
mac-address = [00 00 00 00 00 00];
phys = <&cpsw0_phy_gmii_sel 1>, <&serdes2_usxgmii_link>;
phy-names = "mac", "serdes";
fixed-link {
speed = <10000>;
full-duplex;
};
};
&main_cpsw0_port2 {
status = "okay";
phy-mode = "usxgmii";
mac-address = [00 00 00 00 00 00];
phys = <&cpsw0_phy_gmii_sel 2>, <&serdes2_usxgmii_link>;
phy-names = "mac", "serdes";
fixed-link {
speed = <10000>;
full-duplex;
};
};
The speed is set to 10000 here.
Why does it show 5000base?
root@j784s4-evm:~# ethtool eth1
Settings for eth1:
Supported ports: [ MII ]
Supported link modes: 5000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 5000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 5000baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Link partner advertised FEC modes: Not reported
Speed: 5000Mb/s
Duplex: Full
Auto-negotiation: on
Port: MII
PHYAD: 0
Transceiver: internal
Supports Wake-on: d
Wake-on: d
Current message level: 0x000020f7 (8439)
drv probe link ifdown ifup rx_err tx_err hw
Link detected: yes
root@j784s4-evm:~# ethtool eth2
Settings for eth2:
Supported ports: [ MII ]
Supported link modes: 5000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 5000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 5000baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Link partner advertised FEC modes: Not reported
Speed: 5000Mb/s
Duplex: Full
Auto-negotiation: on
Port: MII
PHYAD: 0
Transceiver: internal
Supports Wake-on: d
Wake-on: d
Current message level: 0x000020f7 (8439)
drv probe link ifdown ifup rx_err tx_err hw
Link detected: yes
Why does it show 5000base?
When I run the 10Gbps PHY driver under mcu2-0, the network functions properly:
[MCU2_0] 725.275073 s: EthFw_initLinkArgs into macPort=0
[MCU2_0] 725.275160 s: EthFw_initLinkArgs into macPort=0 status 0
[MCU2_0] 725.275192 s: EthFw_initLinkArgs done i=4 macPort=0
[MCU2_0] 725.275541 s: Cpsw_openPortLinkNoPhy: Port 1: Link up: 10-Gbps Full-Duplex
[MCU2_0] 725.275596 s: EthFw_initLinkArgs into macPort=1
[MCU2_0] 725.275701 s: EthFw_initLinkArgs into macPort=1 status 0
[MCU2_0] 725.275731 s: EthFw_initLinkArgs done i=4 macPort=1
[MCU2_0] 725.276052 s: Cpsw_openPortLinkNoPhy: Port 2: Link up: 10-Gbps Full-Duplex
Best Regards,
gj