ath79: fix various dts warnings
authorChristian Lamparter <chunkeey@gmail.com>
Fri, 10 Dec 2021 23:09:13 +0000 (00:09 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 10 Dec 2021 23:50:02 +0000 (00:50 +0100)
ar9344_openmesh_mr600-v1.dts:40.10-44.5: Warning (gpios_property):
/leds-ath9k/wifi2g: Missing property '#gpio-cells' in node
/ahb/pcie-controller@180c0000/wifi@0,0 or bad phandle
=> added gpio-controller + #gpio-cells

qca955x_zyxel_nbg6x16.dtsi:121.3-13: Warning (reg_format):
/ahb/usb@1b000000/port@1:reg: property has invalid length (4 bytes)
(#address-cells == 2, #size-cells == 1)
../dts/qca955x_zyxel_nbg6x16.dtsi:131.3-13: Warning (reg_format):
/ahb/usb@1b400000/port@1:reg: property has invalid length (4 bytes)
(#address-cells == 2, #size-cells == 1)
qca955x_zyxel_nbg6x16.dtsi:120.20-123.4: Warning (avoid_default_addr_size):
/ahb/usb@1b000000/port@1: Relying on default #address-cells value
=> ath79's usb-nodes are missing the address- and size-cells properties.
These are needed for usb led trigger support.

ar7242_ubnt_sw.dtsi:54.4-14: Warning (reg_format): /gpio_spi/gpio_spi@0:reg:
property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
=> the #address-cells and #size-cells had to be nudged.

qca9531_dlink_dch-g020-a1.dts:19.6-39.4: Warning (i2c_bus_bridge):
/i2c: incorrect #size-cells for I2C bus
=> #size-cells = <0>;

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
13 files changed:
target/linux/ath79/dts/ar7100.dtsi
target/linux/ath79/dts/ar7240.dtsi
target/linux/ath79/dts/ar7241.dtsi
target/linux/ath79/dts/ar7242.dtsi
target/linux/ath79/dts/ar7242_ubnt_edgeswitch-8xp.dts
target/linux/ath79/dts/ar7242_ubnt_sw.dtsi
target/linux/ath79/dts/ar9330.dtsi
target/linux/ath79/dts/ar9344_openmesh_mr600.dtsi
target/linux/ath79/dts/ar934x.dtsi
target/linux/ath79/dts/qca9531_dlink_dch-g020-a1.dts
target/linux/ath79/dts/qca953x.dtsi
target/linux/ath79/dts/qca955x.dtsi
target/linux/ath79/dts/qca956x.dtsi

index 86673cb5da3876955d76cf3fe5bb78526451ad84..12ab7e503941d05a9ec65d1d54fe35556f82d30c 100644 (file)
                has-synopsys-hc-bug;
 
                status = "disabled";
+
+               #address-cells = <1>;
+               #size-cells = <0>;
        };
 
        usb1: usb@1c000000 {
                phys = <&usb_phy>;
 
                status = "disabled";
+
+               #address-cells = <1>;
+               #size-cells = <0>;
        };
 
        spi: spi@1f000000 {
index 730c509d7bdf625e61bf8937ab7034e6b11881ee..425d75f0d7c763aaf5542ef8f806de79711f1cb3 100644 (file)
@@ -29,6 +29,9 @@
                phys = <&usb_phy>;
 
                status = "disabled";
+
+               #address-cells = <1>;
+               #size-cells = <0>;
        };
 };
 
index 4044cdee0e761ee6be021609ccded2978e191be5..ff7a61f92142038e81923c9321df81b323802b26 100644 (file)
@@ -36,6 +36,9 @@
                phys = <&usb_phy>;
 
                status = "disabled";
+
+               #address-cells = <1>;
+               #size-cells = <0>;
        };
 };
 
index be28ae783859981080281fc1e2ba14af08ee22cf..eda1b16309ed3bc1b1e89ead4c667e36e5cbb8c1 100644 (file)
@@ -36,6 +36,9 @@
                phys = <&usb_phy>;
 
                status = "disabled";
+
+               #address-cells = <1>;
+               #size-cells = <0>;
        };
 };
 
index f5433a30a3da02a2cc7efd554d889d1e2c8765f1..0c2fe394d4537a1847a407e2859c4372c7611004 100644 (file)
 
        ethernet-switch@1e {
                compatible = "brcm,bcm53128";
-               #address-cells = <1>;
-               #size-cells = <0>;
                reg = <0x1e>;
 
                ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
                        port0@0 {
                                reg = <0>;
                                label = "lan1";
index 3f996a16c757b61c042d87b59418a7af16342701..c776c8ef6e783992f4e70ae3b71ff00a5f3fc71c 100644 (file)
@@ -41,8 +41,8 @@
 
        gpio_spi {
                compatible = "spi-gpio";
-               #address-cells = <0x1>;
-               ranges;
+               #address-cells = <1>;
+               #size-cells = <0>;
 
                sck-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
                mosi-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
index 06e1cf4601d16d6a8e39952fbc48d8e38a6010dc..aed8e205adacdbe6aa5e2e6a7124c345f5149852 100644 (file)
                        phys = <&usb_phy>;
 
                        status = "disabled";
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                };
 
                spi: spi@1f000000 {
index de8bfb70b7482b3a8262afda36f0f7f27e3f9681..bbbcc3e0b66e8c67b562eea9b34449cea52f56ac 100644 (file)
                nvmem-cells = <&macaddr_art_0>;
                nvmem-cell-names = "mac-address";
                mac-address-increment = <8>;
+
+               gpio-controller;
+               #gpio-cells = <2>;
        };
 };
 
index 84dbe65f855f328ee6bdd094770c851c1da2cbb6..d88c7bfabc17ced1c211b2a8f9bfa4ae8cb0bd78 100644 (file)
                        phys = <&usb_phy>;
 
                        status = "disabled";
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                };
 
                nand: nand@1b000200 {
index d2fbc09c60f5b311dfdeec776c59e42aa5510fd7..9a4db6f9fcdc41425072196f647876c5d45cfd2e 100644 (file)
@@ -19,7 +19,7 @@
        i2c {
                compatible = "i2c-gpio";
                #address-cells = <1>;
-               #size-cells = <1>;
+               #size-cells = <0>;
 
                sda-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                scl-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
index d73163c3fe8b8b8478f2729c7f9f5574dcc1433f..6df0941eefc32134b8b4c65b3e8c281838710379 100644 (file)
                        phys = <&usb_phy>;
 
                        status = "disabled";
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                };
 
                spi: spi@1f000000 {
index 8138f4afee6a6a7f589f7ee56a6784fdc8582218..fb820169d5432908c9b04ddc747ec04b90285476 100644 (file)
                        phys = <&usb_phy0>;
 
                        status = "disabled";
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                };
 
                usb1: usb@1b400000 {
                        phys = <&usb_phy1>;
 
                        status = "disabled";
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                };
 
                nand: nand@1b800200 {
index 8627f7ee40b192dd2976cd28d03a7a7954e456f3..f2452e9dc7e8dc91e0f6d0b385dfcaec792b40f6 100644 (file)
                        phys = <&usb_phy0>;
 
                        status = "disabled";
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                };
 
                usb1: usb@1b400000 {
                        phys = <&usb_phy1>;
 
                        status = "disabled";
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                };
 
                spi: spi@1f000000 {