11d6204e2SBenjamin Gaignard# SPDX-License-Identifier: GPL-2.0
21d6204e2SBenjamin Gaignard%YAML 1.2
31d6204e2SBenjamin Gaignard---
41d6204e2SBenjamin Gaignard$id: http://devicetree.org/schemas/input/touchscreen/touchscreen.yaml#
51d6204e2SBenjamin Gaignard$schema: http://devicetree.org/meta-schemas/core.yaml#
61d6204e2SBenjamin Gaignard
784e85359SKrzysztof Kozlowskititle: Common touchscreen
81d6204e2SBenjamin Gaignard
91d6204e2SBenjamin Gaignardmaintainers:
101d6204e2SBenjamin Gaignard  - Dmitry Torokhov <dmitry.torokhov@gmail.com>
111d6204e2SBenjamin Gaignard
121d6204e2SBenjamin Gaignardproperties:
13*2ca376efSDouglas Anderson  panel:
14*2ca376efSDouglas Anderson    description: If this touchscreen is integrally connected to a panel, this
15*2ca376efSDouglas Anderson      is a reference to that panel. The presence of this reference indicates
16*2ca376efSDouglas Anderson      that the touchscreen should be power sequenced together with the panel
17*2ca376efSDouglas Anderson      and that they may share power and/or reset signals.
18*2ca376efSDouglas Anderson    $ref: /schemas/types.yaml#/definitions/phandle
19*2ca376efSDouglas Anderson
201d6204e2SBenjamin Gaignard  touchscreen-min-x:
211d6204e2SBenjamin Gaignard    description: minimum x coordinate reported
221d6204e2SBenjamin Gaignard    $ref: /schemas/types.yaml#/definitions/uint32
231d6204e2SBenjamin Gaignard    default: 0
241d6204e2SBenjamin Gaignard
251d6204e2SBenjamin Gaignard  touchscreen-min-y:
261d6204e2SBenjamin Gaignard    description: minimum y coordinate reported
271d6204e2SBenjamin Gaignard    $ref: /schemas/types.yaml#/definitions/uint32
281d6204e2SBenjamin Gaignard    default: 0
291d6204e2SBenjamin Gaignard
301d6204e2SBenjamin Gaignard  touchscreen-size-x:
311d6204e2SBenjamin Gaignard    description: horizontal resolution of touchscreen (maximum x coordinate reported + 1)
321d6204e2SBenjamin Gaignard    $ref: /schemas/types.yaml#/definitions/uint32
331d6204e2SBenjamin Gaignard
341d6204e2SBenjamin Gaignard  touchscreen-size-y:
351d6204e2SBenjamin Gaignard    description: vertical resolution of touchscreen (maximum y coordinate reported + 1)
361d6204e2SBenjamin Gaignard    $ref: /schemas/types.yaml#/definitions/uint32
371d6204e2SBenjamin Gaignard
381d6204e2SBenjamin Gaignard  touchscreen-max-pressure:
391d6204e2SBenjamin Gaignard    description: maximum reported pressure (arbitrary range dependent on the controller)
401d6204e2SBenjamin Gaignard    $ref: /schemas/types.yaml#/definitions/uint32
411d6204e2SBenjamin Gaignard
421d6204e2SBenjamin Gaignard  touchscreen-min-pressure:
43f516fb70SRob Herring    description: minimum pressure on the touchscreen to be achieved in order
44f516fb70SRob Herring      for the touchscreen driver to report a touch event.
451d6204e2SBenjamin Gaignard    $ref: /schemas/types.yaml#/definitions/uint32
461d6204e2SBenjamin Gaignard
471d6204e2SBenjamin Gaignard  touchscreen-fuzz-x:
481d6204e2SBenjamin Gaignard    description: horizontal noise value of the absolute input device (in pixels)
491d6204e2SBenjamin Gaignard    $ref: /schemas/types.yaml#/definitions/uint32
501d6204e2SBenjamin Gaignard
511d6204e2SBenjamin Gaignard  touchscreen-fuzz-y:
521d6204e2SBenjamin Gaignard    description: vertical noise value of the absolute input device (in pixels)
531d6204e2SBenjamin Gaignard    $ref: /schemas/types.yaml#/definitions/uint32
541d6204e2SBenjamin Gaignard
551d6204e2SBenjamin Gaignard  touchscreen-fuzz-pressure:
56f516fb70SRob Herring    description: pressure noise value of the absolute input device (arbitrary
57f516fb70SRob Herring      range dependent on the controller)
581d6204e2SBenjamin Gaignard    $ref: /schemas/types.yaml#/definitions/uint32
591d6204e2SBenjamin Gaignard
601d6204e2SBenjamin Gaignard  touchscreen-average-samples:
61f516fb70SRob Herring    description: Number of data samples which are averaged for each read (valid
62f516fb70SRob Herring      values dependent on the controller)
631d6204e2SBenjamin Gaignard    $ref: /schemas/types.yaml#/definitions/uint32
641d6204e2SBenjamin Gaignard
651d6204e2SBenjamin Gaignard  touchscreen-inverted-x:
661d6204e2SBenjamin Gaignard    description: X axis is inverted
671d6204e2SBenjamin Gaignard    type: boolean
681d6204e2SBenjamin Gaignard
691d6204e2SBenjamin Gaignard  touchscreen-inverted-y:
701d6204e2SBenjamin Gaignard    description: Y axis is inverted
711d6204e2SBenjamin Gaignard    type: boolean
721d6204e2SBenjamin Gaignard
731d6204e2SBenjamin Gaignard  touchscreen-swapped-x-y:
741d6204e2SBenjamin Gaignard    description: X and Y axis are swapped
751d6204e2SBenjamin Gaignard                 Swapping is done after inverting the axis
761d6204e2SBenjamin Gaignard    type: boolean
771d6204e2SBenjamin Gaignard
781d6204e2SBenjamin Gaignard  touchscreen-x-mm:
791d6204e2SBenjamin Gaignard    description: horizontal length in mm of the touchscreen
801d6204e2SBenjamin Gaignard
811d6204e2SBenjamin Gaignard  touchscreen-y-mm:
821d6204e2SBenjamin Gaignard    description: vertical length in mm of the touchscreen
831d6204e2SBenjamin Gaignard
84ff7af0feSOleksij Rempel  touchscreen-x-plate-ohms:
85ff7af0feSOleksij Rempel    description: Resistance of the X-plate in Ohms
86ff7af0feSOleksij Rempel
87ff7af0feSOleksij Rempel  touchscreen-y-plate-ohms:
88ff7af0feSOleksij Rempel    description: Resistance of the Y-plate in Ohms
89ff7af0feSOleksij Rempel
901d6204e2SBenjamin Gaignarddependencies:
911d6204e2SBenjamin Gaignard  touchscreen-size-x: [ touchscreen-size-y ]
921d6204e2SBenjamin Gaignard  touchscreen-size-y: [ touchscreen-size-x ]
931d6204e2SBenjamin Gaignard  touchscreen-x-mm: [ touchscreen-y-mm ]
941d6204e2SBenjamin Gaignard  touchscreen-y-mm: [ touchscreen-x-mm ]
956a0e321eSRob Herring
966a0e321eSRob HerringadditionalProperties: true
97