ARM: dts: AM43xx: Touchscreen support
cover ARM: dts: AM43xx: Touchscreen support
Hi Benoit & Tony,
These patches add I2C touch screen support for am43x-epos-evm and am437x-gp-evm.
Relevant driver side changes are here.
http://thread.gmane.org/gmane.linux.kernel.input/35803
Please queue this for -next (3.16). Thanks.
cheers,
-roger
---
Roger Quadros (1):
ARM: dts: am43x-epos-evm: Correct Touch controller info
Sekhar Nori (1):
ARM: dts: AM437x: Add touchscreen support for GP EVM
arch/arm/boot/dts/am437x-gp-evm.dts | 20 ++++++++++++++++++++ arch/arm/boot/dts/am43x-epos-evm.dts | 12 ++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.3.2
PATCH 1/2 ARM: dts: am43x-epos-evm: Correct Touch controller info
Fixup Y resolution and add default pin state. Also update the compatible id.
--- arch/arm/boot/dts/am43x-epos-evm.dts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
arch/arm/boot/dts/am43x-epos-evm.dts +10 -2
@@ -138,6 +138,12 @@ 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */ >; }; + + pixcir_ts_pins: pixcir_ts_pins { + pinctrl-single,pins = < + 0x44 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a1.gpio1_17 */ + >; + }; }; matrix_keypad: matrix_keypad@0 {
@@ -226,7 +232,9 @@ }; pixcir_ts@5c { - compatible = "pixcir,pixcir_ts"; + compatible = "pixcir,pixcir_tangoc"; + pinctrl-names = "default"; + pinctrl-0 = <&pixcir_ts_pins>; reg = <0x5c>; interrupt-parent = <&gpio1>; interrupts = <17 0>;
@@ -234,7 +242,7 @@ attb-gpio = <&gpio1 17 GPIO_ACTIVE_HIGH>; x-size = <1024>; - y-size = <768>; + y-size = <600>; }; };
Signature · 1 line
1.8.3.2
PATCH v2 1/2 ARM: dts: am43x-epos-evm: Correct Touch controller info
From: Roger Quadros <[email protected]>
Fixup Y resolution and add default pin state. Also update the compatible id and bindings for touchscreen size.
--- arch/arm/boot/dts/am43x-epos-evm.dts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
arch/arm/boot/dts/am43x-epos-evm.dts +11 -3
@@ -138,6 +138,12 @@ 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */ >; }; + + pixcir_ts_pins: pixcir_ts_pins { + pinctrl-single,pins = < + 0x44 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a1.gpio1_17 */ + >; + }; }; matrix_keypad: matrix_keypad@0 {
@@ -226,15 +232,17 @@ }; pixcir_ts@5c { - compatible = "pixcir,pixcir_ts"; + compatible = "pixcir,pixcir_tangoc"; + pinctrl-names = "default"; + pinctrl-0 = <&pixcir_ts_pins>; reg = <0x5c>; interrupt-parent = <&gpio1>; interrupts = <17 0>; attb-gpio = <&gpio1 17 GPIO_ACTIVE_HIGH>; - x-size = <1024>; - y-size = <768>; + touchscreen-size-x = <1024>; + touchscreen-size-y = <600>; }; };
Signature · 1 line
1.8.3.2
PATCH 2/2 ARM: dts: AM437x: Add touchscreen support for GP EVM
In reply to Roger QuadrosFrom: Sekhar Nori <[email protected]>
Add touchscreen support for AM437x GP EVM using pixcir touchscreen controller.
--- arch/arm/boot/dts/am437x-gp-evm.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
arch/arm/boot/dts/am437x-gp-evm.dts +20 -0
@@ -81,6 +81,12 @@ 0x164 MUX_MODE0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */ >; }; + + pixcir_ts_pins: pixcir_ts_pins { + pinctrl-single,pins = < + 0x264 (PIN_INPUT_PULLUP | MUX_MODE7) /* spi2_d0.gpio3_22 */ + >; + }; }; &i2c0 {
@@ -93,6 +99,20 @@ status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; + + pixcir_ts@5c { + compatible = "pixcir,pixcir_tangoc"; + pinctrl-names = "default"; + pinctrl-0 = <&pixcir_ts_pins>; + reg = <0x5c>; + interrupt-parent = <&gpio3>; + interrupts = <22 0>; + + attb-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; + + x-size = <1024>; + y-size = <600>; + }; }; &epwmss0 {
Signature · 1 line
1.8.3.2
PATCH v2 2/2 ARM: dts: AM437x: Add touchscreen support for GP EVM
From: Sekhar Nori <[email protected]>
Add touchscreen support for AM437x GP EVM using pixcir touchscreen controller.
[Roger Q] - Updated bindings for touchscreen size.
--- arch/arm/boot/dts/am437x-gp-evm.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
arch/arm/boot/dts/am437x-gp-evm.dts +20 -0
@@ -81,6 +81,12 @@ 0x164 MUX_MODE0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */ >; }; + + pixcir_ts_pins: pixcir_ts_pins { + pinctrl-single,pins = < + 0x264 (PIN_INPUT_PULLUP | MUX_MODE7) /* spi2_d0.gpio3_22 */ + >; + }; }; &i2c0 {
@@ -93,6 +99,20 @@ status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; + + pixcir_ts@5c { + compatible = "pixcir,pixcir_tangoc"; + pinctrl-names = "default"; + pinctrl-0 = <&pixcir_ts_pins>; + reg = <0x5c>; + interrupt-parent = <&gpio3>; + interrupts = <22 0>; + + attb-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; + + touchscreen-size-x = <1024>; + touchscreen-size-y = <600>; + }; }; &epwmss0 {
Signature · 1 line
1.8.3.2
Quoted 9 lines · Roger Quadros
Hi Benoit & Tony,
These patches add I2C touch screen support for am43x-epos-evm and am437x-gp-evm.
Relevant driver side changes are here.
http://thread.gmane.org/gmane.linux.kernel.input/35803Please queue this for -next (3.16). Thanks.
Applying both into omap-for-v3.16/dt thanks.
Tony
Hi Tony,
Quoted 6 lines · Tony Lindgren
Quoted 5 lines · Roger Quadros
Hi Benoit & Tony,
These patches add I2C touch screen support for am43x-epos-evm and am437x-gp-evm.
Quoted 6 lines
Quoted 4 lines
Relevant driver side changes are here.
http://thread.gmane.org/gmane.linux.kernel.input/35803Please queue this for -next (3.16). Thanks.
Applying both into omap-for-v3.16/dt thanks.
There has been a change in the DT bindings [1]. i.e. x-size, y-size now become touchscreen-size-x and touchscreen-size-y. I will send a v2 for this series. Please drop these patches and take the v2 instead. Thanks.
cheers,
-roger
Quoted 9 lines · Roger Quadros
Hi Tony,
Quoted 6 lines · Tony Lindgren
Quoted 5 lines · Roger Quadros
Hi Benoit & Tony,
These patches add I2C touch screen support for am43x-epos-evm and am437x-gp-evm.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Relevant driver side changes are here.
http://thread.gmane.org/gmane.linux.kernel.input/35803Please queue this for -next (3.16). Thanks.
Applying both into omap-for-v3.16/dt thanks.
There has been a change in the DT bindings [1]. i.e. x-size, y-size now become touchscreen-size-x and touchscreen-size-y. I will send a v2 for this series. Please drop these patches and take the v2 instead. Thanks.
Sorry already pushed out, please send a fix instead against omap-for-v3.16/dt branch.
Thanks,
Tony