Commit 8d909805 authored by Rudraksha Gupta's avatar Rudraksha Gupta Committed by Bjorn Andersson

ARM: dts: qcom: msm8960: expressatt: Add gpio-keys

Adds volume up, volume down, and home keys to expressatt
Signed-off-by: default avatarRudraksha Gupta <guptarud@gmail.com>
Link: https://lore.kernel.org/r/20240120-expressatt-gpio-keys-v1-1-4da7e37440b1@gmail.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent be8db0cd
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
#include "qcom-msm8960.dtsi" #include "qcom-msm8960.dtsi"
#include "pm8921.dtsi" #include "pm8921.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/input/gpio-keys.h>
/ { / {
model = "Samsung Galaxy Express SGH-I437"; model = "Samsung Galaxy Express SGH-I437";
...@@ -19,6 +22,36 @@ aliases { ...@@ -19,6 +22,36 @@ aliases {
chosen { chosen {
stdout-path = "serial0:115200n8"; stdout-path = "serial0:115200n8";
}; };
gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&gpio_keys_pin_a>;
key-home {
label = "Home";
gpios = <&msmgpio 40 GPIO_ACTIVE_LOW>;
debounce-interval = <5>;
linux,code = <KEY_HOMEPAGE>;
wakeup-event-action = <EV_ACT_ASSERTED>;
wakeup-source;
};
key-volume-up {
label = "Volume Up";
gpios = <&msmgpio 50 GPIO_ACTIVE_LOW>;
debounce-interval = <5>;
linux,code = <KEY_VOLUMEUP>;
};
key-volume-down {
label = "Volume Down";
gpios = <&msmgpio 81 GPIO_ACTIVE_LOW>;
debounce-interval = <5>;
linux,code = <KEY_VOLUMEDOWN>;
};
};
}; };
&gsbi5 { &gsbi5 {
...@@ -83,6 +116,13 @@ clk-pins { ...@@ -83,6 +116,13 @@ clk-pins {
bias-disable; bias-disable;
}; };
}; };
gpio_keys_pin_a: gpio-keys-active-state {
pins = "gpio40", "gpio50", "gpio81";
function = "gpio";
drive-strength = <8>;
bias-disable;
};
}; };
&pm8921 { &pm8921 {
......
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