kernel: bump 5.4 to 5.4.169
[openwrt/staging/mkresin.git] / target / linux / sunxi / patches-5.10 / 103-arm64-dts-allwinner-orangepi-zero-plus-fix-PHY-mo.patch
1 From 4f45f9f370a5bc6a43a7a166f10b3a30ca21353c Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robert.marko@sartura.hr>
3 Date: Wed, 17 Nov 2021 10:36:31 +0100
4 Subject: [PATCH v2] arm64: dts: allwinner: orangepi-zero-plus: fix PHY mode
5
6 Orange Pi Zero Plus uses a Realtek RTL8211E RGMII Gigabit PHY, but its
7 currently set to plain RGMII mode meaning that it doesn't introduce
8 delays.
9
10 With this setup, TX packets are completely lost and changing the mode to
11 RGMII-ID so the PHY will add delays internally fixes the issue.
12
13 Fixes: a7affb13b271 ("arm64: allwinner: H5: Add Xunlong Orange Pi Zero Plus")
14
15 Tested-by: Ron Goossens <rgoossens@gmail.com>
16 Signed-off-by: Robert Marko <robert.marko@sartura.hr>
17 Tested-by: Samuel Holland <samuel@sholland.org>
18 ---
19 arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts
23 +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts
24 @@ -69,7 +69,7 @@
25 pinctrl-0 = <&emac_rgmii_pins>;
26 phy-supply = <&reg_gmac_3v3>;
27 phy-handle = <&ext_rgmii_phy>;
28 - phy-mode = "rgmii";
29 + phy-mode = "rgmii-id";
30 status = "okay";
31 };
32