[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230105123240.1089375-6-nikita@trvn.ru>
Date: Thu, 5 Jan 2023 17:32:37 +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 5/8] arm64: dts: qcom: msm8916-samsung-gt510: Add touchscreen
From: Jasper Korten <jja2000@...il.com>
gt510 uses maXTouch mXT1664T3 touch controller. Add it and regulators
that supply it.
Signed-off-by: Jasper Korten <jja2000@...il.com>
Co-developed-by: Nikita Travkin <nikita@...n.ru>
Signed-off-by: Nikita Travkin <nikita@...n.ru>
---
.../boot/dts/qcom/msm8916-samsung-gt510.dts | 58 +++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts
index 44d527b3f1f6..6331166d9067 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts
@@ -32,6 +32,29 @@ reg_motor_vdd: regulator-motor-vdd {
pinctrl-names = "default";
};
+ reg_tsp_1p8v: regulator-tsp-1p8v {
+ compatible = "regulator-fixed";
+ regulator-name = "tsp_1p8v";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+
+ gpio = <&msmgpio 73 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+
+ pinctrl-0 = <&tsp_en_default>;
+ pinctrl-names = "default";
+ };
+
+ reg_tsp_3p3v: regulator-tsp-3p3v {
+ compatible = "regulator-fixed";
+ regulator-name = "tsp_3p3v";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+
+ gpio = <&msmgpio 73 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
vibrator {
compatible = "pwm-vibrator";
@@ -42,6 +65,25 @@ vibrator {
};
};
+&blsp_i2c5 {
+ status = "okay";
+
+ touchscreen@4a {
+ compatible = "atmel,maxtouch";
+ reg = <0x4a>;
+ interrupt-parent = <&msmgpio>;
+ interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
+
+ vdd-supply = <®_tsp_1p8v>;
+ vdda-supply = <®_tsp_3p3v>;
+
+ reset-gpios = <&msmgpio 114 GPIO_ACTIVE_LOW>;
+
+ pinctrl-0 = <&tsp_int_rst_default>;
+ pinctrl-names = "default";
+ };
+};
+
&msmgpio {
motor_en_default: motor-en-default-state {
pins = "gpio76";
@@ -55,4 +97,20 @@ motor_pwm_default: motor-pwm-default-state {
pins = "gpio50";
function = "gcc_gp2_clk_a";
};
+
+ tsp_en_default: tsp-en-default-state {
+ pins = "gpio73";
+ function = "gpio";
+
+ drive-strength = <2>;
+ bias-disable;
+ };
+
+ tsp_int_rst_default: tsp-int-rst-default-state {
+ pins = "gpio13", "gpio114";
+ function = "gpio";
+
+ drive-strength = <2>;
+ bias-disable;
+ };
};
--
2.38.1
Powered by blists - more mailing lists