summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2024-07-23 13:28:30 +0200
committerBjorn Andersson <andersson@kernel.org>2024-10-29 16:11:16 +0100
commit31a31cd74de6a2408d907630a7294cadc7e32049 (patch)
tree0a4cda0590fee7b80a107f9efd05032e91e2e773 /arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts
parentarm64: dts: qcom: msm8998-lenovo-miix-630: enable aDSP and SLPI (diff)
downloadlinux-31a31cd74de6a2408d907630a7294cadc7e32049.tar.xz
linux-31a31cd74de6a2408d907630a7294cadc7e32049.zip
arm64: dts: qcom: msm8998-lenovo-miix-630: enable VolumeUp button
Add gpio-keys device, responsible for a single button: Volume Up. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com> Link: https://lore.kernel.org/r/20240723-miix630-support-v2-3-7d98f6047a17@linaro.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts b/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts
index 2430f17b2356..fad5f390171a 100644
--- a/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts
+++ b/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts
@@ -3,12 +3,29 @@
/dts-v1/;
+#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include "msm8998-clamshell.dtsi"
/ {
model = "Lenovo Miix 630";
compatible = "lenovo,miix-630", "qcom,msm8998";
chassis-type = "convertible";
+
+ gpio-keys {
+ compatible = "gpio-keys";
+ autorepeat;
+
+ pinctrl-0 = <&vol_up_pin_a>;
+ pinctrl-names = "default";
+
+ key-vol-up {
+ label = "Volume Up";
+ gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_VOLUMEUP>;
+ debounce-interval = <15>;
+ linux,can-disable;
+ };
+ };
};
&blsp1_i2c5 {
@@ -43,6 +60,16 @@
};
};
+&pm8998_gpios {
+ vol_up_pin_a: vol-up-active-state {
+ pins = "gpio6";
+ function = "normal";
+ input-enable;
+ bias-pull-up;
+ qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
+ };
+};
+
&remoteproc_adsp {
firmware-name = "qcom/msm8998/LENOVO/81F1/qcadsp8998.mbn";