1
0
Fork 0
forked from mirror/openwrt

realtek: dts: relocate/retype switch node

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>
This commit is contained in:
Markus Stockhausen 2026-03-09 16:39:11 +01:00 committed by Robert Marko
parent f5ec3f2df2
commit 4c92254fd3
No known key found for this signature in database
GPG key ID: 66D805C09F36AFA5
4 changed files with 33 additions and 32 deletions

View file

@ -274,6 +274,14 @@
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 {
@ -354,13 +362,6 @@
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>;

View file

@ -306,6 +306,14 @@
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 {
@ -355,14 +363,6 @@
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>;

View file

@ -289,6 +289,14 @@
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 {
@ -358,14 +366,6 @@
};
};
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>;

View file

@ -325,6 +325,15 @@
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 {
@ -419,13 +428,4 @@
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>;
};
};