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,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Subject: [PATCH 3/4] arm64: dts: qcom: msm8998-lenovo-miix-630: enable VolumeUp button
Date: Mon, 22 Jul 2024 14:57:20 +0300 [thread overview]
Message-ID: <20240722-miix630-support-v1-3-a6483cfe8674@linaro.org> (raw)
In-Reply-To: <20240722-miix630-support-v1-0-a6483cfe8674@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 | 25 ++++++++++++++++++++++
1 file changed, 25 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 f585bc8ba2ce..bca309ac0cb8 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,27 @@
/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-names = "default";
+ pinctrl-0 = <&vol_up_pin_a>;
+
+ key-vol-up {
+ label = "Volume Up";
+ linux,code = <KEY_VOLUMEUP>;
+ gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>;
+ };
+ };
};
&blsp1_i2c5 {
@@ -45,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";
status = "okay";
--
2.39.2
next prev parent reply other threads:[~2024-07-22 11:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-22 11:57 [PATCH 0/4] arm64: dts: qcom: improve Lenovo Miix 630 support Dmitry Baryshkov
2024-07-22 11:57 ` [PATCH 1/4] arm64: dts: qcom: msm8998-lenovo-miix-630: enable touchscreen Dmitry Baryshkov
2024-07-22 23:22 ` Konrad Dybcio
2024-07-23 1:09 ` Dmitry Baryshkov
2024-07-23 10:01 ` Konrad Dybcio
2024-07-23 10:33 ` Dmitry Baryshkov
2024-07-22 11:57 ` [PATCH 2/4] arm64: dts: qcom: msm8998-lenovo-miix-630: enable aDSP and SLPI Dmitry Baryshkov
2024-07-22 23:23 ` Konrad Dybcio
2024-07-22 11:57 ` Dmitry Baryshkov [this message]
2024-07-22 23:24 ` [PATCH 3/4] arm64: dts: qcom: msm8998-lenovo-miix-630: enable VolumeUp button Konrad Dybcio
2024-07-23 11:11 ` Dmitry Baryshkov
2024-07-23 11:15 ` Dmitry Baryshkov
2024-07-22 11:57 ` [PATCH 4/4] arm64: dts: qcom: msm8998-clamshell: enable resin/VolDown Dmitry Baryshkov
2024-07-22 23:24 ` Konrad Dybcio
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=20240722-miix630-support-v1-3-a6483cfe8674@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).