diff options
| author | Jens Thiele <karme@karme.de> | 2015-03-23 12:04:56 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-03-23 12:11:11 -0400 |
| commit | 4ed0e032c3cf27c6fabc154164d003c4e0ac4654 (patch) | |
| tree | 47d8d96c7aa31f08c835777903bda70073601254 /Documentation/devicetree/bindings/input | |
| parent | 68c581d5e7d834d8e97534cafd60bd6716ee6fbc (diff) | |
Input: sun4i-ts - allow controlling filter and sensitivity via DT
This commit introduces two new optional device-tree properties:
"tp-sensitive-adjust": adjust sensitivity of pen down detection
"filter-type": select median and averaging filter
The previous fixed defaults, didn't work well for the Olimex
A13-LCD10TS (I have).
Signed-off-by: Jens Thiele <karme@karme.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input')
| -rw-r--r-- | Documentation/devicetree/bindings/input/touchscreen/sun4i.txt | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/input/touchscreen/sun4i.txt b/Documentation/devicetree/bindings/input/touchscreen/sun4i.txt index d59d25281e9f..89abecd938cb 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/sun4i.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/sun4i.txt | |||
| @@ -9,8 +9,20 @@ Required properties: | |||
| 9 | - #thermal-sensor-cells: shall be 0 | 9 | - #thermal-sensor-cells: shall be 0 |
| 10 | 10 | ||
| 11 | Optional properties: | 11 | Optional properties: |
| 12 | - allwinner,ts-attached: boolean indicating that an actual touchscreen is | 12 | - allwinner,ts-attached : boolean indicating that an actual touchscreen |
| 13 | attached to the controller | 13 | is attached to the controller |
| 14 | - allwinner,tp-sensitive-adjust : integer (4 bits) | ||
| 15 | adjust sensitivity of pen down detection | ||
| 16 | between 0 (least sensitive) and 15 | ||
| 17 | (defaults to 15) | ||
| 18 | - allwinner,filter-type : integer (2 bits) | ||
| 19 | select median and averaging filter | ||
| 20 | samples used for median / averaging filter | ||
| 21 | 0: 4/2 | ||
| 22 | 1: 5/3 | ||
| 23 | 2: 8/4 | ||
| 24 | 3: 16/8 | ||
| 25 | (defaults to 1) | ||
| 14 | 26 | ||
| 15 | Example: | 27 | Example: |
| 16 | 28 | ||
| @@ -20,4 +32,7 @@ Example: | |||
| 20 | interrupts = <29>; | 32 | interrupts = <29>; |
| 21 | allwinner,ts-attached; | 33 | allwinner,ts-attached; |
| 22 | #thermal-sensor-cells = <0>; | 34 | #thermal-sensor-cells = <0>; |
| 35 | /* sensitive/noisy touch panel */ | ||
| 36 | allwinner,tp-sensitive-adjust = <0>; | ||
| 37 | allwinner,filter-type = <3>; | ||
| 23 | }; | 38 | }; |
