ath79: fix dts warnings
authorMathias Kresin <dev@kresin.me>
Mon, 6 Aug 2018 05:11:13 +0000 (07:11 +0200)
committerMathias Kresin <dev@kresin.me>
Wed, 8 Aug 2018 06:11:11 +0000 (08:11 +0200)
Fix all issues found by the devicetree compiler like wrong address/size
cells as well as wrong/missing/superfluous unit addresses.

Signed-off-by: Mathias Kresin <dev@kresin.me>
45 files changed:
target/linux/ath79/dts/ar7161_netgear_wndr3800.dts
target/linux/ath79/dts/ar7240.dtsi
target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi
target/linux/ath79/dts/ar7240_tplink_tl-wr740n-v2.dts
target/linux/ath79/dts/ar7241.dtsi
target/linux/ath79/dts/ar7241_tplink.dtsi
target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi
target/linux/ath79/dts/ar7241_ubnt_unifi.dts
target/linux/ath79/dts/ar7241_ubnt_xm.dtsi
target/linux/ath79/dts/ar7242_avm_fritz300e.dts
target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g450h.dts
target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts
target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts
target/linux/ath79/dts/ar9330.dtsi
target/linux/ath79/dts/ar9330_glinet_ar150.dts
target/linux/ath79/dts/ar9331_dptechnics_dpt-module.dts
target/linux/ath79/dts/ar9331_dragino_ms14.dts
target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts
target/linux/ath79/dts/ar9331_etactica_eg200.dts
target/linux/ath79/dts/ar9331_onion_omega.dts
target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts
target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi
target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi
target/linux/ath79/dts/ar9341_pcs_cr3000.dts
target/linux/ath79/dts/ar9344.dtsi
target/linux/ath79/dts/ar9344_ocedo_raccoon.dts
target/linux/ath79/dts/ar9344_pcs_cap324.dts
target/linux/ath79/dts/ar9344_pcs_cr5000.dts
target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi
target/linux/ath79/dts/ar934x.dtsi
target/linux/ath79/dts/qca9533.dtsi
target/linux/ath79/dts/qca9533_glinet_ar300m.dtsi
target/linux/ath79/dts/qca9533_glinet_ar300m_nand.dts
target/linux/ath79/dts/qca9533_glinet_ar300m_nor.dts
target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi
target/linux/ath79/dts/qca9557.dtsi
target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts
target/linux/ath79/dts/qca9558_tplink_archer-c7.dtsi
target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi
target/linux/ath79/dts/qca9563_phicomm_k2t.dts
target/linux/ath79/dts/qca9563_tplink_tl-re450-v2.dts
target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi
target/linux/ath79/dts/qca9563_tplink_tl-wr1043nd-v4.dts
target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi
target/linux/ath79/dts/qca956x.dtsi

