realtek: dts: fix ethernet-switch node

RTL93xx devices can no longer find the switch node in the DTS.
Commit 4c92254 ("relocate/retype switch node") refactored the
switch node definition to better align with upstream. Sadly
the redefinition for RTL93xx devices failed.

- RTL83xx: use "switch0: ethernet-switch"
- RTL93xx: use "switch0: switch@1b000000"

Follow up commit 8b969f7 ("drop realtek,smi-address property)
changed the dts lookup sequence for mdio initialization. On
RTL93xx devices it cannot find the switchnode via
of_get_child_by_name(dev->of_node->parent, "ethernet-switch")

Fix the switch node type for RTL93xx

Fixes: 8b969f7 ("drop realtek,smi-address property)
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22557
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Markus Stockhausen 2026-03-22 09:37:06 +01:00 committed by Robert Marko
parent 2f74f9188f
commit 323dfdf599
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@
#thermal-sensor-cells = <0>;
};
switch0: switch@1b000000 {
switch0: ethernet-switch {
compatible = "realtek,rtl9301-switch", "realtek,otto-switch";
status = "okay";

View File

@ -326,7 +326,7 @@
};
};
switch0: switch@1b000000 {
switch0: ethernet-switch {
compatible = "realtek,rtl9311-switch", "realtek,otto-switch";
status = "okay";