diff options
author | Dmitry Lifshitz <lifshitz@compulab.co.il> | 2014-09-17 08:10:07 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-09-18 12:07:52 -0400 |
commit | 1a3290b813ee71843480ece01493e23a2f4a807a (patch) | |
tree | 81ba1fc9defd41edb01ec530fd6ba1f00bf40040 | |
parent | ac84d6cc182971079df846c7814fbc5fd7b7e0f8 (diff) |
ARM: dts: cm-t54: add ADS7846 touchscreen support
Add ADS7846 touchscreen support.
Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/boot/dts/omap5-cm-t54.dts | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts index 7323b7078cdd..88f3dc6f1835 100644 --- a/arch/arm/boot/dts/omap5-cm-t54.dts +++ b/arch/arm/boot/dts/omap5-cm-t54.dts | |||
@@ -51,6 +51,13 @@ | |||
51 | enable-active-high; | 51 | enable-active-high; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | ads7846reg: ads7846-reg { | ||
55 | compatible = "regulator-fixed"; | ||
56 | regulator-name = "ads7846-reg"; | ||
57 | regulator-min-microvolt = <3300000>; | ||
58 | regulator-max-microvolt = <3300000>; | ||
59 | }; | ||
60 | |||
54 | /* HS USB Host PHY on PORT 2 */ | 61 | /* HS USB Host PHY on PORT 2 */ |
55 | hsusb2_phy: hsusb2_phy { | 62 | hsusb2_phy: hsusb2_phy { |
56 | compatible = "usb-nop-xceiv"; | 63 | compatible = "usb-nop-xceiv"; |
@@ -164,6 +171,15 @@ | |||
164 | }; | 171 | }; |
165 | }; | 172 | }; |
166 | 173 | ||
174 | &omap5_pmx_wkup { | ||
175 | |||
176 | ads7846_pins: pinmux_ads7846_pins { | ||
177 | pinctrl-single,pins = < | ||
178 | 0x02 (PIN_INPUT_PULLDOWN | MUX_MODE6) /* llib_wakereqin.gpio1_wk15 */ | ||
179 | >; | ||
180 | }; | ||
181 | }; | ||
182 | |||
167 | &omap5_pmx_core { | 183 | &omap5_pmx_core { |
168 | pinctrl-names = "default"; | 184 | pinctrl-names = "default"; |
169 | pinctrl-0 = < | 185 | pinctrl-0 = < |
@@ -300,6 +316,51 @@ | |||
300 | OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* gpio6_187.dispc_data23 */ | 316 | OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* gpio6_187.dispc_data23 */ |
301 | >; | 317 | >; |
302 | }; | 318 | }; |
319 | |||
320 | mcspi2_pins: pinmux_mcspi1_pins { | ||
321 | pinctrl-single,pins = < | ||
322 | OMAP5_IOPAD(0x00fc, PIN_INPUT | MUX_MODE0) /* mcspi2_clk */ | ||
323 | OMAP5_IOPAD(0x00fe, PIN_INPUT | MUX_MODE0) /* mcspi2_simo */ | ||
324 | OMAP5_IOPAD(0x0100, PIN_INPUT | MUX_MODE0) /* mcspi2_somi */ | ||
325 | OMAP5_IOPAD(0x0102, PIN_INPUT | MUX_MODE0) /* mcspi2_cs0 */ | ||
326 | >; | ||
327 | }; | ||
328 | }; | ||
329 | |||
330 | &mcspi2 { | ||
331 | pinctrl-names = "default"; | ||
332 | pinctrl-0 = <&mcspi2_pins>; | ||
333 | |||
334 | /* touch controller */ | ||
335 | ads7846@0 { | ||
336 | pinctrl-names = "default"; | ||
337 | pinctrl-0 = <&ads7846_pins>; | ||
338 | |||
339 | compatible = "ti,ads7846"; | ||
340 | vcc-supply = <&ads7846reg>; | ||
341 | |||
342 | reg = <0>; /* CS0 */ | ||
343 | spi-max-frequency = <1500000>; | ||
344 | |||
345 | interrupt-parent = <&gpio1>; | ||
346 | interrupts = <15 0>; /* gpio1_wk15 */ | ||
347 | pendown-gpio = <&gpio1 15 0>; | ||
348 | |||
349 | |||
350 | ti,x-min = /bits/ 16 <0x0>; | ||
351 | ti,x-max = /bits/ 16 <0x0fff>; | ||
352 | ti,y-min = /bits/ 16 <0x0>; | ||
353 | ti,y-max = /bits/ 16 <0x0fff>; | ||
354 | |||
355 | ti,x-plate-ohms = /bits/ 16 <180>; | ||
356 | ti,pressure-max = /bits/ 16 <255>; | ||
357 | |||
358 | ti,debounce-max = /bits/ 16 <30>; | ||
359 | ti,debounce-tol = /bits/ 16 <10>; | ||
360 | ti,debounce-rep = /bits/ 16 <1>; | ||
361 | |||
362 | linux,wakeup; | ||
363 | }; | ||
303 | }; | 364 | }; |
304 | 365 | ||
305 | &mmc1 { | 366 | &mmc1 { |