ARM: dts: qcom: 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: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220616005333.18491-25-krzysztof.kozlowski@linaro.org
This commit is contained in:
parent
31b2edcab4
commit
9c17baaa97
@ -44,12 +44,12 @@
|
|||||||
|
|
||||||
gpio-keys {
|
gpio-keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
volume_up {
|
key-volume-up {
|
||||||
label = "Volume Up";
|
label = "Volume Up";
|
||||||
gpios = <&pm8921_gpio 4 GPIO_ACTIVE_HIGH>;
|
gpios = <&pm8921_gpio 4 GPIO_ACTIVE_HIGH>;
|
||||||
linux,code = <KEY_VOLUMEUP>;
|
linux,code = <KEY_VOLUMEUP>;
|
||||||
};
|
};
|
||||||
volume_down {
|
key-volume-down {
|
||||||
label = "Volume Down";
|
label = "Volume Down";
|
||||||
gpios = <&pm8921_gpio 38 GPIO_ACTIVE_HIGH>;
|
gpios = <&pm8921_gpio 38 GPIO_ACTIVE_HIGH>;
|
||||||
linux,code = <KEY_VOLUMEDOWN>;
|
linux,code = <KEY_VOLUMEDOWN>;
|
||||||
|
@ -23,28 +23,28 @@
|
|||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&gpio_keys_pin_a>;
|
pinctrl-0 = <&gpio_keys_pin_a>;
|
||||||
|
|
||||||
camera-focus {
|
key-camera-focus {
|
||||||
label = "camera_focus";
|
label = "camera_focus";
|
||||||
gpios = <&pm8921_gpio 3 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8921_gpio 3 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
linux,code = <KEY_CAMERA_FOCUS>;
|
linux,code = <KEY_CAMERA_FOCUS>;
|
||||||
};
|
};
|
||||||
|
|
||||||
camera-snapshot {
|
key-camera-snapshot {
|
||||||
label = "camera_snapshot";
|
label = "camera_snapshot";
|
||||||
gpios = <&pm8921_gpio 4 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8921_gpio 4 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
linux,code = <KEY_CAMERA>;
|
linux,code = <KEY_CAMERA>;
|
||||||
};
|
};
|
||||||
|
|
||||||
volume-down {
|
key-volume-down {
|
||||||
label = "volume_down";
|
label = "volume_down";
|
||||||
gpios = <&pm8921_gpio 29 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8921_gpio 29 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
linux,code = <KEY_VOLUMEDOWN>;
|
linux,code = <KEY_VOLUMEDOWN>;
|
||||||
};
|
};
|
||||||
|
|
||||||
volume-up {
|
key-volume-up {
|
||||||
label = "volume_up";
|
label = "volume_up";
|
||||||
gpios = <&pm8921_gpio 35 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8921_gpio 35 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
keys {
|
keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
|
|
||||||
reset {
|
key-reset {
|
||||||
label = "reset";
|
label = "reset";
|
||||||
gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
|
gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
|
||||||
linux,code = <KEY_RESTART>;
|
linux,code = <KEY_RESTART>;
|
||||||
|
@ -187,12 +187,12 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio_keys {
|
gpio-keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
pinctrl-0 = <&buttons_pins>;
|
pinctrl-0 = <&buttons_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
button@1 {
|
button {
|
||||||
label = "reset";
|
label = "reset";
|
||||||
linux,code = <KEY_RESTART>;
|
linux,code = <KEY_RESTART>;
|
||||||
gpios = <&qcom_pinmux 66 GPIO_ACTIVE_LOW>;
|
gpios = <&qcom_pinmux 66 GPIO_ACTIVE_LOW>;
|
||||||
|
@ -65,19 +65,19 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio_keys {
|
gpio-keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
pinctrl-0 = <&buttons_pins>;
|
pinctrl-0 = <&buttons_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
button@1 {
|
button-1 {
|
||||||
label = "reset";
|
label = "reset";
|
||||||
linux,code = <KEY_RESTART>;
|
linux,code = <KEY_RESTART>;
|
||||||
gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
|
gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
debounce-interval = <60>;
|
debounce-interval = <60>;
|
||||||
};
|
};
|
||||||
button@2 {
|
button-2 {
|
||||||
label = "wps";
|
label = "wps";
|
||||||
linux,code = <KEY_WPS_BUTTON>;
|
linux,code = <KEY_WPS_BUTTON>;
|
||||||
gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
|
gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
|
||||||
|
@ -24,14 +24,14 @@
|
|||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&gpio_keys_pin_a>;
|
pinctrl-0 = <&gpio_keys_pin_a>;
|
||||||
|
|
||||||
volume-up {
|
key-volume-up {
|
||||||
label = "volume_up";
|
label = "volume_up";
|
||||||
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
linux,code = <KEY_VOLUMEUP>;
|
linux,code = <KEY_VOLUMEUP>;
|
||||||
};
|
};
|
||||||
|
|
||||||
volume-down {
|
key-volume-down {
|
||||||
label = "volume_down";
|
label = "volume_down";
|
||||||
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
|
@ -20,28 +20,28 @@
|
|||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&gpio_keys_pin_a>;
|
pinctrl-0 = <&gpio_keys_pin_a>;
|
||||||
|
|
||||||
volume-down {
|
key-volume-down {
|
||||||
label = "volume_down";
|
label = "volume_down";
|
||||||
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
linux,code = <KEY_VOLUMEDOWN>;
|
linux,code = <KEY_VOLUMEDOWN>;
|
||||||
};
|
};
|
||||||
|
|
||||||
camera-snapshot {
|
key-camera-snapshot {
|
||||||
label = "camera_snapshot";
|
label = "camera_snapshot";
|
||||||
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
linux,code = <KEY_CAMERA>;
|
linux,code = <KEY_CAMERA>;
|
||||||
};
|
};
|
||||||
|
|
||||||
camera-focus {
|
key-camera-focus {
|
||||||
label = "camera_focus";
|
label = "camera_focus";
|
||||||
gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
linux,code = <KEY_CAMERA_FOCUS>;
|
linux,code = <KEY_CAMERA_FOCUS>;
|
||||||
};
|
};
|
||||||
|
|
||||||
volume-up {
|
key-volume-up {
|
||||||
label = "volume_up";
|
label = "volume_up";
|
||||||
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&gpio_keys_pin_a>;
|
pinctrl-0 = <&gpio_keys_pin_a>;
|
||||||
|
|
||||||
camera-snapshot {
|
key-camera-snapshot {
|
||||||
label = "camera_snapshot";
|
label = "camera_snapshot";
|
||||||
gpios = <&pm8941_gpios 1 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 1 GPIO_ACTIVE_LOW>;
|
||||||
linux,code = <KEY_CAMERA>;
|
linux,code = <KEY_CAMERA>;
|
||||||
@ -33,7 +33,7 @@
|
|||||||
debounce-interval = <15>;
|
debounce-interval = <15>;
|
||||||
};
|
};
|
||||||
|
|
||||||
volume-down {
|
key-volume-down {
|
||||||
label = "volume_down";
|
label = "volume_down";
|
||||||
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
|
||||||
linux,code = <KEY_VOLUMEDOWN>;
|
linux,code = <KEY_VOLUMEDOWN>;
|
||||||
@ -41,7 +41,7 @@
|
|||||||
debounce-interval = <15>;
|
debounce-interval = <15>;
|
||||||
};
|
};
|
||||||
|
|
||||||
volume-up {
|
key-volume-up {
|
||||||
label = "volume_up";
|
label = "volume_up";
|
||||||
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
|
||||||
linux,code = <KEY_VOLUMEUP>;
|
linux,code = <KEY_VOLUMEUP>;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&gpio_keys_pin_a>;
|
pinctrl-0 = <&gpio_keys_pin_a>;
|
||||||
|
|
||||||
volume-down {
|
key-volume-down {
|
||||||
label = "volume_down";
|
label = "volume_down";
|
||||||
gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>;
|
gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
@ -33,7 +33,7 @@
|
|||||||
debounce-interval = <15>;
|
debounce-interval = <15>;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-key {
|
key-home {
|
||||||
label = "home_key";
|
label = "home_key";
|
||||||
gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
|
gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
@ -42,7 +42,7 @@
|
|||||||
debounce-interval = <15>;
|
debounce-interval = <15>;
|
||||||
};
|
};
|
||||||
|
|
||||||
volume-up {
|
key-volume-up {
|
||||||
label = "volume_up";
|
label = "volume_up";
|
||||||
gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
|
gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
|
@ -24,28 +24,28 @@
|
|||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&gpio_keys_pin_a>;
|
pinctrl-0 = <&gpio_keys_pin_a>;
|
||||||
|
|
||||||
volume-down {
|
key-volume-down {
|
||||||
label = "volume_down";
|
label = "volume_down";
|
||||||
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
linux,code = <KEY_VOLUMEDOWN>;
|
linux,code = <KEY_VOLUMEDOWN>;
|
||||||
};
|
};
|
||||||
|
|
||||||
camera-snapshot {
|
key-camera-snapshot {
|
||||||
label = "camera_snapshot";
|
label = "camera_snapshot";
|
||||||
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
linux,code = <KEY_CAMERA>;
|
linux,code = <KEY_CAMERA>;
|
||||||
};
|
};
|
||||||
|
|
||||||
camera-focus {
|
key-camera-focus {
|
||||||
label = "camera_focus";
|
label = "camera_focus";
|
||||||
gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
linux,code = <KEY_CAMERA_FOCUS>;
|
linux,code = <KEY_CAMERA_FOCUS>;
|
||||||
};
|
};
|
||||||
|
|
||||||
volume-up {
|
key-volume-up {
|
||||||
label = "volume_up";
|
label = "volume_up";
|
||||||
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
|
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
|
||||||
linux,input-type = <1>;
|
linux,input-type = <1>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user