1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/input/touchscreen/ti,ads7843.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: TI's SPI driven touch screen controllers
10 - Alexander Stein <alexander.stein@ew.tq-group.com>
11 - Dmitry Torokhov <dmitry.torokhov@gmail.com>
12 - Marek Vasut <marex@denx.de>
15 TI's ADS7843, ADS7845, ADS7846, ADS7873, TSC2046 SPI driven touch screen
33 GPIO handle describing the pin the !PENIRQ line is connected to.
37 A regulator node for the supply voltage.
43 $ref: /schemas/types.yaml#/definitions/uint16
45 Max number of additional readings per sample.
48 $ref: /schemas/types.yaml#/definitions/uint16
50 Additional consecutive good readings required after the first two.
53 $ref: /schemas/types.yaml#/definitions/uint16
55 Tolerance used for filtering.
60 GPIO line to poll for hsync.
63 $ref: /schemas/types.yaml#/definitions/flag
65 Set to keep Vref on for differential measurements as well.
67 ti,pendown-gpio-debounce:
68 $ref: /schemas/types.yaml#/definitions/uint32
70 Platform specific debounce time for the pendown-gpio.
72 ti,penirq-recheck-delay-usecs:
73 $ref: /schemas/types.yaml#/definitions/uint16
75 If set to non-zero, after samples are taken this delay is applied and
76 penirq is rechecked, to help avoid false events. This value is
77 affected by the material used to build the touch layer.
81 $ref: /schemas/types.yaml#/definitions/uint16
83 Maximum reported pressure value.
87 $ref: /schemas/types.yaml#/definitions/uint16
89 Minimum reported pressure value (threshold).
92 $ref: /schemas/types.yaml#/definitions/uint16
94 Settling time of the analog signals; a function of Vcc and the
95 capacitance on the X/Y drivers. If set to non-zero, two samples are
96 taken with settle_delay us apart, and the second one is used. ~150
97 uSec with 0.01uF caps.
101 $ref: /schemas/types.yaml#/definitions/flag
106 $ref: /schemas/types.yaml#/definitions/uint16
108 Vref supply delay in usecs, 0 for external Vref.
111 $ref: /schemas/types.yaml#/definitions/uint16
113 The VREF voltage, in millivolts.
114 Set to 0 to use internal references (ADS7846).
117 $ref: /schemas/types.yaml#/definitions/uint16
119 Resistance of the X-plate, in Ohms.
123 $ref: /schemas/types.yaml#/definitions/uint16
125 Maximum value on the X axis.
129 $ref: /schemas/types.yaml#/definitions/uint16
131 Minimum value on the X axis.
134 $ref: /schemas/types.yaml#/definitions/uint16
136 Resistance of the Y-plate, in Ohms.
140 $ref: /schemas/types.yaml#/definitions/uint16
142 Maximum value on the Y axis.
146 $ref: /schemas/types.yaml#/definitions/uint16
148 Minimum value on the Y axis.
155 - $ref: touchscreen.yaml#
156 - $ref: /schemas/spi/spi-peripheral-props.yaml#
158 unevaluatedProperties: false
163 #address-cells = <1>;
167 compatible = "ti,tsc2046";
169 interrupt-parent = <&gpio1>;
170 interrupts = <8 0>; /* BOOT6 / GPIO 8 */
171 pendown-gpio = <&gpio1 8 0>;
172 spi-max-frequency = <1000000>;
173 vcc-supply = <®_vcc3>;
176 ti,pressure-max = /bits/ 16 <255>;
177 ti,x-max = /bits/ 16 <8000>;
178 ti,x-min = /bits/ 16 <0>;
179 ti,x-plate-ohms = /bits/ 16 <40>;
180 ti,y-max = /bits/ 16 <4800>;
181 ti,y-min = /bits/ 16 <0>;