diff options
author | Irina Tirdea <irina.tirdea@intel.com> | 2015-01-29 13:45:10 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-01-30 15:34:59 -0500 |
commit | 40cb761306d6c19d80fe85f9ae52615932f76b71 (patch) | |
tree | 238c05112d8485c90dc227dae7c87d02efaffc95 /Documentation/ABI | |
parent | 81110933a94279afce73beecae568e704cf2b9b6 (diff) |
iio: add driver for Freescale MMA9553
Add support for Freescale MMA9553L Intelligent Pedometer Platform.
The following functionalities are supported:
- step counter (counts the number of steps using a HW register)
- step detector (generates an iio event at every step the user takes)
- activity recognition (rest, walking, jogging, running)
- speed
- calories
- distance
To get accurate pedometer results, the user's height, weight and gender
need to be configured.
The specifications can be downloaded from:
http://www.freescale.com/files/sensors/doc/ref_manual/MMA955xLSWRM.pdf
http://www.freescale.com/files/sensors/doc/ref_manual/MMA9553LSWRM.pdf
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r-- | Documentation/ABI/testing/sysfs-bus-iio | 49 |
1 files changed, 45 insertions, 4 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index 588620ef2101..9a70c31619ea 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio | |||
@@ -343,7 +343,30 @@ Description: | |||
343 | production inaccuracies). If shared across all channels, | 343 | production inaccuracies). If shared across all channels, |
344 | <type>_calibscale is used. | 344 | <type>_calibscale is used. |
345 | 345 | ||
346 | What: /sys/bus/iio/devices/iio:deviceX/in_steps_calibheight | 346 | What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender |
347 | What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender | ||
348 | What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender | ||
349 | What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender | ||
350 | KernelVersion: 3.20 | ||
351 | Contact: linux-iio@vger.kernel.org | ||
352 | Description: | ||
353 | Gender of the user (e.g.: male, female) used by some pedometers | ||
354 | to compute the stride length, distance, speed and activity | ||
355 | type. | ||
356 | |||
357 | What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender_available | ||
358 | What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender_available | ||
359 | What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender_available | ||
360 | What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender_available | ||
361 | KernelVersion: 3.20 | ||
362 | Contact: linux-iio@vger.kernel.org | ||
363 | Description: | ||
364 | Lists all available gender values (e.g.: male, female). | ||
365 | |||
366 | What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibheight | ||
367 | What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibheight | ||
368 | What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibheight | ||
369 | What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibheight | ||
347 | KernelVersion: 3.19 | 370 | KernelVersion: 3.19 |
348 | Contact: linux-iio@vger.kernel.org | 371 | Contact: linux-iio@vger.kernel.org |
349 | Description: | 372 | Description: |
@@ -818,6 +841,14 @@ What: /sys/.../events/in_tempY_roc_falling_period | |||
818 | What: /sys/.../events/in_accel_x&y&z_mag_falling_period | 841 | What: /sys/.../events/in_accel_x&y&z_mag_falling_period |
819 | What: /sys/.../events/in_intensity0_thresh_period | 842 | What: /sys/.../events/in_intensity0_thresh_period |
820 | What: /sys/.../events/in_proximity0_thresh_period | 843 | What: /sys/.../events/in_proximity0_thresh_period |
844 | What: /sys/.../events/in_activity_still_thresh_rising_period | ||
845 | What: /sys/.../events/in_activity_still_thresh_falling_period | ||
846 | What: /sys/.../events/in_activity_walking_thresh_rising_period | ||
847 | What: /sys/.../events/in_activity_walking_thresh_falling_period | ||
848 | What: /sys/.../events/in_activity_jogging_thresh_rising_period | ||
849 | What: /sys/.../events/in_activity_jogging_thresh_falling_period | ||
850 | What: /sys/.../events/in_activity_running_thresh_rising_period | ||
851 | What: /sys/.../events/in_activity_running_thresh_falling_period | ||
821 | KernelVersion: 2.6.37 | 852 | KernelVersion: 2.6.37 |
822 | Contact: linux-iio@vger.kernel.org | 853 | Contact: linux-iio@vger.kernel.org |
823 | Description: | 854 | Description: |
@@ -1142,6 +1173,12 @@ Description: | |||
1142 | This attribute is used to get/set the integration time in | 1173 | This attribute is used to get/set the integration time in |
1143 | seconds. | 1174 | seconds. |
1144 | 1175 | ||
1176 | What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time | ||
1177 | KernelVersion: 3.20 | ||
1178 | Contact: linux-iio@vger.kernel.org | ||
1179 | Description: | ||
1180 | Number of seconds in which to compute speed. | ||
1181 | |||
1145 | What: /sys/bus/iio/devices/iio:deviceX/in_rot_quaternion_raw | 1182 | What: /sys/bus/iio/devices/iio:deviceX/in_rot_quaternion_raw |
1146 | KernelVersion: 3.15 | 1183 | KernelVersion: 3.15 |
1147 | Contact: linux-iio@vger.kernel.org | 1184 | Contact: linux-iio@vger.kernel.org |
@@ -1170,13 +1207,17 @@ Description: | |||
1170 | present, output should be considered as processed with the | 1207 | present, output should be considered as processed with the |
1171 | unit in milliamps. | 1208 | unit in milliamps. |
1172 | 1209 | ||
1210 | What: /sys/.../iio:deviceX/in_energy_en | ||
1211 | What: /sys/.../iio:deviceX/in_distance_en | ||
1212 | What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_en | ||
1173 | What: /sys/.../iio:deviceX/in_steps_en | 1213 | What: /sys/.../iio:deviceX/in_steps_en |
1174 | KernelVersion: 3.19 | 1214 | KernelVersion: 3.19 |
1175 | Contact: linux-iio@vger.kernel.org | 1215 | Contact: linux-iio@vger.kernel.org |
1176 | Description: | 1216 | Description: |
1177 | Activates the step counter. After activation, the number of steps | 1217 | Activates a device feature that runs in firmware/hardware. |
1178 | taken by the user will be counted in hardware and exported through | 1218 | E.g. for steps: the pedometer saves power while not used; |
1179 | in_steps_input. | 1219 | when activated, it will count the steps taken by the user in |
1220 | firmware and export them through in_steps_input. | ||
1180 | 1221 | ||
1181 | What: /sys/.../iio:deviceX/in_steps_input | 1222 | What: /sys/.../iio:deviceX/in_steps_input |
1182 | KernelVersion: 3.19 | 1223 | KernelVersion: 3.19 |