]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-audio.git/commitdiff
ARM: dts: dra7-evm: Add DT entry for Atmel MXT244 touch driver
authorSundar Raman <sunds@ti.com>
Wed, 7 Aug 2013 19:10:53 +0000 (14:10 -0500)
committerPraneeth Bajjuri <praneeth@ti.com>
Fri, 9 Aug 2013 21:11:21 +0000 (16:11 -0500)
This patch adds DT entry for atmel MXT244 touch driver (atmel_mxt_ts).
The device is on i2c1 and with address 0x4a. Platform configuration data
and interrupts data is added inside dra7-evm.dts file. Pinctrl for
Wakeup2 irq pin, which is used for touchscreen interrupt, has also been
updated

Change-Id: Icfb2f9e9655febaa40e6f6b3b7334462eb8e056a
Signed-off-by: Sundar Raman <a0393242@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
arch/arm/boot/dts/dra7-evm.dts

index 202cf0c8f9654604fa80f84ee35c71e84540eca1..d16605bbbb557367da720e4d85f1ec7dbb10757d 100644 (file)
@@ -93,6 +93,7 @@
                &mcasp6_pins
                &vout1_pins
                &usb_pins
+               &irq_pins
        >;
 
        atl_pins: pinmux_atl_pins {
                        0x2dc 0x00000001        /* mcasp1_axr10.mcasp6_clkx OUTPUT | MODE1 */
                        0x2e0 0x00000001        /* mcasp1_axr11.mcasp6_fsx OUTPUT | MODE1 */
                >;
+
+       irq_pins: pinmux_irq_pins {
+                pinctrl-single,pins = <
+                       0x420   0x1     /* Wakeup2 INPUT | MODE1 */
+                >;
+        };
        };
 
        usb_pins: pinmux_usb_pins {
                AVDD-supply = <&vaudio_3v3>;
                DRVDD-supply = <&vaudio_3v3>;
        };
+
+       mXT244:mXT244@4a {
+               reg = <0x4a>;
+       };
 };
 
 /include/ "tps659038.dtsi"
                };
        };
 };
+
+&mXT244 {
+       compatible = "atmel,mXT244";
+       interrupts = <0 119 0x4>;
+
+       atmel,config = <
+       /* MXT244_GEN_COMMAND(6) */
+       0x00 0x00 0x00 0x00 0x00 0x00
+       /* MXT244_GEN_POWER(7) */
+       0x20 0xff 0x32
+       /* MXT244_GEN_ACQUIRE(8) */
+       0x0a 0x00 0x05 0x00 0x00 0x00 0x09 0x23
+       /* MXT244_TOUCH_MULTI(9) */
+       0x00 0x00 0x00 0x13 0x0b 0x00 0x00 0x00 0x02 0x00
+       0x00 0x01 0x01 0x0e 0x0a 0x0a 0x0a 0x0a 0x00 0x00
+       0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
+       0x00
+       /* MXT244_TOUCH_KEYARRAY(15) */
+       0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
+       0x00
+       /* MXT244_COMMSCONFIG_T18(2) */
+       0x00 0x00
+       /* MXT244_SPT_GPIOPWM(19) */
+       0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
+       0x00 0x00 0x00 0x00 0x00 0x00
+       /* MXT244_PROCI_GRIPFACE(20) */
+       0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x50 0x28 0x04
+       0x0f 0x0a
+       /* MXT244_PROCG_NOISE(22) */
+       0x05 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0x23 0x00
+       0x00 0x05 0x0f 0x19 0x23 0x2d 0x03
+       /* MXT244_TOUCH_PROXIMITY(23) */
+       0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
+       0x00 0x00 0x00 0x00 0x00
+       /* MXT244_PROCI_ONETOUCH(24) */
+       0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
+       0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
+       /* MXT244_SPT_SELFTEST(25) */
+       0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
+       0x00 0x00 0x00 0x00
+       /* MXT244_PROCI_TWOTOUCH(27) */
+       0x00 0x00 0x00 0x00 0x00 0x00 0x00
+       /* MXT244_SPT_CTECONFIG(28) */
+       0x00 0x00 0x02 0x08 0x10 0x00 >;
+
+       atmel,x_line = <18>;
+       atmel,y_line = <12>;
+       atmel,x_size = <800>;
+       atmel,y_size = <480>;
+       atmel,blen = <0x01>;
+       atmel,threshold = <30>;
+       atmel,voltage = <2800000>;
+       atmel,orient = <0x4>;
+};