[PATCH 1/7] arm64: dts: rockchip: Describe NanoPi M5 Ethernet PHYs by their ID
Alexey Charkov
alchark at flipper.net
Fri Nov 20 02:48:09 PST 2026
Both NanoPi M5 GMACs connect to an RTL8211F PHY with its reset line in
the PHY node. With only the generic C22 compatible, an OS has to read the
PHY ID registers before it can bind a driver, and only that driver
releases the reset line. Unless an earlier boot stage has already
released it, the PHY stays in reset, never answers on MDIO, and neither
Ethernet port comes up. Booting straight from U-Boot SPL in Falcon mode
hits exactly that.
Name the PHY by its ID, so it binds without the ID read and comes out of
reset as it does. Name the node ethernet-phy at 1 as well, as the Realtek
PHY binding the ID compatible selects requires.
Fixes: 96cbdfdd3ac2 ("arm64: dts: rockchip: Add FriendlyElec NanoPi M5 support")
Signed-off-by: Alexey Charkov <alchark at flipper.net>
---
arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
index c84afecd6e2a..49bbef5730d2 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
@@ -802,8 +802,8 @@ rt5616: audio-codec at 1b {
};
&mdio0 {
- rgmii_phy0: phy at 1 {
- compatible = "ethernet-phy-ieee802.3-c22";
+ rgmii_phy0: ethernet-phy at 1 {
+ compatible = "ethernet-phy-id001c.c916";
reg = <0x1>;
clocks = <&cru REFCLKO25M_GMAC0_OUT>;
interrupt-parent = <&gpio2>;
@@ -817,8 +817,8 @@ rgmii_phy0: phy at 1 {
};
&mdio1 {
- rgmii_phy1: phy at 1 {
- compatible = "ethernet-phy-ieee802.3-c22";
+ rgmii_phy1: ethernet-phy at 1 {
+ compatible = "ethernet-phy-id001c.c916";
reg = <0x1>;
clocks = <&cru REFCLKO25M_GMAC1_OUT>;
interrupt-parent = <&gpio3>;
--
2.56.0
More information about the Linux-rockchip
mailing list