realtek: Fix pair-order for rtl930x based plasmacloud devices

This change is needed as we move towards removing rtk init from bootloader
and makes it possible to initialize and configure RTL8224 phy driver

Signed-off-by: Harshal Gohel <hg@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/22826
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Harshal Gohel 2026-04-07 13:39:27 +00:00 committed by Robert Marko
parent 0bcc77d530
commit 901ca8213c
2 changed files with 15 additions and 8 deletions

View File

@ -25,6 +25,13 @@
compatible = "ethernet-phy-ieee802.3-c45"; \
};
#define PHY_C45_PAIR_ORDER(p, n, po) \
phy##p: ethernet-phy@n { \
reg = <##n>; \
compatible = "ethernet-phy-ieee802.3-c45"; \
enet-phy-pair-order = <##po>; \
};
#define EXTERNAL_SFP_PHY(n) \
phy##n: ethernet-phy@##n { \
compatible = "ethernet-phy-ieee802.3-c22"; \

View File

@ -134,14 +134,14 @@
};
&mdio_bus0 {
PHY_C45(0, 0)
PHY_C45(1, 1)
PHY_C45(2, 2)
PHY_C45(3, 3)
PHY_C45(8, 4)
PHY_C45(9, 5)
PHY_C45(10, 6)
PHY_C45(11, 7)
PHY_C45_PAIR_ORDER(0, 0, 0)
PHY_C45_PAIR_ORDER(1, 1, 0)
PHY_C45_PAIR_ORDER(2, 2, 1)
PHY_C45_PAIR_ORDER(3, 3, 1)
PHY_C45_PAIR_ORDER(8, 4, 0)
PHY_C45_PAIR_ORDER(9, 5, 0)
PHY_C45_PAIR_ORDER(10, 6, 1)
PHY_C45_PAIR_ORDER(11, 7, 1)
};
&switch0 {