]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: dts: arm64: update emac for Orange Pi Zero 3
authorChukun Pan <amadeus@jmu.edu.cn>
Sun, 29 Oct 2023 07:40:09 +0000 (15:40 +0800)
committerAndre Przywara <andre.przywara@arm.com>
Wed, 6 Dec 2023 23:08:37 +0000 (23:08 +0000)
The current emac setting is not suitable for Orange Pi Zero 3,
move it back to Orange Pi Zero 2 DT. Also update phy mode and
delay values for emac on Orange Pi Zero 3.
With these changes, Ethernet now looks stable.

Fixes: 95c3b0635ea4 ("sunxi: dts: arm64: update devicetree files from Linux-v6.6-rc6")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
arch/arm/dts/sun50i-h616-orangepi-zero.dtsi
arch/arm/dts/sun50i-h616-orangepi-zero2.dts
arch/arm/dts/sun50i-h618-orangepi-zero3.dts

index 15290e6892fca4014f8801e68e8599f5ac6109c0..fc7315b9440659d820ca1bb6b57fb5a92aefe41d 100644 (file)
 &emac0 {
        pinctrl-names = "default";
        pinctrl-0 = <&ext_rgmii_pins>;
-       phy-mode = "rgmii";
        phy-handle = <&ext_rgmii_phy>;
-       allwinner,rx-delay-ps = <3100>;
-       allwinner,tx-delay-ps = <700>;
        status = "okay";
 };
 
index d83852e72f063488d5fa50e93de3cb4adf08451c..b5d713926a341a291d1eb4e649b7984cd8ebc9e4 100644 (file)
@@ -13,6 +13,9 @@
 };
 
 &emac0 {
+       allwinner,rx-delay-ps = <3100>;
+       allwinner,tx-delay-ps = <700>;
+       phy-mode = "rgmii";
        phy-supply = <&reg_dcdce>;
 };
 
index 00fe28caac939a8c3b4bc85be8f1e1ca6edcebe8..b3b1b8692125f9f75df58a4a464fb5a4f185d79c 100644 (file)
@@ -13,6 +13,8 @@
 };
 
 &emac0 {
+       allwinner,tx-delay-ps = <700>;
+       phy-mode = "rgmii-rxid";
        phy-supply = <&reg_dldo1>;
 };