Skip to content

Commit aa3d440

Browse files
mergedtor
authored andcommitted
Input: edt-ft5x06 - increase allowed data range for threshold parameter
The datasheet and application note does not mention an allowed range for the M09_REGISTER_THRESHOLD parameter. One of our customers needs to set lower values than 20 and they seem to work just fine on EDT EP0xx0M09 with T5x06 touch. So, lacking a known lower limit, we increase the range for thresholds, and set the lower limit to 0. The documentation is updated accordingly. Signed-off-by: Schoefegger Stefan <stefan.schoefegger@ginzinger.com> Signed-off-by: Manfred Schlaegl <manfred.schlaegl@ginzinger.com> Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 3af9256 commit aa3d440

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Optional properties:
3636
control gpios
3737

3838
- threshold: allows setting the "click"-threshold in the range
39-
from 20 to 80.
39+
from 0 to 80.
4040

4141
- gain: allows setting the sensitivity in the range from 0 to
4242
31. Note that lower values indicate higher

‎Documentation/input/devices/edt-ft5x06.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ It has been tested with the following devices:
1515
The driver allows configuration of the touch screen via a set of sysfs files:
1616

1717
/sys/class/input/eventX/device/device/threshold:
18-
allows setting the "click"-threshold in the range from 20 to 80.
18+
allows setting the "click"-threshold in the range from 0 to 80.
1919

2020
/sys/class/input/eventX/device/device/gain:
2121
allows setting the sensitivity in the range from 0 to 31. Note that

‎drivers/input/touchscreen/edt-ft5x06.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ static EDT_ATTR(gain, S_IWUSR | S_IRUGO, WORK_REGISTER_GAIN,
471471
static EDT_ATTR(offset, S_IWUSR | S_IRUGO, WORK_REGISTER_OFFSET,
472472
M09_REGISTER_OFFSET, 0, 31);
473473
static EDT_ATTR(threshold, S_IWUSR | S_IRUGO, WORK_REGISTER_THRESHOLD,
474-
M09_REGISTER_THRESHOLD, 20, 80);
474+
M09_REGISTER_THRESHOLD, 0, 80);
475475
static EDT_ATTR(report_rate, S_IWUSR | S_IRUGO, WORK_REGISTER_REPORT_RATE,
476476
NO_REGISTER, 3, 14);
477477

0 commit comments

Comments
 (0)