]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: dts: relocate/retype switch node
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 9 Mar 2026 15:39:11 +0000 (16:39 +0100)
committerRobert Marko <robert.marko@sartura.hr>
Sat, 21 Mar 2026 21:26:02 +0000 (22:26 +0100)
The switch node is currently located outside of the switchcore@1b000000
tree. This makes it hard to find when referencing from other nodes in
this tree. Make it a subnode of switchcore and "retype" it to
ethernet-switch like upstream does.

This is not perfectly aligned as upstream just mixes the switchcore and
the ethernet-switch node into one. But this will be future work for
downstream.

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/rtl838x.dtsi
target/linux/realtek/dts/rtl839x.dtsi
target/linux/realtek/dts/rtl930x.dtsi
target/linux/realtek/dts/rtl931x.dtsi

index 3ee0b6c45deda27a72888152e87547cafebed9d5..911abe7ad0cffe9a0237ba914ed0b72d86485116 100644 (file)
                        compatible = "realtek,rtl8380-thermal";
                        #thermal-sensor-cells = <0>;
                };
+
+               switch0: ethernet-switch {
+                       compatible = "realtek,rtl8380-switch", "realtek,otto-switch";
+                       status = "okay";
+
+                       interrupt-parent = <&intc>;
+                       interrupts = <20 2>;
+               };
        };
 
        pinmux@1b000144 {
                ranges = <0 0x9f000000 0x10000>;
        };
 
-       switch0: switch@1b000000 {
-               compatible = "realtek,rtl8380-switch", "realtek,otto-switch";
-
-               interrupt-parent = <&intc>;
-               interrupts = <20 2>;
-       };
-
        thermal_zones: thermal-zones {
                cpu-thermal {
                        polling-delay-passive = <1000>;
index 99cca02d39efaf2c32d2795d326d91411fc3914c..216579f2e76d33f5ed853c550dfa33a66a08d5df 100644 (file)
                        compatible = "realtek,rtl8390-thermal";
                        #thermal-sensor-cells = <0>;
                };
+
+               switch0: ethernet-switch {
+                       compatible = "realtek,rtl8392-switch", "realtek,otto-switch";
+                       status = "okay";
+
+                       interrupt-parent = <&intc>;
+                       interrupts = <20 2>;
+               };
        };
 
        pinmux@1b000004 {
                ranges = <0 0x9f000000 0x18000>;
        };
 
-       switch0: switch@1b000000 {
-               status = "okay";
-               compatible = "realtek,rtl8392-switch", "realtek,otto-switch";
-
-               interrupt-parent = <&intc>;
-               interrupts = <20 2>;
-       };
-
        thermal_zones: thermal-zones {
                cpu-thermal {
                        polling-delay-passive = <1000>;
index 11fea099634b97a2b655e5b9c5cc83c696384ba0..db28fa566a6b9fa1e6a092145bd626efe2b7e258 100644 (file)
                        compatible = "realtek,rtl9300-thermal";
                        #thermal-sensor-cells = <0>;
                };
+
+               switch0: switch@1b000000 {
+                       compatible = "realtek,rtl9301-switch", "realtek,otto-switch";
+                       status = "okay";
+
+                       interrupt-parent = <&intc>;
+                       interrupts = <23 2>;
+               };
        };
 
        pinmux@1b000200 {
                };
        };
 
-       switch0: switch@1b000000 {
-               compatible = "realtek,rtl9301-switch", "realtek,otto-switch";
-               status = "okay";
-
-               interrupt-parent = <&intc>;
-               interrupts = <23 2>;
-       };
-
        thermal_zones: thermal-zones {
                cpu-thermal {
                        polling-delay-passive = <1000>;
index ddb95eb99dbd536c285d83836506f4a7240a58cc..3ea1ce297fdf99d1a35086668d44c82f71f85c1b 100644 (file)
                                reg = <13>;
                        };
                };
+
+               switch0: switch@1b000000 {
+                       compatible = "realtek,rtl9311-switch", "realtek,otto-switch";
+                       status = "okay";
+
+                       interrupt-parent = <&gic>;
+                       #interrupt-cells = <3>;
+                       interrupts = <GIC_SHARED 15 IRQ_TYPE_LEVEL_HIGH>;
+               };
        };
 
        pinmux@1b00103c {
                        pinctrl-single,bits = <0x0 0x100 0x100>;
                };
        };
-
-       switch0: switch@1b000000 {
-               compatible = "realtek,rtl9311-switch", "realtek,otto-switch";
-               status = "okay";
-
-               interrupt-parent = <&gic>;
-               #interrupt-cells = <3>;
-               interrupts = <GIC_SHARED 15 IRQ_TYPE_LEVEL_HIGH>;
-       };
 };