From 323dfdf599ac217e95d12bff81f5189498bd4793 Mon Sep 17 00:00:00 2001 From: Markus Stockhausen Date: Sun, 22 Mar 2026 09:37:06 +0100 Subject: [PATCH] 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 Link: https://github.com/openwrt/openwrt/pull/22557 Signed-off-by: Robert Marko --- target/linux/realtek/dts/rtl930x.dtsi | 2 +- target/linux/realtek/dts/rtl931x.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/realtek/dts/rtl930x.dtsi b/target/linux/realtek/dts/rtl930x.dtsi index db28fa566a..ebc121523a 100644 --- a/target/linux/realtek/dts/rtl930x.dtsi +++ b/target/linux/realtek/dts/rtl930x.dtsi @@ -290,7 +290,7 @@ #thermal-sensor-cells = <0>; }; - switch0: switch@1b000000 { + switch0: ethernet-switch { compatible = "realtek,rtl9301-switch", "realtek,otto-switch"; status = "okay"; diff --git a/target/linux/realtek/dts/rtl931x.dtsi b/target/linux/realtek/dts/rtl931x.dtsi index 3ea1ce297f..68a205d95c 100644 --- a/target/linux/realtek/dts/rtl931x.dtsi +++ b/target/linux/realtek/dts/rtl931x.dtsi @@ -326,7 +326,7 @@ }; }; - switch0: switch@1b000000 { + switch0: ethernet-switch { compatible = "realtek,rtl9311-switch", "realtek,otto-switch"; status = "okay";