From c9406df91836b5c94a395b61ebe5c16e08e2c779 Mon Sep 17 00:00:00 2001 From: Jonas Jelonek Date: Sat, 30 May 2026 20:54:59 +0000 Subject: [PATCH] realtek: fix SFP support on Plasma Cloud ESX28/PSX28 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 --- target/linux/realtek/dts/rtl9312_plasmacloud_common.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/linux/realtek/dts/rtl9312_plasmacloud_common.dtsi b/target/linux/realtek/dts/rtl9312_plasmacloud_common.dtsi index a9524b7e36..07f096dc7e 100644 --- a/target/linux/realtek/dts/rtl9312_plasmacloud_common.dtsi +++ b/target/linux/realtek/dts/rtl9312_plasmacloud_common.dtsi @@ -5,6 +5,7 @@ #include #include #include +#include / { chosen { @@ -473,3 +474,8 @@ line-name = "phy-reset"; }; }; + +&serdes8 { tx-polarity = ; }; +&serdes9 { tx-polarity = ; }; +&serdes10 { tx-polarity = ; }; +&serdes11 { tx-polarity = ; };