mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
ARM: dts: qcom: msm8974-klte: Add gpio-keys nodes
This introduces the gpio-keys nodes for volume/home keys and the associated pinctrl state. Signed-off-by: Daniele Debernardi <drebrez@gmail.com> Link: https://lore.kernel.org/r/20200411182122.2677248-4-iskren.chernev@gmail.com Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
9111bbf3a1
commit
8513de0392
|
|
@ -1,6 +1,9 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include "qcom-msm8974pro.dtsi"
|
||||
#include "qcom-pma8084.dtsi"
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
||||
|
||||
/ {
|
||||
model = "Samsung Galaxy S5";
|
||||
|
|
@ -205,4 +208,50 @@ serial@f991e000 {
|
|||
status = "ok";
|
||||
};
|
||||
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
input-name = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&gpio_keys_pin_a>;
|
||||
|
||||
volume-down {
|
||||
label = "volume_down";
|
||||
gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
|
||||
home-key {
|
||||
label = "home_key";
|
||||
gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_HOMEPAGE>;
|
||||
wakeup-source;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
|
||||
volume-up {
|
||||
label = "volume_up";
|
||||
gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spmi_bus {
|
||||
pma8084@0 {
|
||||
gpios@c000 {
|
||||
gpio_keys_pin_a: gpio-keys-active {
|
||||
pins = "gpio2", "gpio3", "gpio5";
|
||||
function = "normal";
|
||||
|
||||
bias-pull-up;
|
||||
power-source = <PMA8084_GPIO_S4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user