[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260121031548.402-4-kernel@airkyi.com>
Date: Wed, 21 Jan 2026 11:15:48 +0800
From: Chaoyi Chen <kernel@...kyi.com>
To: Andrew Lunn <andrew@...n.ch>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Heiko Stuebner <heiko@...ech.de>,
Alexey Charkov <alchark@...il.com>,
Shawn Lin <shawn.lin@...k-chips.com>,
Sebastian Reichel <sebastian.reichel@...labora.com>,
Chaoyi Chen <chaoyi.chen@...k-chips.com>,
Andy Yan <andy.yan@...k-chips.com>,
Nicolas Frattaroli <nicolas.frattaroli@...labora.com>,
Detlev Casanova <detlev.casanova@...labora.com>,
Stephen Chen <stephen@...xa.com>
Cc: devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for ROCK 4D
From: Chaoyi Chen <chaoyi.chen@...k-chips.com>
According to the description in the net documentation, PHY modes
"rgmii", "rgmii-rxid" and "rgmii-txid" modes require the clock signal
to be delayed on the PCB.
The Rockchip platform has long used the above mentioned PHY modes and
private delay prop to describe the internal IO delay settings of the
chip, which is inconsistent with what is described in the documentation.
Let's describe this part of the delay in the PHY and use the more
reasonable "rgmii-id" mode.
Signed-off-by: Chaoyi Chen <chaoyi.chen@...k-chips.com>
---
arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts b/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts
index 3e9c294cab91..70018c34cf08 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts
@@ -329,7 +329,7 @@ &cpu_l3 {
&gmac0 {
clock_in_out = "output";
phy-handle = <&rgmii_phy0>;
- phy-mode = "rgmii-rxid";
+ phy-mode = "rgmii-id";
pinctrl-names = "default";
pinctrl-0 = <ð0m0_miim
ð0m0_tx_bus2
@@ -338,8 +338,6 @@ ð0m0_rgmii_clk
ð0m0_rgmii_bus
ðm0_clk0_25m_out>;
status = "okay";
- tx_delay = <0x20>;
- rx_delay = <0x00>;
};
&gpu {
@@ -772,6 +770,7 @@ rgmii_phy0: ethernet-phy@1 {
reset-assert-us = <20000>;
reset-deassert-us = <100000>;
reset-gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
+ tx-internal-delay-ps = <1950>;
};
};
--
2.51.1
Powered by blists - more mailing lists