Commit d16a33bb authored by Hans de Goede's avatar Hans de Goede Committed by Dmitry Torokhov

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: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent dbea4032
...@@ -16,6 +16,8 @@ Optional properties for Touchscreens: ...@@ -16,6 +16,8 @@ Optional properties for Touchscreens:
controller) controller)
- touchscreen-inverted-x : X axis is inverted (boolean) - touchscreen-inverted-x : X axis is inverted (boolean)
- touchscreen-inverted-y : Y axis is inverted (boolean) - touchscreen-inverted-y : Y axis is inverted (boolean)
- touchscreen-swapped-x-y : X and Y axis are swapped (boolean)
Swapping is done after inverting the axis
Deprecated properties for Touchscreens: Deprecated properties for Touchscreens:
- x-size : deprecated name for touchscreen-size-x - x-size : deprecated name for touchscreen-size-x
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment