mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: rockchip: Add compatible for Ethernet PHY
@ 2025-12-09 21:09 Adrian Kossmann
  2025-12-09 21:57 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Kossmann @ 2025-12-09 21:09 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: Adrian Kossmann, devicetree, linux-arm-kernel, linux-rockchip,
	linux-kernel

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.

Signed-off-by: Adrian Kossmann <adrian.kossmann@posteo.de>
---
 arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
index a4bdd87d0729..4da5ff6f2572 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
@@ -163,6 +163,7 @@ mdio {
 		#size-cells = <0>;
 
 		rtl8211: ethernet-phy@1 {
+			compatible = "ethernet-phy-id001c.c916";
 			reg = <1>;
 			pinctrl-0 = <&eth_phy_int_pin>, <&eth_phy_reset_pin>;
 			pinctrl-names = "default";
-- 
2.52.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: rockchip: Add compatible for Ethernet PHY
  2025-12-09 21:09 [PATCH] arm64: dts: rockchip: Add compatible for Ethernet PHY Adrian Kossmann
@ 2025-12-09 21:57 ` Andrew Lunn
  2025-12-12 20:25   ` Adrian Kossmann
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2025-12-09 21:57 UTC (permalink / raw)
  To: Adrian Kossmann
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	devicetree, linux-arm-kernel, linux-rockchip, linux-kernel

On Tue, Dec 09, 2025 at 09:09:33PM +0000, Adrian Kossmann wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: rockchip: Add compatible for Ethernet PHY
  2025-12-09 21:57 ` Andrew Lunn
@ 2025-12-12 20:25   ` Adrian Kossmann
  0 siblings, 0 replies; 3+ messages in thread
From: Adrian Kossmann @ 2025-12-12 20:25 UTC (permalink / raw)
  To: andrew
  Cc: adrian.kossmann, conor+dt, devicetree, heiko, krzk+dt,
	linux-arm-kernel, linux-kernel, linux-rockchip, robh

Hi Andrew,

> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-12-12 20:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-09 21:09 [PATCH] arm64: dts: rockchip: Add compatible for Ethernet PHY Adrian Kossmann
2025-12-09 21:57 ` Andrew Lunn
2025-12-12 20:25   ` Adrian Kossmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®