]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: fix SFP support on Plasma Cloud ESX28/PSX28
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sat, 30 May 2026 20:54:59 +0000 (20:54 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sat, 30 May 2026 21:00:12 +0000 (21:00 +0000)
Like other RTL931x devices, the Plasma Cloud ESX28 and PSX28 also have
inverted polarity on the SerDes which drive the SFP ports. Commonly,
those always seem to have inverted TX polarity. This was missing from
when the devices were added at which time SFP on RTL931x wasn't working
at all yet. Add the polarity to the DTS now.

Verified on Plasma Cloud PSX28.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/realtek/dts/rtl9312_plasmacloud_common.dtsi

index a9524b7e368fc147589bfe5d6015d37758f561c3..07f096dc7ee7372166a8c348e8931110d65e7149 100644 (file)
@@ -5,6 +5,7 @@
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/leds/common.h>
+#include <dt-bindings/phy/phy.h>
 
 / {
        chosen {
                line-name = "phy-reset";
        };
 };
+
+&serdes8 { tx-polarity = <PHY_POL_INVERT>; };
+&serdes9 { tx-polarity = <PHY_POL_INVERT>; };
+&serdes10 { tx-polarity = <PHY_POL_INVERT>; };
+&serdes11 { tx-polarity = <PHY_POL_INVERT>; };