Input: sun4i-ts - allow controlling filter and sensitivity via DT
authorJens Thiele <karme@karme.de>
Mon, 23 Mar 2015 16:04:56 +0000 (09:04 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Mar 2015 16:11:11 +0000 (09:11 -0700)
commit4ed0e032c3cf27c6fabc154164d003c4e0ac4654
tree47d8d96c7aa31f08c835777903bda70073601254
parent68c581d5e7d834d8e97534cafd60bd6716ee6fbc
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>
Documentation/devicetree/bindings/input/touchscreen/sun4i.txt
drivers/input/touchscreen/sun4i-ts.c