Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: touchscreen DT binding - add touchscreen-swapped-x-y property

On devices with a native portrait screen a landscape touchscreen /
digitizer may be used, this happens e.g. on ebook readers. In this case the
X and Y axis of the touchscreen are swapped compared to the screen.

Add a touchscreen-swapped-x-y property which drivers can use to see if they
need to swap the axis to make the touchscreen coordinates match the screen
coordinates.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Hans de Goede and committed by
Dmitry Torokhov
d16a33bb dbea4032

+2
+2
Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt
··· 16 16 controller) 17 17 - touchscreen-inverted-x : X axis is inverted (boolean) 18 18 - touchscreen-inverted-y : Y axis is inverted (boolean) 19 + - touchscreen-swapped-x-y : X and Y axis are swapped (boolean) 20 + Swapping is done after inverting the axis 19 21 20 22 Deprecated properties for Touchscreens: 21 23 - x-size : deprecated name for touchscreen-size-x