18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci%YAML 1.2
38c2ecf20Sopenharmony_ci---
48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/input/touchscreen/touchscreen.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: Common touchscreen Bindings
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cimaintainers:
108c2ecf20Sopenharmony_ci  - Dmitry Torokhov <dmitry.torokhov@gmail.com>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciproperties:
138c2ecf20Sopenharmony_ci  touchscreen-min-x:
148c2ecf20Sopenharmony_ci    description: minimum x coordinate reported
158c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
168c2ecf20Sopenharmony_ci    default: 0
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci  touchscreen-min-y:
198c2ecf20Sopenharmony_ci    description: minimum y coordinate reported
208c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
218c2ecf20Sopenharmony_ci    default: 0
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci  touchscreen-size-x:
248c2ecf20Sopenharmony_ci    description: horizontal resolution of touchscreen (maximum x coordinate reported + 1)
258c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci  touchscreen-size-y:
288c2ecf20Sopenharmony_ci    description: vertical resolution of touchscreen (maximum y coordinate reported + 1)
298c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci  touchscreen-max-pressure:
328c2ecf20Sopenharmony_ci    description: maximum reported pressure (arbitrary range dependent on the controller)
338c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci  touchscreen-min-pressure:
368c2ecf20Sopenharmony_ci    description: minimum pressure on the touchscreen to be achieved in order
378c2ecf20Sopenharmony_ci      for the touchscreen driver to report a touch event.
388c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci  touchscreen-fuzz-x:
418c2ecf20Sopenharmony_ci    description: horizontal noise value of the absolute input device (in pixels)
428c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci  touchscreen-fuzz-y:
458c2ecf20Sopenharmony_ci    description: vertical noise value of the absolute input device (in pixels)
468c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci  touchscreen-fuzz-pressure:
498c2ecf20Sopenharmony_ci    description: pressure noise value of the absolute input device (arbitrary
508c2ecf20Sopenharmony_ci      range dependent on the controller)
518c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci  touchscreen-average-samples:
548c2ecf20Sopenharmony_ci    description: Number of data samples which are averaged for each read (valid
558c2ecf20Sopenharmony_ci      values dependent on the controller)
568c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci  touchscreen-inverted-x:
598c2ecf20Sopenharmony_ci    description: X axis is inverted
608c2ecf20Sopenharmony_ci    type: boolean
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci  touchscreen-inverted-y:
638c2ecf20Sopenharmony_ci    description: Y axis is inverted
648c2ecf20Sopenharmony_ci    type: boolean
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci  touchscreen-swapped-x-y:
678c2ecf20Sopenharmony_ci    description: X and Y axis are swapped
688c2ecf20Sopenharmony_ci                 Swapping is done after inverting the axis
698c2ecf20Sopenharmony_ci    type: boolean
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci  touchscreen-x-mm:
728c2ecf20Sopenharmony_ci    description: horizontal length in mm of the touchscreen
738c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ci  touchscreen-y-mm:
768c2ecf20Sopenharmony_ci    description: vertical length in mm of the touchscreen
778c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_cidependencies:
808c2ecf20Sopenharmony_ci  touchscreen-size-x: [ touchscreen-size-y ]
818c2ecf20Sopenharmony_ci  touchscreen-size-y: [ touchscreen-size-x ]
828c2ecf20Sopenharmony_ci  touchscreen-x-mm: [ touchscreen-y-mm ]
838c2ecf20Sopenharmony_ci  touchscreen-y-mm: [ touchscreen-x-mm ]
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ciadditionalProperties: true
86