diff options
author | Mathias Kresin <dev@kresin.me> | 2018-08-06 07:11:13 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-08-08 08:11:11 +0200 |
commit | 55ff2951eac8fd86c91b9673395325e393e357ac (patch) | |
tree | 6ff065b1d952d52999c97a4fc38f33b30a2cedaf /target/linux/ath79 | |
parent | bf078fcab6f4683d2e8599dce107afee5e3742c3 (diff) | |
download | mtk-20170518-55ff2951eac8fd86c91b9673395325e393e357ac.zip mtk-20170518-55ff2951eac8fd86c91b9673395325e393e357ac.tar.gz mtk-20170518-55ff2951eac8fd86c91b9673395325e393e357ac.tar.bz2 |
ath79: fix dts warnings
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>
Diffstat (limited to 'target/linux/ath79')
45 files changed, 90 insertions, 188 deletions
diff --git a/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts b/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts index 7529c68..8e28c4d 100644 --- a/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts +++ b/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts @@ -72,8 +72,6 @@ gpio-keys-polled { compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; poll-interval = <100>; wps { @@ -101,6 +99,8 @@ gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>; mdio-bus { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; phy-mask = <0x10>; @@ -118,6 +118,8 @@ }; &usb1 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; usb_ochi_port: port@1 { @@ -127,6 +129,8 @@ }; &usb2 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; usb_echi_port: port@1 { @@ -148,8 +152,6 @@ num-cs = <1>; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; diff --git a/target/linux/ath79/dts/ar7240.dtsi b/target/linux/ath79/dts/ar7240.dtsi index 13112e4..d32960a 100644 --- a/target/linux/ath79/dts/ar7240.dtsi +++ b/target/linux/ath79/dts/ar7240.dtsi @@ -40,14 +40,15 @@ 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"; diff --git a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi index edf2090..8ee4148 100644 --- a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi +++ b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi @@ -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>; @@ -117,7 +113,7 @@ &pcie { status = "okay"; - ath9k: wifi@168c,002b { + ath9k: wifi@0,0 { compatible = "pci168c,002b"; reg = <0x0000 0 0 0 0>; qca,no-eeprom; diff --git a/target/linux/ath79/dts/ar7240_tplink_tl-wr740n-v2.dts b/target/linux/ath79/dts/ar7240_tplink_tl-wr740n-v2.dts index 8754537..90f554d 100644 --- a/target/linux/ath79/dts/ar7240_tplink_tl-wr740n-v2.dts +++ b/target/linux/ath79/dts/ar7240_tplink_tl-wr740n-v2.dts @@ -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>; @@ -137,7 +133,7 @@ &pcie { status = "okay"; - ath9k: wifi@168c,002b { + ath9k: wifi@0,0 { compatible = "pci168c,002b"; reg = <0x0000 0 0 0 0>; qca,no-eeprom; diff --git a/target/linux/ath79/dts/ar7241.dtsi b/target/linux/ath79/dts/ar7241.dtsi index c490476..2e7c26b 100644 --- a/target/linux/ath79/dts/ar7241.dtsi +++ b/target/linux/ath79/dts/ar7241.dtsi @@ -59,14 +59,15 @@ 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"; diff --git a/target/linux/ath79/dts/ar7241_tplink.dtsi b/target/linux/ath79/dts/ar7241_tplink.dtsi index 6cc515b..ef24879 100644 --- a/target/linux/ath79/dts/ar7241_tplink.dtsi +++ b/target/linux/ath79/dts/ar7241_tplink.dtsi @@ -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; diff --git a/target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi b/target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi index ad18945..4b3b46d 100644 --- a/target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi +++ b/target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi @@ -26,6 +26,8 @@ }; &usb { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; hub_port: port@1 { diff --git a/target/linux/ath79/dts/ar7241_ubnt_unifi.dts b/target/linux/ath79/dts/ar7241_ubnt_unifi.dts index ed6142e..ddddba2 100644 --- a/target/linux/ath79/dts/ar7241_ubnt_unifi.dts +++ b/target/linux/ath79/dts/ar7241_ubnt_unifi.dts @@ -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>; @@ -111,7 +106,7 @@ &pcie { status = "okay"; - wifi@0 { + wifi@0,0 { reg = <0x0000 0 0 0 0>; qca,no-eeprom; }; diff --git a/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi b/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi index 615e230..fddcbe2 100644 --- a/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi +++ b/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi @@ -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>; @@ -116,7 +111,7 @@ &pcie { status = "okay"; - wifi@0 { + wifi@0,0 { reg = <0x0000 0 0 0 0>; qca,no-eeprom; }; diff --git a/target/linux/ath79/dts/ar7242_avm_fritz300e.dts b/target/linux/ath79/dts/ar7242_avm_fritz300e.dts index 15f1e32..db4bcc6 100644 --- a/target/linux/ath79/dts/ar7242_avm_fritz300e.dts +++ b/target/linux/ath79/dts/ar7242_avm_fritz300e.dts @@ -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>; @@ -142,7 +138,7 @@ &pcie { status = "okay"; - ath9k: wifi@0 { + ath9k: wifi@0,0 { reg = <0x0000 0 0 0 0>; #gpio-cells = <2>; gpio-controller; diff --git a/target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g450h.dts b/target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g450h.dts index 27933d5..a0a439b 100644 --- a/target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g450h.dts +++ b/target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g450h.dts @@ -12,10 +12,8 @@ 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>; @@ -110,7 +108,7 @@ &pcie { status = "okay"; - wifi@0 { + wifi@0,0 { reg = <0x0000 0 0 0 0>; qca,no-eeprom; }; diff --git a/target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts b/target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts index d7bb406..0cd9026 100644 --- a/target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts +++ b/target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts @@ -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 { @@ -107,8 +107,6 @@ num-cs = <1>; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; @@ -143,6 +141,8 @@ }; &usb { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; hub_port: port@1 { @@ -158,7 +158,7 @@ &pcie { status = "okay"; - ath9k: wifi@0 { + ath9k: wifi@0,0 { reg = <0x0000 0 0 0 0>; #gpio-cells = <2>; gpio-controller; diff --git a/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts b/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts index d01d2cc..58fc8a5 100644 --- a/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts +++ b/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts @@ -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 { @@ -105,8 +105,6 @@ num-cs = <1>; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; diff --git a/target/linux/ath79/dts/ar9330.dtsi b/target/linux/ath79/dts/ar9330.dtsi index d50666d..01116ff 100644 --- a/target/linux/ath79/dts/ar9330.dtsi +++ b/target/linux/ath79/dts/ar9330.dtsi @@ -174,14 +174,14 @@ 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"; diff --git a/target/linux/ath79/dts/ar9330_glinet_ar150.dts b/target/linux/ath79/dts/ar9330_glinet_ar150.dts index dfaa1b9..3b8f7a2 100644 --- a/target/linux/ath79/dts/ar9330_glinet_ar150.dts +++ b/target/linux/ath79/dts/ar9330_glinet_ar150.dts @@ -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>; diff --git a/target/linux/ath79/dts/ar9331_dptechnics_dpt-module.dts b/target/linux/ath79/dts/ar9331_dptechnics_dpt-module.dts index 02c15fe..4159cb2 100644 --- a/target/linux/ath79/dts/ar9331_dptechnics_dpt-module.dts +++ b/target/linux/ath79/dts/ar9331_dptechnics_dpt-module.dts @@ -26,11 +26,9 @@ 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>; diff --git a/target/linux/ath79/dts/ar9331_dragino_ms14.dts b/target/linux/ath79/dts/ar9331_dragino_ms14.dts index e266a6c..963e9f6 100644 --- a/target/linux/ath79/dts/ar9331_dragino_ms14.dts +++ b/target/linux/ath79/dts/ar9331_dragino_ms14.dts @@ -44,17 +44,15 @@ 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>; diff --git a/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts b/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts index a623f0e..0332ec2 100644 --- a/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts +++ b/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts @@ -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>; diff --git a/target/linux/ath79/dts/ar9331_etactica_eg200.dts b/target/linux/ath79/dts/ar9331_etactica_eg200.dts index 2dca1bf..569ab11 100644 --- a/target/linux/ath79/dts/ar9331_etactica_eg200.dts +++ b/target/linux/ath79/dts/ar9331_etactica_eg200.dts @@ -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>; diff --git a/target/linux/ath79/dts/ar9331_onion_omega.dts b/target/linux/ath79/dts/ar9331_onion_omega.dts index 834f065..a93c7d7 100644 --- a/target/linux/ath79/dts/ar9331_onion_omega.dts +++ b/target/linux/ath79/dts/ar9331_onion_omega.dts @@ -26,11 +26,9 @@ 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>; diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts b/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts index 684f092..3045d22 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts +++ b/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts @@ -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 = <®_usb_vbus>; status = "okay"; @@ -118,8 +118,6 @@ /* Spansion S25FL032PIF SPI flash */ flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; spi-max-frequency = <104000000>; reg = <0>; diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi b/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi index 7ab9439..e061cbe 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi +++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi @@ -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>; diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi index 9d8c1a0..770ab56 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi +++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi @@ -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>; diff --git a/target/linux/ath79/dts/ar9341_pcs_cr3000.dts b/target/linux/ath79/dts/ar9341_pcs_cr3000.dts index 33d7e4f..dace6c3 100644 --- a/target/linux/ath79/dts/ar9341_pcs_cr3000.dts +++ b/target/linux/ath79/dts/ar9341_pcs_cr3000.dts @@ -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>; @@ -104,8 +103,6 @@ status = "okay"; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; diff --git a/target/linux/ath79/dts/ar9344.dtsi b/target/linux/ath79/dts/ar9344.dtsi index ce73ef5..117c0b0 100644 --- a/target/linux/ath79/dts/ar9344.dtsi +++ b/target/linux/ath79/dts/ar9344.dtsi @@ -13,7 +13,7 @@ }; &rst { - intc2: interrupt-controller@2 { + intc2: interrupt-controller { compatible = "qca,ar9340-intc"; interrupt-parent = <&cpuintc>; diff --git a/target/linux/ath79/dts/ar9344_ocedo_raccoon.dts b/target/linux/ath79/dts/ar9344_ocedo_raccoon.dts index 01d5dae..903044e 100644 --- a/target/linux/ath79/dts/ar9344_ocedo_raccoon.dts +++ b/target/linux/ath79/dts/ar9344_ocedo_raccoon.dts @@ -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>; @@ -140,7 +136,7 @@ &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>; diff --git a/target/linux/ath79/dts/ar9344_pcs_cap324.dts b/target/linux/ath79/dts/ar9344_pcs_cap324.dts index 5751598..ada28d6 100644 --- a/target/linux/ath79/dts/ar9344_pcs_cap324.dts +++ b/target/linux/ath79/dts/ar9344_pcs_cap324.dts @@ -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>; @@ -133,7 +130,7 @@ &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>; diff --git a/target/linux/ath79/dts/ar9344_pcs_cr5000.dts b/target/linux/ath79/dts/ar9344_pcs_cr5000.dts index cbdcb6d..7c9103c 100644 --- a/target/linux/ath79/dts/ar9344_pcs_cr5000.dts +++ b/target/linux/ath79/dts/ar9344_pcs_cr5000.dts @@ -15,12 +15,10 @@ 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>; @@ -122,17 +118,13 @@ &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 { @@ -142,8 +134,9 @@ &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; @@ -171,6 +164,8 @@ }; ð0 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; /* default for ar934x, except for 1000M */ @@ -188,30 +183,35 @@ 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>; }; diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi index 558a763..d2c88fc 100644 --- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi +++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi @@ -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"; @@ -131,8 +128,6 @@ status = "okay"; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; @@ -163,9 +158,13 @@ }; &usb { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; port@1 { + #address-cells = <1>; + #size-cells = <0>; reg = <1>; #trigger-source-cells = <0>; @@ -188,7 +187,7 @@ &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>; diff --git a/target/linux/ath79/dts/ar934x.dtsi b/target/linux/ath79/dts/ar934x.dtsi index e05b295..3eed4de 100644 --- a/target/linux/ath79/dts/ar934x.dtsi +++ b/target/linux/ath79/dts/ar934x.dtsi @@ -217,8 +217,6 @@ builtin_switch: switch0@1f { compatible = "qca,ar8229-builtin"; - #address-cells = <1>; - #size-cells = <0>; reg = <0x1f>; resets = <&rst 8>; @@ -227,6 +225,9 @@ phy4-mii-enable; mdio-bus { + #address-cells = <1>; + #size-cells = <0>; + swphy0: ethernet-phy@0 { reg = <0>; phy-mode = "mii"; diff --git a/target/linux/ath79/dts/qca9533.dtsi b/target/linux/ath79/dts/qca9533.dtsi index 1681b31..97179a3 100644 --- a/target/linux/ath79/dts/qca9533.dtsi +++ b/target/linux/ath79/dts/qca9533.dtsi @@ -126,7 +126,7 @@ #reset-cells = <1>; - intc2: interrupt-controller@2 { + intc2: interrupt-controller { compatible = "qca,ar9340-intc"; interrupt-parent = <&cpuintc>; @@ -246,8 +246,6 @@ builtin_switch: switch0@1f { compatible = "qca,ar8229-builtin"; - #address-cells = <1>; - #size-cells = <0>; reg = <0x1f>; resets = <&rst 8>; @@ -256,6 +254,9 @@ phy4-mii-enable; mdio-bus { + #address-cells = <1>; + #size-cells = <0>; + swphy0: ethernet-phy@0 { reg = <0>; phy-mode = "mii"; diff --git a/target/linux/ath79/dts/qca9533_glinet_ar300m.dtsi b/target/linux/ath79/dts/qca9533_glinet_ar300m.dtsi index 9d8dc78..afbb006 100644 --- a/target/linux/ath79/dts/qca9533_glinet_ar300m.dtsi +++ b/target/linux/ath79/dts/qca9533_glinet_ar300m.dtsi @@ -11,25 +11,23 @@ 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 { diff --git a/target/linux/ath79/dts/qca9533_glinet_ar300m_nand.dts b/target/linux/ath79/dts/qca9533_glinet_ar300m_nand.dts index c1c4493..33226b9 100644 --- a/target/linux/ath79/dts/qca9533_glinet_ar300m_nand.dts +++ b/target/linux/ath79/dts/qca9533_glinet_ar300m_nand.dts @@ -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>; diff --git a/target/linux/ath79/dts/qca9533_glinet_ar300m_nor.dts b/target/linux/ath79/dts/qca9533_glinet_ar300m_nor.dts index 59793dc..9357ea6 100644 --- a/target/linux/ath79/dts/qca9533_glinet_ar300m_nor.dts +++ b/target/linux/ath79/dts/qca9533_glinet_ar300m_nor.dts @@ -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>; diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi index 4219125..7fe1716 100644 --- a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi +++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi @@ -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>; diff --git a/target/linux/ath79/dts/qca9557.dtsi b/target/linux/ath79/dts/qca9557.dtsi index 4f797a5..c3874bc 100644 --- a/target/linux/ath79/dts/qca9557.dtsi +++ b/target/linux/ath79/dts/qca9557.dtsi @@ -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"; @@ -137,7 +137,7 @@ #reset-cells = <1>; interrupt-parent = <&cpuintc>; - intc2: interrupt-controller@2 { + intc2: interrupt-controller2 { compatible = "qca,ar9340-intc"; interrupt-parent = <&cpuintc>; @@ -151,7 +151,7 @@ <0x1f0>; /* pcie rc 0 */ }; - intc3: interrupt-controller@3 { + intc3: interrupt-controller3 { compatible = "qca,ar9340-intc"; interrupt-parent = <&cpuintc>; diff --git a/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts b/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts index 5bbbc43..097e44b 100644 --- a/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts +++ b/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts @@ -47,11 +47,9 @@ 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>; @@ -102,8 +100,6 @@ num-cs = <1>; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-c7.dtsi b/target/linux/ath79/dts/qca9558_tplink_archer-c7.dtsi index 6fb25a9..70c8f63 100644 --- a/target/linux/ath79/dts/qca9558_tplink_archer-c7.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_archer-c7.dtsi @@ -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"; @@ -103,6 +100,8 @@ }; &usb0 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; hub_port0: port@1 { @@ -116,6 +115,8 @@ }; &usb1 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; hub_port1: port@1 { @@ -129,8 +130,6 @@ num-cs = <1>; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; diff --git a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi index a7dd8fe..52041b8 100644 --- a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi @@ -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 { @@ -104,8 +104,6 @@ num-cs = <1>; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; diff --git a/target/linux/ath79/dts/qca9563_phicomm_k2t.dts b/target/linux/ath79/dts/qca9563_phicomm_k2t.dts index 4ff9320..ca6d4ec 100644 --- a/target/linux/ath79/dts/qca9563_phicomm_k2t.dts +++ b/target/linux/ath79/dts/qca9563_phicomm_k2t.dts @@ -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>; diff --git a/target/linux/ath79/dts/qca9563_tplink_tl-re450-v2.dts b/target/linux/ath79/dts/qca9563_tplink_tl-re450-v2.dts index 646cdf2..852f1c9 100644 --- a/target/linux/ath79/dts/qca9563_tplink_tl-re450-v2.dts +++ b/target/linux/ath79/dts/qca9563_tplink_tl-re450-v2.dts @@ -68,8 +68,6 @@ keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; reset { label = "Reset button"; @@ -133,8 +131,6 @@ num-cs = <1>; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; diff --git a/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi b/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi index fd0c974..056fe4e 100644 --- a/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi +++ b/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi @@ -76,8 +76,6 @@ keys { compatible = "gpio-keys"; - #address-cells = <1>; - #size-cells = <0>; reset { label = "Reset button"; @@ -119,8 +117,6 @@ num-cs = <1>; flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; diff --git a/target/linux/ath79/dts/qca9563_tplink_tl-wr1043nd-v4.dts b/target/linux/ath79/dts/qca9563_tplink_tl-wr1043nd-v4.dts index 5f48e6a..ec10f08 100644 --- a/target/linux/ath79/dts/qca9563_tplink_tl-wr1043nd-v4.dts +++ b/target/linux/ath79/dts/qca9563_tplink_tl-wr1043nd-v4.dts @@ -26,6 +26,8 @@ }; &usb0 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; hub_port0: port@1 { diff --git a/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi b/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi index 381575c..0b7acde 100644 --- a/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi +++ b/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi @@ -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>; diff --git a/target/linux/ath79/dts/qca956x.dtsi b/target/linux/ath79/dts/qca956x.dtsi index d3a6df9..10c88ee 100644 --- a/target/linux/ath79/dts/qca956x.dtsi +++ b/target/linux/ath79/dts/qca956x.dtsi @@ -114,7 +114,7 @@ #reset-cells = <1>; interrupt-parent = <&cpuintc>; - intc3: interrupt-controller@3 { + intc3: interrupt-controller { compatible = "qca,ar9340-intc"; interrupt-parent = <&cpuintc>; @@ -271,9 +271,6 @@ builtin_switch: switch0@1f { compatible = "qca,ar8229-builtin"; - #address-cells = <1>; - #size-cells = <0>; - reg = <0x1f>; resets = <&rst 8>; reset-names = "switch"; @@ -281,6 +278,9 @@ phy4-mii-enable; mdio-bus { + #address-cells = <1>; + #size-cells = <0>; + swphy0: ethernet-phy@0 { reg = <0>; phy-mode = "mii"; |