xref: /freebsd/sys/contrib/device-tree/Bindings/input/touchscreen/touchscreen.yaml (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/touchscreen/touchscreen.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Common touchscreen
8
9maintainers:
10  - Dmitry Torokhov <dmitry.torokhov@gmail.com>
11
12properties:
13  touchscreen-min-x:
14    description: minimum x coordinate reported
15    $ref: /schemas/types.yaml#/definitions/uint32
16    default: 0
17
18  touchscreen-min-y:
19    description: minimum y coordinate reported
20    $ref: /schemas/types.yaml#/definitions/uint32
21    default: 0
22
23  touchscreen-size-x:
24    description: horizontal resolution of touchscreen (maximum x coordinate reported + 1)
25    $ref: /schemas/types.yaml#/definitions/uint32
26
27  touchscreen-size-y:
28    description: vertical resolution of touchscreen (maximum y coordinate reported + 1)
29    $ref: /schemas/types.yaml#/definitions/uint32
30
31  touchscreen-max-pressure:
32    description: maximum reported pressure (arbitrary range dependent on the controller)
33    $ref: /schemas/types.yaml#/definitions/uint32
34
35  touchscreen-min-pressure:
36    description: minimum pressure on the touchscreen to be achieved in order
37      for the touchscreen driver to report a touch event.
38    $ref: /schemas/types.yaml#/definitions/uint32
39
40  touchscreen-fuzz-x:
41    description: horizontal noise value of the absolute input device (in pixels)
42    $ref: /schemas/types.yaml#/definitions/uint32
43
44  touchscreen-fuzz-y:
45    description: vertical noise value of the absolute input device (in pixels)
46    $ref: /schemas/types.yaml#/definitions/uint32
47
48  touchscreen-fuzz-pressure:
49    description: pressure noise value of the absolute input device (arbitrary
50      range dependent on the controller)
51    $ref: /schemas/types.yaml#/definitions/uint32
52
53  touchscreen-average-samples:
54    description: Number of data samples which are averaged for each read (valid
55      values dependent on the controller)
56    $ref: /schemas/types.yaml#/definitions/uint32
57
58  touchscreen-inverted-x:
59    description: X axis is inverted
60    type: boolean
61
62  touchscreen-inverted-y:
63    description: Y axis is inverted
64    type: boolean
65
66  touchscreen-swapped-x-y:
67    description: X and Y axis are swapped
68                 Swapping is done after inverting the axis
69    type: boolean
70
71  touchscreen-x-mm:
72    description: horizontal length in mm of the touchscreen
73
74  touchscreen-y-mm:
75    description: vertical length in mm of the touchscreen
76
77  touchscreen-x-plate-ohms:
78    description: Resistance of the X-plate in Ohms
79
80  touchscreen-y-plate-ohms:
81    description: Resistance of the Y-plate in Ohms
82
83dependencies:
84  touchscreen-size-x: [ touchscreen-size-y ]
85  touchscreen-size-y: [ touchscreen-size-x ]
86  touchscreen-x-mm: [ touchscreen-y-mm ]
87  touchscreen-y-mm: [ touchscreen-x-mm ]
88
89additionalProperties: true
90