diff options
author | Sebastian Reichel <sebastian.reichel@collabora.co.uk> | 2018-02-11 16:15:05 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2018-02-14 12:26:11 -0500 |
commit | 6d7bdd328da42cd08bc98f6d1bcc402c68eed33e (patch) | |
tree | 4b974cacbde3abd342a0eae74168cc3cae035b8f | |
parent | f88bf4fceaa17159dfabb27949caf91c436bfac2 (diff) |
ARM: dts: omap4-droid4: update touchscreen
Update the Droid 4 devicetree to properly describe the reset
GPIO. Also rename the node to touchscreen instead of tsp,
which seems to be commonly used for touchscreens.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/boot/dts/omap4-droid4-xt894.dts | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts index b21084da490b..65c2cc6a9a30 100644 --- a/arch/arm/boot/dts/omap4-droid4-xt894.dts +++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts | |||
@@ -124,13 +124,6 @@ | |||
124 | }; | 124 | }; |
125 | 125 | ||
126 | &gpio6 { | 126 | &gpio6 { |
127 | touchscreen_reset { | ||
128 | gpio-hog; | ||
129 | gpios = <13 0>; | ||
130 | output-high; | ||
131 | line-name = "touchscreen-reset"; | ||
132 | }; | ||
133 | |||
134 | pwm8: dmtimer-pwm-8 { | 127 | pwm8: dmtimer-pwm-8 { |
135 | pinctrl-names = "default"; | 128 | pinctrl-names = "default"; |
136 | pinctrl-0 = <&vibrator_direction_pin>; | 129 | pinctrl-0 = <&vibrator_direction_pin>; |
@@ -362,22 +355,18 @@ | |||
362 | }; | 355 | }; |
363 | }; | 356 | }; |
364 | 357 | ||
365 | /* | ||
366 | * REVISIT: Add gpio173 reset pin handling to the driver, see gpio-hog above. | ||
367 | * If the GPIO reset is used, we probably need to have /lib/firmware/maxtouch.fw | ||
368 | * available. See "mxt-app" and "droid4-touchscreen-firmware" tools for more | ||
369 | * information. | ||
370 | */ | ||
371 | &i2c2 { | 358 | &i2c2 { |
372 | tsp@4a { | 359 | touchscreen@4a { |
373 | compatible = "atmel,maxtouch"; | 360 | compatible = "atmel,maxtouch"; |
374 | reg = <0x4a>; | 361 | reg = <0x4a>; |
375 | pinctrl-names = "default"; | 362 | pinctrl-names = "default"; |
376 | pinctrl-0 = <&touchscreen_pins>; | 363 | pinctrl-0 = <&touchscreen_pins>; |
377 | 364 | ||
365 | reset-gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; /* gpio173 */ | ||
366 | |||
378 | /* gpio_183 with sys_nirq2 pad as wakeup */ | 367 | /* gpio_183 with sys_nirq2 pad as wakeup */ |
379 | interrupts-extended = <&gpio6 23 IRQ_TYPE_EDGE_FALLING | 368 | interrupts-extended = <&gpio6 23 IRQ_TYPE_EDGE_FALLING>, |
380 | &omap4_pmx_core 0x160>; | 369 | <&omap4_pmx_core 0x160>; |
381 | interrupt-names = "irq", "wakeup"; | 370 | interrupt-names = "irq", "wakeup"; |
382 | wakeup-source; | 371 | wakeup-source; |
383 | }; | 372 | }; |
@@ -435,6 +424,7 @@ | |||
435 | 424 | ||
436 | touchscreen_pins: pinmux_touchscreen_pins { | 425 | touchscreen_pins: pinmux_touchscreen_pins { |
437 | pinctrl-single,pins = < | 426 | pinctrl-single,pins = < |
427 | OMAP4_IOPAD(0x180, PIN_OUTPUT | MUX_MODE3) | ||
438 | OMAP4_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE3) | 428 | OMAP4_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE3) |
439 | >; | 429 | >; |
440 | }; | 430 | }; |