Skip to contentSkip to conversation

staging: Add Cypress TTSP G3 support

PATCH In review Javier Martinez Canillas 2 participants 7 messages Jul 28, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

This patchset adds support to Cypress (TTSP) touchscreen hardware.

The original author of this code is Kevin McNeely <[email protected]>.

The patchset is divided in three patchs:

[PATCH 1/3] staging: cyttsp: Add Cypress TTSP G3 Core Driver [PATCH 2/3] staging: cyttsp: Add Cypress TTSP G3 I2C Device Driver [PATCH 3/3] staging: cyttsp: Add Cypress TTSP G3 SPI Device Driver

The fist one adds the core support for the TTSP touchscreen and the other two adds communications modules for I2C and SPI buses respectively.

#1 lore raw

PATCH 1/3 staging: cyttsp: Add Cypress TTSP G3 Core Driver

Cypress TTSP Gen3 Core Driver.
Core Driver includes platform data definition file, core driver definition file, and core touchscreen touch handling of device data. Generates multi-touch input events.

The original author of this driver is: Kevin McNeely <[email protected]>

---
 drivers/staging/Kconfig              |    2 +
 drivers/staging/Makefile             |    1 +
 drivers/staging/cyttsp/Kconfig       |   21 +
 drivers/staging/cyttsp/Makefile      |    1 +
 drivers/staging/cyttsp/cyttsp.h      |   68 +++
 drivers/staging/cyttsp/cyttsp_core.c |  757 ++++++++++++++++++++++++++++++++++
 drivers/staging/cyttsp/cyttsp_core.h |   55 +++
 7 files changed, 905 insertions(+), 0 deletions(-)
 create mode 100644 drivers/staging/cyttsp/Kconfig
 create mode 100644 drivers/staging/cyttsp/Makefile
 create mode 100644 drivers/staging/cyttsp/cyttsp.h
 create mode 100644 drivers/staging/cyttsp/cyttsp_core.c
 create mode 100644 drivers/staging/cyttsp/cyttsp_core.h
drivers/staging/Kconfig +2 -0
index 06c9081..45bd09f 100644
@@ -150,4 +150,6 @@ source "drivers/staging/mei/Kconfig"
 
 source "drivers/staging/nvec/Kconfig"
 
+source "drivers/staging/cyttsp/Kconfig"
+
 endif # STAGING
drivers/staging/Makefile +1 -0
index f3c5e33..b243448 100644
@@ -66,3 +66,4 @@ obj-$(CONFIG_TOUCHSCREEN_SYNAPTICS_I2C_RMI4)	+= ste_rmi4/
 obj-$(CONFIG_DRM_PSB)		+= gma500/
 obj-$(CONFIG_INTEL_MEI)		+= mei/
 obj-$(CONFIG_MFD_NVEC)		+= nvec/
+obj-$(TOUCHSCREEN_CYTTSP_CORE)  += cyttsp/
drivers/staging/cyttsp/Kconfig new file +21 -0
new file mode 100644
index 0000000..6849d3a
@@ -0,0 +1,21 @@
+config TOUCHSCREEN_CYTTSP_CORE
+       tristate "Cypress TTSP touchscreen core"
+       help
+         Say Y here if you have a Cypress TTSP touchscreen and want
+         built-in support for it.
+
+         If unsure, say N.
+
+         To compile this driver as a module, choose M here: the
+         module will be called cyttsp_core.
+
+       help
+         Say Y here if you have a Cypress TTSP touchscreen and want
+       help
+         Say Y here if you have a Cypress TTSP touchscreen and want
+         built-in support for it.
+
+         If unsure, say N.
+
+         To compile this driver as a module, choose M here: the
+         module will be called cyttsp_core.
drivers/staging/cyttsp/Makefile new file +1 -0
new file mode 100644
index 0000000..d1b250f
@@ -0,0 +1 @@
+obj-$(CONFIG_TOUCHSCREEN_CYTTSP_CORE)   += cyttsp_core.o
drivers/staging/cyttsp/cyttsp.h new file +68 -0

68 lines not on this page · raw message

drivers/staging/cyttsp/cyttsp_core.c new file +756 -0

756 lines not on this page · raw message

drivers/staging/cyttsp/cyttsp_core.h new file +55 -0

55 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#2 lore raw

PATCH 2/3 staging: cyttsp: Add Cypress TTSP G3 I2C Device Driver

In reply to Javier Martinez Canillas

Cypress TTSP Gen3 I2C Device Driver.
Provides i2c communications modules for the
Cypress TTSP Gen3 MTDEV Core Driver.

The original author of this driver is: Kevin McNeely <[email protected]>

---
 drivers/staging/cyttsp/Kconfig      |   12 +++
 drivers/staging/cyttsp/Makefile     |    1 +
 drivers/staging/cyttsp/cyttsp_i2c.c |  188 +++++++++++++++++++++++++++++++++++
 3 files changed, 201 insertions(+), 0 deletions(-)
 create mode 100644 drivers/staging/cyttsp/cyttsp_i2c.c
