mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-28 23:23:59 +00:00
9e348da477
This is an automatically generated commit which aids following Kernel patch history, as git will see the move and copy as a rename thus defeating the purpose. See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html for the original discussion. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
58 lines
1.9 KiB
Diff
58 lines
1.9 KiB
Diff
From b9622937d95809ef89904583191571a9fa326402 Mon Sep 17 00:00:00 2001
|
|
From: Chukun Pan <amadeus@jmu.edu.cn>
|
|
Date: Sun, 29 Oct 2023 15:40:09 +0800
|
|
Subject: [PATCH] arm64: dts: allwinner: h616: update emac for Orange Pi Zero 3
|
|
|
|
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: 322bf103204b ("arm64: dts: allwinner: h616: Split Orange Pi Zero 2 DT")
|
|
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
|
|
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
|
|
Link: https://lore.kernel.org/r/20231029074009.7820-2-amadeus@jmu.edu.cn
|
|
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
|
|
---
|
|
arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi | 3 ---
|
|
arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts | 3 +++
|
|
arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts | 2 ++
|
|
3 files changed, 5 insertions(+), 3 deletions(-)
|
|
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi
|
|
@@ -68,10 +68,7 @@
|
|
&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";
|
|
};
|
|
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts
|
|
@@ -13,6 +13,9 @@
|
|
};
|
|
|
|
&emac0 {
|
|
+ allwinner,rx-delay-ps = <3100>;
|
|
+ allwinner,tx-delay-ps = <700>;
|
|
+ phy-mode = "rgmii";
|
|
phy-supply = <®_dcdce>;
|
|
};
|
|
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts
|
|
@@ -13,6 +13,8 @@
|
|
};
|
|
|
|
&emac0 {
|
|
+ allwinner,tx-delay-ps = <700>;
|
|
+ phy-mode = "rgmii-rxid";
|
|
phy-supply = <®_dldo1>;
|
|
};
|
|
|