diff options
author | Sundar Raman | 2013-08-07 14:10:53 -0500 |
---|---|---|
committer | Praneeth Bajjuri | 2013-08-09 16:11:21 -0500 |
commit | 5690aa96a840d3ead2941a1d3c67dc611ce2fb32 (patch) | |
tree | de3e436a3d1a2aae08de28bd460dbb03eb2be29b | |
parent | 70af0c5ff9ea2b0aa1deb8674398c4714eaf2869 (diff) | |
download | kernel-audio-5690aa96a840d3ead2941a1d3c67dc611ce2fb32.tar.gz kernel-audio-5690aa96a840d3ead2941a1d3c67dc611ce2fb32.tar.xz kernel-audio-5690aa96a840d3ead2941a1d3c67dc611ce2fb32.zip |
ARM: dts: dra7-evm: Add DT entry for Atmel MXT244 touch driver
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>
-rw-r--r-- | arch/arm/boot/dts/dra7-evm.dts | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index 202cf0c8f965..d16605bbbb55 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts | |||
@@ -93,6 +93,7 @@ | |||
93 | &mcasp6_pins | 93 | &mcasp6_pins |
94 | &vout1_pins | 94 | &vout1_pins |
95 | &usb_pins | 95 | &usb_pins |
96 | &irq_pins | ||
96 | >; | 97 | >; |
97 | 98 | ||
98 | atl_pins: pinmux_atl_pins { | 99 | atl_pins: pinmux_atl_pins { |
@@ -118,6 +119,12 @@ | |||
118 | 0x2dc 0x00000001 /* mcasp1_axr10.mcasp6_clkx OUTPUT | MODE1 */ | 119 | 0x2dc 0x00000001 /* mcasp1_axr10.mcasp6_clkx OUTPUT | MODE1 */ |
119 | 0x2e0 0x00000001 /* mcasp1_axr11.mcasp6_fsx OUTPUT | MODE1 */ | 120 | 0x2e0 0x00000001 /* mcasp1_axr11.mcasp6_fsx OUTPUT | MODE1 */ |
120 | >; | 121 | >; |
122 | |||
123 | irq_pins: pinmux_irq_pins { | ||
124 | pinctrl-single,pins = < | ||
125 | 0x420 0x1 /* Wakeup2 INPUT | MODE1 */ | ||
126 | >; | ||
127 | }; | ||
121 | }; | 128 | }; |
122 | 129 | ||
123 | usb_pins: pinmux_usb_pins { | 130 | usb_pins: pinmux_usb_pins { |
@@ -199,6 +206,10 @@ | |||
199 | AVDD-supply = <&vaudio_3v3>; | 206 | AVDD-supply = <&vaudio_3v3>; |
200 | DRVDD-supply = <&vaudio_3v3>; | 207 | DRVDD-supply = <&vaudio_3v3>; |
201 | }; | 208 | }; |
209 | |||
210 | mXT244:mXT244@4a { | ||
211 | reg = <0x4a>; | ||
212 | }; | ||
202 | }; | 213 | }; |
203 | 214 | ||
204 | /include/ "tps659038.dtsi" | 215 | /include/ "tps659038.dtsi" |
@@ -294,3 +305,57 @@ | |||
294 | }; | 305 | }; |
295 | }; | 306 | }; |
296 | }; | 307 | }; |
308 | |||
309 | &mXT244 { | ||
310 | compatible = "atmel,mXT244"; | ||
311 | interrupts = <0 119 0x4>; | ||
312 | |||
313 | atmel,config = < | ||
314 | /* MXT244_GEN_COMMAND(6) */ | ||
315 | 0x00 0x00 0x00 0x00 0x00 0x00 | ||
316 | /* MXT244_GEN_POWER(7) */ | ||
317 | 0x20 0xff 0x32 | ||
318 | /* MXT244_GEN_ACQUIRE(8) */ | ||
319 | 0x0a 0x00 0x05 0x00 0x00 0x00 0x09 0x23 | ||
320 | /* MXT244_TOUCH_MULTI(9) */ | ||
321 | 0x00 0x00 0x00 0x13 0x0b 0x00 0x00 0x00 0x02 0x00 | ||
322 | 0x00 0x01 0x01 0x0e 0x0a 0x0a 0x0a 0x0a 0x00 0x00 | ||
323 | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | ||
324 | 0x00 | ||
325 | /* MXT244_TOUCH_KEYARRAY(15) */ | ||
326 | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | ||
327 | 0x00 | ||
328 | /* MXT244_COMMSCONFIG_T18(2) */ | ||
329 | 0x00 0x00 | ||
330 | /* MXT244_SPT_GPIOPWM(19) */ | ||
331 | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | ||
332 | 0x00 0x00 0x00 0x00 0x00 0x00 | ||
333 | /* MXT244_PROCI_GRIPFACE(20) */ | ||
334 | 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x50 0x28 0x04 | ||
335 | 0x0f 0x0a | ||
336 | /* MXT244_PROCG_NOISE(22) */ | ||
337 | 0x05 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0x23 0x00 | ||
338 | 0x00 0x05 0x0f 0x19 0x23 0x2d 0x03 | ||
339 | /* MXT244_TOUCH_PROXIMITY(23) */ | ||
340 | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | ||
341 | 0x00 0x00 0x00 0x00 0x00 | ||
342 | /* MXT244_PROCI_ONETOUCH(24) */ | ||
343 | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | ||
344 | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | ||
345 | /* MXT244_SPT_SELFTEST(25) */ | ||
346 | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | ||
347 | 0x00 0x00 0x00 0x00 | ||
348 | /* MXT244_PROCI_TWOTOUCH(27) */ | ||
349 | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | ||
350 | /* MXT244_SPT_CTECONFIG(28) */ | ||
351 | 0x00 0x00 0x02 0x08 0x10 0x00 >; | ||
352 | |||
353 | atmel,x_line = <18>; | ||
354 | atmel,y_line = <12>; | ||
355 | atmel,x_size = <800>; | ||
356 | atmel,y_size = <480>; | ||
357 | atmel,blen = <0x01>; | ||
358 | atmel,threshold = <30>; | ||
359 | atmel,voltage = <2800000>; | ||
360 | atmel,orient = <0x4>; | ||
361 | }; | ||