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>
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>;
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>;
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>;
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>;
- };
};