Back to home page

OSCL-LXR

 
 

    


0001 EDT ft5x06 based Polytouch devices
0002 ----------------------------------
0003 
0004 The edt-ft5x06 driver is useful for the EDT "Polytouch" family of capacitive
0005 touch screens. Note that it is *not* suitable for other devices based on the
0006 focaltec ft5x06 devices, since they contain vendor-specific firmware. In
0007 particular this driver is not suitable for the Nook tablet.
0008 
0009 It has been tested with the following devices:
0010   * EP0350M06
0011   * EP0430M06
0012   * EP0570M06
0013   * EP0700M06
0014 
0015 The driver allows configuration of the touch screen via a set of sysfs files:
0016 
0017 /sys/class/input/eventX/device/device/threshold:
0018     allows setting the "click"-threshold in the range from 0 to 80.
0019 
0020 /sys/class/input/eventX/device/device/gain:
0021     allows setting the sensitivity in the range from 0 to 31. Note that
0022     lower values indicate higher sensitivity.
0023 
0024 /sys/class/input/eventX/device/device/offset:
0025     allows setting the edge compensation in the range from 0 to 31.
0026 
0027 /sys/class/input/eventX/device/device/report_rate:
0028     allows setting the report rate in the range from 3 to 14.
0029 
0030 
0031 For debugging purposes the driver provides a few files in the debug
0032 filesystem (if available in the kernel). In /sys/kernel/debug/edt_ft5x06
0033 you'll find the following files:
0034 
0035 num_x, num_y:
0036     (readonly) contains the number of sensor fields in X- and
0037     Y-direction.
0038 
0039 mode:
0040     allows switching the sensor between "factory mode" and "operation
0041     mode" by writing "1" or "0" to it. In factory mode (1) it is
0042     possible to get the raw data from the sensor. Note that in factory
0043     mode regular events don't get delivered and the options described
0044     above are unavailable.
0045 
0046 raw_data:
0047     contains num_x * num_y big endian 16 bit values describing the raw
0048     values for each sensor field. Note that each read() call on this
0049     files triggers a new readout. It is recommended to provide a buffer
0050     big enough to contain num_x * num_y * 2 bytes.
0051 
0052 Note that reading raw_data gives a I/O error when the device is not in factory
0053 mode. The same happens when reading/writing to the parameter files when the
0054 device is not in regular operation mode.