ads7846.txt 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. ti,keep-vref-on set to keep vref on for differential
  24. measurements as well
  25. ti,swap-xy swap x and y axis
  26. ti,settle-delay-usec Settling time of the analog signals;
  27. a function of Vcc and the capacitance
  28. on the X/Y drivers. If set to non-zero,
  29. two samples are taken with settle_delay
  30. us apart, and the second one is used.
  31. ~150 uSec with 0.01uF caps (u16).
  32. ti,penirq-recheck-delay-usecs If set to non-zero, after samples are
  33. taken this delay is applied and penirq
  34. is rechecked, to help avoid false
  35. events. This value is affected by the
  36. material used to build the touch layer
  37. (u16).
  38. ti,x-plate-ohms Resistance of the X-plate,
  39. in Ohms (u16).
  40. ti,y-plate-ohms Resistance of the Y-plate,
  41. in Ohms (u16).
  42. ti,x-min Minimum value on the X axis (u16).
  43. ti,y-min Minimum value on the Y axis (u16).
  44. ti,x-max Maximum value on the X axis (u16).
  45. ti,y-max Minimum value on the Y axis (u16).
  46. ti,pressure-min Minimum reported pressure value
  47. (threshold) - u16.
  48. ti,pressure-max Maximum reported pressure value (u16).
  49. ti,debounce-max Max number of additional readings per
  50. sample (u16).
  51. ti,debounce-tol Tolerance used for filtering (u16).
  52. ti,debounce-rep Additional consecutive good readings
  53. required after the first two (u16).
  54. ti,pendown-gpio-debounce Platform specific debounce time for the
  55. pendown-gpio (u32).
  56. pendown-gpio GPIO handle describing the pin the !PENIRQ
  57. line is connected to.
  58. wakeup-source use any event on touchscreen as wakeup event.
  59. (Legacy property support: "linux,wakeup")
  60. Example for a TSC2046 chip connected to an McSPI controller of an OMAP SoC::
  61. spi_controller {
  62. tsc2046@0 {
  63. reg = <0>; /* CS0 */
  64. compatible = "ti,tsc2046";
  65. interrupt-parent = <&gpio1>;
  66. interrupts = <8 0>; /* BOOT6 / GPIO 8 */
  67. spi-max-frequency = <1000000>;
  68. pendown-gpio = <&gpio1 8 0>;
  69. vcc-supply = <&reg_vcc3>;
  70. ti,x-min = /bits/ 16 <0>;
  71. ti,x-max = /bits/ 16 <8000>;
  72. ti,y-min = /bits/ 16 <0>;
  73. ti,y-max = /bits/ 16 <4800>;
  74. ti,x-plate-ohms = /bits/ 16 <40>;
  75. ti,pressure-max = /bits/ 16 <255>;
  76. wakeup-source;
  77. };
  78. };