]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: fix/add switchcore syscon nodes for RTL838x/RTL839x/RTL931x 18642/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 30 Apr 2025 08:24:27 +0000 (04:24 -0400)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 19 Jun 2025 18:28:30 +0000 (20:28 +0200)
commit22854586c631a081929a06e55a991aa5ffb94f66
tree244c145ea25842848a78ecbbfc79ee01f9f91a78
parent0bd5d5f74848c0a658968cfbd7d8f1e677ba9484
realtek: fix/add switchcore syscon nodes for RTL838x/RTL839x/RTL931x

The switchcore node is the central location that describes the Realtek switch
register addresses starting at 0x1b000000. It will be used by current and
future regmap enabled device drivers. The upstream MDIO driver already makes
use of it by calling syscon_node_to_regmap(dev->parent->of_node);

In the current DTS base we have 3 issues that should be fixed:

- rtl838x.dtsi has a length of 0x20000 instead of 0x10000
- rtl839x.dtsi has a length of 0x20000 instead of 0x10000
- rtl931x.dtsi has no switchcore node at all

Align these mismatches with the "good" RTL930x template.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18642
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/dts/rtl838x.dtsi
target/linux/realtek/dts/rtl839x.dtsi
target/linux/realtek/dts/rtl931x.dtsi