Skip to contentSkip to conversation

ARM: tegra: nexus7: Add touchscreen

PATCH Applied Dmitry Osipenko 2 participants 2 messages Aug 14, 2020 – Sep 17, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: tegra: nexus7: Add touchscreen

Nexus 7 2012 has Elantech EKTF3624 touchscreen, this patch adds TS node to the device-tree.

---

Please note that EKTF3624 is already supported by the elan,elants_i2c.yaml binding, but elants_i2c driver doesn't support it yet becasue some of the patches [1] are still under review.

[1] https://patchwork.kernel.org/project/linux-input/list/?series=316905

 .../tegra30-asus-nexus7-grouper-common.dtsi    | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
arch/arm/boot/dts/tegra30-asus-nexus7-grouper-common.dtsi +18 -0
index 3922517145e7..e2d5fbacf9b4 100644
@@ -836,6 +836,24 @@ pwm: pwm@7000a000 {
 	i2c@7000c400 {
 		clock-frequency = <400000>;
 		status = "okay";
+
+		touchscreen@10 {
+			compatible ="elan,ektf3624";
+			reg = <0x10>;
+
+			interrupt-parent = <&gpio>;
+			interrupts = <TEGRA_GPIO(H, 4) IRQ_TYPE_LEVEL_LOW>;
+
+			reset-gpios = <&gpio TEGRA_GPIO(H, 6) GPIO_ACTIVE_LOW>;
+
+			vcc33-supply = <&vcc_3v3_ts>;
+			vccio-supply = <&vcc_3v3_ts>;
+
+			touchscreen-size-x = <2112>;
+			touchscreen-size-y = <1280>;
+			touchscreen-swapped-x-y;
+			touchscreen-inverted-x;
+		};
 	};
 
 	i2c@7000c500 {
Signature · 1 line
2.27.0
#1 lore raw
Quoted 6 lines · Dmitry Osipenko

Nexus 7 2012 has Elantech EKTF3624 touchscreen, this patch adds TS node to the device-tree.

---

Quoted 8 lines

Please note that EKTF3624 is already supported by the elan,elants_i2c.yaml binding, but elants_i2c driver doesn't support it yet becasue some of the patches [1] are still under review.

[1] https://patchwork.kernel.org/project/linux-input/list/?series=316905

 .../tegra30-asus-nexus7-grouper-common.dtsi    | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Applied to for-5.10/arm/dt, thanks.

Thierry