realtek: dts: replace ports by ethernet-ports

In most drivers upstream use "ethernet-ports" instead of "ports"
in dts. Especially the upstream rtl9300 mdio driver uses this to
lookup the port/phy mapping. Do the same downstream. There is no
need to adapt the dsa driver because it scans the dts via
for_each_node_by_name(dn, "port").

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22149
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Markus Stockhausen 2026-02-22 21:40:22 +01:00 committed by Hauke Mehrtens
parent b0e0d51aec
commit 63729a8d6e
62 changed files with 62 additions and 62 deletions

View file

@ -87,7 +87,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -183,7 +183,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -69,7 +69,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -160,7 +160,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -136,7 +136,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -60,7 +60,7 @@
};
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT(16, 9, qsgmii)
SWITCH_PORT(17, 10, qsgmii)
};

View file

@ -50,7 +50,7 @@
};
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT_SDS(16, 9, 2, qsgmii)
port@24 {

View file

@ -50,7 +50,7 @@
};
&switch0 {
ports {
ethernet-ports {
/* TODO: fixed link SFP is not right */
port24: port@24 {

View file

@ -86,7 +86,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -8,7 +8,7 @@
};
&switch0 {
ports {
ethernet-ports {
port24: port@24 {
reg = <24>;
label = "lan-sfp2";

View file

@ -151,7 +151,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -53,7 +53,7 @@
};
&switch0 {
ports {
ethernet-ports {
port@24 {
reg = <24>;
label = "lan9";

View file

@ -98,7 +98,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -108,7 +108,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -225,7 +225,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -86,7 +86,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -35,7 +35,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -35,7 +35,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -75,7 +75,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -36,7 +36,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -8,7 +8,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -19,7 +19,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -108,7 +108,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -151,7 +151,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -127,7 +127,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -137,7 +137,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -124,7 +124,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -20,7 +20,7 @@
};
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT_SDS(16, 9, 2, qsgmii)
SWITCH_PORT_SDS(17, 10, 2, qsgmii)
SWITCH_PORT_SDS(18, 11, 2, qsgmii)

View file

@ -69,7 +69,7 @@
};
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT_SDS(0, 1, 0, qsgmii)
SWITCH_PORT_SDS(1, 2, 0, qsgmii)
SWITCH_PORT_SDS(2, 3, 0, qsgmii)

View file

@ -39,7 +39,7 @@
};
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT_SDS(1, 1, 0, qsgmii)
SWITCH_PORT_SDS(0, 2, 0, qsgmii)
SWITCH_PORT_SDS(3, 3, 0, qsgmii)

View file

@ -33,7 +33,7 @@
};
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT_SDS(0, 1, 0, qsgmii)
SWITCH_PORT_SDS(1, 2, 0, qsgmii)
SWITCH_PORT_SDS(2, 3, 0, qsgmii)

View file

@ -75,7 +75,7 @@
};
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT_SDS(0, 1, 0, qsgmii)
SWITCH_PORT_SDS(1, 2, 0, qsgmii)
SWITCH_PORT_SDS(2, 3, 0, qsgmii)

View file

@ -71,7 +71,7 @@
};
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT_SDS(0, 1, 0, qsgmii)
SWITCH_PORT_SDS(1, 2, 0, qsgmii)
SWITCH_PORT_SDS(2, 3, 0, qsgmii)

View file

@ -125,7 +125,7 @@
};
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT_SDS(24, 25, 6, qsgmii)
SWITCH_PORT_SDS(25, 26, 6, qsgmii)
SWITCH_PORT_SDS(26, 27, 6, qsgmii)

View file

@ -79,7 +79,7 @@
};
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT_SDS(48, 25, 12, qsgmii)
SWITCH_PORT_SDS(49, 26, 12, qsgmii)
SWITCH_PORT_SDS(50, 27, 12, qsgmii)

View file

@ -79,7 +79,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -245,7 +245,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -98,7 +98,7 @@
};
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT_SDS(48, 49, 12, qsgmii)
SWITCH_PORT_SDS(49, 50, 12, qsgmii)
SWITCH_PORT_SDS(50, 51, 12, qsgmii)

View file

@ -89,7 +89,7 @@
&switch0 {
ports {
ethernet-ports {
SWITCH_PORT_SDS(48, 50, 12, qsgmii)
SWITCH_PORT_SDS(49, 52, 12, qsgmii)
SWITCH_PORT_SDS(50, 49, 12, qsgmii)

View file

@ -81,7 +81,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -168,7 +168,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -300,7 +300,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -346,7 +346,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -207,7 +207,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -184,7 +184,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -171,7 +171,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -181,7 +181,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -164,7 +164,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -36,7 +36,7 @@
};
&switch0 {
ports {
ethernet-ports {
port@26 {
reg = <26>;
label = "lan9";

View file

@ -225,7 +225,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -256,7 +256,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -143,7 +143,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -178,7 +178,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -235,7 +235,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -233,7 +233,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -222,7 +222,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -184,7 +184,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -244,7 +244,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -241,7 +241,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -302,7 +302,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -386,7 +386,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

View file

@ -350,7 +350,7 @@
};
&switch0 {
ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;