1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/input/touchscreen/ti,tsc2005.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Texas Instruments TSC2004 and TSC2005 touchscreen controller bindings
10 - Marek Vasut <marex@denx.de>
11 - Michael Welling <mwelling@ieee.org>
15 pattern: "^touchscreen(@.*)?$"
25 I2C address when used on the I2C bus, or the SPI chip select index
26 when used on the SPI bus
33 description: GPIO specifier for the controller reset line
36 description: TSC2005 SPI bus clock frequency.
40 description: resistance of the touchscreen's X plates in ohm (defaults to 280)
42 ti,esd-recovery-timeout-ms:
44 if the touchscreen does not respond after the configured time
45 (in milli seconds), the driver will reset it. This is disabled
49 description: Regulator specifier
51 touchscreen-fuzz-pressure: true
52 touchscreen-fuzz-x: true
53 touchscreen-fuzz-y: true
54 touchscreen-max-pressure: true
55 touchscreen-size-x: true
56 touchscreen-size-y: true
59 - $ref: touchscreen.yaml#
67 spi-max-frequency: false
69 additionalProperties: false
78 #include <dt-bindings/interrupt-controller/irq.h>
79 #include <dt-bindings/gpio/gpio.h>
84 compatible = "ti,tsc2004";
88 reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>;
89 interrupts-extended = <&gpio1 27 IRQ_TYPE_EDGE_RISING>;
91 touchscreen-fuzz-x = <4>;
92 touchscreen-fuzz-y = <7>;
93 touchscreen-fuzz-pressure = <2>;
94 touchscreen-size-x = <4096>;
95 touchscreen-size-y = <4096>;
96 touchscreen-max-pressure = <2048>;
98 ti,x-plate-ohms = <280>;
99 ti,esd-recovery-timeout-ms = <8000>;
103 #include <dt-bindings/interrupt-controller/irq.h>
104 #include <dt-bindings/gpio/gpio.h>
106 #address-cells = <1>;
109 compatible = "ti,tsc2005";
110 spi-max-frequency = <6000000>;
115 reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */
116 interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */
118 touchscreen-fuzz-x = <4>;
119 touchscreen-fuzz-y = <7>;
120 touchscreen-fuzz-pressure = <2>;
121 touchscreen-size-x = <4096>;
122 touchscreen-size-y = <4096>;
123 touchscreen-max-pressure = <2048>;
125 ti,x-plate-ohms = <280>;
126 ti,esd-recovery-timeout-ms = <8000>;