ARM: dts: marvell: kirkwood: align GPIO keys node name with bindings
Bindings expect the GPIO key node names to follow certain pattern, see dtbs_check warnings: kirkwood-laplug.dtb: gpio_keys: 'power' does not match any of the regexes: '^(button|event|key|switch|(button|event|key|switch)... Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
This commit is contained in:
committed by
Gregory CLEMENT
parent
e62f7f6b48
commit
b98a91911d
@@ -35,13 +35,13 @@
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
reset {
|
||||
button-reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_POWER>;
|
||||
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
button {
|
||||
button-power {
|
||||
label = "Power";
|
||||
linux,code = <KEY_SLEEP>;
|
||||
gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -29,25 +29,25 @@
|
||||
pinctrl-0 = <&pmx_buttons>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
power {
|
||||
button-power {
|
||||
label = "Power Button";
|
||||
linux,code = <KEY_POWER>;
|
||||
gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
reset {
|
||||
button-reset {
|
||||
label = "Reset Button";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb1 {
|
||||
button-usb1 {
|
||||
label = "USB1 Button";
|
||||
linux,code = <BTN_0>;
|
||||
gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb2 {
|
||||
button-usb2 {
|
||||
label = "USB2 Button";
|
||||
linux,code = <BTN_1>;
|
||||
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
power {
|
||||
key-power {
|
||||
label = "Power push button";
|
||||
linux,code = <KEY_POWER>;
|
||||
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -179,12 +179,12 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
reset {
|
||||
button-reset {
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
wps {
|
||||
button-wps {
|
||||
label = "wps";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -14,17 +14,17 @@
|
||||
&pmx_button_reset>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
power {
|
||||
button-power {
|
||||
label = "Power button";
|
||||
linux,code = <KEY_POWER>;
|
||||
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
eject {
|
||||
button-eject {
|
||||
label = "USB unmount button";
|
||||
linux,code = <KEY_EJECTCD>;
|
||||
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
reset {
|
||||
button-reset {
|
||||
label = "Reset button";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -63,12 +63,12 @@
|
||||
pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
copy {
|
||||
button-copy {
|
||||
label = "USB Copy";
|
||||
linux,code = <KEY_COPY>;
|
||||
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
reset {
|
||||
button-reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -127,13 +127,13 @@
|
||||
pinctrl-0 = < &pmx_button_reset &pmx_button_otb >;
|
||||
pinctrl-names = "default";
|
||||
|
||||
otb {
|
||||
button-otb {
|
||||
label = "OTB Button";
|
||||
linux,code = <KEY_COPY>;
|
||||
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
|
||||
debounce-interval = <100>;
|
||||
};
|
||||
reset {
|
||||
button-reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -154,17 +154,17 @@
|
||||
pinctrl-names = "default";
|
||||
|
||||
|
||||
Power {
|
||||
button-power {
|
||||
label = "Power Button";
|
||||
linux,code = <KEY_POWER>;
|
||||
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
Reset {
|
||||
button-reset {
|
||||
label = "Reset Button";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
OTB {
|
||||
button-otb {
|
||||
label = "OTB Button";
|
||||
linux,code = <KEY_COPY>;
|
||||
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -193,7 +193,7 @@
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
factory_defaults {
|
||||
button-factory-defaults {
|
||||
label = "factory_defaults";
|
||||
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_RESTART>;
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
power {
|
||||
button-power {
|
||||
label = "Power push button";
|
||||
linux,code = <KEY_POWER>;
|
||||
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
@@ -38,13 +38,13 @@
|
||||
pinctrl-0 = < &pmx_btn_wps &pmx_btn_reset >;
|
||||
pinctrl-names = "default";
|
||||
|
||||
wps {
|
||||
button-wps {
|
||||
label = "WPS Button";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
reset {
|
||||
button-reset {
|
||||
label = "Reset Button";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -113,18 +113,18 @@
|
||||
&pmx_power_auto_switch>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
option {
|
||||
button-option {
|
||||
label = "Function Button";
|
||||
linux,code = <KEY_OPTION>;
|
||||
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
reserved {
|
||||
button-reserved {
|
||||
label = "Power-on Switch";
|
||||
linux,code = <KEY_RESERVED>;
|
||||
linux,input-type = <5>;
|
||||
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
power {
|
||||
button-power {
|
||||
label = "Power-auto Switch";
|
||||
linux,code = <KEY_ESC>;
|
||||
linux,input-type = <5>;
|
||||
|
||||
@@ -96,12 +96,12 @@
|
||||
pinctrl-0 = <&pmx_keys>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
restart {
|
||||
button-restart {
|
||||
label = "SWR Button";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
wps {
|
||||
button-wps {
|
||||
label = "WPS Button";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -60,19 +60,19 @@
|
||||
* esc and power represent a three position rocker
|
||||
* switch. Thus the conventional KEY_POWER does not fit
|
||||
*/
|
||||
exc {
|
||||
button-exc {
|
||||
label = "Back power switch (on|auto)";
|
||||
linux,code = <KEY_ESC>;
|
||||
linux,input-type = <5>;
|
||||
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
power {
|
||||
button-power {
|
||||
label = "Back power switch (auto|off)";
|
||||
linux,code = <KEY_1>;
|
||||
linux,input-type = <5>;
|
||||
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
option {
|
||||
button-option {
|
||||
label = "Function button";
|
||||
linux,code = <KEY_OPTION>;
|
||||
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
power {
|
||||
button-power {
|
||||
label = "Power push button";
|
||||
linux,code = <KEY_POWER>;
|
||||
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
@@ -40,19 +40,19 @@
|
||||
pinctrl-0 = <&pmx_buttons>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
power {
|
||||
button-power {
|
||||
label = "Power Button";
|
||||
linux,code = <KEY_POWER>;
|
||||
gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
copy {
|
||||
button-copy {
|
||||
label = "Copy Button";
|
||||
linux,code = <KEY_COPY>;
|
||||
gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
reset {
|
||||
button-reset {
|
||||
label = "Reset Button";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -68,17 +68,17 @@
|
||||
pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
power {
|
||||
button-power {
|
||||
label = "Power Button";
|
||||
linux,code = <KEY_POWER>;
|
||||
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
copy {
|
||||
button-copy {
|
||||
label = "Copy Button";
|
||||
linux,code = <KEY_COPY>;
|
||||
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
reset {
|
||||
button-reset {
|
||||
label = "Reset Button";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
power {
|
||||
button-power {
|
||||
label = "Init Button";
|
||||
linux,code = <KEY_POWER>;
|
||||
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
pinctrl-0 = <&pmx_button_eject>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
eject {
|
||||
button-eject {
|
||||
debounce-interval = <50>;
|
||||
wakeup-source;
|
||||
linux,code = <KEY_EJECTCD>;
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
pinctrl-0 = <&pmx_button_power>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
power {
|
||||
button-power {
|
||||
label = "Power Button";
|
||||
linux,code = <KEY_POWER>;
|
||||
gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
@@ -40,12 +40,12 @@
|
||||
pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
copy {
|
||||
button-copy {
|
||||
label = "USB Copy";
|
||||
linux,code = <KEY_COPY>;
|
||||
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
reset {
|
||||
button-reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -40,12 +40,12 @@
|
||||
pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
copy {
|
||||
button-copy {
|
||||
label = "USB Copy";
|
||||
linux,code = <KEY_COPY>;
|
||||
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
reset {
|
||||
button-reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -41,12 +41,12 @@
|
||||
pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
copy {
|
||||
button-copy {
|
||||
label = "USB Copy";
|
||||
linux,code = <KEY_COPY>;
|
||||
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
reset {
|
||||
button-reset {
|
||||
label = "Reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
||||
|
||||
Reference in New Issue
Block a user