Commit 41340053 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski

ARM: dts: marvell: 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>
Link: https://lore.kernel.org/r/20220616005333.18491-13-krzysztof.kozlowski@linaro.org
parent eef3af89
...@@ -75,25 +75,25 @@ keys { ...@@ -75,25 +75,25 @@ keys {
pinctrl-0 = <&pmx_buttons>; pinctrl-0 = <&pmx_buttons>;
pinctrl-names = "default"; pinctrl-names = "default";
power { button-power {
label = "Power Button"; label = "Power Button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
}; };
reset { button-reset {
label = "Reset Button"; label = "Reset Button";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
}; };
usb1 { button-usb1 {
label = "USB1 Button"; label = "USB1 Button";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
}; };
usb2 { button-usb2 {
label = "USB2 Button"; label = "USB2 Button";
linux,code = <BTN_1>; linux,code = <BTN_1>;
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
......
...@@ -111,19 +111,19 @@ gpio-keys { ...@@ -111,19 +111,19 @@ gpio-keys {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
power { button-power {
label = "Power button"; label = "Power button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
debounce-interval = <100>; debounce-interval = <100>;
}; };
backup { button-backup {
label = "Backup button"; label = "Backup button";
linux,code = <KEY_OPTION>; linux,code = <KEY_OPTION>;
gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
debounce-interval = <100>; debounce-interval = <100>;
}; };
reset { button-reset {
label = "Reset Button"; label = "Reset Button";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
......
...@@ -86,19 +86,19 @@ gpio-keys { ...@@ -86,19 +86,19 @@ gpio-keys {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
power { button-power {
label = "Power button"; label = "Power button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
debounce-interval = <100>; debounce-interval = <100>;
}; };
reset { button-reset {
label = "Reset Button"; label = "Reset Button";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
debounce-interval = <100>; debounce-interval = <100>;
}; };
button { button-usb {
label = "USB VBUS error"; label = "USB VBUS error";
linux,code = <KEY_UNKNOWN>; linux,code = <KEY_UNKNOWN>;
gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
......
...@@ -24,7 +24,7 @@ gpio-keys { ...@@ -24,7 +24,7 @@ gpio-keys {
pinctrl-0 = <&front_button_pins>; pinctrl-0 = <&front_button_pins>;
pinctrl-names = "default"; pinctrl-names = "default";
factory_default { key-factory-default {
label = "Factory Default"; label = "Factory Default";
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
......
...@@ -256,14 +256,14 @@ gpio-keys { ...@@ -256,14 +256,14 @@ gpio-keys {
pinctrl-0 = <&cf_gtr_rear_button_pins &cf_gtr_front_button_pins>; pinctrl-0 = <&cf_gtr_rear_button_pins &cf_gtr_front_button_pins>;
pinctrl-names = "default"; pinctrl-names = "default";
button_0 { button-0 {
label = "Rear Button"; label = "Rear Button";
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
linux,can-disable; linux,can-disable;
linux,code = <BTN_0>; linux,code = <BTN_0>;
}; };
button_1 { button-1 {
label = "Front Button"; label = "Front Button";
gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
linux,can-disable; linux,can-disable;
......
...@@ -53,13 +53,13 @@ gpio_keys: gpio-keys { ...@@ -53,13 +53,13 @@ gpio_keys: gpio-keys {
pinctrl-0 = <&gpio_keys_pins>; pinctrl-0 = <&gpio_keys_pins>;
pinctrl-names = "default"; pinctrl-names = "default";
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
}; };
reset { button-reset {
label = "Factory Reset Button"; label = "Factory Reset Button";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
......
...@@ -19,7 +19,7 @@ gpio-keys { ...@@ -19,7 +19,7 @@ gpio-keys {
pinctrl-0 = <&rear_button_pins>; pinctrl-0 = <&rear_button_pins>;
pinctrl-names = "default"; pinctrl-names = "default";
button_0 { button-0 {
/* The rear SW3 button */ /* The rear SW3 button */
label = "Rear Button"; label = "Rear Button";
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
......
...@@ -35,7 +35,7 @@ gpio-keys { ...@@ -35,7 +35,7 @@ gpio-keys {
pinctrl-0 = <&rear_button_pins>; pinctrl-0 = <&rear_button_pins>;
pinctrl-names = "default"; pinctrl-names = "default";
button_0 { button-0 {
/* The rear SW3 button */ /* The rear SW3 button */
label = "Rear Button"; label = "Rear Button";
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
......
...@@ -69,14 +69,14 @@ ethernet@74000 { ...@@ -69,14 +69,14 @@ ethernet@74000 {
}; };
}; };
gpio_keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
pinctrl-0 = <&keys_pin>; pinctrl-0 = <&keys_pin>;
pinctrl-names = "default"; pinctrl-names = "default";
reset { button-reset {
label = "Factory Reset Button"; label = "Factory Reset Button";
linux,code = <KEY_SETUP>; linux,code = <KEY_SETUP>;
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
......
...@@ -172,20 +172,20 @@ bm-bppi { ...@@ -172,20 +172,20 @@ bm-bppi {
}; };
}; };
gpio_keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
pinctrl-0 = <&keys_pin>; pinctrl-0 = <&keys_pin>;
pinctrl-names = "default"; pinctrl-names = "default";
wps { button-wps {
label = "WPS"; label = "WPS";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
}; };
reset { button-reset {
label = "Factory Reset Button"; label = "Factory Reset Button";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
......
...@@ -97,12 +97,12 @@ green_led { ...@@ -97,12 +97,12 @@ green_led {
}; };
}; };
gpio_keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
init { button-init {
label = "Init Button"; label = "Init Button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
......
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