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