[Letux-kernel] [PATCH v6 6/8] drivers:input:ads7846(+tsc2046): add new common binding names, pre-calibration and flipping
robh at kernel.org
Mon Oct 31 04:41:30 CET 2016
On Thu, Oct 27, 2016 at 10:44:19AM +0200, H. Nikolaus Schaller wrote:
> commit b98abe52fa8e ("Input: add common DT binding for touchscreens")
> introduced common DT bindings for touchscreens  and a helper function to
> parse the DT.
> commit ed7c9870c9bc ("Input: of_touchscreen - add support for inverted / swapped axes")
> added another helper for parsing axis inversion and swapping
> and applying them to x and y coordinates.
> Both helpers have been integrated to accommodate any orientation of the
> touch panel in relation to the LCD.
> A new feature is to introduce scaling the min/max ADC values to the screen
> This makes it possible to pre-calibrate the touch so that is (almost)
> exactly matches the LCD pixel coordinates it is glued onto. This allows to
> well enough operate the touch before a user space calibration step can
> improve the precision.
> : Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt
> Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
> .../devicetree/bindings/input/ads7846.txt | 9 +++-
> drivers/input/touchscreen/ads7846.c | 60 ++++++++++++++++++----
> 2 files changed, 57 insertions(+), 12 deletions(-)
Acked-by: Rob Herring <robh at kernel.org>
More information about the Letux-kernel