Skip to content

Commit 5b0c03e

Browse files
alistair23dtor
authored andcommitted
Input: Add driver for Cypress Generation 5 touchscreen
This is the basic driver for the Cypress TrueTouch Gen5 touchscreen controllers. This driver supports only the I2C bus but it uses regmap so SPI support could be added later. The touchscreen can retrieve some defined zone that are handled as buttons (according to the hardware). That is why it handles button and multitouch events. Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Mylène Josserand <mylene.josserand@bootlin.com> Signed-off-by: Alistair Francis <alistair@alistair23.me> Tested-by: Andreas Kemnade <andreas@kemnade.info> # Kobo Clara HD Tested-by: Peter Geis <pgwipeout@gmail.com> Link: https://lore.kernel.org/r/20221026114908.191472-2-alistair@alistair23.me Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent cdb5132 commit 5b0c03e

File tree

3 files changed

+918
-0
lines changed

3 files changed

+918
-0
lines changed

drivers/input/touchscreen/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,22 @@ config TOUCHSCREEN_CYTTSP4_SPI
284284
To compile this driver as a module, choose M here: the
285285
module will be called cyttsp4_spi.
286286

287+
config TOUCHSCREEN_CYTTSP5
288+
tristate "Cypress TrueTouch Gen5 Touchscreen Driver"
289+
depends on I2C
290+
select REGMAP_I2C
291+
select CRC_ITU_T
292+
help
293+
Driver for Parade TrueTouch Standard Product Generation 5
294+
touchscreen controllers. I2C bus interface support only.
295+
296+
Say Y here if you have a Cypress Gen5 touchscreen.
297+
298+
If unsure, say N.
299+
300+
To compile this driver as a module, choose M here: the
301+
module will be called cyttsp5.
302+
287303
config TOUCHSCREEN_DA9034
288304
tristate "Touchscreen support for Dialog Semiconductor DA9034"
289305
depends on PMIC_DA903X

drivers/input/touchscreen/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ obj-$(CONFIG_TOUCHSCREEN_CYTTSP_SPI) += cyttsp_spi.o
3030
obj-$(CONFIG_TOUCHSCREEN_CYTTSP4_CORE) += cyttsp4_core.o
3131
obj-$(CONFIG_TOUCHSCREEN_CYTTSP4_I2C) += cyttsp4_i2c.o cyttsp_i2c_common.o
3232
obj-$(CONFIG_TOUCHSCREEN_CYTTSP4_SPI) += cyttsp4_spi.o
33+
obj-$(CONFIG_TOUCHSCREEN_CYTTSP5) += cyttsp5.o
3334
obj-$(CONFIG_TOUCHSCREEN_DA9034) += da9034-ts.o
3435
obj-$(CONFIG_TOUCHSCREEN_DA9052) += da9052_tsi.o
3536
obj-$(CONFIG_TOUCHSCREEN_DYNAPRO) += dynapro.o

0 commit comments

Comments
 (0)