[PATCH 2/2] arm64: dts: allwinner: h616: update emac properties for Orange Pi Zero 3

From: Chukun Pan
Date: Tue Oct 10 2023 - 11:48:48 EST


Add the correct delay value to emac. Also add missing mdio
properties for the YT8531 PHY (clock output required).
With these changes, Ethernet now looks stable.

Signed-off-by: Chukun Pan <amadeus@xxxxxxxxxx>
---
arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts
index 00fe28caac93..02c7836b624a 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts
@@ -13,10 +13,14 @@ / {
};

&emac0 {
+ allwinner,rx-delay-ps = <1800>;
+ allwinner,tx-delay-ps = <700>;
phy-supply = <&reg_dldo1>;
};

&ext_rgmii_phy {
+ motorcomm,keep-pll-enabled;
+ motorcomm,auto-sleep-disabled;
motorcomm,clk-out-frequency-hz = <125000000>;
};

--
2.25.1