]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: rockchip: change eth phy mode to rgmii-id for orangepi r1 plus lts
authorTianling Shen <cnsztl@gmail.com>
Sun, 19 Jan 2025 09:11:54 +0000 (17:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:34:19 +0000 (04:34 -0800)
commit a6a7cba17c544fb95d5a29ab9d9ed4503029cb29 upstream.

In general the delay should be added by the PHY instead of the MAC,
and this improves network stability on some boards which seem to
need different delay.

Fixes: 387b3bbac5ea ("arm64: dts: rockchip: Add Xunlong OrangePi R1 Plus LTS")
Cc: stable@vger.kernel.org # 6.6+
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
Link: https://lore.kernel.org/r/20250119091154.1110762-1-cnsztl@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-lts.dts
arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus.dts
arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus.dtsi

index 67c246ad8b8c0df4ea2d172b66dcbe71e4e45b18..ec2ce894da1fc123ffd4bcdfd7957766a6fac6a0 100644 (file)
@@ -17,8 +17,7 @@
 
 &gmac2io {
        phy-handle = <&yt8531c>;
-       tx_delay = <0x19>;
-       rx_delay = <0x05>;
+       phy-mode = "rgmii-id";
        status = "okay";
 
        mdio {
index 324a8e951f7e49982227345a3f8013cc1972154d..846b931e16d2122f0393482fc52e99dfd6067251 100644 (file)
@@ -15,6 +15,7 @@
 
 &gmac2io {
        phy-handle = <&rtl8211e>;
+       phy-mode = "rgmii";
        tx_delay = <0x24>;
        rx_delay = <0x18>;
        status = "okay";
index 82021ffb0a49c21de4c913631c2990eba4915c79..381b88a912382c3b4f0d5b28d46d31565169d4b6 100644 (file)
        assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
        assigned-clock-parents = <&gmac_clk>, <&gmac_clk>;
        clock_in_out = "input";
-       phy-mode = "rgmii";
        phy-supply = <&vcc_io>;
        pinctrl-0 = <&rgmiim1_pins>;
        pinctrl-names = "default";