Commit 335d1603 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Matthias Brugger

arm64: dts: mediatek: 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-15-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 2e9cf554
...@@ -40,13 +40,13 @@ cpu@1 { ...@@ -40,13 +40,13 @@ cpu@1 {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
factory { factory-key {
label = "factory"; label = "factory";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&pio 0 GPIO_ACTIVE_HIGH>; gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
}; };
wps { wps-key {
label = "wps"; label = "wps";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&pio 102 GPIO_ACTIVE_HIGH>; gpios = <&pio 102 GPIO_ACTIVE_HIGH>;
......
...@@ -42,13 +42,13 @@ gpio-keys { ...@@ -42,13 +42,13 @@ gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
poll-interval = <100>; poll-interval = <100>;
factory { key-factory {
label = "factory"; label = "factory";
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&pio 0 0>; gpios = <&pio 0 0>;
}; };
wps { key-wps {
label = "wps"; label = "wps";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&pio 102 0>; gpios = <&pio 102 0>;
......
...@@ -21,7 +21,7 @@ cpu_crit: cpu_crit0 { ...@@ -21,7 +21,7 @@ cpu_crit: cpu_crit0 {
}; };
&gpio_keys { &gpio_keys {
/delete-node/tablet_mode; /delete-node/switch-tablet-mode;
/delete-node/volume_down; /delete-node/switch-volume-down;
/delete-node/volume_up; /delete-node/switch-volume-up;
}; };
...@@ -53,7 +53,7 @@ gpio_keys: gpio-keys { ...@@ -53,7 +53,7 @@ gpio_keys: gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&gpio_keys_pins>; pinctrl-0 = <&gpio_keys_pins>;
lid { switch-lid {
label = "Lid"; label = "Lid";
gpios = <&pio 69 GPIO_ACTIVE_LOW>; gpios = <&pio 69 GPIO_ACTIVE_LOW>;
linux,code = <SW_LID>; linux,code = <SW_LID>;
...@@ -61,7 +61,7 @@ lid { ...@@ -61,7 +61,7 @@ lid {
gpio-key,wakeup; gpio-key,wakeup;
}; };
power { switch-power {
label = "Power"; label = "Power";
gpios = <&pio 14 GPIO_ACTIVE_HIGH>; gpios = <&pio 14 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
...@@ -69,7 +69,7 @@ power { ...@@ -69,7 +69,7 @@ power {
gpio-key,wakeup; gpio-key,wakeup;
}; };
tablet_mode { switch-tablet-mode {
label = "Tablet_mode"; label = "Tablet_mode";
gpios = <&pio 121 GPIO_ACTIVE_HIGH>; gpios = <&pio 121 GPIO_ACTIVE_HIGH>;
linux,code = <SW_TABLET_MODE>; linux,code = <SW_TABLET_MODE>;
...@@ -77,13 +77,13 @@ tablet_mode { ...@@ -77,13 +77,13 @@ tablet_mode {
gpio-key,wakeup; gpio-key,wakeup;
}; };
volume_down { switch-volume-down {
label = "Volume_down"; label = "Volume_down";
gpios = <&pio 123 GPIO_ACTIVE_LOW>; gpios = <&pio 123 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
}; };
volume_up { switch-volume-up {
label = "Volume_up"; label = "Volume_up";
gpios = <&pio 124 GPIO_ACTIVE_LOW>; gpios = <&pio 124 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
......
...@@ -73,7 +73,7 @@ volume_buttons: volume-buttons { ...@@ -73,7 +73,7 @@ volume_buttons: volume-buttons {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&volume_button_pins>; pinctrl-0 = <&volume_button_pins>;
volume_down { button-volume-down {
label = "Volume Down"; label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>; linux,code = <KEY_VOLUMEDOWN>;
debounce-interval = <100>; debounce-interval = <100>;
...@@ -81,7 +81,7 @@ volume_down { ...@@ -81,7 +81,7 @@ volume_down {
gpios = <&pio 6 GPIO_ACTIVE_LOW>; gpios = <&pio 6 GPIO_ACTIVE_LOW>;
}; };
volume_up { button-volume-up {
label = "Volume Up"; label = "Volume Up";
linux,code = <KEY_VOLUMEUP>; linux,code = <KEY_VOLUMEUP>;
debounce-interval = <100>; debounce-interval = <100>;
......
...@@ -45,7 +45,7 @@ gpio-keys { ...@@ -45,7 +45,7 @@ gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pen_eject>; pinctrl-0 = <&pen_eject>;
pen-insert { switch-pen-insert {
label = "Pen Insert"; label = "Pen Insert";
/* Insert = low, eject = high */ /* Insert = low, eject = high */
gpios = <&pio 6 GPIO_ACTIVE_LOW>; gpios = <&pio 6 GPIO_ACTIVE_LOW>;
......
...@@ -144,7 +144,7 @@ wifi_wakeup: wifi-wakeup { ...@@ -144,7 +144,7 @@ wifi_wakeup: wifi-wakeup {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&wifi_pins_wakeup>; pinctrl-0 = <&wifi_pins_wakeup>;
wowlan { button-wowlan {
label = "Wake on WiFi"; label = "Wake on WiFi";
gpios = <&pio 113 GPIO_ACTIVE_HIGH>; gpios = <&pio 113 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_WAKEUP>; linux,code = <KEY_WAKEUP>;
......
...@@ -28,7 +28,7 @@ gpio-keys { ...@@ -28,7 +28,7 @@ gpio-keys {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&gpio_keys_default>; pinctrl-0 = <&gpio_keys_default>;
volume-up { key-volume-up {
gpios = <&pio 42 GPIO_ACTIVE_LOW>; gpios = <&pio 42 GPIO_ACTIVE_LOW>;
label = "volume_up"; label = "volume_up";
linux,code = <115>; linux,code = <115>;
...@@ -36,7 +36,7 @@ volume-up { ...@@ -36,7 +36,7 @@ volume-up {
debounce-interval = <15>; debounce-interval = <15>;
}; };
volume-down { key-volume-down {
gpios = <&pio 43 GPIO_ACTIVE_LOW>; gpios = <&pio 43 GPIO_ACTIVE_LOW>;
label = "volume_down"; label = "volume_down";
linux,code = <114>; linux,code = <114>;
......
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