1# Copyright (c) 2023 Seppo Takalo
2# SPDX-License-Identifier: Apache-2.0
3
4description: Driver for XPT2046 touch IC
5compatible: "xptek,xpt2046"
6
7include: spi-device.yaml
8
9properties:
10  int-gpios:
11    type: phandle-array
12    required: true
13    description: Interrupt GPIO.
14
15  touchscreen-size-x:
16    type: int
17    required: true
18    description: horizontal resolution of screen
19
20  touchscreen-size-y:
21    type: int
22    required: true
23    description: vertical resolution of screen
24
25  min-x:
26    type: int
27    required: true
28    description: minimum raw X value reported.
29
30  min-y:
31    type: int
32    required: true
33    description: minimum raw Y value reported.
34
35  max-x:
36    type: int
37    required: true
38    description: maximum raw X value reported.
39
40  max-y:
41    type: int
42    required: true
43    description: maximum raw Y value reported.
44
45  z-threshold:
46    type: int
47    description: Z value threshold to trigger a touch
48    default: 100
49
50  reads:
51    type: int
52    description: How many reads per touch to average the value
53    default: 1
54