cma3000_d0x.rst 2.9 KB
Newer Older
1 2
CMA3000-D0x Accelerometer
=========================
3 4 5

Supported chips:
* VTI CMA3000-D0x
6

7 8 9 10
Datasheet:
  CMA3000-D0X Product Family Specification 8281000A.02.pdf
  <http://www.vti.fi/en/>

11
:Author: Hemanth V <hemanthv@ti.com>
12 13 14 15


Description
-----------
16

17 18 19
CMA3000 Tri-axis accelerometer supports Motion detect, Measurement and
Free fall modes.

20 21 22
Motion Detect Mode:
    Its the low power mode where interrupts are generated only
    when motion exceeds the defined thresholds.
23

24 25 26
Measurement Mode:
    This mode is used to read the acceleration data on X,Y,Z
    axis and supports 400, 100, 40 Hz sample frequency.
27

28 29
Free fall Mode:
    This mode is intended to save system resources.
30

31 32 33 34
Threshold values:
    Chip supports defining threshold values for above modes
    which includes time and g value. Refer product specifications for
    more details.
35 36 37 38 39 40 41 42 43 44 45 46 47 48

CMA3000 chip supports mutually exclusive I2C and SPI interfaces for
communication, currently the driver supports I2C based communication only.
Initial configuration for bus mode is set in non volatile memory and can later
be modified through bus interface command.

Driver reports acceleration data through input subsystem. It generates ABS_MISC
event with value 1 when free fall is detected.

Platform data need to be configured for initial default values.

Platform Data
-------------

49 50
fuzz_x:
    Noise on X Axis
51

52 53
fuzz_y:
    Noise on Y Axis
54

55 56
fuzz_z:
    Noise on Z Axis
57

58 59
g_range:
    G range in milli g i.e 2000 or 8000
60

61 62 63 64 65
mode:
    Default Operating mode

mdthr:
    Motion detect g range threshold value
66

67 68
mdfftmr:
    Motion detect and free fall time threshold value
69

70 71
ffthr:
    Free fall g range threshold value
72 73

Input Interface
74 75
---------------

76 77 78
Input driver version is 1.0.0
Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
Input device name: "cma3000-accelerometer"
79 80 81

Supported events::

82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
  Event type 0 (Sync)
  Event type 3 (Absolute)
    Event code 0 (X)
      Value     47
      Min    -8000
      Max     8000
      Fuzz     200
    Event code 1 (Y)
      Value    -28
      Min    -8000
      Max     8000
      Fuzz     200
    Event code 2 (Z)
      Value    905
      Min    -8000
      Max     8000
      Fuzz     200
    Event code 40 (Misc)
      Value      0
      Min        0
      Max        1
  Event type 4 (Misc)


Register/Platform parameters Description
----------------------------------------

109 110
mode::

111 112 113 114 115 116 117 118 119
	0: power down mode
	1: 100 Hz Measurement mode
	2: 400 Hz Measurement mode
	3: 40 Hz Measurement mode
	4: Motion Detect mode (default)
	5: 100 Hz Free fall mode
	6: 40 Hz Free fall mode
	7: Power off mode

120 121
grange::

122 123 124
	2000: 2000 mg or 2G Range
	8000: 8000 mg or 8G Range

125 126
mdthr::

127 128 129
	X: X * 71mg (8G Range)
	X: X * 18mg (2G Range)

130 131
mdfftmr::

132 133 134 135
	X: (X & 0x70) * 100 ms (MDTMR)
	   (X & 0x0F) * 2.5 ms (FFTMR 400 Hz)
	   (X & 0x0F) * 10 ms  (FFTMR 100 Hz)

136 137
ffthr::

138 139
       X: (X >> 2) * 18mg (2G Range)
       X: (X & 0x0F) * 71 mg (8G Range)