2
0

103-arm64-dts-allwinner-orangepi-zero-plus-fix-PHY-mo.patch 1.2 KB

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