Skip to content

Commit 1d6204e

Browse files
benjamingaignarddtor
authored andcommitted
dt-bindings: touchscreen: Add touchscreen schema
Add touchscreen schema for common properties Signed-off-by: Benjamin Gaignard <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 273db8f commit 1d6204e

File tree

2 files changed

+84
-39
lines changed

2 files changed

+84
-39
lines changed
Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1 @@
1-
General Touchscreen Properties:
2-
3-
Optional properties for Touchscreens:
4-
- touchscreen-min-x : minimum x coordinate reported (0 if not set)
5-
- touchscreen-min-y : minimum y coordinate reported (0 if not set)
6-
- touchscreen-size-x : horizontal resolution of touchscreen
7-
(maximum x coordinate reported + 1)
8-
- touchscreen-size-y : vertical resolution of touchscreen
9-
(maximum y coordinate reported + 1)
10-
- touchscreen-max-pressure : maximum reported pressure (arbitrary range
11-
dependent on the controller)
12-
- touchscreen-min-pressure : minimum pressure on the touchscreen to be
13-
achieved in order for the touchscreen
14-
driver to report a touch event.
15-
- touchscreen-fuzz-x : horizontal noise value of the absolute input
16-
device (in pixels)
17-
- touchscreen-fuzz-y : vertical noise value of the absolute input
18-
device (in pixels)
19-
- touchscreen-fuzz-pressure : pressure noise value of the absolute input
20-
device (arbitrary range dependent on the
21-
controller)
22-
- touchscreen-average-samples : Number of data samples which are averaged
23-
for each read (valid values dependent on the
24-
controller)
25-
- touchscreen-inverted-x : X axis is inverted (boolean)
26-
- touchscreen-inverted-y : Y axis is inverted (boolean)
27-
- touchscreen-swapped-x-y : X and Y axis are swapped (boolean)
28-
Swapping is done after inverting the axis
29-
- touchscreen-x-mm : horizontal length in mm of the touchscreen
30-
- touchscreen-y-mm : vertical length in mm of the touchscreen
31-
32-
Deprecated properties for Touchscreens:
33-
- x-size : deprecated name for touchscreen-size-x
34-
- y-size : deprecated name for touchscreen-size-y
35-
- moving-threshold : deprecated name for a combination of
36-
touchscreen-fuzz-x and touchscreen-fuzz-y
37-
- contact-threshold : deprecated name for touchscreen-fuzz-pressure
38-
- x-invert : deprecated name for touchscreen-inverted-x
39-
- y-invert : deprecated name for touchscreen-inverted-y
1+
See touchscreen.yaml
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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+
7+
title: Common touchscreen Bindings
8+
9+
maintainers:
10+
- Dmitry Torokhov <[email protected]>
11+
12+
properties:
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 for the
37+
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 range
50+
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 values
55+
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+
$ref: /schemas/types.yaml#/definitions/uint32
74+
75+
touchscreen-y-mm:
76+
description: vertical length in mm of the touchscreen
77+
$ref: /schemas/types.yaml#/definitions/uint32
78+
79+
dependencies:
80+
touchscreen-size-x: [ touchscreen-size-y ]
81+
touchscreen-size-y: [ touchscreen-size-x ]
82+
touchscreen-x-mm: [ touchscreen-y-mm ]
83+
touchscreen-y-mm: [ touchscreen-x-mm ]

0 commit comments

Comments
 (0)