Skip to content

Commit 2511366

Browse files
jernejskmripard
authored andcommitted
arm64: dts: allwinner: a64: pine64-plus: Add PHY regulator delay
Depending on kernel and bootloader configuration, it's possible that Realtek ethernet PHY isn't powered on properly. According to the datasheet, it needs 30ms to power up and then some more time before it can be used. Fix that by adding 100ms ramp delay to regulator responsible for powering PHY. Fixes: 94dcfdc ("arm64: allwinner: pine64-plus: Enable dwmac-sun8i") Suggested-by: Ondrej Jirman <[email protected]> Signed-off-by: Jernej Skrabec <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
1 parent 54ecb8f commit 2511366

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,12 @@
6363
reg = <1>;
6464
};
6565
};
66+
67+
&reg_dc1sw {
68+
/*
69+
* Ethernet PHY needs 30ms to properly power up and some more
70+
* to initialize. 100ms should be plenty of time to finish
71+
* whole process.
72+
*/
73+
regulator-enable-ramp-delay = <100000>;
74+
};

0 commit comments

Comments
 (0)