Part Number: AM625
Tool/software:
Hello,
I have a development evaluation board running the AM6254 processor and YT8531S ethernet.
The manufacturer of this board (MYIR) has provided a custom kernel (6.1.46). Since the kernel is relatively old, I've moved to 6.6.32, which TI has provided on their git repository.
I had to make a couple DTS changes for the SD card and for the ethernet to work. However, now the link status is bouncing every so often:
[ 625.232117] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 629.327832] YT8531S Gigabit Ethernet 8000f00.mdio:00: yt8521_read_status, link down, media: UTP [ 629.336816] am65-cpsw-nuss 8000000.ethernet eth0: Link is Down [ 630.352117] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 1Gbps/Half - flow control off [ 642.639792] YT8531S Gigabit Ethernet 8000f00.mdio:00: yt8521_read_status, link down, media: UTP [ 642.648774] am65-cpsw-nuss 8000000.ethernet eth0: Link is Down [ 643.664068] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 655.951771] YT8531S Gigabit Ethernet 8000f00.mdio:00: yt8521_read_status, link down, media: UTP [ 655.960753] am65-cpsw-nuss 8000000.ethernet eth0: Link is Down [ 656.975999] YT8531S Gigabit Ethernet 8000f00.mdio:00: Downshift occurred from negotiated speed 1Gbps to actual speed 10Mbps, check cabling! [ 656.988613] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 10Mbps/Full - flow control rx/tx [ 725.583652] YT8531S Gigabit Ethernet 8000f00.mdio:00: yt8521_read_status, link down, media: UTP [ 725.592626] am65-cpsw-nuss 8000000.ethernet eth0: Link is Down [ 726.607732] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off [ 774.735561] YT8531S Gigabit Ethernet 8000f00.mdio:00: yt8521_read_status, link down, media: UTP [ 774.744544] am65-cpsw-nuss 8000000.ethernet eth0: Link is Down [ 775.759850] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 793.167550] YT8531S Gigabit Ethernet 8000f00.mdio:00: yt8521_read_status, link down, media: UTP [ 793.176524] am65-cpsw-nuss 8000000.ethernet eth0: Link is Down
DTS Looks like this:
&cpsw3g {
bootph-all;
pinctrl-names = "default";
pinctrl-0 = <&main_rgmii1_pins_default>;
};
&cpsw_port1 {
phy-mode = "rgmii-rxid";
phy-handle = <&cpsw3g_phy0>;
status = "okay";
};
&cpsw_port2 {
phy-mode = "rgmii-rxid";
phy-handle = <&cpsw3g_phy1>;
status = "okay";
};
&cpsw3g_mdio {
bootph-all;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_mdio1_pins_default>;
cpsw3g_phy0: ethernet-phy@0 {
bootph-all;
reg = <0>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
ti,min-output-impedance;
};
cpsw3g_phy1: ethernet-phy@1 {
reg = <1>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
ti,min-output-impedance;
};
};
I'm not sure if this is a driver issue, or a DTS configuration issue.
I've compared the driver code from 6.6.32 all the way to 6.11.2 and the driver has not changed.
There are some changes in 6.12-rc1, but those look to be adding support for a new chipset.
This does happen on both ethernet ports, being a bit more frequent on the second port (no IP obtained even)
Can anyone help me understand what may be happening?