diff mbox series

[v1] ARM: tegra: nexus7: Add touchscreen

Message ID 20200814002138.12312-1-digetx@gmail.com
State New
Headers show
Series [v1] ARM: tegra: nexus7: Add touchscreen | expand

Commit Message

Dmitry Osipenko Aug. 14, 2020, 12:21 a.m. UTC
Nexus 7 2012 has Elantech EKTF3624 touchscreen, this patch adds TS node to
the device-tree.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---

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(+)

Comments

Thierry Reding Sept. 17, 2020, 10:22 a.m. UTC | #1
On Fri, Aug 14, 2020 at 03:21:38AM +0300, Dmitry Osipenko wrote:
> Nexus 7 2012 has Elantech EKTF3624 touchscreen, this patch adds TS node to
> the device-tree.
> 
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> ---
> 
> 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
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-common.dtsi b/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-common.dtsi
index 3922517145e7..e2d5fbacf9b4 100644
--- a/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-common.dtsi
+++ b/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-common.dtsi
@@ -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 {