Skip to content

Commit 66aee90

Browse files
Scott Liudtor
authored andcommitted
Input: add support for Elan eKTH I2C touchscreens
This driver supports Elan eKTH I2C touchscreen controllers. Note that these are using custom protocol, as opposed to other Elan parts that use HID-over-I2C and are supported by the standard HID-multitouch driver. Signed-off-by: Scott Liu <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent af906fa commit 66aee90

File tree

4 files changed

+1317
-0
lines changed

4 files changed

+1317
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Elantech I2C Touchscreen
2+
3+
Required properties:
4+
- compatible: must be "elan,ekth3500".
5+
- reg: I2C address of the chip.
6+
- interrupt-parent: a phandle for the interrupt controller (see interrupt
7+
binding[0]).
8+
- interrupts: interrupt to which the chip is connected (see interrupt
9+
binding[0]).
10+
11+
Optional properties:
12+
- wakeup-source: touchscreen can be used as a wakeup source.
13+
- pinctrl-names: should be "default" (see pinctrl binding [1]).
14+
- pinctrl-0: a phandle pointing to the pin settings for the device (see
15+
pinctrl binding [1]).
16+
17+
[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
18+
[1]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
19+
20+
Example:
21+
&i2c1 {
22+
/* ... */
23+
24+
touchscreen@10 {
25+
compatible = "elan,ekth3500";
26+
reg = <0x10>;
27+
interrupt-parent = <&gpio4>;
28+
interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
29+
wakeup-source;
30+
};
31+
32+
/* ... */
33+
};

drivers/input/touchscreen/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,18 @@ config TOUCHSCREEN_GUNZE
347347
To compile this driver as a module, choose M here: the
348348
module will be called gunze.
349349

350+
config TOUCHSCREEN_ELAN
351+
tristate "Elan eKTH I2C touchscreen"
352+
depends on I2C
353+
help
354+
Say Y here if you have an Elan eKTH I2C touchscreen
355+
connected to your system.
356+
357+
If unsure, say N.
358+
359+
To compile this driver as a module, choose M here: the
360+
module will be called elants_i2c.
361+
350362
config TOUCHSCREEN_ELO
351363
tristate "Elo serial touchscreens"
352364
select SERIO

drivers/input/touchscreen/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ obj-$(CONFIG_TOUCHSCREEN_EDT_FT5X06) += edt-ft5x06.o
3131
obj-$(CONFIG_TOUCHSCREEN_HAMPSHIRE) += hampshire.o
3232
obj-$(CONFIG_TOUCHSCREEN_GUNZE) += gunze.o
3333
obj-$(CONFIG_TOUCHSCREEN_EETI) += eeti_ts.o
34+
obj-$(CONFIG_TOUCHSCREEN_ELAN) += elants_i2c.o
3435
obj-$(CONFIG_TOUCHSCREEN_ELO) += elo.o
3536
obj-$(CONFIG_TOUCHSCREEN_EGALAX) += egalax_ts.o
3637
obj-$(CONFIG_TOUCHSCREEN_FUJITSU) += fujitsu_ts.o

0 commit comments

Comments
 (0)