From: Gennaro Cimmino Date: Thu, 23 Jul 2026 16:37:36 +0000 (+0200) Subject: realtek: dts: declare RTL8264 SerDes lane polarity on Hasivo S1100W-8XGT-SE X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c88e6eef3cdf7256f2bf13f9768ae5dc9903258;p=thirdparty%2Fopenwrt.git realtek: dts: declare RTL8264 SerDes lane polarity on Hasivo S1100W-8XGT-SE The rtl826x PHY driver programs the system-side SerDes lane polarity of the RTL8264 from the "rx-polarity"/"tx-polarity" devicetree properties, defaulting to normal polarity when they are absent. The Hasivo S1100W-8XGT-SE routes half of its high-speed lanes with inverted polarity, which the vendor bootloader compensates for by setting HSI_INV/HSO_INV (VEND1 0xC1 bits 6/7) per PHY. Without the properties the driver clears those bits on every PHY (re-)initialization, which kills the USXGMII link of every port: egress frames never reach the wire while the port MAC MIB keeps counting them, and ingress dies with it (issue #24359 for this board). Declare the polarity for all eight PHYs, matching the values the bootloader programs (read back on hardware in the U-Boot state: alternating HSO_INV/HSI_INV per port pair). The already-supported S1300WP declares these properties the same way. Verified on hardware: on a pristine build both traffic directions are dead; with only this devicetree change, ingress runs at full rate, egress passes traffic, and the link now survives netifd restarts and renegotiation. 10GBase-T ports also negotiate 10G instead of falling back to 5G. Assisted-by: Claude:claude-fable-5 Signed-off-by: Gennaro Cimmino Link: https://github.com/openwrt/openwrt/pull/24393 Signed-off-by: Markus Stockhausen --- diff --git a/target/linux/realtek/dts/rtl9303_hasivo_s1100w-8xgt-se.dts b/target/linux/realtek/dts/rtl9303_hasivo_s1100w-8xgt-se.dts index a42a97fa53b..d079d681492 100644 --- a/target/linux/realtek/dts/rtl9303_hasivo_s1100w-8xgt-se.dts +++ b/target/linux/realtek/dts/rtl9303_hasivo_s1100w-8xgt-se.dts @@ -6,6 +6,7 @@ #include #include #include +#include / { compatible = "hasivo,s1100w-8xgt-se", "realtek,rtl930x-soc"; @@ -171,3 +172,12 @@ }; }; }; + +&phy0 { tx-polarity = ; }; +&phy8 { rx-polarity = ; }; +&phy16 { tx-polarity = ; }; +&phy20 { rx-polarity = ; }; +&phy24 { tx-polarity = ; }; +&phy25 { rx-polarity = ; }; +&phy26 { tx-polarity = ; }; +&phy27 { rx-polarity = ; };