~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/input/touchscreen/ti,tsc2005.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/input/touchscreen/ti,tsc2005.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Texas Instruments TSC2004 and TSC2005 touchscreen controller
  8 
  9 maintainers:
 10   - Marek Vasut <marex@denx.de>
 11   - Michael Welling <mwelling@ieee.org>
 12 
 13 properties:
 14   $nodename:
 15     pattern: "^touchscreen(@.*)?$"
 16 
 17   compatible:
 18     enum:
 19       - ti,tsc2004
 20       - ti,tsc2005
 21 
 22   reg:
 23     maxItems: 1
 24     description: |
 25       I2C address when used on the I2C bus, or the SPI chip select index
 26       when used on the SPI bus
 27 
 28   interrupts:
 29     maxItems: 1
 30 
 31   reset-gpios:
 32     maxItems: 1
 33     description: GPIO specifier for the controller reset line
 34 
 35   spi-max-frequency:
 36     description: TSC2005 SPI bus clock frequency.
 37     maximum: 25000000
 38 
 39   ti,x-plate-ohms:
 40     description: resistance of the touchscreen's X plates in ohm (defaults to 280)
 41 
 42   ti,esd-recovery-timeout-ms:
 43     description: |
 44         if the touchscreen does not respond after the configured time
 45         (in milli seconds), the driver will reset it. This is disabled
 46         by default.
 47 
 48   vio-supply:
 49     description: Regulator specifier
 50 
 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
 57 
 58 allOf:
 59   - $ref: touchscreen.yaml#
 60   - if:
 61       properties:
 62         compatible:
 63           contains:
 64             const: ti,tsc2004
 65     then:
 66       properties:
 67         spi-max-frequency: false
 68 
 69 additionalProperties: false
 70 
 71 required:
 72   - compatible
 73   - reg
 74   - interrupts
 75 
 76 examples:
 77   - |
 78     #include <dt-bindings/interrupt-controller/irq.h>
 79     #include <dt-bindings/gpio/gpio.h>
 80     i2c {
 81         #address-cells = <1>;
 82         #size-cells = <0>;
 83         touchscreen@48 {
 84             compatible = "ti,tsc2004";
 85             reg = <0x48>;
 86             vio-supply = <&vio>;
 87 
 88             reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>;
 89             interrupts-extended = <&gpio1 27 IRQ_TYPE_EDGE_RISING>;
 90 
 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>;
 97 
 98             ti,x-plate-ohms = <280>;
 99             ti,esd-recovery-timeout-ms = <8000>;
100         };
101     };
102   - |
103     #include <dt-bindings/interrupt-controller/irq.h>
104     #include <dt-bindings/gpio/gpio.h>
105     spi {
106         #address-cells = <1>;
107         #size-cells = <0>;
108         touchscreen@0 {
109             compatible = "ti,tsc2005";
110             spi-max-frequency = <6000000>;
111             reg = <0>;
112 
113             vio-supply = <&vio>;
114 
115             reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */
116             interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */
117 
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>;
124 
125             ti,x-plate-ohms = <280>;
126             ti,esd-recovery-timeout-ms = <8000>;
127         };
128     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php