From: Jan Hoffmann Date: Tue, 23 Dec 2025 19:40:52 +0000 (+0100) Subject: realtek: enable MDI swapping for RTL8226 where needed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b943db9cb2a2780e9244d10582ee873e6c01ee7f;p=thirdparty%2Fopenwrt.git realtek: enable MDI swapping for RTL8226 where needed The RTL8226 PHYs in Zyxel XGS1010-10 and XGS1210-10 rev A1 have swapped MDI lanes. Specify this in the device tree, so the driver can configure it. With this change, the PHYs no longer require initialization by the bootloader. Signed-off-by: Jan Hoffmann Link: https://github.com/openwrt/openwrt/pull/21261 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/realtek/dts/rtl9302_zyxel_xgs1010-12-a1.dts b/target/linux/realtek/dts/rtl9302_zyxel_xgs1010-12-a1.dts index e0a308cdd74..513f2171700 100644 --- a/target/linux/realtek/dts/rtl9302_zyxel_xgs1010-12-a1.dts +++ b/target/linux/realtek/dts/rtl9302_zyxel_xgs1010-12-a1.dts @@ -105,8 +105,10 @@ &phy24 { realtek,smi-address = <8>; + enet-phy-pair-order = <1>; }; &phy25 { realtek,smi-address = <9>; + enet-phy-pair-order = <1>; }; diff --git a/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-a1.dts b/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-a1.dts index dc8e55b772e..2f8ea1b9fa1 100644 --- a/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-a1.dts +++ b/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-a1.dts @@ -10,8 +10,10 @@ &phy24 { realtek,smi-address = <8>; + enet-phy-pair-order = <1>; }; &phy25 { realtek,smi-address = <9>; + enet-phy-pair-order = <1>; };