]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
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)
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

index abce9500fee70f7f202c05be80c38345d483e9fe..8f44de8bdcfd9bf8d20da58dd4ec9a9924b68203 100644 (file)
 
        switchcore@1b000000 {
                compatible = "syscon", "simple-mfd";
-               reg = <0x1b000000 0x20000>;
+               reg = <0x1b000000 0x10000>;
 
                mdio_aux: mdio-aux {
                        compatible = "realtek,rtl8380-aux-mdio";
index 84473fa2c3f1969e96558fd31b7dba752a8d4a3e..98c69a5d34ba400f6bf91f92b5a5a52030d1b86c 100644 (file)
 
        switchcore@1b000000 {
                compatible = "syscon", "simple-mfd";
-               reg = <0x1b000000 0x20000>;
+               reg = <0x1b000000 0x10000>;
 
                mdio_aux: mdio-aux {
                        compatible = "realtek,rtl8390-aux-mdio";
index 61599e89b54e92f7a66dc63a57fe72843f9a0ee0..ad10272d7a810976c9779b4c4af14e74fba38e02 100644 (file)
                };
        };
 
+       switchcore@1b000000 {
+               compatible = "syscon", "simple-mfd";
+               reg = <0x1b000000 0x10000>;
+       };
+
        pinmux: pinmux@1b001358 {
                compatible = "pinctrl-single";
                reg = <0x1b001358 0x4>;