1
1
openwrt/target/linux/realtek
Markus Stockhausen 82ddc472d7 realtek: dts: convert to upstream switch notation
There is currently a difference how upstream and downstream define
the switch in the dts. Downstream holds the switch as a member
node below a root switchcore parent. Upstream uses the switch as
the parent.

Upstream:

  ethernet-switch@1b000000 {
    mdio-controller@ca00 { };
    ethernet { };
    ethernet-ports { };
  }

Downstream:

  switchcore@1b000000 {
    ethernet-switch {
      ethernet-ports { };
    };
    mdio-controller@ca00 { };
    ethernet { };
  }

Align downstream to upstream and merge the ethernet-switch into
the parent node. For this to work adapt the port lookup in the MDIO
and PCS driver.

Remark! With this commit the boot process will give the spurious
error message "rtl838x_eth 1b000000.ethernet-switch:ethernet eth0:
Failed to create a device link to DSA switch 1b000000.ethernet-switch"
This comes from the fact that the switch is the parent of the ethernet
device. Thus a link back from ethernet device to the switch is no
longer possible. Testing shows that the error is just cosmetic.

Link: https://github.com/openwrt/openwrt/pull/23599
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
2026-06-01 19:15:51 +02:00
..
base-files realtek: rtl930x: add support for Hasivo F1100W-4SX-4XGT and variants 2026-05-28 22:10:00 +02:00
dts realtek: dts: convert to upstream switch notation 2026-06-01 19:15:51 +02:00
files-6.18 realtek: dts: convert to upstream switch notation 2026-06-01 19:15:51 +02:00
image realtek: rtl930x: add support for Hasivo F1100W-4SX-4XGT and variants 2026-05-28 22:10:00 +02:00
patches-6.18 realtek: migrate PCS to fwnode_pcs provider/consumer API 2026-05-31 12:52:41 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: add Hasivo MCU watchdog driver 2026-05-31 10:57:26 +02:00
rtl839x realtek: add Hasivo MCU watchdog driver 2026-05-31 10:57:26 +02:00
rtl930x realtek: add Hasivo MCU watchdog driver 2026-05-31 10:57:26 +02:00
rtl930x_nand realtek: add Hasivo MCU watchdog driver 2026-05-31 10:57:26 +02:00
rtl931x realtek: add Hasivo MCU watchdog driver 2026-05-31 10:57:26 +02:00
rtl931x_nand realtek: add Hasivo MCU watchdog driver 2026-05-31 10:57:26 +02:00
Makefile realtek: switch to 6.18 2026-04-11 20:59:10 +02:00
modules.mk realtek: add Hasivo MCU watchdog driver 2026-05-31 10:57:26 +02:00