cma3000_d0x.rst 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. CMA3000-D0x Accelerometer
  2. =========================
  3. Supported chips:
  4. * VTI CMA3000-D0x
  5. Datasheet:
  6. CMA3000-D0X Product Family Specification 8281000A.02.pdf
  7. <http://www.vti.fi/en/>
  8. :Author: Hemanth V <hemanthv@ti.com>
  9. Description
  10. -----------
  11. CMA3000 Tri-axis accelerometer supports Motion detect, Measurement and
  12. Free fall modes.
  13. Motion Detect Mode:
  14. Its the low power mode where interrupts are generated only
  15. when motion exceeds the defined thresholds.
  16. Measurement Mode:
  17. This mode is used to read the acceleration data on X,Y,Z
  18. axis and supports 400, 100, 40 Hz sample frequency.
  19. Free fall Mode:
  20. This mode is intended to save system resources.
  21. Threshold values:
  22. Chip supports defining threshold values for above modes
  23. which includes time and g value. Refer product specifications for
  24. more details.
  25. CMA3000 chip supports mutually exclusive I2C and SPI interfaces for
  26. communication, currently the driver supports I2C based communication only.
  27. Initial configuration for bus mode is set in non volatile memory and can later
  28. be modified through bus interface command.
  29. Driver reports acceleration data through input subsystem. It generates ABS_MISC
  30. event with value 1 when free fall is detected.
  31. Platform data need to be configured for initial default values.
  32. Platform Data
  33. -------------
  34. fuzz_x:
  35. Noise on X Axis
  36. fuzz_y:
  37. Noise on Y Axis
  38. fuzz_z:
  39. Noise on Z Axis
  40. g_range:
  41. G range in milli g i.e 2000 or 8000
  42. mode:
  43. Default Operating mode
  44. mdthr:
  45. Motion detect g range threshold value
  46. mdfftmr:
  47. Motion detect and free fall time threshold value
  48. ffthr:
  49. Free fall g range threshold value
  50. Input Interface
  51. ---------------
  52. Input driver version is 1.0.0
  53. Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
  54. Input device name: "cma3000-accelerometer"
  55. Supported events::
  56. Event type 0 (Sync)
  57. Event type 3 (Absolute)
  58. Event code 0 (X)
  59. Value 47
  60. Min -8000
  61. Max 8000
  62. Fuzz 200
  63. Event code 1 (Y)
  64. Value -28
  65. Min -8000
  66. Max 8000
  67. Fuzz 200
  68. Event code 2 (Z)
  69. Value 905
  70. Min -8000
  71. Max 8000
  72. Fuzz 200
  73. Event code 40 (Misc)
  74. Value 0
  75. Min 0
  76. Max 1
  77. Event type 4 (Misc)
  78. Register/Platform parameters Description
  79. ----------------------------------------
  80. mode::
  81. 0: power down mode
  82. 1: 100 Hz Measurement mode
  83. 2: 400 Hz Measurement mode
  84. 3: 40 Hz Measurement mode
  85. 4: Motion Detect mode (default)
  86. 5: 100 Hz Free fall mode
  87. 6: 40 Hz Free fall mode
  88. 7: Power off mode
  89. grange::
  90. 2000: 2000 mg or 2G Range
  91. 8000: 8000 mg or 8G Range
  92. mdthr::
  93. X: X * 71mg (8G Range)
  94. X: X * 18mg (2G Range)
  95. mdfftmr::
  96. X: (X & 0x70) * 100 ms (MDTMR)
  97. (X & 0x0F) * 2.5 ms (FFTMR 400 Hz)
  98. (X & 0x0F) * 10 ms (FFTMR 100 Hz)
  99. ffthr::
  100. X: (X >> 2) * 18mg (2G Range)
  101. X: (X & 0x0F) * 71 mg (8G Range)