MLK-14392-2 arm: dts: imx7ulp: add focaltech touch sopport
authorGao Pan <pandy.gao@nxp.com>
Fri, 10 Mar 2017 06:54:32 +0000 (14:54 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:33 +0000 (15:21 -0500)
add focaltech touch sopport

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
(cherry-pcik from c4f54a91769229e0fb4944929b2f116aa8e70ae8)

arch/arm/boot/dts/imx7ulp-evk.dts

index 694ba5a..06f8b8f 100644 (file)
                        >;
                };
 
+               pinctrl_focaltech: focaltechgrp {
+                       fsl,pins = <
+                               ULP1_PAD_PTF0__PTF0             0x20100
+                               ULP1_PAD_PTF1__PTF1             0x20100
+                       >;
+               };
+
                pinctrl_usdhc1: usdhc1grp {
                        fsl,pins = <
                                ULP1_PAD_PTE3__SDHC1_CMD        0x843
        #size-cells = <0>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_lpi2c7>;
+
+       focaltech@38 {
+               compatible = "focaltech,fts";
+               reg = <0x38>;
+               pinctrl-0 = <&pinctrl_focaltech>;
+               interrupt-parent = <&gpio3>;
+               interrupts = <0 0x02>;
+               focaltech,reset-gpio = <&gpio3 1 0x01>;
+               focaltech,irq-gpio = <&gpio3 0 0x02>;
+               focaltech,max-touch-number = <5>;
+               focaltech,display-coords =  <0 0 1080 1920>;
+
+               focaltech,have-key;
+               focaltech,key-number = <3>;
+               focaltech,keys = <139 102 158>;
+               focaltech,key-y-coord = <2000>;
+               focaltech,key-x-coords = <200 600 800>;
+       };
 };
 
 &lpi2c5 {