ad7879.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. * Analog Devices AD7879(-1)/AD7889(-1) touchscreen interface (SPI/I2C)
  2. Required properties:
  3. - compatible : for SPI slave, use "adi,ad7879"
  4. for I2C slave, use "adi,ad7879-1"
  5. - reg : SPI chipselect/I2C slave address
  6. See spi-bus.txt for more SPI slave properties
  7. - interrupt-parent : the phandle for the interrupt controller
  8. - interrupts : touch controller interrupt
  9. - touchscreen-max-pressure : maximum reported pressure
  10. - adi,resistance-plate-x : total resistance of X-plate (for pressure
  11. calculation)
  12. Optional properties:
  13. - touchscreen-swapped-x-y : X and Y axis are swapped (boolean)
  14. - adi,first-conversion-delay : 0-12: In 128us steps (starting with 128us)
  15. 13 : 2.560ms
  16. 14 : 3.584ms
  17. 15 : 4.096ms
  18. This property has to be a '/bits/ 8' value
  19. - adi,acquisition-time : 0: 2us
  20. 1: 4us
  21. 2: 8us
  22. 3: 16us
  23. This property has to be a '/bits/ 8' value
  24. - adi,median-filter-size : 0: disabled
  25. 1: 4 measurements
  26. 2: 8 measurements
  27. 3: 16 measurements
  28. This property has to be a '/bits/ 8' value
  29. - adi,averaging : 0: 2 middle values (1 if median disabled)
  30. 1: 4 middle values
  31. 2: 8 middle values
  32. 3: 16 values
  33. This property has to be a '/bits/ 8' value
  34. - adi,conversion-interval: : 0 : convert one time only
  35. 1-255: 515us + val * 35us (up to 9.440ms)
  36. This property has to be a '/bits/ 8' value
  37. Example:
  38. ad7879@2c {
  39. compatible = "adi,ad7879-1";
  40. reg = <0x2c>;
  41. interrupt-parent = <&gpio1>;
  42. interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
  43. touchscreen-max-pressure = <4096>;
  44. adi,resistance-plate-x = <120>;
  45. adi,first-conversion-delay = /bits/ 8 <3>;
  46. adi,acquisition-time = /bits/ 8 <1>;
  47. adi,median-filter-size = /bits/ 8 <2>;
  48. adi,averaging = /bits/ 8 <1>;
  49. adi,conversion-interval = /bits/ 8 <255>;
  50. };