aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorIrina Tirdea <irina.tirdea@intel.com>2015-01-29 13:45:10 -0500
committerJonathan Cameron <jic23@kernel.org>2015-01-30 15:34:59 -0500
commit40cb761306d6c19d80fe85f9ae52615932f76b71 (patch)
tree238c05112d8485c90dc227dae7c87d02efaffc95 /Documentation/ABI
parent81110933a94279afce73beecae568e704cf2b9b6 (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-iio49
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
346What: /sys/bus/iio/devices/iio:deviceX/in_steps_calibheight 346What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender
347What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender
348What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender
349What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender
350KernelVersion: 3.20
351Contact: linux-iio@vger.kernel.org
352Description:
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
357What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender_available
358What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender_available
359What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender_available
360What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender_available
361KernelVersion: 3.20
362Contact: linux-iio@vger.kernel.org
363Description:
364 Lists all available gender values (e.g.: male, female).
365
366What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibheight
367What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibheight
368What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibheight
369What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibheight
347KernelVersion: 3.19 370KernelVersion: 3.19
348Contact: linux-iio@vger.kernel.org 371Contact: linux-iio@vger.kernel.org
349Description: 372Description:
@@ -818,6 +841,14 @@ What: /sys/.../events/in_tempY_roc_falling_period
818What: /sys/.../events/in_accel_x&y&z_mag_falling_period 841What: /sys/.../events/in_accel_x&y&z_mag_falling_period
819What: /sys/.../events/in_intensity0_thresh_period 842What: /sys/.../events/in_intensity0_thresh_period
820What: /sys/.../events/in_proximity0_thresh_period 843What: /sys/.../events/in_proximity0_thresh_period
844What: /sys/.../events/in_activity_still_thresh_rising_period
845What: /sys/.../events/in_activity_still_thresh_falling_period
846What: /sys/.../events/in_activity_walking_thresh_rising_period
847What: /sys/.../events/in_activity_walking_thresh_falling_period
848What: /sys/.../events/in_activity_jogging_thresh_rising_period
849What: /sys/.../events/in_activity_jogging_thresh_falling_period
850What: /sys/.../events/in_activity_running_thresh_rising_period
851What: /sys/.../events/in_activity_running_thresh_falling_period
821KernelVersion: 2.6.37 852KernelVersion: 2.6.37
822Contact: linux-iio@vger.kernel.org 853Contact: linux-iio@vger.kernel.org
823Description: 854Description:
@@ -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
1176What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time
1177KernelVersion: 3.20
1178Contact: linux-iio@vger.kernel.org
1179Description:
1180 Number of seconds in which to compute speed.
1181
1145What: /sys/bus/iio/devices/iio:deviceX/in_rot_quaternion_raw 1182What: /sys/bus/iio/devices/iio:deviceX/in_rot_quaternion_raw
1146KernelVersion: 3.15 1183KernelVersion: 3.15
1147Contact: linux-iio@vger.kernel.org 1184Contact: 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
1210What: /sys/.../iio:deviceX/in_energy_en
1211What: /sys/.../iio:deviceX/in_distance_en
1212What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_en
1173What: /sys/.../iio:deviceX/in_steps_en 1213What: /sys/.../iio:deviceX/in_steps_en
1174KernelVersion: 3.19 1214KernelVersion: 3.19
1175Contact: linux-iio@vger.kernel.org 1215Contact: linux-iio@vger.kernel.org
1176Description: 1216Description:
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
1181What: /sys/.../iio:deviceX/in_steps_input 1222What: /sys/.../iio:deviceX/in_steps_input
1182KernelVersion: 3.19 1223KernelVersion: 3.19