arm64: dts: rockchip: Fix RX delay for ethernet phy on rk3588s-rock5a
authorLucas Tanure <lucas.tanure@collabora.com>
Fri, 13 Jan 2023 13:02:20 +0000 (13:02 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 16 Jan 2023 10:14:35 +0000 (11:14 +0100)
Add network PHY rx delay and change type to rgmii, so
that it is applied. This fixes packet loss when more
than a few packets are exchanged.

Fixes: d1824cf95799 ("arm64: dts: rockchip: Add rock-5a board")
Signed-off-by: Lucas Tanure <lucas.tanure@collabora.com>
Link: https://lore.kernel.org/r/20230113130220.662194-1-lucas.tanure@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts

index 6432b586bf5acab9d3506cd7a829aa529e3b830d..901825514f9d8eceb70f27c8bd2a64bd44b623e5 100644 (file)
@@ -23,7 +23,7 @@
 &gmac1 {
        clock_in_out = "output";
        phy-handle = <&rgmii_phy1>;
-       phy-mode = "rgmii-rxid";
+       phy-mode = "rgmii";
        pinctrl-0 = <&gmac1_miim
                     &gmac1_tx_bus2
                     &gmac1_rx_bus2
@@ -31,6 +31,7 @@
                     &gmac1_rgmii_bus>;
        pinctrl-names = "default";
        tx_delay = <0x3a>;
+       rx_delay = <0x3e>;
        status = "okay";
 };