]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: dts: convert devices to mdio bus 1-3
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 7 Jan 2026 11:16:53 +0000 (12:16 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 21 Jan 2026 22:32:54 +0000 (23:32 +0100)
Switch the mdio bus topology for devices that have their phys
attached to bus 1-3. This does not have any impact because
the mdio driver was completly redisgned

With this commit the bus id is stored twice. Once in the (new)
bus and in the (old) realtek,smi-address property. E.g.

&mdio_bus1 {
  reg = <1>; <<< bus id
  phy24: ethernet-phy@24 {
    reg = <26>;
    compatible = "ethernet-phy-ieee802.3-c22";
    realtek,smi-address = <1 2>; <<< bus & address id
  };
};

This redundancy will be removed later.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21438
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/dts/rtl9301_linksys_lgs328c.dts
target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12-a1.dts
target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12-b1.dts
target/linux/realtek/dts/rtl9302_zyxel_xgs1x10-12-common.dtsi
target/linux/realtek/dts/rtl9303_hasivo_s1100w-8xgt-se.dts
target/linux/realtek/dts/rtl9311_linksys_lgs352c.dts
target/linux/realtek/dts/rtl9312_plasmacloud_common.dtsi

index fff883696aeeb5f2e37d959445ad74d614ec8b72..462bf0b3fc5c63e7dcff342fb2286fbdaad14db4 100644 (file)
                reg = <7>;
                compatible = "ethernet-phy-ieee802.3-c22";
                realtek,smi-address = <0 7>;
-       };              
+       };
+};
+
+&mdio_bus1 {
        phy8: ethernet-phy@8 {
                reg = <8>;
                compatible = "ethernet-phy-ieee802.3-c22";
                compatible = "ethernet-phy-ieee802.3-c22";
                realtek,smi-address = <1 15>;
        };
+};
+
+&mdio_bus2 {
        phy16: ethernet-phy@16 {
                reg = <16>;
                compatible = "ethernet-phy-ieee802.3-c22";
index 6bbaf0ae06bda5e0c1c0e434c267052766786fea..decd007d1f05a05e72a7dce98b14efe166c2380d 100644 (file)
@@ -8,7 +8,7 @@
        model = "Zyxel XGS1250-12 A1 Switch";
 };
 
-&mdio_bus0 {
+&mdio_bus1 {
        /* External Aquantia 113C PHYs */
        phy24: ethernet-phy@24 {
                reg = <24>;
@@ -18,7 +18,9 @@
                // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
                #thermal-sensor-cells = <0>;
        };
+};
 
+&mdio_bus2 {
        phy25: ethernet-phy@25 {
                reg = <25>;
                compatible = "ethernet-phy-ieee802.3-c45";
@@ -27,7 +29,9 @@
                // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
                #thermal-sensor-cells = <0>;
        };
+};
 
+&mdio_bus3 {
        phy26: ethernet-phy@26 {
                reg = <26>;
                compatible = "ethernet-phy-ieee802.3-c45";
index a3f01200139d9dc38bbaf29ff6bd7482f8b598e6..30e19445b279af141b2ab27659f967801df69f09 100644 (file)
@@ -8,7 +8,7 @@
        model = "Zyxel XGS1250-12 B1 Switch";
 };
 
-&mdio_bus0 {
+&mdio_bus1 {
        phy24: ethernet-phy@24 {
                reg = <24>;
                compatible = "ethernet-phy-ieee802.3-c45";
@@ -17,7 +17,9 @@
                // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
                #thermal-sensor-cells = <0>;
        };
+};
 
+&mdio_bus2 {
        phy25: ethernet-phy@25 {
                reg = <25>;
                compatible = "ethernet-phy-ieee802.3-c45";
@@ -26,7 +28,9 @@
                // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
                #thermal-sensor-cells = <0>;
        };
+};
 
+&mdio_bus3 {
        phy26: ethernet-phy@26 {
                reg = <26>;
                compatible = "ethernet-phy-ieee802.3-c45";
index 539cdb622984a421478c3b5c805246c78a5b234f..61f6109262a3140948ee9a5263dd37732640fab8 100644 (file)
                compatible = "ethernet-phy-ieee802.3-c22";
                realtek,smi-address = <0 7>;
        };
+};
 
+&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";
index f7ea33c24c57f2ed82f0b0c6606394bbaeb84c44..b16e669aa0078e51db85eaa12b7c20eb15d5b4b2 100644 (file)
                realtek,smi-address = <0 3>;
                reg = <20>;
        };
+};
 
+&mdio_bus3 {
        phy24: ethernet-phy@24 {
                compatible = "ethernet-phy-ieee802.3-c45";
                realtek,smi-address = <3 16>;
index e31d7ec82c9dde5b6bea781117b65cd2185876be..c1d82012976f403ce6512be371d65d552c396110 100644 (file)
                compatible = "ethernet-phy-ieee802.3-c22";
                realtek,smi-address = <0 23>;
        };
+};
+
+&mdio_bus1 {
        phy24: ethernet-phy@24 {
                reg = <24>;
                compatible = "ethernet-phy-ieee802.3-c22";
index 34333ee93f9cbab1b2d765ced070d4ebc14d6fd8..b7de43ce1adcf99561ef40aa567eabf9704f4c9f 100644 (file)
                compatible = "ethernet-phy-ieee802.3-c45";
                realtek,smi-address = <0 11>;
        };
+};
 
+&mdio_bus1 {
        phy24: ethernet-phy@24 {
                reg = <24>;
                compatible = "ethernet-phy-ieee802.3-c45";