Skip to contentSkip to conversation

arm64: dts: allwinner: a64: sopine-baseboard: Add PHY regulator delay

PATCH Applied Jernej Skrabec 2 participants 2 messages Sep 29, 2019 – Sep 30, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: allwinner: a64: sopine-baseboard: Add PHY regulator delay

It turns out that sopine-baseboard needs same fix as pine64-plus for ethernet PHY. Here too Realtek ethernet PHY chip needs additional power on delay to properly initialize. Datasheet mentions that chip needs 30 ms to be properly powered on and that it needs some more time to be initialized.

Fix that by adding 100ms ramp delay to regulator responsible for powering PHY.

Note that issue was found out and fix tested on pine64-lts, but it's basically the same as sopine-baseboard, only layout and connectors differ.

Fixes bdfe4cebea11 ("arm64: allwinner: a64: add Ethernet PHY regulator for several boards")
---
 .../boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts      | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +6 -0
index e6fb9683f213..25099202c52c 100644
@@ -159,6 +159,12 @@
 };
 
 &reg_dc1sw {
+	/*
+	 * Ethernet PHY needs 30ms to properly power up and some more
+	 * to initialize. 100ms should be plenty of time to finish
+	 * whole process.
+	 */
+	regulator-enable-ramp-delay = <100000>;
 	regulator-name = "vcc-phy";
 };
 
Signature · 1 line
2.23.0
#1 lore raw
Quoted 9 lines · Jernej Skrabec

It turns out that sopine-baseboard needs same fix as pine64-plus for ethernet PHY. Here too Realtek ethernet PHY chip needs additional power on delay to properly initialize. Datasheet mentions that chip needs 30 ms to be properly powered on and that it needs some more time to be initialized.

Fix that by adding 100ms ramp delay to regulator responsible for powering PHY.

Quoted 6 lines

Note that issue was found out and fix tested on pine64-lts, but it's basically the same as sopine-baseboard, only layout and connectors differ.

Fixes bdfe4cebea11 ("arm64: allwinner: a64: add Ethernet PHY regulator for several boards")

Applied as a fix for 5.4, thanks!
Maxime