]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: enable MDI swapping for RTL8226 where needed 21261/head
authorJan Hoffmann <jan@3e8.eu>
Tue, 23 Dec 2025 19:40:52 +0000 (20:40 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 14 Mar 2026 23:08:32 +0000 (00:08 +0100)
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 <jan@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/21261
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/dts/rtl9302_zyxel_xgs1010-12-a1.dts
target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-a1.dts

index e0a308cdd7454ee1deefbd21baf5d08a6a72d6f6..513f2171700cdb0151889d4bd60401ee0af47f5f 100644 (file)
 
 &phy24 {
        realtek,smi-address = <8>;
+       enet-phy-pair-order = <1>;
 };
 
 &phy25 {
        realtek,smi-address = <9>;
+       enet-phy-pair-order = <1>;
 };
index dc8e55b772eebe311c317fb9ffdafbd8ab9f56ac..2f8ea1b9fa149ed09736b83d41f992df9aff5a2c 100644 (file)
 
 &phy24 {
        realtek,smi-address = <8>;
+       enet-phy-pair-order = <1>;
 };
 
 &phy25 {
        realtek,smi-address = <9>;
+       enet-phy-pair-order = <1>;
 };