Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/7] arm64: dts: rockchip: Updates to RGMII PHYs on Sige5 and NanoPi M5
@ 2026-11-20 10:48 Alexey Charkov
  2026-11-20 10:48 ` [PATCH 1/7] arm64: dts: rockchip: Describe NanoPi M5 Ethernet PHYs by their ID Alexey Charkov
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Alexey Charkov @ 2026-11-20 10:48 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	John Clark, Detlev Casanova
  Cc: devicetree, linux-arm-kernel, linux-rockchip, Alexey Charkov

Both ArmSoM Sige5 and NanoPi M5 boards use the same Realtek RGMII PHYs
which currently share an issue preventing them from enumeration unless an
earlier boot stage left them out of reset: at power-on, their reset lines
are asserted, so they cannot answer an MDIO probe. Until they answer, the
OS cannot look up the ID to match a driver. And until the OS has a driver,
nothing releases their reset line.

Fix this by using their known PHY IDs instead of the generic compatible,
so that the deadlock is broken. This also opens up the possibility to
enable the Realtek-specific ALDPS feature (automatic link-down power
saving), which saves around 400 mW for each PHY with no cable attached.

While here, also do a couple of minor cleanups: NanoPi M5 uses a dedicated
crystal to derive the 25MHz reference clock, so it doesn't use the SoC
provided clock, and the current DT property is superfluous and misleading.
RTL8211F datasheet also specifies much shorter reset assertion and
deassertion times than currently used in the DT, so adjust those, too, to
avoid wasting unnecessary time during the reset sequence.

Signed-off-by: Alexey Charkov <alchark@flipper.net>
---
Alexey Charkov (7):
      arm64: dts: rockchip: Describe NanoPi M5 Ethernet PHYs by their ID
      arm64: dts: rockchip: Describe Sige5 Ethernet PHYs by their ID
      arm64: dts: rockchip: Drop NanoPi M5 PHY reference clocks
      arm64: dts: rockchip: Enable ALDPS on NanoPi M5 Ethernet PHYs
      arm64: dts: rockchip: Enable ALDPS on Sige5 Ethernet PHYs
      arm64: dts: rockchip: Shorten NanoPi M5 Ethernet PHY reset to datasheet timing
      arm64: dts: rockchip: Shorten Sige5 Ethernet PHY reset to datasheet timing

 arch/arm64/boot/dts/rockchip/rk3576-armsom-sige5.dts | 18 ++++++++++--------
 arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts    | 20 ++++++++++----------
 2 files changed, 20 insertions(+), 18 deletions(-)
---
base-commit: adcad7f4e6332cff3d6d7165f41584899f598534
change-id: 20261120-rk3576-phys-277680a877d7

Best regards,
--  
Alexey Charkov <alchark@flipper.net>


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

end of thread, other threads:[~2026-11-20 11:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 10:48 [PATCH 0/7] arm64: dts: rockchip: Updates to RGMII PHYs on Sige5 and NanoPi M5 Alexey Charkov
2026-11-20 10:48 ` [PATCH 1/7] arm64: dts: rockchip: Describe NanoPi M5 Ethernet PHYs by their ID Alexey Charkov
2026-11-20 10:48 ` [PATCH 2/7] arm64: dts: rockchip: Describe Sige5 " Alexey Charkov
2026-11-20 10:56   ` sashiko-bot
2026-11-20 11:24     ` Alexey Charkov
2026-11-20 10:48 ` [PATCH 3/7] arm64: dts: rockchip: Drop NanoPi M5 PHY reference clocks Alexey Charkov
2026-11-20 10:48 ` [PATCH 4/7] arm64: dts: rockchip: Enable ALDPS on NanoPi M5 Ethernet PHYs Alexey Charkov
2026-11-20 10:48 ` [PATCH 5/7] arm64: dts: rockchip: Enable ALDPS on Sige5 " Alexey Charkov
2026-11-20 10:48 ` [PATCH 6/7] arm64: dts: rockchip: Shorten NanoPi M5 Ethernet PHY reset to datasheet timing Alexey Charkov
2026-11-20 11:01   ` sashiko-bot
2026-11-20 10:48 ` [PATCH 7/7] arm64: dts: rockchip: Shorten Sige5 " Alexey Charkov

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