]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: fix dts warnings. 20091/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 19 Sep 2025 08:57:21 +0000 (04:57 -0400)
committerRobert Marko <robimarko@gmail.com>
Fri, 19 Sep 2025 11:51:50 +0000 (13:51 +0200)
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 <jelonek.jonas@gmail.com>
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/20091
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/dts/rtl838x.dtsi
target/linux/realtek/dts/rtl839x.dtsi
target/linux/realtek/dts/rtl930x.dtsi
target/linux/realtek/dts/rtl931x.dtsi

index 3b17c66c0b4ea33c0e773d50611e874975b6c247..ab81c49f8ab574d99c09f2039b9d308beaf5faac 100644 (file)
        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";
index 9eb4be8af801da202a1137b49aa2b44b4eb188b0..6b4f4821a2be0f5ee3bb52bd0d8df35357657d46 100644 (file)
        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";
index 97bf6abe5d0edfe6a3ffa8d1b87713a3c33fbe22..ad06cef6cdfbcfc6574536d4d1dd5cb73f606117 100644 (file)
        switchcore@1b000000 {
                compatible = "syscon", "simple-mfd";
                reg = <0x1b000000 0x10000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
 
                i2c_mst1: i2c@36c {
                        compatible = "realtek,rtl9301-i2c";
index 352e9547f01559ccf5e2741ce03dd9cd594147a1..d7b789b9bb49f72fa25b4732d409ff3fa52e877d 100644 (file)
        switchcore@1b000000 {
                compatible = "syscon", "simple-mfd";
                reg = <0x1b000000 0x10000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
 
                i2c_mst1: i2c@100c {
                        compatible = "realtek,rtl9310-i2c";