Skip to contentSkip to conversation

Touchscreen: DA9052/53 touchscreen driver v6

PATCH In review Ashish Jangam 1 participant 1 message Jan 17, 2012

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

PATCH 4/7 Touchscreen: DA9052/53 touchscreen driver v6

This driver adds support for DA9052 4-wire resistive ADC interfaced touchscreen controller.

DA9052 is a MFD therefore this driver depends on DA9052 core driver for core functionalities.

---
Changes since v5:
- Use kenel APIs for enabling and disabling irqs
Changes since v4:
- Add string "compile this driver as module" in kconfig
- Replace struct da9052_tsi_reg with temp variable
- Call schedule_delayed_work() from pen down irq handler
- Mask data ready irq in pen up work
- Disable IRQs in device close and enable it in device open
- Remove set_bit() for ABS X,Y,Pressure as input_set_abs_params() does it Changes since v3:
- Remove unrequire type cast
- Prefix init code with _devinit
- Remove check for workqueue reschedule
- tsi_close() to wait for datardy intr completion
- Remove seperate workqueue
- Move cancel_work_sync to tsi_close()
- Check for drv data before tsi priv data allocation
Changes since v2:
- Replace kthreads with workqueue
- Remove kfifos
- Taken care for bus type
- Replace da9052_set/clear function with da9052_reg_update
- Add open and close functionality

---
 drivers/input/touchscreen/Kconfig      |    7 +
 drivers/input/touchscreen/Makefile     |    1 +
 drivers/input/touchscreen/da9052_tsi.c |  364 ++++++++++++++++++++++++++++++++
 3 files changed, 372 insertions(+), 0 deletions(-)
 create mode 100644 drivers/input/touchscreen/da9052_tsi.c
drivers/input/touchscreen/Kconfig +7 -0
index 4af2a18..d7a1597 100644
@@ -157,6 +157,13 @@ config TOUCHSCREEN_DA9034
 	  Say Y here to enable the support for the touchscreen found
 	  on Dialog Semiconductor DA9034 PMIC.
 
+config TOUCHSCREEN_DA9052
+	tristate "Dialog DA9052 TSI"
+	depends on PMIC_DA9052
+	help
+	  Say y here to support the touchscreen found on
+	  Dialog Semiconductor DA9052 PMIC
+
 config TOUCHSCREEN_DYNAPRO
 	tristate "Dynapro serial touchscreen"
 	select SERIO
drivers/input/touchscreen/Makefile +1 -0
index 496091e..b1ee4b7 100644
@@ -19,6 +19,7 @@ obj-$(CONFIG_TOUCHSCREEN_BITSY)		+= h3600_ts_input.o
 obj-$(CONFIG_TOUCHSCREEN_BU21013)       += bu21013_ts.o
 obj-$(CONFIG_TOUCHSCREEN_CY8CTMG110)	+= cy8ctmg110_ts.o
 obj-$(CONFIG_TOUCHSCREEN_DA9034)	+= da9034-ts.o
+obj-$(CONFIG_TOUCHSCREEN_DA9052)	+= da9052_tsi.o
 obj-$(CONFIG_TOUCHSCREEN_DYNAPRO)	+= dynapro.o
 obj-$(CONFIG_TOUCHSCREEN_HAMPSHIRE)	+= hampshire.o
 obj-$(CONFIG_TOUCHSCREEN_GUNZE)		+= gunze.o
drivers/input/touchscreen/da9052_tsi.c new file +364 -0

364 lines not on this page · raw message