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>
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
SWITCH_PORT(16, 9, qsgmii)
SWITCH_PORT(17, 10, qsgmii)
};
};
&switch0 {
- ports {
+ ethernet-ports {
SWITCH_PORT_SDS(16, 9, 2, qsgmii)
port@24 {
};
&switch0 {
- ports {
+ ethernet-ports {
/* TODO: fixed link SFP is not right */
port24: port@24 {
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
port24: port@24 {
reg = <24>;
label = "lan-sfp2";
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
port@24 {
reg = <24>;
label = "lan9";
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&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)
};
&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)
};
&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)
};
&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)
};
&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)
};
&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)
};
&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)
};
&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)
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&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)
&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)
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
port@26 {
reg = <26>;
label = "lan9";
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
};
&switch0 {
- ports {
+ ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;