mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: allwinner: t527: orangepi-4a: Add PHY enable delay
@ 2026-11-18 15:42 Daniel Drake
  2026-11-24 16:56 ` Chen-Yu Tsai
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Drake @ 2026-11-18 15:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Andrew Lunn
  Cc: devicetree, linux-arm-kernel, linux-sunxi, linux-kernel, Daniel Drake

The Motorcomm YT8531 Ethernet PHY on the Orange Pi 4A was not being
detected: its ID was reading back as zero and preventing ethernet from
working:

  dwmac-sun55i 4510000.ethernet eth0: cannot attach to PHY (error: -EINVAL)

Add an enable delay to the PHY supply regulator, as was done for the
same reason on the Radxa Cubie A5E in commit 7076938d20d2 ("arm64: dts:
allwinner: a527: cubie-a5e: Enable second Ethernet port").

This is also similar to the original vendor DTS which has this regulator
as always-on.

Fixes: a3606e8a7819 ("arm64: dts: allwinner: t527: orangepi-4a: Enable Ethernet port")
Signed-off-by: Daniel Drake <ddrake@baylibre.com>
---
 arch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts b/arch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts
index 26ce579b42bf..e1cd43ea7e03 100644
--- a/arch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts
+++ b/arch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts
@@ -319,6 +319,8 @@ reg_cldo4: cldo4 {
 				regulator-min-microvolt = <3300000>;
 				regulator-max-microvolt = <3300000>;
 				regulator-name = "vcc-3v3-phy1-lcd";
+				/* enough time for the PHY to fully power on */
+				regulator-enable-ramp-delay = <150000>;
 			};
 
 			reg_cpusldo: cpusldo {

---
base-commit: 20eef29b7c8465ac98d7dd6d6f2ac07a8d8056ca
change-id: 20261118-opi4a-cldo4-ramp-delay-45acac1e1705

Best regards,
-- 
Daniel Drake <ddrake@baylibre.com>


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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18 15:42 [PATCH] arm64: dts: allwinner: t527: orangepi-4a: Add PHY enable delay Daniel Drake
2026-11-24 16:56 ` Chen-Yu Tsai

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®