1b08c118cSDmitry TorokhovEDT ft5x06 based Polytouch devices
2b08c118cSDmitry Torokhov----------------------------------
3b08c118cSDmitry Torokhov
4b08c118cSDmitry TorokhovThe edt-ft5x06 driver is useful for the EDT "Polytouch" family of capacitive
5b08c118cSDmitry Torokhovtouch screens. Note that it is *not* suitable for other devices based on the
6b08c118cSDmitry Torokhovfocaltec ft5x06 devices, since they contain vendor-specific firmware. In
7b08c118cSDmitry Torokhovparticular this driver is not suitable for the Nook tablet.
8b08c118cSDmitry Torokhov
9b08c118cSDmitry TorokhovIt has been tested with the following devices:
10b08c118cSDmitry Torokhov  * EP0350M06
11b08c118cSDmitry Torokhov  * EP0430M06
12b08c118cSDmitry Torokhov  * EP0570M06
13b08c118cSDmitry Torokhov  * EP0700M06
14b08c118cSDmitry Torokhov
15b08c118cSDmitry TorokhovThe driver allows configuration of the touch screen via a set of sysfs files:
16b08c118cSDmitry Torokhov
17b08c118cSDmitry Torokhov/sys/class/input/eventX/device/device/threshold:
18*aa3d4409SMartin Kepplinger    allows setting the "click"-threshold in the range from 0 to 80.
19b08c118cSDmitry Torokhov
20b08c118cSDmitry Torokhov/sys/class/input/eventX/device/device/gain:
21b08c118cSDmitry Torokhov    allows setting the sensitivity in the range from 0 to 31. Note that
22b08c118cSDmitry Torokhov    lower values indicate higher sensitivity.
23b08c118cSDmitry Torokhov
24b08c118cSDmitry Torokhov/sys/class/input/eventX/device/device/offset:
25b08c118cSDmitry Torokhov    allows setting the edge compensation in the range from 0 to 31.
26b08c118cSDmitry Torokhov
27b08c118cSDmitry Torokhov/sys/class/input/eventX/device/device/report_rate:
28b08c118cSDmitry Torokhov    allows setting the report rate in the range from 3 to 14.
29b08c118cSDmitry Torokhov
30b08c118cSDmitry Torokhov
31b08c118cSDmitry TorokhovFor debugging purposes the driver provides a few files in the debug
32b08c118cSDmitry Torokhovfilesystem (if available in the kernel). In /sys/kernel/debug/edt_ft5x06
33b08c118cSDmitry Torokhovyou'll find the following files:
34b08c118cSDmitry Torokhov
35b08c118cSDmitry Torokhovnum_x, num_y:
36b08c118cSDmitry Torokhov    (readonly) contains the number of sensor fields in X- and
37b08c118cSDmitry Torokhov    Y-direction.
38b08c118cSDmitry Torokhov
39b08c118cSDmitry Torokhovmode:
40b08c118cSDmitry Torokhov    allows switching the sensor between "factory mode" and "operation
41b08c118cSDmitry Torokhov    mode" by writing "1" or "0" to it. In factory mode (1) it is
42b08c118cSDmitry Torokhov    possible to get the raw data from the sensor. Note that in factory
43b08c118cSDmitry Torokhov    mode regular events don't get delivered and the options described
44b08c118cSDmitry Torokhov    above are unavailable.
45b08c118cSDmitry Torokhov
46b08c118cSDmitry Torokhovraw_data:
47b08c118cSDmitry Torokhov    contains num_x * num_y big endian 16 bit values describing the raw
48b08c118cSDmitry Torokhov    values for each sensor field. Note that each read() call on this
49b08c118cSDmitry Torokhov    files triggers a new readout. It is recommended to provide a buffer
50b08c118cSDmitry Torokhov    big enough to contain num_x * num_y * 2 bytes.
51b08c118cSDmitry Torokhov
52b08c118cSDmitry TorokhovNote that reading raw_data gives a I/O error when the device is not in factory
53b08c118cSDmitry Torokhovmode. The same happens when reading/writing to the parameter files when the
54b08c118cSDmitry Torokhovdevice is not in regular operation mode.
55