]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: dts: convert to upstream switch notation 23599/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 31 May 2026 14:35:35 +0000 (16:35 +0200)
committerMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 1 Jun 2026 17:15:51 +0000 (19:15 +0200)
commit82ddc472d722d2d9befb1a1420055ababe7c0df1
tree28358c60f7189eb964c0362b3a57d65d847532f4
parent07a5e432c83aa5c5b8ef21caf84fc1d051dfcadc
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>
target/linux/realtek/dts/rtl838x.dtsi
target/linux/realtek/dts/rtl839x.dtsi
target/linux/realtek/dts/rtl930x.dtsi
target/linux/realtek/dts/rtl931x.dtsi
target/linux/realtek/files-6.18/drivers/net/mdio/mdio-realtek-otto.c
target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c