drivers/staging/cyttsp/Kconfig +12 -0
index 6849d3a..b1ffb2a 100644
@@ -19,3 +19,15 @@ config TOUCHSCREEN_CYTTSP_CORE
 
          To compile this driver as a module, choose M here: the
          module will be called cyttsp_core.
+
+config TOUCHSCREEN_CYTTSP_I2C
+       tristate "Cypress TTSP i2c touchscreen"
+       depends on I2C && TOUCHSCREEN_CYTTSP_CORE
+       help
+         Say Y here if you have a Cypress TTSP touchscreen
+         connected to your system with an I2C interface.
+
+         If unsure, say N.
+
+         To compile this driver as a module, choose M here: the
+         module will be called cyttsp-i2c.
drivers/staging/cyttsp/Makefile +1 -0
index d1b250f..9101dc9 100644
@@ -1 +1,2 @@
 obj-$(CONFIG_TOUCHSCREEN_CYTTSP_CORE)   += cyttsp_core.o
+obj-$(CONFIG_TOUCHSCREEN_CYTTSP_I2C)    += cyttsp_i2c.o
drivers/staging/cyttsp/cyttsp_i2c.c new file +188 -0

188 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#3 lore raw

PATCH 3/3 staging: cyttsp: Add Cypress TTSP G3 SPI Device Driver

In reply to Javier Martinez Canillas

Cypress TTSP Gen3 SPI Device Driver.
Provides spi communications modules for the
Cypress TTSP Gen3 MTDEV Core Driver.

The original author of this driver is: Kevin McNeely <[email protected]>

---
 drivers/staging/cyttsp/Kconfig      |   12 ++
 drivers/staging/cyttsp/Makefile     |    1 +
 drivers/staging/cyttsp/cyttsp_spi.c |  318 +++++++++++++++++++++++++++++++++++
 3 files changed, 331 insertions(+), 0 deletions(-)
 create mode 100644 drivers/staging/cyttsp/cyttsp_spi.c
drivers/staging/cyttsp/Kconfig +12 -0
index b1ffb2a..cb661ca 100644
@@ -31,3 +31,15 @@ config TOUCHSCREEN_CYTTSP_I2C
 
          To compile this driver as a module, choose M here: the
          module will be called cyttsp-i2c.
+
+config TOUCHSCREEN_CYTTSP_SPI
+       tristate "Cypress TTSP spi touchscreen"
+       depends on SPI_MASTER && TOUCHSCREEN_CYTTSP_CORE
+       help
+         Say Y here if you have a Cypress TTSP touchscreen
+         connected to your  with an SPI interface.
+
+         If unsure, say N.
+
+         To compile this driver as a module, choose M here: the
+         module will be called cyttsp-spi.
drivers/staging/cyttsp/Makefile +1 -0
index 9101dc9..687eeaa 100644
@@ -1,2 +1,3 @@
 obj-$(CONFIG_TOUCHSCREEN_CYTTSP_CORE)   += cyttsp_core.o
 obj-$(CONFIG_TOUCHSCREEN_CYTTSP_I2C)    += cyttsp_i2c.o
+obj-$(CONFIG_TOUCHSCREEN_CYTTSP_SPI)    += cyttsp_spi.o
drivers/staging/cyttsp/cyttsp_spi.c new file +318 -0

318 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#4 lore raw

Re: [PATCH 3/3] staging: cyttsp: Add Cypress TTSP G3 SPI Device Driver

This is nice to have by why went it into the janitor-ml ?

re,
wh

Am 28.07.2011 12:27, schrieb Javier Martinez Canillas:

Quoted 8 lines

Cypress TTSP Gen3 SPI Device Driver.
Provides spi communications modules for the
Cypress TTSP Gen3 MTDEV Core Driver.

The original author of this driver is: Kevin McNeely <[email protected]>

---

#5 lore raw

Re: [PATCH 3/3] staging: cyttsp: Add Cypress TTSP G3 SPI Device Driver

Quoted 6 lines · walter harms

This is nice to have by why went it into the janitor-ml ?

re,
 wh

Yes, my mistake I wanted to send to the staging mailing list ([email protected]) but I confused the address and cc'ed [email protected] instead.

I'd already sent to the correct staging ml also.

Best regards,

Signature · 6 lines
Javier Martínez Canillas
(+34) 682 39 81 69
PhD Student in High Performance Computing
Computer Architecture and Operating System Department (CAOS)
Universitat Autònoma de Barcelona
Barcelona, Spain
#6 lore raw

Re: [PATCH 3/3] staging: cyttsp: Add Cypress TTSP G3 SPI Device Driver

Quoted 3 lines

Yes, my mistake I wanted to send to the staging mailing list ([email protected]) but I confused the address and cc'ed

I meant to: [email protected], damn I wake up stupid today.

Signature · 6 lines
Javier Martínez Canillas
(+34) 682 39 81 69
PhD Student in High Performance Computing
Computer Architecture and Operating System Department (CAOS)
Universitat Autònoma de Barcelona
Barcelona, Spain