linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] ARM: tegra: nexus7: Add touchscreen
@ 2020-08-14  0:21 Dmitry Osipenko
  2020-09-17 10:22 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Osipenko @ 2020-08-14  0:21 UTC (permalink / raw)
  To: Thierry Reding, Jonathan Hunter, Michał Mirosław,
	Dmitry Torokhov, David Heidelberg
  Cc: linux-input, linux-tegra

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

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 {
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] ARM: tegra: nexus7: Add touchscreen
  2020-08-14  0:21 [PATCH v1] ARM: tegra: nexus7: Add touchscreen Dmitry Osipenko
@ 2020-09-17 10:22 ` Thierry Reding
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2020-09-17 10:22 UTC (permalink / raw)
  To: Dmitry Osipenko
  Cc: Jonathan Hunter, Michał Mirosław, Dmitry Torokhov,
	David Heidelberg, linux-input, linux-tegra

[-- Attachment #1: Type: text/plain, Size: 672 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-17 10:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-14  0:21 [PATCH v1] ARM: tegra: nexus7: Add touchscreen Dmitry Osipenko
2020-09-17 10:22 ` Thierry Reding

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).