The Zyxel XGS1x10 DTS overzealously tries to avoid redundancies. For
this the phy24/phy25 definitions were split into a common and a device
specific part. Understanding how these phys are defined is therefore
a little bit tricky. Add a little bit of redundancy to make the
definitions easier to read and understand in a single location.
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22236
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
};
};
-&phy24 {
- realtek,smi-address = <8>;
- enet-phy-pair-order = <1>;
+&mdio_bus1 {
+ phy24: ethernet-phy@24 {
+ reg = <24>;
+ realtek,smi-address = <8>;
+ compatible = "ethernet-phy-ieee802.3-c45";
+ enet-phy-pair-order = <1>;
+ };
};
-&phy25 {
- realtek,smi-address = <9>;
- enet-phy-pair-order = <1>;
+&mdio_bus2 {
+ phy25: ethernet-phy@25 {
+ reg = <25>;
+ realtek,smi-address = <9>;
+ compatible = "ethernet-phy-ieee802.3-c45";
+ enet-phy-pair-order = <1>;
+ };
};
model = "Zyxel XGS1210-12 A1 Switch";
};
-&phy24 {
- realtek,smi-address = <8>;
- enet-phy-pair-order = <1>;
+&mdio_bus1 {
+ phy24: ethernet-phy@24 {
+ reg = <24>;
+ realtek,smi-address = <8>;
+ compatible = "ethernet-phy-ieee802.3-c45";
+ enet-phy-pair-order = <1>;
+ };
};
-&phy25 {
- realtek,smi-address = <9>;
- enet-phy-pair-order = <1>;
+&mdio_bus2 {
+ phy25: ethernet-phy@25 {
+ reg = <25>;
+ realtek,smi-address = <9>;
+ compatible = "ethernet-phy-ieee802.3-c45";
+ enet-phy-pair-order = <1>;
+ };
};
model = "Zyxel XGS1210-12 B1 Switch";
};
-&phy24 {
- realtek,smi-address = <1>;
+&mdio_bus1 {
+ phy24: ethernet-phy@24 {
+ reg = <24>;
+ realtek,smi-address = <1>;
+ compatible = "ethernet-phy-ieee802.3-c45";
+ };
};
-&phy25 {
- realtek,smi-address = <2>;
+&mdio_bus2 {
+ phy25: ethernet-phy@25 {
+ reg = <25>;
+ realtek,smi-address = <2>;
+ compatible = "ethernet-phy-ieee802.3-c45";
+ };
};
};
};
-&mdio_bus1 {
- phy24: ethernet-phy@24 {
- reg = <24>;
- compatible = "ethernet-phy-ieee802.3-c45";
- // Disabled because we do not know how to bring up again
- // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
- };
-};
-
-&mdio_bus2 {
- phy25: ethernet-phy@25 {
- reg = <25>;
- compatible = "ethernet-phy-ieee802.3-c45";
- // Disabled because we do not know how to bring up again
- // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
- };
-};
-
&switch0 {
ethernet-ports {
#address-cells = <1>;