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>
v19.07.3_mercusys_ac12_duma
Mathias Kresin 6 years ago
parent bf078fcab6
commit 55ff2951ea

@ -72,8 +72,6 @@
gpio-keys-polled { gpio-keys-polled {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <100>; poll-interval = <100>;
wps { wps {
@ -101,6 +99,8 @@
gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>; gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
mdio-bus { mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
phy-mask = <0x10>; phy-mask = <0x10>;
@ -118,6 +118,8 @@
}; };
&usb1 { &usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
usb_ochi_port: port@1 { usb_ochi_port: port@1 {
@ -127,6 +129,8 @@
}; };
&usb2 { &usb2 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
usb_echi_port: port@1 { usb_echi_port: port@1 {
@ -148,8 +152,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -40,14 +40,15 @@
builtin_switch: switch0@1f { builtin_switch: switch0@1f {
compatible = "qca,ar8216-builtin"; compatible = "qca,ar8216-builtin";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1f>; reg = <0x1f>;
resets = <&rst 8>; resets = <&rst 8>;
reset-names = "switch"; reset-names = "switch";
mdio-bus { mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
swphy4: ethernet-phy@4 { swphy4: ethernet-phy@4 {
reg = <4>; reg = <4>;
phy-mode = "mii"; phy-mode = "mii";

@ -16,8 +16,6 @@
gpio-keys-polled { gpio-keys-polled {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
reset { reset {
@ -64,8 +62,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -117,7 +113,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
ath9k: wifi@168c,002b { ath9k: wifi@0,0 {
compatible = "pci168c,002b"; compatible = "pci168c,002b";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;

@ -16,8 +16,6 @@
gpio-keys-polled { gpio-keys-polled {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
reset { reset {
@ -89,8 +87,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -137,7 +133,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
ath9k: wifi@168c,002b { ath9k: wifi@0,0 {
compatible = "pci168c,002b"; compatible = "pci168c,002b";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;

@ -59,14 +59,15 @@
builtin_switch: switch0@1f { builtin_switch: switch0@1f {
compatible = "qca,ar8216-builtin"; compatible = "qca,ar8216-builtin";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1f>; reg = <0x1f>;
resets = <&rst 8>; resets = <&rst 8>;
reset-names = "switch"; reset-names = "switch";
mdio-bus { mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
swphy4: ethernet-phy@4 { swphy4: ethernet-phy@4 {
reg = <4>; reg = <4>;
phy-mode = "mii"; phy-mode = "mii";

@ -12,8 +12,6 @@
gpio-keys-polled { gpio-keys-polled {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
reset { reset {
@ -51,8 +49,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -85,7 +81,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
ath9k: wifi@0 { ath9k: wifi@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;

@ -26,6 +26,8 @@
}; };
&usb { &usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
hub_port: port@1 { hub_port: port@1 {

@ -22,9 +22,6 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
reset { reset {
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
@ -60,8 +57,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -111,7 +106,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
wifi@0 { wifi@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;
}; };

@ -17,9 +17,6 @@
*/ */
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
reset { reset {
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
@ -65,8 +62,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -116,7 +111,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
wifi@0 { wifi@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;
}; };

@ -16,8 +16,6 @@
gpio-keys { gpio-keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
wps { wps {
@ -98,8 +96,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -142,7 +138,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
ath9k: wifi@0 { ath9k: wifi@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;

@ -12,10 +12,8 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
usb { usb {
linux,code = <BTN_2>; linux,code = <BTN_2>;
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
@ -110,7 +108,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
wifi@0 { wifi@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;
}; };

@ -26,8 +26,6 @@
gpio-keys { gpio-keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
reset { reset {
@ -89,6 +87,8 @@
realtek,extif0 = <1 0 1 1 1 1 1 1 2>; realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
mdio-bus { mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
phy0: ethernet-phy@0 { phy0: ethernet-phy@0 {
@ -107,8 +107,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -143,6 +141,8 @@
}; };
&usb { &usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
hub_port: port@1 { hub_port: port@1 {
@ -158,7 +158,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
ath9k: wifi@0 { ath9k: wifi@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;

@ -22,8 +22,6 @@
keys { keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
button0 { button0 {
label = "reset"; label = "reset";
@ -88,6 +86,8 @@
}; };
&usb { &usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
hub_port: port@1 { hub_port: port@1 {
@ -105,8 +105,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -174,14 +174,14 @@
builtin_switch: switch0@1f { builtin_switch: switch0@1f {
compatible = "qca,ar8216-builtin"; compatible = "qca,ar8216-builtin";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1f>; reg = <0x1f>;
resets = <&rst 8>; resets = <&rst 8>;
reset-names = "switch"; reset-names = "switch";
mdio-bus { mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
swphy4: ethernet-phy@4 { swphy4: ethernet-phy@4 {
reg = <4>; reg = <4>;
phy-mode = "mii"; phy-mode = "mii";

@ -40,8 +40,6 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <100>; poll-interval = <100>;
manual { manual {
@ -87,8 +85,6 @@
status = "okay"; status = "okay";
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
reg = <0>; reg = <0>;

@ -26,11 +26,9 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <100>; poll-interval = <100>;
button@0 { button0 {
label = "reset"; label = "reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
@ -65,8 +63,6 @@
/* Winbond 25Q128FVSG SPI flash */ /* Winbond 25Q128FVSG SPI flash */
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor"; compatible = "winbond,w25q128", "jedec,spi-nor";
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
reg = <0>; reg = <0>;

@ -44,17 +44,15 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <100>; poll-interval = <100>;
button@0 { button0 {
label = "jumpstart"; label = "jumpstart";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
}; };
button@1 { button1 {
label = "reset"; label = "reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
@ -89,8 +87,6 @@
/* Winbond 25Q128BVFG SPI flash */ /* Winbond 25Q128BVFG SPI flash */
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor"; compatible = "winbond,w25q128", "jedec,spi-nor";
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
reg = <0>; reg = <0>;

@ -27,8 +27,6 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <100>; poll-interval = <100>;
wps { wps {
@ -67,8 +65,6 @@
status = "okay"; status = "okay";
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
reg = <0>; reg = <0>;

@ -16,8 +16,6 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <50>; poll-interval = <50>;
restore { restore {
@ -94,8 +92,6 @@
status = "okay"; status = "okay";
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>; spi-max-frequency = <50000000>;
reg = <0>; reg = <0>;

@ -26,11 +26,9 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <100>; poll-interval = <100>;
button@0 { button0 {
label = "reset"; label = "reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
@ -65,8 +63,6 @@
/* Winbond 25Q128FVSG SPI flash */ /* Winbond 25Q128FVSG SPI flash */
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor"; compatible = "winbond,w25q128", "jedec,spi-nor";
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
reg = <0>; reg = <0>;

@ -48,8 +48,6 @@
keys { keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
button0 { button0 {
label = "reset"; label = "reset";
@ -98,6 +96,8 @@
}; };
&usb { &usb {
#address-cells = <1>;
#size-cells = <0>;
dr_mode = "host"; dr_mode = "host";
vbus-supply = <&reg_usb_vbus>; vbus-supply = <&reg_usb_vbus>;
status = "okay"; status = "okay";
@ -118,8 +118,6 @@
/* Spansion S25FL032PIF SPI flash */ /* Spansion S25FL032PIF SPI flash */
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
reg = <0>; reg = <0>;

@ -14,8 +14,6 @@
gpio-keys-polled { gpio-keys-polled {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
reset { reset {
@ -50,8 +48,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -17,8 +17,6 @@
gpio-keys-polled { gpio-keys-polled {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
reset { reset {
@ -90,8 +88,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -18,8 +18,7 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
poll-interval = <20>; poll-interval = <20>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&jtag_disable_pins>; pinctrl-0 = <&jtag_disable_pins>;
@ -104,8 +103,6 @@
status = "okay"; status = "okay";
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -13,7 +13,7 @@
}; };
&rst { &rst {
intc2: interrupt-controller@2 { intc2: interrupt-controller {
compatible = "qca,ar9340-intc"; compatible = "qca,ar9340-intc";
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;

@ -53,8 +53,6 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
reset { reset {
@ -83,8 +81,6 @@
status = "okay"; status = "okay";
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -140,7 +136,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
ath9k: wifi@168c,0030 { ath9k: wifi@0,0 {
compatible = "pci168c,0030"; compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0xc>; mtd-mac-address = <&art 0xc>;

@ -18,8 +18,7 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
poll-interval = <20>; poll-interval = <20>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&jtag_disable_pins>; pinctrl-0 = <&jtag_disable_pins>;
@ -93,8 +92,6 @@
status = "okay"; status = "okay";
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -133,7 +130,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
ath9k: wifi@168c,0030 { ath9k: wifi@0,0 {
compatible = "168c,0030"; compatible = "168c,0030";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0x0>; mtd-mac-address = <&art 0x0>;

@ -15,12 +15,10 @@
led-status = &status; led-status = &status;
}; };
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
poll-interval = <20>; poll-interval = <20>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&jtag_disable_pins>; pinctrl-0 = <&jtag_disable_pins>;
@ -83,8 +81,6 @@
status = "okay"; status = "okay";
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -122,17 +118,13 @@
&usb { &usb {
status = "okay"; status = "okay";
#address-cells = <1>;
#size-cells = <0>;
port@1 { hub_port1: port@1 {
reg = <1>; reg = <1>;
#trigger-source-cells = <0>; #trigger-source-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
}; };
}; };
&usb_phy { &usb_phy {
@ -142,8 +134,9 @@
&pcie { &pcie {
status = "okay"; status = "okay";
ath9k: wifi@168c,0030 { ath9k: wifi@0,0 {
compatible = "pci168c,0030"; compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0x5002>; mtd-mac-address = <&art 0x5002>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
@ -171,6 +164,8 @@
}; };
&eth0 { &eth0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
/* default for ar934x, except for 1000M */ /* default for ar934x, except for 1000M */
@ -188,30 +183,35 @@
port@0 { port@0 {
compatible = "swconfig,port"; compatible = "swconfig,port";
reg = <0>;
swconfig,segment = "lan"; swconfig,segment = "lan";
swconfig,portmap = <1 1>; swconfig,portmap = <1 1>;
}; };
port@1 { port@1 {
compatible = "swconfig,port"; compatible = "swconfig,port";
reg = <1>;
swconfig,segment = "lan"; swconfig,segment = "lan";
swconfig,portmap = <2 2>; swconfig,portmap = <2 2>;
}; };
port@2 { port@2 {
compatible = "swconfig,port"; compatible = "swconfig,port";
reg = <2>;
swconfig,segment = "lan"; swconfig,segment = "lan";
swconfig,portmap = <3 3>; swconfig,portmap = <3 3>;
}; };
port@3 { port@3 {
compatible = "swconfig,port"; compatible = "swconfig,port";
reg = <3>;
swconfig,segment = "lan"; swconfig,segment = "lan";
swconfig,portmap = <4 4>; swconfig,portmap = <4 4>;
}; };
port@4 { port@4 {
compatible = "swconfig,port"; compatible = "swconfig,port";
reg = <4>;
swconfig,segment = "wan"; swconfig,segment = "wan";
swconfig,portmap = <5 5>; swconfig,portmap = <5 5>;
}; };

@ -65,8 +65,6 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
reset { reset {
@ -85,7 +83,6 @@
gpio-export { gpio-export {
compatible = "gpio-export"; compatible = "gpio-export";
#size-cells = <0>;
gpio_usb1_power { gpio_usb1_power {
gpio-export,name = "tp-link:power:usb1"; gpio-export,name = "tp-link:power:usb1";
@ -131,8 +128,6 @@
status = "okay"; status = "okay";
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -163,9 +158,13 @@
}; };
&usb { &usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
port@1 { port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>; reg = <1>;
#trigger-source-cells = <0>; #trigger-source-cells = <0>;
@ -188,7 +187,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
ath9k: wifi@168c,0033 { ath9k: wifi@0,0 {
compatible = "pci168c,0033"; compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;

@ -217,8 +217,6 @@
builtin_switch: switch0@1f { builtin_switch: switch0@1f {
compatible = "qca,ar8229-builtin"; compatible = "qca,ar8229-builtin";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1f>; reg = <0x1f>;
resets = <&rst 8>; resets = <&rst 8>;
@ -227,6 +225,9 @@
phy4-mii-enable; phy4-mii-enable;
mdio-bus { mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
swphy0: ethernet-phy@0 { swphy0: ethernet-phy@0 {
reg = <0>; reg = <0>;
phy-mode = "mii"; phy-mode = "mii";

@ -126,7 +126,7 @@
#reset-cells = <1>; #reset-cells = <1>;
intc2: interrupt-controller@2 { intc2: interrupt-controller {
compatible = "qca,ar9340-intc"; compatible = "qca,ar9340-intc";
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;
@ -246,8 +246,6 @@
builtin_switch: switch0@1f { builtin_switch: switch0@1f {
compatible = "qca,ar8229-builtin"; compatible = "qca,ar8229-builtin";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1f>; reg = <0x1f>;
resets = <&rst 8>; resets = <&rst 8>;
@ -256,6 +254,9 @@
phy4-mii-enable; phy4-mii-enable;
mdio-bus { mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
swphy0: ethernet-phy@0 { swphy0: ethernet-phy@0 {
reg = <0>; reg = <0>;
phy-mode = "mii"; phy-mode = "mii";

@ -11,25 +11,23 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&jtag_disable_pins>; pinctrl-0 = <&jtag_disable_pins>;
button@0 { button0 {
label = "reset"; label = "reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
}; };
button@1 { button1 {
label = "button right"; label = "button right";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
}; };
button@3 { button3 {
label = "button left"; label = "button left";
linux,code = <BTN_1>; linux,code = <BTN_1>;
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
@ -73,6 +71,8 @@
}; };
&usb0 { &usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
hub_port: port@1 { hub_port: port@1 {

@ -7,8 +7,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor"; compatible = "winbond,w25q128", "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
@ -42,8 +40,6 @@
}; };
flash@1 { flash@1 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "spinand,mt29f"; compatible = "spinand,mt29f";
reg = <1>; reg = <1>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -10,8 +10,6 @@
num-cs = <0>; num-cs = <0>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor"; compatible = "winbond,w25q128", "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -64,8 +64,6 @@
keys { keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
reset { reset {
label = "Reset button"; label = "Reset button";
@ -92,8 +90,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -53,7 +53,7 @@
status = "disabled"; status = "disabled";
}; };
usb_phy0: usb-phy@18030000 { usb_phy0: usb-phy0 {
compatible ="qca,qca9550-usb-phy", "qca,ar7200-usb-phy"; compatible ="qca,qca9550-usb-phy", "qca,ar7200-usb-phy";
reset-names = "usb-phy", "usb-suspend-override"; reset-names = "usb-phy", "usb-suspend-override";
@ -64,7 +64,7 @@
status = "disabled"; status = "disabled";
}; };
usb_phy1: usb-phy { usb_phy1: usb-phy1 {
compatible = "qca,qca9550-usb-phy", "qca,ar7200-usb-phy"; compatible = "qca,qca9550-usb-phy", "qca,ar7200-usb-phy";
reset-names = "usb-phy", "usb-suspend-override"; reset-names = "usb-phy", "usb-suspend-override";
@ -137,7 +137,7 @@
#reset-cells = <1>; #reset-cells = <1>;
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;
intc2: interrupt-controller@2 { intc2: interrupt-controller2 {
compatible = "qca,ar9340-intc"; compatible = "qca,ar9340-intc";
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;
@ -151,7 +151,7 @@
<0x1f0>; /* pcie rc 0 */ <0x1f0>; /* pcie rc 0 */
}; };
intc3: interrupt-controller@3 { intc3: interrupt-controller3 {
compatible = "qca,ar9340-intc"; compatible = "qca,ar9340-intc";
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;

@ -47,11 +47,9 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <100>; poll-interval = <100>;
button@0 { button0 {
label = "reset"; label = "reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
@ -102,8 +100,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -56,8 +56,6 @@
gpio_keys: keys { gpio_keys: keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
reset { reset {
label = "Reset button"; label = "Reset button";
@ -69,7 +67,6 @@
gpio-export { gpio-export {
compatible = "gpio-export"; compatible = "gpio-export";
#size-cells = <0>;
gpio_usb1_power { gpio_usb1_power {
gpio-export,name = "tp-link:power:usb1"; gpio-export,name = "tp-link:power:usb1";
@ -103,6 +100,8 @@
}; };
&usb0 { &usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
hub_port0: port@1 { hub_port0: port@1 {
@ -116,6 +115,8 @@
}; };
&usb1 { &usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
hub_port1: port@1 { hub_port1: port@1 {
@ -129,8 +130,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -48,8 +48,6 @@
keys { keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
reset { reset {
label = "Reset button"; label = "Reset button";
@ -91,6 +89,8 @@
}; };
&usb0 { &usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
hub_port0: port@1 { hub_port0: port@1 {
@ -104,8 +104,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -42,8 +42,6 @@
keys { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
reset { reset {
@ -72,8 +70,6 @@
status = "okay"; status = "okay";
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -68,8 +68,6 @@
keys { keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
reset { reset {
label = "Reset button"; label = "Reset button";
@ -133,8 +131,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -76,8 +76,6 @@
keys { keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
reset { reset {
label = "Reset button"; label = "Reset button";
@ -119,8 +117,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -26,6 +26,8 @@
}; };
&usb0 { &usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
hub_port0: port@1 { hub_port0: port@1 {

@ -31,8 +31,6 @@
keys { keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
reset { reset {
label = "Reset button"; label = "Reset button";
@ -60,8 +58,6 @@
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;

@ -114,7 +114,7 @@
#reset-cells = <1>; #reset-cells = <1>;
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;
intc3: interrupt-controller@3 { intc3: interrupt-controller {
compatible = "qca,ar9340-intc"; compatible = "qca,ar9340-intc";
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;
@ -271,9 +271,6 @@
builtin_switch: switch0@1f { builtin_switch: switch0@1f {
compatible = "qca,ar8229-builtin"; compatible = "qca,ar8229-builtin";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1f>; reg = <0x1f>;
resets = <&rst 8>; resets = <&rst 8>;
reset-names = "switch"; reset-names = "switch";
@ -281,6 +278,9 @@
phy4-mii-enable; phy4-mii-enable;
mdio-bus { mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
swphy0: ethernet-phy@0 { swphy0: ethernet-phy@0 {
reg = <0>; reg = <0>;
phy-mode = "mii"; phy-mode = "mii";

Loading…
Cancel
Save