From d67eea973fe7f3e13221e517a3fd9ea5a9a8e5ee Mon Sep 17 00:00:00 2001 From: Kavya Nunna Date: Fri, 19 Jul 2024 14:41:37 +0530 Subject: [PATCH] ARM: dts: msm: Add volume-up key support for tuna Add changes to support volume-up key for tuna. Change-Id: I37770a4368220b95a3458a75a3a58d9f604dc0bc Signed-off-by: Kavya Nunna --- qcom/tuna-pmic-overlay.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/qcom/tuna-pmic-overlay.dtsi b/qcom/tuna-pmic-overlay.dtsi index e67bd5ad..8c01f32c 100644 --- a/qcom/tuna-pmic-overlay.dtsi +++ b/qcom/tuna-pmic-overlay.dtsi @@ -71,3 +71,33 @@ }; }; }; + +&pmxr2230_gpios { + key_vol_up { + key_vol_up_default: key_vol_up_default { + pins = "gpio6"; + function = "normal"; + input-enable; + bias-pull-up; + power-source = <1>; + }; + }; +}; + +&soc { + gpio_key { + compatible = "gpio-keys"; + label = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + vol_up { + label = "volume_up"; + gpios = <&pmxr2230_gpios 6 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; +};