From 9fad17a56355e4fff06637addf4403944846e427 Mon Sep 17 00:00:00 2001 From: "Ivan T. Ivanov" Date: Thu, 17 Sep 2015 15:05:42 +0300 Subject: [PATCH] arm64: dts: qcom: apq8016-sbc: Add Volume Up key device node VOL/ZOOM+ button on DB410c is connected to SoC GPIO 104. Add support for it. Signed-off-by: Ivan T. Ivanov Conflicts: arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi --- .../boot/dts/qcom/apq8016-sbc-soc-pins.dtsi | 13 +++++++++++++ arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi index cf6f9c4a4d89..fc67a30b133f 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi @@ -66,4 +66,17 @@ bias-disable; }; }; + + msm_key_volp_n_default: msm_key_volp_n_default { + pinmux { + function = "gpio"; + pins = "gpio107"; + }; + pinconf { + pins = "gpio107"; + drive-strength = <8>; + input-enable; + bias-pull-up; + }; + }; }; diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index 9a2f5a05ab67..79e190acb475 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi @@ -12,6 +12,7 @@ */ #include +#include #include #include "msm8916.dtsi" #include "pm8916.dtsi" @@ -144,7 +145,24 @@ pinctrl-names = "default"; pinctrl-0 = <&usb_id_default>; }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + + pinctrl-names = "default"; + pinctrl-0 = <&msm_key_volp_n_default>; + + button@0 { + label = "Volume Up"; + linux,code = ; + gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; + }; + }; }; + &blsp_dma { status = "okay"; }; -- 2.39.5