[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230105123240.1089375-4-nikita@trvn.ru>
Date: Thu, 5 Jan 2023 17:32:35 +0500
From: Nikita Travkin <nikita@...n.ru>
To: Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>
Cc: Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Siddharth Manthan <siddharth.manthan@...il.com>,
Jasper Korten <jja2000@...il.com>,
linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
~postmarketos/upstreaming@...ts.sr.ht,
Nikita Travkin <nikita@...n.ru>
Subject: [PATCH 3/8] arm64: dts: qcom: msm8916-samsung-gt58: Add Vibrator
From: Siddharth Manthan <siddharth.manthan@...il.com>
Motor is powered by VPH_PWR (aka Vbat) and controlled by GPIO.
Signed-off-by: Siddharth Manthan <siddharth.manthan@...il.com>
Signed-off-by: Nikita Travkin <nikita@...n.ru>
---
.../boot/dts/qcom/msm8916-samsung-gt58.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts
index 688e9be590ba..37140d041a22 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts
@@ -8,4 +8,22 @@ / {
model = "Samsung Galaxy Tab A 8.0 (2015)";
compatible = "samsung,gt58", "qcom,msm8916";
chassis-type = "tablet";
+
+ vibrator {
+ compatible = "gpio-vibrator";
+ enable-gpios = <&msmgpio 76 GPIO_ACTIVE_HIGH>;
+
+ pinctrl-0 = <&vibrator_en_default>;
+ pinctrl-names = "default";
+ };
+};
+
+&msmgpio {
+ vibrator_en_default: vibrator-en-default-state {
+ pins = "gpio76";
+ function = "gpio";
+
+ drive-strength = <2>;
+ bias-disable;
+ };
};
--
2.38.1
Powered by blists - more mailing lists