18c2ecf20Sopenharmony_ci* Texas Instruments tsc2004 and tsc2005 touchscreen controllers 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci - compatible : "ti,tsc2004" or "ti,tsc2005" 58c2ecf20Sopenharmony_ci - reg : Device address 68c2ecf20Sopenharmony_ci - interrupts : IRQ specifier 78c2ecf20Sopenharmony_ci - spi-max-frequency : Maximum SPI clocking speed of the device 88c2ecf20Sopenharmony_ci (for tsc2005) 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciOptional properties: 118c2ecf20Sopenharmony_ci - vio-supply : Regulator specifier 128c2ecf20Sopenharmony_ci - reset-gpios : GPIO specifier for the controller reset line 138c2ecf20Sopenharmony_ci - ti,x-plate-ohms : integer, resistance of the touchscreen's X plates 148c2ecf20Sopenharmony_ci in ohm (defaults to 280) 158c2ecf20Sopenharmony_ci - ti,esd-recovery-timeout-ms : integer, if the touchscreen does not respond after 168c2ecf20Sopenharmony_ci the configured time (in milli seconds), the driver 178c2ecf20Sopenharmony_ci will reset it. This is disabled by default. 188c2ecf20Sopenharmony_ci - properties defined in touchscreen.txt 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciExample: 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci&i2c3 { 238c2ecf20Sopenharmony_ci tsc2004@48 { 248c2ecf20Sopenharmony_ci compatible = "ti,tsc2004"; 258c2ecf20Sopenharmony_ci reg = <0x48>; 268c2ecf20Sopenharmony_ci vio-supply = <&vio>; 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; 298c2ecf20Sopenharmony_ci interrupts-extended = <&gpio1 27 IRQ_TYPE_EDGE_RISING>; 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci touchscreen-fuzz-x = <4>; 328c2ecf20Sopenharmony_ci touchscreen-fuzz-y = <7>; 338c2ecf20Sopenharmony_ci touchscreen-fuzz-pressure = <2>; 348c2ecf20Sopenharmony_ci touchscreen-size-x = <4096>; 358c2ecf20Sopenharmony_ci touchscreen-size-y = <4096>; 368c2ecf20Sopenharmony_ci touchscreen-max-pressure = <2048>; 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci ti,x-plate-ohms = <280>; 398c2ecf20Sopenharmony_ci ti,esd-recovery-timeout-ms = <8000>; 408c2ecf20Sopenharmony_ci }; 418c2ecf20Sopenharmony_ci} 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci&mcspi1 { 448c2ecf20Sopenharmony_ci tsc2005@0 { 458c2ecf20Sopenharmony_ci compatible = "ti,tsc2005"; 468c2ecf20Sopenharmony_ci spi-max-frequency = <6000000>; 478c2ecf20Sopenharmony_ci reg = <0>; 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci vio-supply = <&vio>; 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */ 528c2ecf20Sopenharmony_ci interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */ 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci touchscreen-fuzz-x = <4>; 558c2ecf20Sopenharmony_ci touchscreen-fuzz-y = <7>; 568c2ecf20Sopenharmony_ci touchscreen-fuzz-pressure = <2>; 578c2ecf20Sopenharmony_ci touchscreen-size-x = <4096>; 588c2ecf20Sopenharmony_ci touchscreen-size-y = <4096>; 598c2ecf20Sopenharmony_ci touchscreen-max-pressure = <2048>; 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci ti,x-plate-ohms = <280>; 628c2ecf20Sopenharmony_ci ti,esd-recovery-timeout-ms = <8000>; 638c2ecf20Sopenharmony_ci }; 648c2ecf20Sopenharmony_ci} 65