devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Bjorn Andersson <andersson@kernel.org>,
	 Konrad Dybcio <konrad.dybcio@linaro.org>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>
Cc: Jeffrey Hugo <quic_jhugo@quicinc.com>,
	linux-arm-msm@vger.kernel.org,  devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2 3/5] arm64: dts: qcom: msm8998-lenovo-miix-630: enable VolumeUp button
Date: Tue, 23 Jul 2024 14:28:30 +0300	[thread overview]
Message-ID: <20240723-miix630-support-v2-3-7d98f6047a17@linaro.org> (raw)
In-Reply-To: <20240723-miix630-support-v2-0-7d98f6047a17@linaro.org>

Add gpio-keys device, responsible for a single button: Volume Up.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 .../boot/dts/qcom/msm8998-lenovo-miix-630.dts      | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)

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 @@ keyboard@3a {
 	};
 };
 
+&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";
 

-- 
2.39.2


  parent reply	other threads:[~2024-07-23 11:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-23 11:28 [PATCH v2 0/5] arm64: dts: qcom: improve Lenovo Miix 630 support Dmitry Baryshkov
2024-07-23 11:28 ` [PATCH v2 1/5] arm64: dts: qcom: msm8998-lenovo-miix-630: enable touchscreen Dmitry Baryshkov
2024-07-26 15:23   ` Jeffrey Hugo
2024-07-23 11:28 ` [PATCH v2 2/5] arm64: dts: qcom: msm8998-lenovo-miix-630: enable aDSP and SLPI Dmitry Baryshkov
2024-07-26 15:23   ` Jeffrey Hugo
2024-07-23 11:28 ` Dmitry Baryshkov [this message]
2024-07-23 11:42   ` [PATCH v2 3/5] arm64: dts: qcom: msm8998-lenovo-miix-630: enable VolumeUp button Konrad Dybcio
2024-07-26 15:26   ` Jeffrey Hugo
2024-07-23 11:28 ` [PATCH v2 4/5] arm64: dts: qcom: msm8998-clamshell: enable resin/VolDown Dmitry Baryshkov
2024-07-26 15:26   ` Jeffrey Hugo
2024-07-23 11:28 ` [PATCH v2 5/5] arm64: dts: qcom: msm8998-lenovo-miix-630: add WiFi calibration variant Dmitry Baryshkov
2024-07-23 11:43   ` Konrad Dybcio
2024-07-26 15:27   ` Jeffrey Hugo
2024-11-04  4:13 ` [PATCH v2 0/5] arm64: dts: qcom: improve Lenovo Miix 630 support Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240723-miix630-support-v2-3-7d98f6047a17@linaro.org \
    --to=dmitry.baryshkov@linaro.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_jhugo@quicinc.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).