]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: dts: normalize Zyxel XGS1x10 DTS
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 9 Mar 2026 09:50:44 +0000 (10:50 +0100)
committerRobert Marko <robert.marko@sartura.hr>
Sat, 21 Mar 2026 21:26:01 +0000 (22:26 +0100)
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>
target/linux/realtek/dts/rtl9302_zyxel_xgs1010-12-a1.dts
target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-a1.dts
target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-b1.dts
target/linux/realtek/dts/rtl9302_zyxel_xgs1x10-12-common.dtsi

index 513f2171700cdb0151889d4bd60401ee0af47f5f..c136437bbac90f909fed7b057b659f147dd21fd4 100644 (file)
        };
 };
 
-&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>;
+       };
 };
index 2f8ea1b9fa149ed09736b83d41f992df9aff5a2c..3f32b9b640326edc6e167cc4ed520ee79ff784c0 100644 (file)
@@ -8,12 +8,20 @@
        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>;
+       };
 };
index 2a9eeda64a6cf0f5f159c1754ef8befa9cc6ad3d..2cff52ffaa4401d194c95a1b8410de24bd04c6d7 100644 (file)
@@ -8,10 +8,18 @@
        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";
+       };
 };
index a13d953374dd1701a7bf1fee569c30bb454b8c42..a5fe740aefdb2340413f9060df11cbaf7beb5e49 100644 (file)
        };
 };
 
-&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>;