Commit c5aec561 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Florian Fainelli

ARM: dts: broadcom: align gpio-key node names with dtschema

The node names should be generic and DT schema expects certain pattern
(e.g. with key/button/switch).
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
parent 2b0a9539
...@@ -70,19 +70,19 @@ usb2 { ...@@ -70,19 +70,19 @@ usb2 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
rfkill { button-rfkill {
label = "WiFi"; label = "WiFi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
}; };
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
......
...@@ -54,25 +54,25 @@ usb3 { ...@@ -54,25 +54,25 @@ usb3 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
brightness { button-brightness {
label = "Backlight"; label = "Backlight";
linux,code = <KEY_BRIGHTNESS_ZERO>; linux,code = <KEY_BRIGHTNESS_ZERO>;
gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
}; };
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
}; };
rfkill { button-rfkill {
label = "WiFi"; label = "WiFi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
......
...@@ -104,33 +104,33 @@ wireless1 { ...@@ -104,33 +104,33 @@ wireless1 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
}; };
aoss { button-aoss {
label = "AOSS"; label = "AOSS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
}; };
/* Commit mode set by switch? */ /* Commit mode set by switch? */
mode { button-mode {
label = "Mode"; label = "Mode";
linux,code = <KEY_SETUP>; linux,code = <KEY_SETUP>;
gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
}; };
/* Switch: AP mode */ /* Switch: AP mode */
sw_ap { button-sw-ap {
label = "AP"; label = "AP";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
}; };
eject { button-eject {
label = "USB eject"; label = "USB eject";
linux,code = <KEY_EJECTCD>; linux,code = <KEY_EJECTCD>;
gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
......
...@@ -100,33 +100,33 @@ wireless1 { ...@@ -100,33 +100,33 @@ wireless1 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
}; };
aoss { button-aoss {
label = "AOSS"; label = "AOSS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
}; };
/* Commit mode set by switch? */ /* Commit mode set by switch? */
mode { button-mode {
label = "Mode"; label = "Mode";
linux,code = <KEY_SETUP>; linux,code = <KEY_SETUP>;
gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
}; };
/* Switch: AP mode */ /* Switch: AP mode */
sw_ap { button-sw-ap {
label = "AP"; label = "AP";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
}; };
eject { button-eject {
label = "USB eject"; label = "USB eject";
linux,code = <KEY_EJECTCD>; linux,code = <KEY_EJECTCD>;
gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
......
...@@ -29,13 +29,13 @@ nvram@1c080000 { ...@@ -29,13 +29,13 @@ nvram@1c080000 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
......
...@@ -25,13 +25,13 @@ memory@0 { ...@@ -25,13 +25,13 @@ memory@0 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
......
...@@ -45,7 +45,7 @@ status { ...@@ -45,7 +45,7 @@ status {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
......
...@@ -52,7 +52,7 @@ status { ...@@ -52,7 +52,7 @@ status {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
......
...@@ -63,19 +63,19 @@ wireless { ...@@ -63,19 +63,19 @@ wireless {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
}; };
rfkill { button-rfkill {
label = "WiFi"; label = "WiFi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
......
...@@ -59,19 +59,19 @@ wireless { ...@@ -59,19 +59,19 @@ wireless {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
}; };
rfkill { button-rfkill {
label = "WiFi"; label = "WiFi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
......
...@@ -94,19 +94,19 @@ wan-red { ...@@ -94,19 +94,19 @@ wan-red {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
rfkill { button-rfkill {
label = "WiFi"; label = "WiFi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
}; };
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
......
...@@ -60,13 +60,13 @@ usb3 { ...@@ -60,13 +60,13 @@ usb3 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
}; };
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
......
...@@ -91,26 +91,26 @@ wireless1 { ...@@ -91,26 +91,26 @@ wireless1 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
aoss { button-aoss {
label = "AOSS"; label = "AOSS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
}; };
/* Switch device mode? */ /* Switch device mode? */
mode { button-mode {
label = "Mode"; label = "Mode";
linux,code = <KEY_SETUP>; linux,code = <KEY_SETUP>;
gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
}; };
eject { button-eject {
label = "USB eject"; label = "USB eject";
linux,code = <KEY_EJECTCD>; linux,code = <KEY_EJECTCD>;
gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
......
...@@ -96,7 +96,7 @@ wireless1 { ...@@ -96,7 +96,7 @@ wireless1 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
......
...@@ -45,7 +45,7 @@ status { ...@@ -45,7 +45,7 @@ status {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
......
...@@ -94,7 +94,7 @@ lan1 { ...@@ -94,7 +94,7 @@ lan1 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
......
...@@ -77,13 +77,13 @@ usb2-port2 { ...@@ -77,13 +77,13 @@ usb2-port2 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
rfkill { button-rfkill {
label = "WiFi"; label = "WiFi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
......
...@@ -50,13 +50,13 @@ gpio-keys { ...@@ -50,13 +50,13 @@ gpio-keys {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
......
...@@ -80,39 +80,39 @@ gpio-keys { ...@@ -80,39 +80,39 @@ gpio-keys {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
power { button-power {
label = "Power"; label = "Power";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
}; };
aoss { button-aoss {
label = "AOSS"; label = "AOSS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
}; };
/* Commit mode set by switch? */ /* Commit mode set by switch? */
mode { button-mode {
label = "Mode"; label = "Mode";
linux,code = <KEY_SETUP>; linux,code = <KEY_SETUP>;
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
}; };
/* Switch: AP mode */ /* Switch: AP mode */
sw_ap { button-sw-ap {
label = "AP"; label = "AP";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
}; };
eject { button-eject {
label = "USB eject"; label = "USB eject";
linux,code = <KEY_EJECTCD>; linux,code = <KEY_EJECTCD>;
gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
......
...@@ -32,13 +32,13 @@ gpio-keys { ...@@ -32,13 +32,13 @@ gpio-keys {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
......
...@@ -75,19 +75,19 @@ gpio-keys { ...@@ -75,19 +75,19 @@ gpio-keys {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
}; };
rfkill { button-rfkill {
label = "WiFi"; label = "WiFi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
......
...@@ -102,25 +102,25 @@ gpio-keys { ...@@ -102,25 +102,25 @@ gpio-keys {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
rfkill { button-rfkill {
label = "WiFi"; label = "WiFi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
}; };
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
}; };
brightness { button-brightness {
label = "Backlight"; label = "Backlight";
linux,code = <KEY_BRIGHTNESS_ZERO>; linux,code = <KEY_BRIGHTNESS_ZERO>;
gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
......
...@@ -80,13 +80,13 @@ gpio-keys { ...@@ -80,13 +80,13 @@ gpio-keys {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
......
...@@ -72,25 +72,25 @@ wps { ...@@ -72,25 +72,25 @@ wps {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
}; };
reset { button-reset {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
}; };
wifi { button-wifi {
label = "Wi-Fi"; label = "Wi-Fi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
}; };
led { button-led {
label = "Backlight"; label = "Backlight";
linux,code = <KEY_BRIGHTNESS_ZERO>; linux,code = <KEY_BRIGHTNESS_ZERO>;
gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
......
...@@ -86,20 +86,20 @@ usb3-white { ...@@ -86,20 +86,20 @@ usb3-white {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
}; };
/* Switch: router / extender */ /* Switch: router / extender */
extender { button-extender {
label = "Extender"; label = "Extender";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
......
...@@ -30,19 +30,19 @@ nvram@1c080000 { ...@@ -30,19 +30,19 @@ nvram@1c080000 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
}; };
rfkill { button-rfkill {
label = "WiFi"; label = "WiFi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
}; };
reset { button-reset {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
......
...@@ -49,7 +49,7 @@ usb3 { ...@@ -49,7 +49,7 @@ usb3 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
......
...@@ -43,7 +43,7 @@ status { ...@@ -43,7 +43,7 @@ status {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
......
...@@ -49,7 +49,7 @@ usb3 { ...@@ -49,7 +49,7 @@ usb3 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
......
...@@ -37,7 +37,7 @@ gpio-keys { ...@@ -37,7 +37,7 @@ gpio-keys {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
......
...@@ -89,7 +89,7 @@ status { ...@@ -89,7 +89,7 @@ status {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
......
...@@ -67,7 +67,7 @@ status { ...@@ -67,7 +67,7 @@ status {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
......
...@@ -65,25 +65,25 @@ usb3 { ...@@ -65,25 +65,25 @@ usb3 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
brightness { button-brightness {
label = "Backlight"; label = "Backlight";
linux,code = <KEY_BRIGHTNESS_ZERO>; linux,code = <KEY_BRIGHTNESS_ZERO>;
gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
}; };
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
}; };
rfkill { button-rfkill {
label = "WiFi"; label = "WiFi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
......
...@@ -22,7 +22,7 @@ memory@0 { ...@@ -22,7 +22,7 @@ memory@0 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
......
...@@ -39,7 +39,7 @@ system { ...@@ -39,7 +39,7 @@ system {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
......
...@@ -49,7 +49,7 @@ pcie0_leds { ...@@ -49,7 +49,7 @@ pcie0_leds {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
......
...@@ -59,19 +59,19 @@ pcie0_leds { ...@@ -59,19 +59,19 @@ pcie0_leds {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
rfkill { button-rfkill {
label = "WiFi"; label = "WiFi";
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
}; };
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
......
...@@ -50,7 +50,7 @@ keys { ...@@ -50,7 +50,7 @@ keys {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>;
......
...@@ -47,10 +47,10 @@ chosen { ...@@ -47,10 +47,10 @@ chosen {
stdout-path = "serial0:115200n8"; stdout-path = "serial0:115200n8";
}; };
gpio_keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
hook { button-hook {
label = "HOOK"; label = "HOOK";
linux,code = <KEY_O>; linux,code = <KEY_O>;
gpios = <&gpio_asiu 48 0>; gpios = <&gpio_asiu 48 0>;
......
...@@ -44,13 +44,13 @@ wps { ...@@ -44,13 +44,13 @@ wps {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
}; };
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
......
...@@ -47,13 +47,13 @@ memory@0 { ...@@ -47,13 +47,13 @@ memory@0 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
}; };
restart { button-restart {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
......
...@@ -13,7 +13,7 @@ keys { ...@@ -13,7 +13,7 @@ keys {
autorepeat; autorepeat;
poll-interval = <20>; poll-interval = <20>;
reset { button-reset {
label = "reset"; label = "reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpioa 8 GPIO_ACTIVE_LOW>; gpios = <&gpioa 8 GPIO_ACTIVE_LOW>;
......
...@@ -14,7 +14,7 @@ keys { ...@@ -14,7 +14,7 @@ keys {
autorepeat; autorepeat;
poll-interval = <20>; poll-interval = <20>;
reset { button-reset {
label = "reset"; label = "reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpioa 6 GPIO_ACTIVE_LOW>; gpios = <&gpioa 6 GPIO_ACTIVE_LOW>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment