ads7846.txt 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Device tree bindings for TI's ADS7843, ADS7845, ADS7846, ADS7873, TSC2046
  2. SPI driven touch screen controllers.
  3. The node for this driver must be a child node of a SPI controller, hence
  4. all mandatory properties described in
  5. Documentation/devicetree/bindings/spi/spi-bus.txt
  6. must be specified.
  7. Additional required properties:
  8. compatible Must be one of the following, depending on the
  9. model:
  10. "ti,tsc2046"
  11. "ti,ads7843"
  12. "ti,ads7845"
  13. "ti,ads7846"
  14. "ti,ads7873"
  15. interrupt-parent
  16. interrupts An interrupt node describing the IRQ line the chip's
  17. !PENIRQ pin is connected to.
  18. vcc-supply A regulator node for the supply voltage.
  19. Optional properties:
  20. ti,vref-delay-usecs vref supply delay in usecs, 0 for
  21. external vref (u16).
  22. ti,vref-mv The VREF voltage, in millivolts (u16).
  23. Set to 0 to use internal references
  24. (ADS7846).
  25. ti,keep-vref-on set to keep vref on for differential
  26. measurements as well
  27. ti,swap-xy swap x and y axis
  28. ti,settle-delay-usec Settling time of the analog signals;
  29. a function of Vcc and the capacitance
  30. on the X/Y drivers. If set to non-zero,
  31. two samples are taken with settle_delay
  32. us apart, and the second one is used.
  33. ~150 uSec with 0.01uF caps (u16).
  34. ti,penirq-recheck-delay-usecs If set to non-zero, after samples are
  35. taken this delay is applied and penirq
  36. is rechecked, to help avoid false
  37. events. This value is affected by the
  38. material used to build the touch layer
  39. (u16).
  40. ti,x-plate-ohms Resistance of the X-plate,
  41. in Ohms (u16).
  42. ti,y-plate-ohms Resistance of the Y-plate,
  43. in Ohms (u16).
  44. ti,x-min Minimum value on the X axis (u16).
  45. ti,y-min Minimum value on the Y axis (u16).
  46. ti,x-max Maximum value on the X axis (u16).
  47. ti,y-max Minimum value on the Y axis (u16).
  48. ti,pressure-min Minimum reported pressure value
  49. (threshold) - u16.
  50. ti,pressure-max Maximum reported pressure value (u16).
  51. ti,debounce-max Max number of additional readings per
  52. sample (u16).
  53. ti,debounce-tol Tolerance used for filtering (u16).
  54. ti,debounce-rep Additional consecutive good readings
  55. required after the first two (u16).
  56. ti,pendown-gpio-debounce Platform specific debounce time for the
  57. pendown-gpio (u32).
  58. pendown-gpio GPIO handle describing the pin the !PENIRQ
  59. line is connected to.
  60. wakeup-source use any event on touchscreen as wakeup event.
  61. (Legacy property support: "linux,wakeup")
  62. Example for a TSC2046 chip connected to an McSPI controller of an OMAP SoC::
  63. spi_controller {
  64. tsc2046@0 {
  65. reg = <0>; /* CS0 */
  66. compatible = "ti,tsc2046";
  67. interrupt-parent = <&gpio1>;
  68. interrupts = <8 0>; /* BOOT6 / GPIO 8 */
  69. spi-max-frequency = <1000000>;
  70. pendown-gpio = <&gpio1 8 0>;
  71. vcc-supply = <&reg_vcc3>;
  72. ti,x-min = /bits/ 16 <0>;
  73. ti,x-max = /bits/ 16 <8000>;
  74. ti,y-min = /bits/ 16 <0>;
  75. ti,y-max = /bits/ 16 <4800>;
  76. ti,x-plate-ohms = /bits/ 16 <40>;
  77. ti,pressure-max = /bits/ 16 <255>;
  78. wakeup-source;
  79. };
  80. };