ath79: buffalo_wzr-hp-g450h: fix dtc warnings

Just name buttons directly, rather than abstract and then also a label.
Likewise for leds.  Avoids DTC warnings about unit address with no reg
parameter.

Signed-off-by: Karl Palsson <karlp@etactica.com>
This commit is contained in:
Karl Palsson 2018-05-28 12:46:52 +00:00 committed by John Crispin
parent 97326e5131
commit 29b2804c6b

View file

@ -21,36 +21,31 @@
#size-cells = <0>; #size-cells = <0>;
poll-interval = <20>; poll-interval = <20>;
button@0 { usb {
label = "usb";
linux,code = <BTN_2>; linux,code = <BTN_2>;
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
debounce-interval = <60>; debounce-interval = <60>;
}; };
button@1 { reset {
label = "reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
debounce-interval = <60>; debounce-interval = <60>;
}; };
button@2 { movie_engine {
label = "movie_engine";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
debounce-interval = <60>; debounce-interval = <60>;
}; };
button@3 { aoss {
label = "aoss";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
debounce-interval = <60>; debounce-interval = <60>;
}; };
button@4 { router_off {
label = "router_off";
linux,code = <BTN_5>; linux,code = <BTN_5>;
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
debounce-interval = <60>; debounce-interval = <60>;
@ -60,12 +55,12 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
led@0 { security {
label = "buffalo:orange:security"; label = "buffalo:orange:security";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
}; };
led@1 { diag {
label = "buffalo:red:diag"; label = "buffalo:red:diag";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };
@ -120,7 +115,7 @@
&pcie { &pcie {
status = "okay"; status = "okay";
ath9k@0000 { ath9k@0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;
}; };