ARM: tegra: nexus7: Add touchscreen
authorDmitry Osipenko <digetx@gmail.com>
Fri, 14 Aug 2020 00:21:38 +0000 (03:21 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 17 Sep 2020 16:09:40 +0000 (18:09 +0200)
Nexus 7 2012 has Elantech EKTF3624 touchscreen, this patch adds TS node to
the device-tree.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra30-asus-nexus7-grouper-common.dtsi

index bca77ee33c74e775f94f80dc68b1c8774068e26b..a84b8e3f71f22930fa48238dda268fe53d5f8fb3 100644 (file)
        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 {