Skip to contentSkip to conversation

TOUCHSCREEN: S3C24XX touchscreen driver from Arnaud Patard.

PATCH Applied Ben Dooks 2 participants 2 messages Nov 23, 2009

Subsystems (3)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

From: Arnaud Patard <[email protected]>

S3C24XX touchscreen driver, originally written by Arnaud Patard and other contributors. This driver is the version from the Simtec Electronics tree, and as such is the best place to start and thus proposed to be merged into the linux input system.

The driver has had substantial testing as well as a number of tidying up passes done by Ben Dooks, as noted:

- added kernel-doc comments to most of the routines
- removed old code from pre adc framework days
- updated device probe code to use platform id list matching
- cleaned up debug, since printk() now has timestamp feature
- ensure code uses dev_() reporting macros where necessary
- remove ABS_PRESSURE reporting, tslib can be fixed
- ensure timer is removed on driver exit
- move to using dev_pmops for power management

---

The following issues are yet to be resolved:

1) The usage of the clk_api() to get the clock for the ADC. The clock should really be managed by the core adc layer but we have yet to add any guarantees about keeping the clock enabled to allow the touchscreen to function when it is registered.

2) Currently the only registers that the touchscreen driver touches are the ones specifically for the touchscreen, but this stil involves the mapping of the ADC block the core driver has already mapped for itself.

We could look at adding an API to allow the touchscreen driver to talk to the registers via the core ADC driver, or just move the necessary functionality into the core driver.

Since these issues require synchronisation with the core ADC driver which is scheduled to undergo some arch changes and moves it is better to get this merged and then do the necessary updates post merge.

 drivers/input/touchscreen/Kconfig      |   12 
 drivers/input/touchscreen/Makefile     |    1 
 drivers/input/touchscreen/s3c2410_ts.c |  454 +++++++++++++++++++++++++++++++++
 3 files changed, 467 insertions(+)
drivers/input/touchscreen/Kconfig +12 -0
Index: b/drivers/input/touchscreen/Kconfig
===================================================================
@@ -133,6 +133,18 @@ config TOUCHSCREEN_FUJITSU
 	  To compile this driver as a module, choose M here: the
 	  module will be called fujitsu-ts.
 
+config TOUCHSCREEN_S3C2410
+	tristate "Samsung S3C2410 touchscreen input driver"
+	depends on ARCH_S3C2410
+	select S3C24XX_ADC
+	help
+	  Say Y here if you have the s3c2410 touchscreen.
+
+	  If unsure, say N.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called s3c2410_ts.
+
 config TOUCHSCREEN_GUNZE
 	tristate "Gunze AHL-51S touchscreen"
 	select SERIO
drivers/input/touchscreen/Makefile +1 -0
Index: b/drivers/input/touchscreen/Makefile
===================================================================
@@ -26,6 +26,7 @@ obj-$(CONFIG_TOUCHSCREEN_HP7XX)		+= jorn
 obj-$(CONFIG_TOUCHSCREEN_HTCPEN)	+= htcpen.o
 obj-$(CONFIG_TOUCHSCREEN_USB_COMPOSITE)	+= usbtouchscreen.o
 obj-$(CONFIG_TOUCHSCREEN_PENMOUNT)	+= penmount.o
+obj-$(CONFIG_TOUCHSCREEN_S3C2410)	+= s3c2410_ts.o
 obj-$(CONFIG_TOUCHSCREEN_TOUCHIT213)	+= touchit213.o
 obj-$(CONFIG_TOUCHSCREEN_TOUCHRIGHT)	+= touchright.o
 obj-$(CONFIG_TOUCHSCREEN_TOUCHWIN)	+= touchwin.o
drivers/input/touchscreen/s3c2410_ts.c new file +454 -0

454 lines not on this page · raw message

Signature · 7 lines
Ben ([email protected], http://www.fluff.org/)

  'a smiley only costs 4 bytes'
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Applied
#1 lore raw
Quoted 19 lines · Ben Dooks

From: Arnaud Patard <[email protected]>

S3C24XX touchscreen driver, originally written by Arnaud Patard and other contributors. This driver is the version from the Simtec Electronics tree, and as such is the best place to start and thus proposed to be merged into the linux input system.

The driver has had substantial testing as well as a number of tidying up passes done by Ben Dooks, as noted:

- added kernel-doc comments to most of the routines
- removed old code from pre adc framework days
- updated device probe code to use platform id list matching
- cleaned up debug, since printk() now has timestamp feature
- ensure code uses dev_() reporting macros where necessary
- remove ABS_PRESSURE reporting, tslib can be fixed
- ensure timer is removed on driver exit
- move to using dev_pmops for power management

Quoted 4 lines

Applied, thank you Ben.

Signature · 1 line
Dmitry