[07/10] dt-bindings: input: touchscreen: stmpe: add axes inversion and swap
diff mbox series

Message ID 20190527161938.31871-3-leif.middelschulte@klsmartin.com
State Changes Requested
Headers show
Series
  • input: touchscreen: stmpe: ext. features
Related show

Checks

Context Check Description
robh/checkpatch success

Commit Message

Middelschulte, Leif May 27, 2019, 4:19 p.m. UTC
This driver too supports coordinate inversion on X,Y axes and
axes swapping via the common properties defined in touchscreen.txt

Signed-off-by: Leif Middelschulte <leif.middelschulte@klsmartin.com>
---
 Documentation/devicetree/bindings/input/touchscreen/stmpe.txt | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Rob Herring June 14, 2019, 7:56 p.m. UTC | #1
On Mon, May 27, 2019 at 06:19:35PM +0200, Leif Middelschulte wrote:
> This driver too supports coordinate inversion on X,Y axes and
> axes swapping via the common properties defined in touchscreen.txt
> 
> Signed-off-by: Leif Middelschulte <leif.middelschulte@klsmartin.com>
> ---
>  Documentation/devicetree/bindings/input/touchscreen/stmpe.txt | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt
> index aee1abf06ddb..09d2d4f288cc 100644
> --- a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt
> +++ b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt
> @@ -42,6 +42,10 @@ Optional properties:
>  				The given window also affects the value range (limits) set
>  				within the input subsystem which, in turn, affects
>  				the input resolution calculation on both axes.
> +- touchscreen-inverted-x: X 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

Just reference common definition.

>  - touchscreen-x-mm	: horizontal length in mm of the touchscreen. It affects
>  				the input resolution calculation on the horizontal axis.
>  - touchscreen-y-mm	: vertical length in mm of the touchscreen. It affects
> -- 
> 2.21.0
>

Patch
diff mbox series

diff --git a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt
index aee1abf06ddb..09d2d4f288cc 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt
+++ b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt
@@ -42,6 +42,10 @@  Optional properties:
 				The given window also affects the value range (limits) set
 				within the input subsystem which, in turn, affects
 				the input resolution calculation on both axes.
+- touchscreen-inverted-x: X 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
 - touchscreen-x-mm	: horizontal length in mm of the touchscreen. It affects
 				the input resolution calculation on the horizontal axis.
 - touchscreen-y-mm	: vertical length in mm of the touchscreen. It affects