From: Markus Stockhausen Date: Fri, 19 Sep 2025 08:57:21 +0000 (-0400) Subject: realtek: fix dts warnings. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F20091%2Fhead;p=thirdparty%2Fopenwrt.git realtek: fix dts warnings. Currently following warnings are given dts/rtl930x.dtsi:166.4-23: Warning (reg_format): /switchcore@1b000000/i2c@36c:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) Obviously default address-cells size is fixed to 64 bit. Align with upstream and override address size to 32 bit. Suggested-by: Jonas Jelonek Signed-off-by: Markus Stockhausen Link: https://github.com/openwrt/openwrt/pull/20091 Signed-off-by: Robert Marko --- diff --git a/target/linux/realtek/dts/rtl838x.dtsi b/target/linux/realtek/dts/rtl838x.dtsi index 3b17c66c0b4..ab81c49f8ab 100644 --- a/target/linux/realtek/dts/rtl838x.dtsi +++ b/target/linux/realtek/dts/rtl838x.dtsi @@ -202,6 +202,8 @@ switchcore@1b000000 { compatible = "syscon", "simple-mfd"; reg = <0x1b000000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; mdio_ctrl: mdio-controller { compatible = "realtek,rtl8380-mdio", "realtek,otto-mdio"; diff --git a/target/linux/realtek/dts/rtl839x.dtsi b/target/linux/realtek/dts/rtl839x.dtsi index 9eb4be8af80..6b4f4821a2b 100644 --- a/target/linux/realtek/dts/rtl839x.dtsi +++ b/target/linux/realtek/dts/rtl839x.dtsi @@ -210,6 +210,8 @@ switchcore@1b000000 { compatible = "syscon", "simple-mfd"; reg = <0x1b000000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; mdio_ctrl: mdio-controller { compatible = "realtek,rtl8392-mdio", "realtek,otto-mdio"; diff --git a/target/linux/realtek/dts/rtl930x.dtsi b/target/linux/realtek/dts/rtl930x.dtsi index 97bf6abe5d0..ad06cef6cdf 100644 --- a/target/linux/realtek/dts/rtl930x.dtsi +++ b/target/linux/realtek/dts/rtl930x.dtsi @@ -160,6 +160,8 @@ switchcore@1b000000 { compatible = "syscon", "simple-mfd"; reg = <0x1b000000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; i2c_mst1: i2c@36c { compatible = "realtek,rtl9301-i2c"; diff --git a/target/linux/realtek/dts/rtl931x.dtsi b/target/linux/realtek/dts/rtl931x.dtsi index 352e9547f01..d7b789b9bb4 100644 --- a/target/linux/realtek/dts/rtl931x.dtsi +++ b/target/linux/realtek/dts/rtl931x.dtsi @@ -190,6 +190,8 @@ switchcore@1b000000 { compatible = "syscon", "simple-mfd"; reg = <0x1b000000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; i2c_mst1: i2c@100c { compatible = "realtek,rtl9310-i2c";