Staging: IIO: DAC: AD5624R: Update to IIO ABI
[firefly-linux-kernel-4.4.55.git] / drivers / staging / iio / Documentation / sysfs-bus-iio
1 What:           /sys/bus/iio/devices/deviceX
2 KernelVersion:  2.6.35
3 Contact:        linux-iio@vger.kernel.org
4 Description:
5                 Hardware chip or device accessed by on communication port.
6                 Corresponds to a grouping of sensor channels. X is the IIO
7                 index of the device.
8
9 What:           /sys/bus/iio/devices/triggerX
10 KernelVersion:  2.6.35
11 Contact:        linux-iio@vger.kernel.org
12 Description:
13                 An event driven driver of data capture to an in kernel buffer.
14                 May be provided by a device driver that also has an IIO device
15                 based on hardware generated events (e.g. data ready) or
16                 provided by a separate driver for other hardware (e.g.
17                 periodic timer, GPIO or high resolution timer).
18                 Contains trigger type specific elements. These do not
19                 generalize well and hence are not documented in this file.
20                 X is the IIO index of the trigger.
21
22 What:           /sys/bus/iio/devices/deviceX:buffer
23 KernelVersion:  2.6.35
24 Contact:        linux-iio@vger.kernel.org
25 Description:
26                 Link to /sys/class/iio/deviceX/deviceX:buffer. X indicates
27                 the device with which this buffer buffer is associated.
28
29 What:           /sys/bus/iio/devices/deviceX/name
30 KernelVersion:  2.6.35
31 Contact:        linux-iio@vger.kernel.org
32 Description:
33                 Description of the physical chip / device for device X.
34                 Typically a part number.
35
36 What:           /sys/bus/iio/devices/deviceX/sampling_frequency
37 KernelVersion:  2.6.35
38 Contact:        linux-iio@vger.kernel.org
39 Description:
40                 Some devices have internal clocks.  This parameter sets the
41                 resulting sampling frequency.  In many devices this
42                 parameter has an effect on input filters etc rather than
43                 simply controlling when the input is sampled.  As this
44                 effects datardy triggers, hardware buffers and the sysfs
45                 direct access interfaces, it may be found in any of the
46                 relevant directories.  If it effects all of the above
47                 then it is to be found in the base device directory as here.
48
49 What:           /sys/bus/iio/devices/deviceX/sampling_frequency_available
50 KernelVersion:  2.6.35
51 Contact:        linux-iio@vger.kernel.org
52 Description:
53                 When the internal sampling clock can only take a small
54                 discrete set of values, this file lists those available.
55
56 What:           /sys/bus/iio/devices/deviceX/range
57 KernelVersion:  2.6.38
58 Contact:        linux-iio@vger.kernel.org
59 Description:
60                 Hardware dependent ADC Full Scale Range in mVolt.
61
62 What:           /sys/bus/iio/devices/deviceX/range_available
63 KernelVersion:  2.6.38
64 Contact:        linux-iio@vger.kernel.org
65 Description:
66                 Hardware dependent supported vales for ADC Full Scale Range.
67
68 What:           /sys/bus/iio/devices/deviceX/oversampling_ratio
69 KernelVersion:  2.6.38
70 Contact:        linux-iio@vger.kernel.org
71 Description:
72                 Hardware dependent ADC oversampling. Controls the sampling ratio
73                 of the digital filter if available.
74
75 What:           /sys/bus/iio/devices/deviceX/oversampling_ratio_available
76 KernelVersion:  2.6.38
77 Contact:        linux-iio@vger.kernel.org
78 Description:
79                 Hardware dependent values supported by the oversampling filter.
80
81 What:           /sys/bus/iio/devices/deviceX/inY_raw
82 What:           /sys/bus/iio/devices/deviceX/inY_supply_raw
83 KernelVersion:  2.6.35
84 Contact:        linux-iio@vger.kernel.org
85 Description:
86                 Raw (unscaled no bias removal etc) voltage measurement from
87                 channel Y. In special cases where the channel does not
88                 correspond to externally available input one of the named
89                 versions may be used. The number must always be specified and
90                 unique to allow association with event codes.
91
92 What:           /sys/bus/iio/devices/deviceX/inY-inZ_raw
93 KernelVersion:  2.6.35
94 Contact:        linux-iio@vger.kernel.org
95 Description:
96                 Raw (unscaled) differential voltage measurement equivalent to
97                 channel Y - channel Z where these channel numbers apply to the
98                 physically equivalent inputs when non differential readings are
99                 separately available. In differential only parts, then all that
100                 is required is a consistent labeling.
101
102 What:           /sys/bus/iio/devices/deviceX/temp_raw
103 What:           /sys/bus/iio/devices/deviceX/temp_x_raw
104 What:           /sys/bus/iio/devices/deviceX/temp_y_raw
105 What:           /sys/bus/iio/devices/deviceX/temp_z_raw
106 KernelVersion:  2.6.35
107 Contact:        linux-iio@vger.kernel.org
108 Description:
109                 Raw (unscaled no bias removal etc) temperature measurement.
110                 It an axis is specified it generally means that the temperature
111                 sensor is associated with one part of a compound device (e.g.
112                 a gyroscope axis).
113
114 What:           /sys/bus/iio/devices/deviceX/tempX_input
115 KernelVersion:  2.6.38
116 Contact:        linux-iio@vger.kernel.org
117 Description:
118                 Scaled temperature measurement in milli degrees Celsius.
119
120 What:           /sys/bus/iio/devices/deviceX/accel_x_raw
121 What:           /sys/bus/iio/devices/deviceX/accel_y_raw
122 What:           /sys/bus/iio/devices/deviceX/accel_z_raw
123 KernelVersion:  2.6.35
124 Contact:        linux-iio@vger.kernel.org
125 Description:
126                 Acceleration in direction x, y or z (may be arbitrarily assigned
127                 but should match other such assignments on device)
128                 channel m (not present if only one accelerometer channel at
129                 this orientation). Has all of the equivalent parameters as per
130                 inY. Units after application of scale and offset are m/s^2.
131
132 What:           /sys/bus/iio/devices/deviceX/gyro_x_raw
133 What:           /sys/bus/iio/devices/deviceX/gyro_y_raw
134 What:           /sys/bus/iio/devices/deviceX/gyro_z_raw
135 KernelVersion:  2.6.35
136 Contact:        linux-iio@vger.kernel.org
137 Description:
138                 Angular velocity about axis x, y or z (may be arbitrarily
139                 assigned) Data converted by application of offset then scale to
140                 radians per second. Has all the equivalent parameters as
141                 per inY.
142
143 What:           /sys/bus/iio/devices/deviceX/incli_x_raw
144 What:           /sys/bus/iio/devices/deviceX/incli_y_raw
145 What:           /sys/bus/iio/devices/deviceX/incli_z_raw
146 KernelVersion:  2.6.35
147 Contact:        linux-iio@vger.kernel.org
148 Description:
149                 Inclination raw reading about axis x, y or z (may be
150                 arbitrarily assigned). Data converted by application of offset
151                 and scale to Degrees.
152
153 What:           /sys/bus/iio/devices/deviceX/magn_x_raw
154 What:           /sys/bus/iio/devices/deviceX/magn_y_raw
155 What:           /sys/bus/iio/devices/deviceX/magn_z_raw
156 KernelVersion:  2.6.35
157 Contact:        linux-iio@vger.kernel.org
158 Description:
159                 Magnetic field along axis x, y or z (may be arbitrarily
160                 assigned) channel m (not present if only one magnetometer
161                 at this orientation).  Data converted by application of
162                 offset then scale to Gauss. Has all the equivalent modifiers
163                 as per inY.
164
165 What:           /sys/bus/iio/devices/deviceX/accel_x_peak_raw
166 What:           /sys/bus/iio/devices/deviceX/accel_y_peak_raw
167 What:           /sys/bus/iio/devices/deviceX/accel_z_peak_raw
168 KernelVersion:  2.6.36
169 Contact:        linux-iio@vger.kernel.org
170 Description:
171                 Some devices provide a store of the highest value seen since
172                 some reset condition.  These attributes allow access to this
173                 and are otherwise the direct equivalent of the
174                 <type>Y[_name]_raw attributes.
175
176 What:           /sys/bus/iio/devices/deviceX/accel_xyz_squared_peak_raw
177 KernelVersion:  2.6.36
178 Contact:        linux-iio@vger.kernel.org
179 Description:
180                 A computed peak value based on the sum squared magnitude of
181                 the underlying value in the specified directions.
182
183 What:           /sys/bus/iio/devices/deviceX/accel_offset
184 What:           /sys/bus/iio/devices/deviceX/temp_offset
185 KernelVersion:  2.6.35
186 Contact:        linux-iio@vger.kernel.org
187 Description:
188                 If known for a device, offset to be added to <type>[Y]_raw prior
189                 to scaling by <type>[Y]_scale in order to obtain value in the
190                 <type> units as specified in <type>[y]_raw documentation.
191                 Not present if the offset is always 0 or unknown. If Y is not
192                 present, then the offset applies to all in channels of <type>.
193                 May be writable if a variable offset can be applied on the
194                 device. Note that this is different to calibbias which
195                 is for devices (or drivers) that apply offsets to compensate
196                 for variation between different instances of the part, typically
197                 adjusted by using some hardware supported calibration procedure.
198
199 What:           /sys/bus/iio/devices/deviceX/inY_scale
200 What:           /sys/bus/iio/devices/deviceX/inY_supply_scale
201 What:           /sys/bus/iio/devices/deviceX/in_scale
202 What:           /sys/bus/iio/devices/deviceX/outY_scale
203 What:           /sys/bus/iio/devices/deviceX/accel_scale
204 What:           /sys/bus/iio/devices/deviceX/accel_peak_scale
205 What:           /sys/bus/iio/devices/deviceX/gyro_scale
206 What:           /sys/bus/iio/devices/deviceX/magn_scale
207 What:           /sys/bus/iio/devices/deviceX/magn_x_scale
208 What:           /sys/bus/iio/devices/deviceX/magn_y_scale
209 What:           /sys/bus/iio/devices/deviceX/magn_z_scale
210 KernelVersion:  2.6.35
211 Contact:        linux-iio@vger.kernel.org
212 Description:
213                 If known for a device, scale to be applied to <type>Y[_name]_raw
214                 post addition of <type>[Y][_name]_offset in order to obtain the
215                 measured value in <type> units as specified in
216                 <type>[Y][_name]_raw documentation..  If shared across all in
217                 channels then Y is not present and the value is called
218                 <type>[Y][_name]_scale. The peak modifier means this value
219                 is applied to <type>Y[_name]_peak_raw values.
220
221 What:           /sys/bus/iio/devices/deviceX/accel_x_calibbias
222 What:           /sys/bus/iio/devices/deviceX/accel_y_calibbias
223 What:           /sys/bus/iio/devices/deviceX/accel_z_calibbias
224 What:           /sys/bus/iio/devices/deviceX/gyro_x_calibbias
225 What:           /sys/bus/iio/devices/deviceX/gyro_y_calibbias
226 What:           /sys/bus/iio/devices/deviceX/gyro_z_calibbias
227 KernelVersion:  2.6.35
228 Contact:        linux-iio@vger.kernel.org
229 Description:
230                 Hardware applied calibration offset. (assumed to fix production
231                 inaccuracies). If shared across all channels, <type>_calibbias
232                 is used.
233
234 What            /sys/bus/iio/devices/deviceX/inY_calibscale
235 What            /sys/bus/iio/devices/deviceX/inY_supply_calibscale
236 What            /sys/bus/iio/devices/deviceX/in_calibscale
237 What            /sys/bus/iio/devices/deviceX/accel_x_calibscale
238 What            /sys/bus/iio/devices/deviceX/accel_y_calibscale
239 What            /sys/bus/iio/devices/deviceX/accel_z_calibscale
240 What            /sys/bus/iio/devices/deviceX/gyro_x_calibscale
241 What            /sys/bus/iio/devices/deviceX/gyro_y_calibscale
242 What            /sys/bus/iio/devices/deviceX/gyro_z_calibscale
243 KernelVersion:  2.6.35
244 Contact:        linux-iio@vger.kernel.org
245 Description:
246                 Hardware applied calibration scale factor. (assumed to fix
247                 production inaccuracies).  If shared across all channels,
248                 <type>_calibscale is used.
249
250 What:           /sys/bus/iio/devices/deviceX/accel_scale_available
251 KernelVersion:  2.635
252 Contact:        linux-iio@vger.kernel.org
253 Description:
254                 If a discrete set of scale values are available, they
255                 are listed in this attribute.
256
257 What:           /sys/bus/iio/devices/deviceX/outY_raw
258 KernelVersion:  2.6.37
259 Contact:        linux-iio@vger.kernel.org
260 Description:
261                 Raw (unscaled, no bias etc.) output voltage for
262                 channel Y.  The number must always be specified and
263                 unique if the output corresponds to a single channel.
264
265 What:           /sys/bus/iio/devices/deviceX/outY&Z_raw
266 KernelVersion:  2.6.37
267 Contact:        linux-iio@vger.kernel.org
268 Description:
269                 Raw (unscaled, no bias etc.) output voltage for an aggregate of
270                 channel Y, channel Z, etc.  This interface is available in cases
271                 where a single output sets the value for multiple channels
272                 simultaneously.
273
274 What:           /sys/bus/iio/devices/deviceX/outY_powerdown_mode
275 What:           /sys/bus/iio/devices/deviceX/out_powerdown_mode
276 KernelVersion:  2.6.38
277 Contact:        linux-iio@vger.kernel.org
278 Description:
279                 Specifies the output powerdown mode.
280                 DAC output stage is disconnected from the amplifier and
281                 1kohm_to_gnd: connected to ground via an 1kOhm resistor
282                 100kohm_to_gnd: connected to ground via an 100kOhm resistor
283                 three_state: left floating
284                 For a list of available output power down options read
285                 outX_powerdown_mode_available. If Y is not present the
286                 mode is shared across all outputs.
287
288 What:           /sys/bus/iio/devices/deviceX/outY_powerdown_mode_available
289 What:           /sys/bus/iio/devices/deviceX/out_powerdown_mode_available
290 KernelVersion:  2.6.38
291 Contact:        linux-iio@vger.kernel.org
292 Description:
293                 Lists all available output power down modes.
294                 If Y is not present the mode is shared across all outputs.
295
296 What:           /sys/bus/iio/devices/deviceX/outY_powerdown
297 What:           /sys/bus/iio/devices/deviceX/out_powerdown
298 KernelVersion:  2.6.38
299 Contact:        linux-iio@vger.kernel.org
300 Description:
301                 Writing 1 causes output Y to enter the power down mode specified
302                 by the corresponding outY_powerdown_mode. Clearing returns to
303                 normal operation. Y may be suppressed if all outputs are
304                 controlled together.
305
306 What:           /sys/bus/iio/devices/deviceX/deviceX:eventY
307 KernelVersion:  2.6.35
308 Contact:        linux-iio@vger.kernel.org
309 Description:
310                 Configuration of which hardware generated events are passed up
311                 to user-space.
312
313 What:           /sys/bus/iio/devices/deviceX:event/dev
314 What:           /sys/bus/iio/devices/deviceX:eventY/dev
315 KernelVersion:  2.6.35
316 Contact:        linux-iio@vger.kernel.org
317 Description:
318                 major:minor character device numbers for the event line Y of
319                 device X.
320
321 What:           /sys/.../deviceX:eventY/accel_x_thresh_rising_en
322 What:           /sys/.../deviceX:eventY/accel_x_thresh_falling_en
323 What:           /sys/.../deviceX:eventY/accel_y_thresh_rising_en
324 What:           /sys/.../deviceX:eventY/accel_y_thresh_falling_en
325 What:           /sys/.../deviceX:eventY/accel_z_thresh_rising_en
326 What:           /sys/.../deviceX:eventY/accel_z_thresh_falling_en
327 What:           /sys/.../deviceX:eventY/gyro_x_thresh_rising_en
328 What:           /sys/.../deviceX:eventY/gyro_x_thresh_falling_en
329 What:           /sys/.../deviceX:eventY/gyro_y_thresh_rising_en
330 What:           /sys/.../deviceX:eventY/gyro_y_thresh_falling_en
331 What:           /sys/.../deviceX:eventY/gyro_z_thresh_rising_en
332 What:           /sys/.../deviceX:eventY/gyro_z_thresh_falling_en
333 What:           /sys/.../deviceX:eventY/magn_x_thresh_rising_en
334 What:           /sys/.../deviceX:eventY/magn_x_thresh_falling_en
335 What:           /sys/.../deviceX:eventY/magn_y_thresh_rising_en
336 What:           /sys/.../deviceX:eventY/magn_y_thresh_falling_en
337 What:           /sys/.../deviceX:eventY/magn_z_thresh_rising_en
338 What:           /sys/.../deviceX:eventY/magn_z_thresh_falling_en
339 What:           /sys/.../deviceX:eventY/inZ_supply_thresh_rising_en
340 What:           /sys/.../deviceX:eventY/inZ_supply_thresh_falling_en
341 What:           /sys/.../deviceX:eventY/inZ_thresh_rising_en
342 What:           /sys/.../deviceX:eventY/inZ_thresh_falling_en
343 What:           /sys/.../deviceX:eventY/temp_thresh_rising_en
344 What:           /sys/.../deviceX:eventY/temp_thresh_falling_en
345 KernelVersion:  2.6.37
346 Contact:        linux-iio@vger.kernel.org
347 Description:
348                 Event generated when channel passes a threshold in the specified
349                 (_rising|_falling) direction. If the direction is not specified,
350                 then either the device will report an event which ever direction
351                 a single threshold value is called in (e.g.
352                 <type>[Z][_name]_<raw|input>_thresh_value) or
353                 <type>[Z][_name]_<raw|input>_thresh_rising_value and
354                 <type>[Z][_name]_<raw|input>_thresh_falling_value may take
355                 different values, but the device can only enable both thresholds
356                 or neither.
357                 Note the driver will assume the last p events requested are
358                 to be enabled where p is however many it supports (which may
359                 vary depending on the exact set requested. So if you want to be
360                 sure you have set what you think you have, check the contents of
361                 these attributes after everything is configured. Drivers may
362                 have to buffer any parameters so that they are consistent when
363                 a given event type is enabled a future point (and not those for
364                 whatever event was previously enabled).
365
366 What:           /sys/.../deviceX:eventY/accel_x_roc_rising_en
367 What:           /sys/.../deviceX:eventY/accel_x_roc_falling_en
368 What:           /sys/.../deviceX:eventY/accel_y_roc_rising_en
369 What:           /sys/.../deviceX:eventY/accel_y_roc_falling_en
370 What:           /sys/.../deviceX:eventY/accel_z_roc_rising_en
371 What:           /sys/.../deviceX:eventY/accel_z_roc_falling_en
372 What:           /sys/.../deviceX:eventY/gyro_x_roc_rising_en
373 What:           /sys/.../deviceX:eventY/gyro_x_roc_falling_en
374 What:           /sys/.../deviceX:eventY/gyro_y_roc_rising_en
375 What:           /sys/.../deviceX:eventY/gyro_y_roc_falling_en
376 What:           /sys/.../deviceX:eventY/gyro_z_roc_rising_en
377 What:           /sys/.../deviceX:eventY/gyro_z_roc_falling_en
378 What:           /sys/.../deviceX:eventY/magn_x_roc_rising_en
379 What:           /sys/.../deviceX:eventY/magn_x_roc_falling_en
380 What:           /sys/.../deviceX:eventY/magn_y_roc_rising_en
381 What:           /sys/.../deviceX:eventY/magn_y_roc_falling_en
382 What:           /sys/.../deviceX:eventY/magn_z_roc_rising_en
383 What:           /sys/.../deviceX:eventY/magn_z_roc_falling_en
384 What:           /sys/.../deviceX:eventY/inZ_supply_roc_rising_en
385 What:           /sys/.../deviceX:eventY/inZ_supply_roc_falling_en
386 What:           /sys/.../deviceX:eventY/inZ_roc_rising_en
387 What:           /sys/.../deviceX:eventY/inZ_roc_falling_en
388 What:           /sys/.../deviceX:eventY/temp_roc_rising_en
389 What:           /sys/.../deviceX:eventY/temp_roc_falling_en
390 KernelVersion:  2.6.37
391 Contact:        linux-iio@vger.kernel.org
392 Description:
393                 Event generated when channel passes a threshold on the rate of
394                 change (1st differential) in the specified (_rising|_falling)
395                 direction. If the direction is not specified, then either the
396                 device will report an event which ever direction a single
397                 threshold value is called in (e.g.
398                 <type>[Z][_name]_<raw|input>_roc_value) or
399                 <type>[Z][_name]_<raw|input>_roc_rising_value and
400                 <type>[Z][_name]_<raw|input>_roc_falling_value may take
401                 different values, but the device can only enable both rate of
402                 change thresholds or neither.
403                 Note the driver will assume the last p events requested are
404                 to be enabled where p is however many it supports (which may
405                 vary depending on the exact set requested. So if you want to be
406                 sure you have set what you think you have, check the contents of
407                 these attributes after everything is configured. Drivers may
408                 have to buffer any parameters so that they are consistent when
409                 a given event type is enabled a future point (and not those for
410                 whatever event was previously enabled).
411
412 What:           /sys/.../deviceX:eventY/accel_x_raw_thresh_rising_value
413 What:           /sys/.../deviceX:eventY/accel_x_raw_thresh_falling_value
414 What:           /sys/.../deviceX:eventY/accel_y_raw_thresh_rising_value
415 What:           /sys/.../deviceX:eventY/accel_y_raw_thresh_falling_value
416 What:           /sys/.../deviceX:eventY/accel_z_raw_thresh_rising_value
417 What:           /sys/.../deviceX:eventY/accel_z_raw_thresh_falling_value
418 What:           /sys/.../deviceX:eventY/gyro_x_raw_thresh_rising_value
419 What:           /sys/.../deviceX:eventY/gyro_x_raw_thresh_falling_value
420 What:           /sys/.../deviceX:eventY/gyro_y_raw_thresh_rising_value
421 What:           /sys/.../deviceX:eventY/gyro_y_raw_thresh_falling_value
422 What:           /sys/.../deviceX:eventY/gyro_z_raw_thresh_rising_value
423 What:           /sys/.../deviceX:eventY/gyro_z_raw_thresh_falling_value
424 What:           /sys/.../deviceX:eventY/magn_x_raw_thresh_rising_value
425 What:           /sys/.../deviceX:eventY/magn_x_raw_thresh_falling_value
426 What:           /sys/.../deviceX:eventY/magn_y_raw_thresh_rising_value
427 What:           /sys/.../deviceX:eventY/magn_y_raw_thresh_falling_value
428 What:           /sys/.../deviceX:eventY/magn_z_raw_thresh_rising_value
429 What:           /sys/.../deviceX:eventY/magn_z_raw_thresh_falling_value
430 What:           /sys/.../deviceX:eventY/inZ_supply_raw_thresh_rising_value
431 What:           /sys/.../deviceX:eventY/inZ_supply_raw_thresh_falling_value
432 What:           /sys/.../deviceX:eventY/inZ_raw_thresh_falling_value
433 What:           /sys/.../deviceX:eventY/inZ_raw_thresh_falling_value
434 What:           /sys/.../deviceX:eventY/temp_raw_thresh_falling_value
435 What:           /sys/.../deviceX:eventY/temp_raw_thresh_falling_value
436 KernelVersion:  2.6.37
437 Contact:        linux-iio@vger.kernel.org
438 Description:
439                 Specifies the value of threshold that the device is comparing
440                 against for the events enabled by
441                 <type>Z[_name]_thresh[_rising|falling]_en.
442                 If separate attributes  exist for the two directions, but
443                 direction is not specified for this attribute, then a single
444                 threshold value applies to both directions.
445                 The raw or input element of the name indicates whether the
446                 value is in raw device units or in processed units (as _raw
447                 and _input do on sysfs direct channel read attributes).
448
449 What:           /sys/.../deviceX:eventY/accel_x_raw_roc_rising_value
450 What:           /sys/.../deviceX:eventY/accel_x_raw_roc_falling_value
451 What:           /sys/.../deviceX:eventY/accel_y_raw_roc_rising_value
452 What:           /sys/.../deviceX:eventY/accel_y_raw_roc_falling_value
453 What:           /sys/.../deviceX:eventY/accel_z_raw_roc_rising_value
454 What:           /sys/.../deviceX:eventY/accel_z_raw_roc_falling_value
455 What:           /sys/.../deviceX:eventY/gyro_x_raw_roc_rising_value
456 What:           /sys/.../deviceX:eventY/gyro_x_raw_roc_falling_value
457 What:           /sys/.../deviceX:eventY/gyro_y_raw_roc_rising_value
458 What:           /sys/.../deviceX:eventY/gyro_y_raw_roc_falling_value
459 What:           /sys/.../deviceX:eventY/gyro_z_raw_roc_rising_value
460 What:           /sys/.../deviceX:eventY/gyro_z_raw_roc_falling_value
461 What:           /sys/.../deviceX:eventY/magn_x_raw_roc_rising_value
462 What:           /sys/.../deviceX:eventY/magn_x_raw_roc_falling_value
463 What:           /sys/.../deviceX:eventY/magn_y_raw_roc_rising_value
464 What:           /sys/.../deviceX:eventY/magn_y_raw_roc_falling_value
465 What:           /sys/.../deviceX:eventY/magn_z_raw_roc_rising_value
466 What:           /sys/.../deviceX:eventY/magn_z_raw_roc_falling_value
467 What:           /sys/.../deviceX:eventY/inZ_supply_raw_roc_rising_value
468 What:           /sys/.../deviceX:eventY/inZ_supply_raw_roc_falling_value
469 What:           /sys/.../deviceX:eventY/inZ_raw_roc_falling_value
470 What:           /sys/.../deviceX:eventY/inZ_raw_roc_falling_value
471 What:           /sys/.../deviceX:eventY/temp_raw_roc_falling_value
472 What:           /sys/.../deviceX:eventY/temp_raw_roc_falling_value
473 KernelVersion:  2.6.37
474 Contact:        linux-iio@vger.kernel.org
475 Description:
476                 Specifies the value of rate of change threshold that the
477                 device is comparing against for the events enabled by
478                 <type>[Z][_name]_roc[_rising|falling]_en.
479                 If separate attributes exist for the two directions,
480                 but direction is not specified for this attribute,
481                 then a single threshold value applies to both directions.
482                 The raw or input element of the name indicates whether the
483                 value is in raw device units or in processed units (as _raw
484                 and _input do on sysfs direct channel read attributes).
485
486 What:           /sys/.../deviceX:eventY/accel_x_thresh_rising_period
487 What:           /sys/.../deviceX:eventY/accel_x_thresh_falling_period
488 hat:            /sys/.../deviceX:eventY/accel_x_roc_rising_period
489 What:           /sys/.../deviceX:eventY/accel_x_roc_falling_period
490 What:           /sys/.../deviceX:eventY/accel_y_thresh_rising_period
491 What:           /sys/.../deviceX:eventY/accel_y_thresh_falling_period
492 What:           /sys/.../deviceX:eventY/accel_y_roc_rising_period
493 What:           /sys/.../deviceX:eventY/accel_y_roc_falling_period
494 What:           /sys/.../deviceX:eventY/accel_z_thresh_rising_period
495 What:           /sys/.../deviceX:eventY/accel_z_thresh_falling_period
496 What:           /sys/.../deviceX:eventY/accel_z_roc_rising_period
497 What:           /sys/.../deviceX:eventY/accel_z_roc_falling_period
498 What:           /sys/.../deviceX:eventY/gyro_x_thresh_rising_period
499 What:           /sys/.../deviceX:eventY/gyro_x_thresh_falling_period
500 What:           /sys/.../deviceX:eventY/gyro_x_roc_rising_period
501 What:           /sys/.../deviceX:eventY/gyro_x_roc_falling_period
502 What:           /sys/.../deviceX:eventY/gyro_y_thresh_rising_period
503 What:           /sys/.../deviceX:eventY/gyro_y_thresh_falling_period
504 What:           /sys/.../deviceX:eventY/gyro_y_roc_rising_period
505 What:           /sys/.../deviceX:eventY/gyro_y_roc_falling_period
506 What:           /sys/.../deviceX:eventY/gyro_z_thresh_rising_period
507 What:           /sys/.../deviceX:eventY/gyro_z_thresh_falling_period
508 What:           /sys/.../deviceX:eventY/gyro_z_roc_rising_period
509 What:           /sys/.../deviceX:eventY/gyro_z_roc_falling_period
510 What:           /sys/.../deviceX:eventY/magn_x_thresh_rising_period
511 What:           /sys/.../deviceX:eventY/magn_x_thresh_falling_period
512 What:           /sys/.../deviceX:eventY/magn_x_roc_rising_period
513 What:           /sys/.../deviceX:eventY/magn_x_roc_falling_period
514 What:           /sys/.../deviceX:eventY/magn_y_thresh_rising_period
515 What:           /sys/.../deviceX:eventY/magn_y_thresh_falling_period
516 What:           /sys/.../deviceX:eventY/magn_y_roc_rising_period
517 What:           /sys/.../deviceX:eventY/magn_y_roc_falling_period
518 What:           /sys/.../deviceX:eventY/magn_z_thresh_rising_period
519 What:           /sys/.../deviceX:eventY/magn_z_thresh_falling_period
520 What:           /sys/.../deviceX:eventY/magn_z_roc_rising_period
521 What:           /sys/.../deviceX:eventY/magn_z_roc_falling_period
522 What:           /sys/.../deviceX:eventY/inZ_supply_thresh_rising_period
523 What:           /sys/.../deviceX:eventY/inZ_supply_thresh_falling_period
524 What:           /sys/.../deviceX:eventY/inz_supply_roc_rising_period
525 What:           /sys/.../deviceX:eventY/inZ_supply_roc_falling_period
526 What:           /sys/.../deviceX:eventY/inZ_thresh_rising_period
527 What:           /sys/.../deviceX:eventY/inZ_thresh_falling_period
528 What:           /sys/.../deviceX:eventY/inZ_roc_rising_period
529 What:           /sys/.../deviceX:eventY/inZ_roc_falling_period
530 What:           /sys/.../deviceX:eventY/temp_thresh_rising_period
531 What:           /sys/.../deviceX:eventY/temp_thresh_falling_period
532 What:           /sys/.../deviceX:eventY/temp_roc_rising_period
533 What:           /sys/.../deviceX:eventY/temp_roc_falling_period
534 What:           /sys/.../deviceX:eventY/accel_x&y&z_mag_falling_period
535 KernelVersion:  2.6.37
536 Contact:        linux-iio@vger.kernel.org
537 Description:
538                 Period of time (in seconds) for which the condition must be
539                 met before an event is generated. If direction is not
540                 specified then this period applies to both directions.
541
542 What:           /sys/.../deviceX:eventY/accel_mag_en
543 What:           /sys/.../deviceX:eventY/accel_mag_rising_en
544 What:           /sys/.../deviceX:eventY/accel_mag_falling_en
545 What:           /sys/.../deviceX:eventY/accel_x_mag_en
546 What:           /sys/.../deviceX:eventY/accel_x_mag_rising_en
547 What:           /sys/.../deviceX:eventY/accel_x_mag_falling_en
548 What:           /sys/.../deviceX:eventY/accel_y_mag_en
549 What:           /sys/.../deviceX:eventY/accel_y_mag_rising_en
550 What:           /sys/.../deviceX:eventY/accel_y_mag_falling_en
551 What:           /sys/.../deviceX:eventY/accel_z_mag_en
552 What:           /sys/.../deviceX:eventY/accel_z_mag_rising_en
553 What:           /sys/.../deviceX:eventY/accel_z_mag_falling_en
554 What:           /sys/.../deviceX:eventY/accel_x&y&z_mag_rising_en
555 What:           /sys/.../deviceX:eventY/accel_x&y&z_mag_falling_en
556 KernelVersion:  2.6.37
557 Contact:        linux-iio@vger.kernel.org
558 Description:
559                 Similar to accel_x_thresh[_rising|_falling]_en, but here the
560                 magnitude of the channel is compared to the threshold, not its
561                 signed value.
562
563 What:           /sys/.../accel_raw_mag_value
564 What:           /sys/.../accel_x_raw_mag_rising_value
565 What:           /sys/.../accel_y_raw_mag_rising_value
566 What:           /sys/.../accel_z_raw_mag_rising_value
567 KernelVersion:  2.6.37
568 Contact:        linux-iio@vger.kernel.org
569 Description:
570                 The value to which the magnitude of the channel is compared. If
571                 number or direction is not specified, applies to all channels of
572                 this type.
573
574 What:           /sys/bus/iio/devices/deviceX:buffer:event/dev
575 KernelVersion:  2.6.35
576 Contact:        linux-iio@vger.kernel.org
577 Description:
578                 Buffer for device X event character device major:minor numbers.
579
580 What:           /sys/bus/iio/devices/deviceX:buffer:access/dev
581 KernelVersion:  2.6.35
582 Contact:        linux-iio@vger.kernel.org
583 Description:
584                 Buffer for device X access character device major:minor numbers.
585
586 What:           /sys/bus/iio/devices/deviceX:buffer/trigger
587 KernelVersion:  2.6.35
588 Contact:        linux-iio@vger.kernel.org
589 Description:
590                 The name of the trigger source being used, as per string given
591                 in /sys/class/iio/triggerY/name.
592
593 What:           /sys/bus/iio/devices/deviceX:buffer/length
594 KernelVersion:  2.6.35
595 Contact:        linux-iio@vger.kernel.org
596 Description:
597                 Number of scans contained by the buffer.
598
599 What:           /sys/bus/iio/devices/deviceX:buffer/bytes_per_datum
600 KernelVersion:  2.6.37
601 Contact:        linux-iio@vger.kernel.org
602 Description:
603                 Bytes per scan.  Due to alignment fun, the scan may be larger
604                 than implied directly by the scan_element parameters.
605
606 What:           /sys/bus/iio/devices/deviceX:buffer/enable
607 KernelVersion:  2.6.35
608 Contact:        linux-iio@vger.kernel.org
609 Description:
610                 Actually start the buffer capture up.  Will start trigger
611                 if first device and appropriate.
612
613 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements
614 KernelVersion:  2.6.37
615 Contact:        linux-iio@vger.kernel.org
616 Description:
617                 Directory containing interfaces for elements that will be
618                 captured for a single triggered sample set in the buffer.
619
620 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_x_en
621 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_y_en
622 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_z_en
623 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_x_en
624 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_y_en
625 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_z_en
626 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_x_en
627 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_y_en
628 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_z_en
629 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/timestamp_en
630 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/inY_supply_en
631 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/inY_en
632 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/inY-inZ_en
633 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/incli_x_en
634 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/incli_y_en
635 KernelVersion:  2.6.37
636 Contact:        linux-iio@vger.kernel.org
637 Description:
638                 Scan element control for triggered data capture.
639
640 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_type
641 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_type
642 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_type
643 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/incli_type
644 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/inY_type
645 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/in-in_type
646 What:           /sys/.../deviceX:buffer/scan_elements/inY_supply_type
647 What:           /sys/.../deviceX:buffer/scan_elements/timestamp_type
648 KernelVersion:  2.6.37
649 Contact:        linux-iio@vger.kernel.org
650 Description:
651                 Description of the scan element data storage within the buffer
652                 and hence the form in which it is read from user-space.
653                 Form is [s|u]bits/storagebits[>>shift].  s or u specifies if
654                 signed (2's complement) or unsigned. bits is the number of bits
655                 of data and storagebits is the space (after padding) that it
656                 occupies in the buffer. shift if specified, is the shift that
657                 needs to be applied prior to masking out unused bits. Some
658                 devices put their data in the middle of the transferred elements
659                 with additional information on both sides.  Note that some
660                 devices will have additional information in the unused bits
661                 so to get a clean value, the bits value must be used to mask
662                 the buffer output value appropriately.  The storagebits value
663                 also specifies the data alignment.  So s48/64>>2 will be a
664                 signed 48 bit integer stored in a 64 bit location aligned to
665                 a a64 bit boundary. To obtain the clean value, shift right 2
666                 and apply a mask to zero the top 16 bits of the result.
667                 For other storage combinations this attribute will be extended
668                 appropriately.
669
670 What:           /sys/.../deviceX:buffer/scan_elements/accel_type_available
671 KernelVersion:  2.6.37
672 Contact:        linux-iio@vger.kernel.org
673 Description:
674                 If the type parameter can take one of a small set of values,
675                 this attribute lists them.
676
677 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/inY_index
678 What:           /sys/.../deviceX:buffer/scan_elements/inY_supply_index
679 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_x_index
680 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_y_index
681 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/accel_z_index
682 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_x_index
683 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_y_index
684 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/gyro_z_index
685 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_x_index
686 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_y_index
687 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/magn_z_index
688 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/incli_x_index
689 What:           /sys/bus/iio/devices/deviceX:buffer/scan_elements/incli_y_index
690 What:           /sys/.../deviceX:buffer/scan_elements/timestamp_index
691 KernelVersion:  2.6.37
692 Contact:        linux-iio@vger.kernel.org
693 Description:
694                 A single positive integer specifying the position of this
695                 scan element in the buffer. Note these are not dependent on
696                 what is enabled and may not be contiguous. Thus for user-space
697                 to establish the full layout these must be used in conjunction
698                 with all _en attributes to establish which channels are present,
699                 and the relevant _type attributes to establish the data storage
700                 format.