Commit 25113667 authored by Jernej Skrabec's avatar Jernej Skrabec Committed by Maxime Ripard

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: 94dcfdc7 ("arm64: allwinner: pine64-plus: Enable dwmac-sun8i")
Suggested-by: default avatarOndrej Jirman <megous@megous.com>
Signed-off-by: default avatarJernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: default avatarMaxime Ripard <mripard@kernel.org>
parent 54ecb8f7
...@@ -63,3 +63,12 @@ ext_rgmii_phy: ethernet-phy@1 { ...@@ -63,3 +63,12 @@ ext_rgmii_phy: ethernet-phy@1 {
reg = <1>; reg = <1>;
}; };
}; };
&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>;
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment