public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for rk3576 board
@ 2026-01-21  3:15 Chaoyi Chen
  2026-01-21  3:15 ` [PATCH 1/3] arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for rk3576 evb1 Chaoyi Chen
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Chaoyi Chen @ 2026-01-21  3:15 UTC (permalink / raw)
  To: Andrew Lunn, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Heiko Stuebner, Alexey Charkov, Shawn Lin, Sebastian Reichel,
	Chaoyi Chen, Andy Yan, Nicolas Frattaroli, Detlev Casanova,
	Stephen Chen
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel

From: Chaoyi Chen <chaoyi.chen@rock-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.

Some background, for RK3576, you can assume that:

        tx_delay_time(ns) = 0.0579 * delay_line_count + 0.105

For example, tx_delay = <0x20> means:

        time = 0.0579 * 0x20 + 0.105 ns = 1.9578 ns

Recently, Andrew has often mentioned the problem of phy mode in board
level configuration. So let's start with the RK3576 to modify this.

Please test this series of patches, thanks.

Chaoyi Chen (3):
  arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for rk3576 evb1
  arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for
    roc-rk3576-pc
  arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for ROCK 4D

 arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts | 8 ++++----
 arch/arm64/boot/dts/rockchip/rk3576-roc-pc.dts   | 5 ++---
 arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts  | 5 ++---
 3 files changed, 8 insertions(+), 10 deletions(-)

-- 
2.51.1


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

end of thread, other threads:[~2026-01-31  9:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-21  3:15 [PATCH 0/3] arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for rk3576 board Chaoyi Chen
2026-01-21  3:15 ` [PATCH 1/3] arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for rk3576 evb1 Chaoyi Chen
2026-01-21  8:14   ` Diederik de Haas
2026-01-21 12:55   ` Andrew Lunn
2026-01-22  1:38     ` Chaoyi Chen
2026-01-22  2:40       ` Andrew Lunn
2026-01-22  3:16         ` Chaoyi Chen
2026-01-31  6:26           ` Chaoyi Chen
2026-01-21  3:15 ` [PATCH 2/3] arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for roc-rk3576-pc Chaoyi Chen
2026-01-21  3:15 ` [PATCH 3/3] arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for ROCK 4D Chaoyi Chen
2026-01-21  5:51 ` [PATCH 0/3] arm64: dts: rockchip: Change gmac phy-mode to rgmii-id for rk3576 board Sebastian Reichel
2026-01-21  6:54   ` Chaoyi Chen
2026-01-21 13:02     ` Andrew Lunn
2026-01-21 12:57 ` Andrew Lunn
2026-01-22  1:44   ` Chaoyi Chen

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