tsc2005.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. * Texas Instruments tsc2004 and tsc2005 touchscreen controllers
  2. Required properties:
  3. - compatible : "ti,tsc2004" or "ti,tsc2005"
  4. - reg : Device address
  5. - interrupts : IRQ specifier
  6. - spi-max-frequency : Maximum SPI clocking speed of the device
  7. (for tsc2005)
  8. Optional properties:
  9. - vio-supply : Regulator specifier
  10. - reset-gpios : GPIO specifier for the controller reset line
  11. - ti,x-plate-ohms : integer, resistance of the touchscreen's X plates
  12. in ohm (defaults to 280)
  13. - ti,esd-recovery-timeout-ms : integer, if the touchscreen does not respond after
  14. the configured time (in milli seconds), the driver
  15. will reset it. This is disabled by default.
  16. - properties defined in touchscreen.txt
  17. Example:
  18. &i2c3 {
  19. tsc2004@48 {
  20. compatible = "ti,tsc2004";
  21. reg = <0x48>;
  22. vio-supply = <&vio>;
  23. reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>;
  24. interrupts-extended = <&gpio1 27 IRQ_TYPE_EDGE_RISING>;
  25. touchscreen-fuzz-x = <4>;
  26. touchscreen-fuzz-y = <7>;
  27. touchscreen-fuzz-pressure = <2>;
  28. touchscreen-size-x = <4096>;
  29. touchscreen-size-y = <4096>;
  30. touchscreen-max-pressure = <2048>;
  31. ti,x-plate-ohms = <280>;
  32. ti,esd-recovery-timeout-ms = <8000>;
  33. };
  34. }
  35. &mcspi1 {
  36. tsc2005@0 {
  37. compatible = "ti,tsc2005";
  38. spi-max-frequency = <6000000>;
  39. reg = <0>;
  40. vio-supply = <&vio>;
  41. reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */
  42. interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */
  43. touchscreen-fuzz-x = <4>;
  44. touchscreen-fuzz-y = <7>;
  45. touchscreen-fuzz-pressure = <2>;
  46. touchscreen-size-x = <4096>;
  47. touchscreen-size-y = <4096>;
  48. touchscreen-max-pressure = <2048>;
  49. ti,x-plate-ohms = <280>;
  50. ti,esd-recovery-timeout-ms = <8000>;
  51. };
  52. }