index 7529c68be483a0512ac590ef1545e99c1ac8cce5..8e28c4d90f93ca4456dfe9a7af30f9ef89e41afa 100644 (file)
@@ -72,8 +72,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <100>;
 
                wps {
                gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
 
                mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                        status = "okay";
 
                        phy-mask = <0x10>;
 };
 
 &usb1 {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        usb_ochi_port: port@1 {
 };
 
 &usb2 {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        usb_echi_port: port@1 {
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index 13112e44a5e80f9707e714c91f265a962d3e3737..d32960a49867eba6cdd7227409b1d21d4eeec65d 100644 (file)
 
        builtin_switch: switch0@1f {
                compatible = "qca,ar8216-builtin";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reg = <0x1f>;
                resets = <&rst 8>;
                reset-names = "switch";
 
                mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
                        swphy4: ethernet-phy@4 {
                                reg = <4>;
                                phy-mode = "mii";
index edf209053e473bb7deeb67807fefa9c8db2b47fc..8ee4148ff93d7b4e5b691133197449d0c45c897a 100644 (file)
@@ -16,8 +16,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -64,8 +62,6 @@
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
 &pcie {
        status = "okay";
 
-       ath9k: wifi@168c,002b {
+       ath9k: wifi@0,0 {
                compatible = "pci168c,002b";
                reg = <0x0000 0 0 0 0>;
                qca,no-eeprom;
index 8754537754d0b36099bebf6879054a14ec410cbe..90f554df20af37f02d5f47a08fe71e5b6ed16b4f 100644 (file)
@@ -16,8 +16,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -89,8 +87,6 @@
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
 &pcie {
        status = "okay";
 
-       ath9k: wifi@168c,002b {
+       ath9k: wifi@0,0 {
                compatible = "pci168c,002b";
                reg = <0x0000 0 0 0 0>;
                qca,no-eeprom;
index c490476bbd6fb83f53745139418f2335ad917eb8..2e7c26b8e7a3343e2316aacaa232ad7d06aeb62a 100644 (file)
 
        builtin_switch: switch0@1f {
                compatible = "qca,ar8216-builtin";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reg = <0x1f>;
                resets = <&rst 8>;
                reset-names = "switch";
 
                mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
                        swphy4: ethernet-phy@4 {
                                reg = <4>;
                                phy-mode = "mii";
index 6cc515b7ccedef434d7400ca452203d765f89e6d..ef248793d90f99bc47818778b073caed2c665b4f 100644 (file)
@@ -12,8 +12,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -51,8 +49,6 @@
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
@@ -85,7 +81,7 @@
 &pcie {
        status = "okay";
 
-       ath9k: wifi@0 {
+       ath9k: wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                #gpio-cells = <2>;
                gpio-controller;
index ad18945af41a80e2f937539cf339aa8e914471ee..4b3b46d8c95450e1019b1e6efaac27ee7f16f6c6 100644 (file)
@@ -26,6 +26,8 @@
 };
 
 &usb {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        hub_port: port@1 {
index ed6142ef43b31289c78b1a4611a3bd2bcd5e8966..ddddba23e4e2f511349750bd4e3b431f2a51b3a4 100644 (file)
@@ -22,9 +22,6 @@
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
                poll-interval = <20>;
                reset {
                        linux,code = <KEY_RESTART>;
@@ -60,8 +57,6 @@
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
 &pcie {
        status = "okay";
 
-       wifi@0 {
+       wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                qca,no-eeprom;
        };
index 615e230f929a9290bd743b34df639917563caee0..fddcbe2b1638c45f629d6f153e82578d0877d419 100644 (file)
@@ -17,9 +17,6 @@
 */
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
                poll-interval = <20>;
                reset {
                        linux,code = <KEY_RESTART>;
@@ -65,8 +62,6 @@
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
 &pcie {
        status = "okay";
 
-       wifi@0 {
+       wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                qca,no-eeprom;
        };
index 15f1e321c8bdd47ecc413d29ea5a5f312c8ff7cb..db4bcc6edc050918d7e5e5b447dc26d15cb99097 100644 (file)
@@ -16,8 +16,6 @@
 
        gpio-keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                wps {
@@ -98,8 +96,6 @@
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
 &pcie {
        status = "okay";
 
-       ath9k: wifi@0 {
+       ath9k: wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                #gpio-cells = <2>;
                gpio-controller;
index 27933d5701f23ab4926a06383f12976701338dde..a0a439b0b55264dd8277c1c42deb2fcc7ce59fdd 100644 (file)
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
                poll-interval = <20>;
+
                usb {
                        linux,code = <BTN_2>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
 &pcie {
        status = "okay";
 
-       wifi@0 {
+       wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                qca,no-eeprom;
        };
index d7bb406ab099dd8ed63e88ed33f139a4b8fc3bbe..0cd90262b327c8434984c38957f8825d1f6968dc 100644 (file)
@@ -26,8 +26,6 @@
 
        gpio-keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -89,6 +87,8 @@
                realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
 
                mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                        status = "okay";
 
                        phy0: ethernet-phy@0 {
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
 };
 
 &usb {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        hub_port: port@1 {
 &pcie {
        status = "okay";
 
-       ath9k: wifi@0 {
+       ath9k: wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                #gpio-cells = <2>;
                gpio-controller;
index d01d2cc716e82e67bd12116248544cc44daaa743..58fc8a583296e0f8c6d570a8070c0060808dc0c9 100644 (file)
@@ -22,8 +22,6 @@
 
        keys {
                compatible = "gpio-keys";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                button0 {
                        label = "reset";
@@ -88,6 +86,8 @@
 };
 
 &usb {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        hub_port: port@1 {
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index d50666d2700191d0d826ab00f047da2d70064e5c..01116ff45a5fad2ba070e04bbd4611f95ee2bff1 100644 (file)
 
        builtin_switch: switch0@1f {
                compatible = "qca,ar8216-builtin";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
                reg = <0x1f>;
                resets = <&rst 8>;
                reset-names = "switch";
 
                mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
                        swphy4: ethernet-phy@4 {
                                reg = <4>;
                                phy-mode = "mii";
index dfaa1b97efa0b59b496de67dfbb0a0d5cb16ad5d..3b8f7a2324c8495370f8fbfb0e92b8d0780ef47f 100644 (file)
@@ -40,8 +40,6 @@
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <100>;
 
                manual {
@@ -87,8 +85,6 @@
        status = "okay";
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                spi-max-frequency = <104000000>;
                reg = <0>;
index 02c15fec17e2e7f353b29407fda2f109c6f4f476..4159cb2fb06e3bdeb704a38d6f267a955fa4613f 100644 (file)
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <100>;
 
-               button@0 {
+               button0 {
                        label = "reset";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
@@ -65,8 +63,6 @@
 
        /* Winbond 25Q128FVSG SPI flash */
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "winbond,w25q128", "jedec,spi-nor";
                spi-max-frequency = <104000000>;
                reg = <0>;
index e266a6cb4fd08067ce55a5a7c73c863417b946b6..963e9f6e192eafe2e8b57abca63fab91c355f6fa 100644 (file)
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <100>;
 
-               button@0 {
+               button0 {
                        label = "jumpstart";
                        linux,code = <KEY_WPS_BUTTON>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
-               button@1 {
+               button1 {
                        label = "reset";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
@@ -89,8 +87,6 @@
 
        /* Winbond 25Q128BVFG SPI flash */
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "winbond,w25q128", "jedec,spi-nor";
                spi-max-frequency = <104000000>;
                reg = <0>;
index a623f0ebb2c8e49e420f5be73820ac66d32f7ba4..0332ec2656014fe3fb1e79f0e517183499144a70 100644 (file)
@@ -27,8 +27,6 @@
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <100>;
 
                wps {
@@ -67,8 +65,6 @@
        status = "okay";
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                spi-max-frequency = <104000000>;
                reg = <0>;
index 2dca1bf42699175c81e8c2e938bd05f48ec42e06..569ab11e6de61d895b46e785bae42a5852e686c1 100644 (file)
@@ -16,8 +16,6 @@
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <50>;
 
                restore {
@@ -94,8 +92,6 @@
        status = "okay";
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                spi-max-frequency = <50000000>;
                reg = <0>;
index 834f065fd6d1f7aa791fdcf1068fc86881124e84..a93c7d74857a97a5b2df8db7ac508acb0672a652 100644 (file)
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <100>;
 
-               button@0 {
+               button0 {
                        label = "reset";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
@@ -65,8 +63,6 @@
 
        /* Winbond 25Q128FVSG SPI flash */
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "winbond,w25q128", "jedec,spi-nor";
                spi-max-frequency = <104000000>;
                reg = <0>;
index 684f092b3d133fb96daba45b52d5feeebedaf0a6..3045d22196834e361845aaeb35a6b5bd4448c727 100644 (file)
@@ -48,8 +48,6 @@
 
        keys {
                compatible = "gpio-keys";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                button0 {
                        label = "reset";
@@ -98,6 +96,8 @@
 };
 
 &usb {
+       #address-cells = <1>;
+       #size-cells = <0>;
        dr_mode = "host";
        vbus-supply = <&reg_usb_vbus>;
        status = "okay";
 
        /* Spansion S25FL032PIF SPI flash */
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                spi-max-frequency = <104000000>;
                reg = <0>;
index 7ab9439d5bde9f60a86006bd6af985a35fbaf1bf..e061cbe59293300b6f43aab427d1a4d17ae1ea83 100644 (file)
@@ -14,8 +14,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -50,8 +48,6 @@
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index 9d8c1a022e82c23019b715da0faa4993f9e5e223..770ab56821c506d66b3f50e33382677fe87e7e00 100644 (file)
@@ -17,8 +17,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -90,8 +88,6 @@
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index 33d7e4ff874ca820e5dc0c625dcb4d43099ca12e..dace6c338f1f6794559ec2839219df9f1d67eb65 100644 (file)
@@ -18,8 +18,7 @@
        keys {
                compatible = "gpio-keys-polled";
                poll-interval = <20>;
-               #address-cells = <1>;
-               #size-cells = <0>;
+
                pinctrl-names = "default";
                pinctrl-0 = <&jtag_disable_pins>;
 
        status = "okay";
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index ce73ef583080c10abedaae93fcfb2093e1ef229d..117c0b07a7253b0b2d40d35f4a46db6115384c2c 100644 (file)
@@ -13,7 +13,7 @@
 };
 
 &rst {
-       intc2: interrupt-controller@2 {
+       intc2: interrupt-controller {
                compatible = "qca,ar9340-intc";
 
                interrupt-parent = <&cpuintc>;
index 01d5dae30736ff21749e95b4d2b19cf7d70a3c29..903044e000a8ee5ac4f9bf6567f3489f61520071 100644 (file)
@@ -53,8 +53,6 @@
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -83,8 +81,6 @@
        status = "okay";
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
 &pcie {
        status = "okay";
 
-       ath9k: wifi@168c,0030 {
+       ath9k: wifi@0,0 {
                compatible = "pci168c,0030";
                reg = <0x0000 0 0 0 0>;
                mtd-mac-address = <&art 0xc>;
index 57515981bf9743593b425115a9e349d5c2b2f9cc..ada28d634a69274baffd28f1da99ea44f25ae093 100644 (file)
@@ -18,8 +18,7 @@
        keys {
                compatible = "gpio-keys-polled";
                poll-interval = <20>;
-               #address-cells = <1>;
-               #size-cells = <0>;
+
                pinctrl-names = "default";
                pinctrl-0 = <&jtag_disable_pins>;
 
@@ -93,8 +92,6 @@
        status = "okay";
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
 &pcie {
        status = "okay";
 
-       ath9k: wifi@168c,0030 {
+       ath9k: wifi@0,0 {
                compatible = "168c,0030";
                reg = <0x0000 0 0 0 0>;
                mtd-mac-address = <&art 0x0>;
index cbdcb6da470101d2bb73eb8b32923e09870b10fa..7c9103ced3c327c9689c1fdc85a16c7d48fab645 100644 (file)
                led-status = &status;
        };
 
-
        keys {
                compatible = "gpio-keys-polled";
                poll-interval = <20>;
-               #address-cells = <1>;
-               #size-cells = <0>;
+
                pinctrl-names = "default";
                pinctrl-0 = <&jtag_disable_pins>;
 
@@ -83,8 +81,6 @@
        status = "okay";
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
 
 &usb {
        status = "okay";
+       #address-cells = <1>;
+       #size-cells = <0>;
 
-       port@1 {
+       hub_port1: port@1 {
                reg = <1>;
                #trigger-source-cells = <0>;
-
-               hub_port1: port@1 {
-                       reg = <1>;
-                       #trigger-source-cells = <0>;
-               };
        };
-
 };
 
 &usb_phy {
 &pcie {
        status = "okay";
 
-       ath9k: wifi@168c,0030 {
+       ath9k: wifi@0,0 {
                compatible = "pci168c,0030";
+               reg = <0x0000 0 0 0 0>;
                mtd-mac-address = <&art 0x5002>;
                #gpio-cells = <2>;
                gpio-controller;
 };
 
 &eth0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        /* default for ar934x, except for 1000M */
 
        port@0 {
                compatible = "swconfig,port";
+               reg = <0>;
                swconfig,segment = "lan";
                swconfig,portmap = <1 1>;
        };
 
        port@1 {
                compatible = "swconfig,port";
+               reg = <1>;
                swconfig,segment = "lan";
                swconfig,portmap = <2 2>;
        };
 
        port@2 {
                compatible = "swconfig,port";
+               reg = <2>;
                swconfig,segment = "lan";
                swconfig,portmap = <3 3>;
        };
 
        port@3 {
                compatible = "swconfig,port";
+               reg = <3>;
                swconfig,segment = "lan";
                swconfig,portmap = <4 4>;
        };
 
        port@4 {
                compatible = "swconfig,port";
+               reg = <4>;
                swconfig,segment = "wan";
                swconfig,portmap = <5 5>;
        };
index 558a763747f8113664ca78fca06ce315aa047547..d2c88fc935c64ac2726bdd03830cd67802bc07f7 100644 (file)
@@ -65,8 +65,6 @@
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -85,7 +83,6 @@
 
        gpio-export {
                compatible = "gpio-export";
-               #size-cells = <0>;
 
                gpio_usb1_power {
                        gpio-export,name = "tp-link:power:usb1";
        status = "okay";
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
 };
 
 &usb {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        port@1 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                reg = <1>;
                #trigger-source-cells = <0>;
 
 &pcie {
        status = "okay";
 
-       ath9k: wifi@168c,0033 {
+       ath9k: wifi@0,0 {
                compatible = "pci168c,0033";
                reg = <0x0000 0 0 0 0>;
                mtd-mac-address = <&uboot 0x1fc00>;
index e05b29574861ac7d10396e7a87c45b10a2180bfc..3eed4de7993ba6c41144a403ef7c67e11e852ae6 100644 (file)
 
        builtin_switch: switch0@1f {
                compatible = "qca,ar8229-builtin";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reg = <0x1f>;
                resets = <&rst 8>;
                phy4-mii-enable;
 
                mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
                        swphy0: ethernet-phy@0 {
                                reg = <0>;
                                phy-mode = "mii";
index 1681b31aafa7ecde75b7490fec481a4e722edc22..97179a391e14845459ff33e0cc3b711bf8ead78c 100644 (file)
 
                                #reset-cells = <1>;
 
-                               intc2: interrupt-controller@2 {
+                               intc2: interrupt-controller {
                                        compatible = "qca,ar9340-intc";
 
                                        interrupt-parent = <&cpuintc>;
 
        builtin_switch: switch0@1f {
                compatible = "qca,ar8229-builtin";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reg = <0x1f>;
                resets = <&rst 8>;
                phy4-mii-enable;
 
                mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
                        swphy0: ethernet-phy@0 {
                                reg = <0>;
                                phy-mode = "mii";
index 9d8dc7829ebffaa286f0b913fd1f1ed04c95d980..afbb006d6be9c4b903197f8e358b07ebd388ab13 100644 (file)
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
                pinctrl-names = "default";
                pinctrl-0 = <&jtag_disable_pins>;
 
-               button@0 {
+               button0 {
                        label = "reset";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
-               button@1 {
+               button1 {
                        label = "button right";
                        linux,code = <BTN_0>;
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                };
 
-               button@3 {
+               button3 {
                        label = "button left";
                        linux,code = <BTN_1>;
                        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
@@ -73,6 +71,8 @@
 };
 
 &usb0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        hub_port: port@1 {
index c1c4493a22fb8259246c417333053deb53755c07..33226b98891c487d7a6a615fd317738905a769f8 100644 (file)
@@ -7,8 +7,6 @@
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "winbond,w25q128", "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
@@ -42,8 +40,6 @@
        };
 
        flash@1 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "spinand,mt29f";
                reg = <1>;
                spi-max-frequency = <25000000>;
index 59793dc90bc454dfbc50e4324fc1132a7f9ffe2b..9357ea66d493507e7dc256b63ee156f7b1ea638c 100644 (file)
@@ -10,8 +10,6 @@
        num-cs = <0>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "winbond,w25q128", "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index 42191253003531ae13f923ad0f12319e9b3350dc..7fe17166d341053553575110b48d3d4d20b631d8 100644 (file)
@@ -64,8 +64,6 @@
 
        keys {
                compatible = "gpio-keys";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reset {
                        label = "Reset button";
@@ -92,8 +90,6 @@
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index 4f797a55430adabe6b25712ada359778fdeab395..c3874bc41e754ce3da3f45c0c883c33faf54410f 100644 (file)
@@ -53,7 +53,7 @@
                                status = "disabled";
                        };
 
-                       usb_phy0: usb-phy@18030000 {
+                       usb_phy0: usb-phy0 {
                                compatible ="qca,qca9550-usb-phy", "qca,ar7200-usb-phy";
 
                                reset-names = "usb-phy", "usb-suspend-override";
@@ -64,7 +64,7 @@
                                status = "disabled";
                        };
 
-                       usb_phy1: usb-phy {
+                       usb_phy1: usb-phy1 {
                                compatible = "qca,qca9550-usb-phy", "qca,ar7200-usb-phy";
 
                                reset-names = "usb-phy", "usb-suspend-override";
                                #reset-cells = <1>;
                                interrupt-parent = <&cpuintc>;
 
-                               intc2: interrupt-controller@2 {
+                               intc2: interrupt-controller2 {
                                        compatible = "qca,ar9340-intc";
 
                                        interrupt-parent = <&cpuintc>;
                                                        <0x1f0>;        /* pcie rc 0 */
                                };
 
-                               intc3: interrupt-controller@3 {
+                               intc3: interrupt-controller3 {
                                        compatible = "qca,ar9340-intc";
 
                                        interrupt-parent = <&cpuintc>;
index 5bbbc439b8ad775bb09c85d314444b9f511eccc2..097e44b310a51fe4569f42b916d1fbc0b42c8d21 100644 (file)
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <100>;
 
-               button@0 {
+               button0 {
                        label = "reset";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index 6fb25a9d2e456f84e195891cabfb9d1c0d207b0d..70c8f63fbbbe6dcffbabbac72b99cd1db06abe24 100644 (file)
@@ -56,8 +56,6 @@
 
        gpio_keys: keys {
                compatible = "gpio-keys";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reset {
                        label = "Reset button";
@@ -69,7 +67,6 @@
 
        gpio-export {
                compatible = "gpio-export";
-               #size-cells = <0>;
 
                gpio_usb1_power {
                        gpio-export,name = "tp-link:power:usb1";
 };
 
 &usb0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        hub_port0: port@1 {
 };
 
 &usb1 {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        hub_port1: port@1 {
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index a7dd8feb0b7dfe7e3471b0d287f6a947738faf9e..52041b8d01c878c0e85161a026e3b06d4556b9a7 100644 (file)
@@ -48,8 +48,6 @@
 
        keys {
                compatible = "gpio-keys";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reset {
                        label = "Reset button";
@@ -91,6 +89,8 @@
 };
 
 &usb0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        hub_port0: port@1 {
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index 4ff9320d5cabb71160dbcc30f7e6e6b798afd27d..ca6d4ec883e0e18138585e5c106e5b955af803df 100644 (file)
@@ -42,8 +42,6 @@
 
        keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -72,8 +70,6 @@
        status = "okay";
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index 646cdf29754909c4c369b92e00430b5d22467ae9..852f1c9784d92774b56fbb29b557c9f585ba9a88 100644 (file)
@@ -68,8 +68,6 @@
 
        keys {
                compatible = "gpio-keys";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reset {
                        label = "Reset button";
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index fd0c974a54c616c78bf552c02947b3c08288fc5d..056fe4eccc5b188a4246aa28fab4528298a37b32 100644 (file)
@@ -76,8 +76,6 @@
 
        keys {
                compatible = "gpio-keys";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reset {
                        label = "Reset button";
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index 5f48e6a5d1f2366df54b2e9ea10eb8eb91065262..ec10f085dd402df45a133c81b77012ab4117518d 100644 (file)
@@ -26,6 +26,8 @@
 };
 
 &usb0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        hub_port0: port@1 {
index 381575c947851893e55d53bdb89b07f1845c3b07..0b7acde45799816dc324ce0d6549f7c9a267769f 100644 (file)
@@ -31,8 +31,6 @@
 
        keys {
                compatible = "gpio-keys";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reset {
                        label = "Reset button";
@@ -60,8 +58,6 @@
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
index d3a6df9ea919ec4b8dedf41dcf31cf75b9d42f82..10c88eedc240e70e77f2d814cc462affad69f6f6 100644 (file)
                                #reset-cells = <1>;
                                interrupt-parent = <&cpuintc>;
 
-                               intc3: interrupt-controller@3 {
+                               intc3: interrupt-controller {
                                        compatible = "qca,ar9340-intc";
 
                                        interrupt-parent = <&cpuintc>;
 
        builtin_switch: switch0@1f {
                compatible = "qca,ar8229-builtin";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
                reg = <0x1f>;
                resets = <&rst 8>;
                reset-names = "switch";
                phy4-mii-enable;
 
                mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
                        swphy0: ethernet-phy@0 {
                                reg = <0>;
                                phy-mode = "mii";