arm64: dts: rockchip: Add compatible for Ethernet PHY
Subsystems (2)
PATCH 1/1 arm64: dts: rockchip: Add compatible for Ethernet PHY
Without the compatible string the Ethernet PHY is not bound to the correct driver. This causes link instability under load, with throughput eventually dropping to zero.
Add the explicit PHY ID compatible to ensure the proper driver is selected.
--- arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts +1 -0
@@ -163,6 +163,7 @@ mdio { #size-cells = <0>; rtl8211: ethernet-phy@1 { + compatible = "ethernet-phy-id001c.c916"; reg = <1>; pinctrl-0 = <ð_phy_int_pin>, <ð_phy_reset_pin>; pinctrl-names = "default";
Signature · 1 line
2.52.0
Quoted 2 lines · Adrian Kossmann
Without the compatible string the Ethernet PHY is not bound to the correct driver.
Which driver is being bound if you don't have a compatible? genphy?
It is a bit unusual for phylib to get the wrong driver, so i would like to understand this a bit more.
Andrew
Hi Andrew,
Quoted 1 line
It is a bit unusual for phylib to get the wrong driver, so i would
like to understand this a bit more.
after double-checking my setup I found that the PHY is in fact always bound to the RTL8211F driver, even without the compatible string, and this was rather an issue with my setup.
The link instability I observed was caused by inappropriate RGMII RX/TX delay settings in the mainline DTS. With the current values for rx_delay and tx_delay in the mainline DTS the link collapsed under load. I've troubleshooted this with a known-good DTB and using its rx_delay and tx_delay values fixes the issue.
I will send a v2 patch adjusting the delays instead of adding a compatible.
Adrian