realtek: dts: add mdio controller device nodes
authorMarkus Stockhausen <[email protected]>
Mon, 8 Sep 2025 05:51:21 +0000 (01:51 -0400)
committerHauke Mehrtens <[email protected]>
Fri, 12 Sep 2025 18:58:17 +0000 (20:58 +0200)
commit13b6c62b758612256c5379c88a4171bcfe7049f3
tree795e1c1ec388168fe72275c596f11b69f0015096
parent69ce2eeb97bd86162026f4a7b9c9d53084b2df21
realtek: dts: add mdio controller device nodes

Until now the mdio bus is a subnode of the ethernet device. This
coupling is different from upstream and wrong. Ethernet and mdio
are different devices. Additionally differentiate between mdio
controller and mdio bus. To make it clear:

- There is one mdio controller
- With up to 4 busses (on RTL93xx)

Prepare new mdio controller and bus nodes with SoC specific compatibles.
These will be used later when refactoring the mdio driver probing.

Remark! For now only define the first bus for the RTL93xx targets.
So the driver still relies on "rtl9300,smi-address = <x y>;". It will
need much more refactoring to get totally aligned with upstream.

Signed-off-by: Markus Stockhausen <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19986
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/dts/rtl838x.dtsi
target/linux/realtek/dts/rtl839x.dtsi
target/linux/realtek/dts/rtl930x.dtsi
target/linux/realtek/dts/rtl931x.dtsi