From: Johan Hovold Date: Fri, 7 Mar 2025 17:12:21 +0000 (+0100) Subject: arm64: dts: qcom: x1e80100-crd: add support for volume-up key X-Git-Tag: v6.16-rc1~97^2~20^2~115^2~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9eca3fd5c336afc3b90804ec008f54ce59320aee;p=thirdparty%2Flinux.git arm64: dts: qcom: x1e80100-crd: add support for volume-up key Add support for the keypad volume-up key on the debug extension board. This is useful to have when testing PMIC interrupt handling, and the key can also be used to wake up from deep suspend states (CX shutdown). Signed-off-by: Johan Hovold Link: https://lore.kernel.org/r/20250307171222.7470-2-johan+linaro@kernel.org Signed-off-by: Bjorn Andersson --- diff --git a/arch/arm64/boot/dts/qcom/x1-crd.dtsi b/arch/arm64/boot/dts/qcom/x1-crd.dtsi index 53f329c320190..f74c576f1c134 100644 --- a/arch/arm64/boot/dts/qcom/x1-crd.dtsi +++ b/arch/arm64/boot/dts/qcom/x1-crd.dtsi @@ -52,9 +52,16 @@ gpio-keys { compatible = "gpio-keys"; - pinctrl-0 = <&hall_int_n_default>; + pinctrl-0 = <&hall_int_n_default>, <&kypd_vol_up_n>; pinctrl-names = "default"; + key-vol-up { + label = "volume_up"; + gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + switch-lid { gpios = <&tlmm 92 GPIO_ACTIVE_LOW>; linux,input-type = ; @@ -1240,6 +1247,14 @@ }; &pm8550_gpios { + kypd_vol_up_n: kypd-vol-up-n-state { + pins = "gpio6"; + function = "normal"; + power-source = <1>; /* 1.8 V */ + bias-pull-up; + input-enable; + }; + rtmr0_default: rtmr0-reset-n-active-state { pins = "gpio10"; function = "normal";