Merge tag 'block-5.14-2021-08-07' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / Documentation / ABI / testing / sysfs-bus-iio
1 What:           /sys/bus/iio/devices/iio:deviceX
2 KernelVersion:  2.6.35
3 Contact:        linux-iio@vger.kernel.org
4 Description:
5                 Hardware chip or device accessed by one 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
19                 Contains trigger type specific elements. These do not
20                 generalize well and hence are not documented in this file.
21                 X is the IIO index of the trigger.
22
23 What:           /sys/bus/iio/devices/iio:deviceX/buffer
24 KernelVersion:  2.6.35
25 Contact:        linux-iio@vger.kernel.org
26 Description:
27                 Directory of attributes relating to the buffer for the device.
28
29 What:           /sys/bus/iio/devices/iio: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/iio:deviceX/label
37 KernelVersion:  5.8
38 Contact:        linux-iio@vger.kernel.org
39 Description:
40                 Optional symbolic label for a device.
41                 This is useful for userspace to be able to better identify an
42                 individual device.
43
44                 The contents of the label are free-form, but there are some
45                 standardized uses:
46
47                 For proximity sensors which give the proximity (of a person) to
48                 a certain wlan or wwan antenna the following standardized labels
49                 are used:
50
51                 * "proximity-wifi"
52                 * "proximity-lte"
53                 * "proximity-wifi-lte"
54                 * "proximity-wifi-left"
55                 * "proximity-wifi-right"
56
57                 These are used to indicate to userspace that these proximity
58                 sensors may be used to tune transmit power to ensure that
59                 Specific Absorption Rate (SAR) limits are honored.
60                 The "-left" and "-right" labels are for devices with multiple
61                 antennas.
62
63                 In some laptops/tablets the standardized proximity sensor labels
64                 instead indicate proximity to a specific part of the device:
65
66                 * "proximity-palmrest" indicates proximity to the keyboard's palmrest
67                 * "proximity-palmrest-left" indicates proximity to the left part of the palmrest
68                 * "proximity-palmrest-right" indicates proximity to the right part of the palmrest
69                 * "proximity-lap" indicates the device is being used on someone's lap
70
71                 Note "proximity-lap" is special in that its value may be
72                 calculated by firmware from other sensor readings, rather then
73                 being a raw sensor reading.
74
75                 For accelerometers used in 2-in-1s with 360° (yoga-style) hinges,
76                 which have an accelerometer in both their base and their display,
77                 the following standardized labels are used:
78
79                 * "accel-base"
80                 * "accel-display"
81
82 What:           /sys/bus/iio/devices/iio:deviceX/current_timestamp_clock
83 KernelVersion:  4.5
84 Contact:        linux-iio@vger.kernel.org
85 Description:
86                 String identifying current posix clock used to timestamp
87                 buffered samples and events for device X.
88
89 What:           /sys/bus/iio/devices/iio:deviceX/sampling_frequency
90 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_sampling_frequency
91 What:           /sys/bus/iio/devices/iio:deviceX/buffer/sampling_frequency
92 What:           /sys/bus/iio/devices/triggerX/sampling_frequency
93 KernelVersion:  2.6.35
94 Contact:        linux-iio@vger.kernel.org
95 Description:
96                 Some devices have internal clocks.  This parameter sets the
97                 resulting sampling frequency.  In many devices this
98                 parameter has an effect on input filters etc. rather than
99                 simply controlling when the input is sampled.  As this
100                 affects data ready triggers, hardware buffers and the sysfs
101                 direct access interfaces, it may be found in any of the
102                 relevant directories.  If it affects all of the above
103                 then it is to be found in the base device directory.
104
105 What:           /sys/bus/iio/devices/iio:deviceX/sampling_frequency_available
106 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_sampling_frequency_available
107 What:           /sys/bus/iio/devices/iio:deviceX/in_proximity_sampling_frequency_available
108 What:           /sys/.../iio:deviceX/buffer/sampling_frequency_available
109 What:           /sys/bus/iio/devices/triggerX/sampling_frequency_available
110 KernelVersion:  2.6.35
111 Contact:        linux-iio@vger.kernel.org
112 Description:
113                 When the internal sampling clock can only take a specific set of
114                 frequencies, we can specify the available values with:
115
116                 - a small discrete set of values like "0 2 4 6 8"
117                 - a range with minimum, step and maximum frequencies like
118                   "[min step max]"
119
120 What:           /sys/bus/iio/devices/iio:deviceX/oversampling_ratio
121 KernelVersion:  2.6.38
122 Contact:        linux-iio@vger.kernel.org
123 Description:
124                 Hardware dependent ADC oversampling. Controls the sampling ratio
125                 of the digital filter if available.
126
127 What:           /sys/bus/iio/devices/iio:deviceX/oversampling_ratio_available
128 KernelVersion:  2.6.38
129 Contact:        linux-iio@vger.kernel.org
130 Description:
131                 Hardware dependent values supported by the oversampling filter.
132
133 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_raw
134 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_raw
135 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_raw
136 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_q_raw
137 KernelVersion:  2.6.35
138 Contact:        linux-iio@vger.kernel.org
139 Description:
140                 Raw (unscaled no bias removal etc.) voltage measurement from
141                 channel Y. In special cases where the channel does not
142                 correspond to externally available input one of the named
143                 versions may be used. The number must always be specified and
144                 unique to allow association with event codes. Units after
145                 application of scale and offset are millivolts.
146
147                 Channels with 'i' and 'q' modifiers always exist in pairs and both
148                 channels refer to the same signal. The 'i' channel contains the in-phase
149                 component of the signal while the 'q' channel contains the quadrature
150                 component.
151
152 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY-voltageZ_raw
153 KernelVersion:  2.6.35
154 Contact:        linux-iio@vger.kernel.org
155 Description:
156                 Raw (unscaled) differential voltage measurement equivalent to
157                 channel Y - channel Z where these channel numbers apply to the
158                 physically equivalent inputs when non differential readings are
159                 separately available. In differential only parts, then all that
160                 is required is a consistent labeling.  Units after application
161                 of scale and offset are millivolts.
162
163 What:           /sys/bus/iio/devices/iio:deviceX/in_currentY_raw
164 What:           /sys/bus/iio/devices/iio:deviceX/in_currentY_supply_raw
165 KernelVersion:  3.17
166 Contact:        linux-iio@vger.kernel.org
167 Description:
168                 Raw (unscaled no bias removal etc.) current measurement from
169                 channel Y. In special cases where the channel does not
170                 correspond to externally available input one of the named
171                 versions may be used. The number must always be specified and
172                 unique to allow association with event codes. Units after
173                 application of scale and offset are milliamps.
174
175 What:           /sys/bus/iio/devices/iio:deviceX/in_powerY_raw
176 KernelVersion:  4.5
177 Contact:        linux-iio@vger.kernel.org
178 Description:
179                 Raw (unscaled no bias removal etc.) power measurement from
180                 channel Y. The number must always be specified and
181                 unique to allow association with event codes. Units after
182                 application of scale and offset are milliwatts.
183
184 What:           /sys/bus/iio/devices/iio:deviceX/in_capacitanceY_raw
185 KernelVersion:  3.2
186 Contact:        linux-iio@vger.kernel.org
187 Description:
188                 Raw capacitance measurement from channel Y. Units after
189                 application of scale and offset are nanofarads.
190
191 What:           /sys/.../iio:deviceX/in_capacitanceY-in_capacitanceZ_raw
192 KernelVersion:  3.2
193 Contact:        linux-iio@vger.kernel.org
194 Description:
195                 Raw differential capacitance measurement equivalent to
196                 channel Y - channel Z where these channel numbers apply to the
197                 physically equivalent inputs when non differential readings are
198                 separately available. In differential only parts, then all that
199                 is required is a consistent labeling.  Units after application
200                 of scale and offset are nanofarads.
201
202 What:           /sys/bus/iio/devices/iio:deviceX/in_temp_raw
203 What:           /sys/bus/iio/devices/iio:deviceX/in_tempX_raw
204 What:           /sys/bus/iio/devices/iio:deviceX/in_temp_x_raw
205 What:           /sys/bus/iio/devices/iio:deviceX/in_temp_y_raw
206 What:           /sys/bus/iio/devices/iio:deviceX/in_temp_ambient_raw
207 What:           /sys/bus/iio/devices/iio:deviceX/in_temp_object_raw
208 KernelVersion:  2.6.35
209 Contact:        linux-iio@vger.kernel.org
210 Description:
211                 Raw (unscaled no bias removal etc.) temperature measurement.
212                 If an axis is specified it generally means that the temperature
213                 sensor is associated with one part of a compound device (e.g.
214                 a gyroscope axis). The ambient and object modifiers distinguish
215                 between ambient (reference) and distant temperature for contact-
216                 less measurements. Units after application of scale and offset
217                 are milli degrees Celsius.
218
219 What:           /sys/bus/iio/devices/iio:deviceX/in_tempX_input
220 KernelVersion:  2.6.38
221 Contact:        linux-iio@vger.kernel.org
222 Description:
223                 Scaled temperature measurement in milli degrees Celsius.
224
225 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_x_raw
226 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_y_raw
227 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_z_raw
228 KernelVersion:  2.6.35
229 Contact:        linux-iio@vger.kernel.org
230 Description:
231                 Acceleration in direction x, y or z (may be arbitrarily assigned
232                 but should match other such assignments on device).
233                 Has all of the equivalent parameters as per voltageY. Units
234                 after application of scale and offset are m/s^2.
235
236 What:           /sys/bus/iio/devices/iio:deviceX/in_gravity_x_raw
237 What:           /sys/bus/iio/devices/iio:deviceX/in_gravity_y_raw
238 What:           /sys/bus/iio/devices/iio:deviceX/in_gravity_z_raw
239 KernelVersion:  4.11
240 Contact:        linux-iio@vger.kernel.org
241 Description:
242                 Gravity in direction x, y or z (may be arbitrarily assigned
243                 but should match other such assignments on device).
244                 Units after application of scale and offset are m/s^2.
245
246 What:           /sys/bus/iio/devices/iio:deviceX/in_angl_raw
247 What:           /sys/bus/iio/devices/iio:deviceX/in_anglY_raw
248 KernelVersion:  4.17
249 Contact:        linux-iio@vger.kernel.org
250 Description:
251                 Angle of rotation. Units after application of scale and offset
252                 are radians.
253
254 What:           /sys/bus/iio/devices/iio:deviceX/in_positionrelative_x_raw
255 What:           /sys/bus/iio/devices/iio:deviceX/in_positionrelative_y_raw
256 KernelVersion:  4.19
257 Contact:        linux-iio@vger.kernel.org
258 Description:
259                 Relative position in direction x or y on a pad (may be
260                 arbitrarily assigned but should match other such assignments on
261                 device).
262                 Units after application of scale and offset are milli percents
263                 from the pad's size in both directions. Should be calibrated by
264                 the consumer.
265
266 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_raw
267 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_raw
268 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_raw
269 KernelVersion:  2.6.35
270 Contact:        linux-iio@vger.kernel.org
271 Description:
272                 Angular velocity about axis x, y or z (may be arbitrarily
273                 assigned). Has all the equivalent parameters as per voltageY.
274                 Units after application of scale and offset are radians per
275                 second.
276
277 What:           /sys/bus/iio/devices/iio:deviceX/in_incli_x_raw
278 What:           /sys/bus/iio/devices/iio:deviceX/in_incli_y_raw
279 What:           /sys/bus/iio/devices/iio:deviceX/in_incli_z_raw
280 KernelVersion:  2.6.35
281 Contact:        linux-iio@vger.kernel.org
282 Description:
283                 Inclination raw reading about axis x, y or z (may be
284                 arbitrarily assigned). Data converted by application of offset
285                 and scale to degrees.
286
287 What:           /sys/bus/iio/devices/iio:deviceX/in_magn_x_raw
288 What:           /sys/bus/iio/devices/iio:deviceX/in_magn_y_raw
289 What:           /sys/bus/iio/devices/iio:deviceX/in_magn_z_raw
290 KernelVersion:  2.6.35
291 Contact:        linux-iio@vger.kernel.org
292 Description:
293                 Magnetic field along axis x, y or z (may be arbitrarily
294                 assigned).  Data converted by application of offset
295                 then scale to Gauss.
296
297 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_x_peak_raw
298 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_y_peak_raw
299 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_z_peak_raw
300 KernelVersion:  2.6.36
301 Contact:        linux-iio@vger.kernel.org
302 Description:
303                 Highest value since some reset condition.  These
304                 attributes allow access to this and are otherwise
305                 the direct equivalent of the <type>Y[_name]_raw attributes.
306
307 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_xyz_squared_peak_raw
308 KernelVersion:  2.6.36
309 Contact:        linux-iio@vger.kernel.org
310 Description:
311                 A computed peak value based on the sum squared magnitude of
312                 the underlying value in the specified directions.
313
314 What:           /sys/bus/iio/devices/iio:deviceX/in_pressureY_raw
315 What:           /sys/bus/iio/devices/iio:deviceX/in_pressure_raw
316 KernelVersion:  3.8
317 Contact:        linux-iio@vger.kernel.org
318 Description:
319                 Raw pressure measurement from channel Y. Units after
320                 application of scale and offset are kilopascal.
321
322 What:           /sys/bus/iio/devices/iio:deviceX/in_pressureY_input
323 What:           /sys/bus/iio/devices/iio:deviceX/in_pressure_input
324 KernelVersion:  3.8
325 Contact:        linux-iio@vger.kernel.org
326 Description:
327                 Scaled pressure measurement from channel Y, in kilopascal.
328
329 What:           /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_raw
330 KernelVersion:  3.14
331 Contact:        linux-iio@vger.kernel.org
332 Description:
333                 Raw humidity measurement of air. Units after application of
334                 scale and offset are milli percent.
335
336 What:           /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_input
337 KernelVersion:  3.14
338 Contact:        linux-iio@vger.kernel.org
339 Description:
340                 Scaled humidity measurement in milli percent.
341
342 What:           /sys/bus/iio/devices/iio:deviceX/in_X_mean_raw
343 KernelVersion:  3.5
344 Contact:        linux-iio@vger.kernel.org
345 Description:
346                 Averaged raw measurement from channel X. The number of values
347                 used for averaging is device specific. The converting rules for
348                 normal raw values also applies to the averaged raw values.
349
350 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_offset
351 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_x_offset
352 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_y_offset
353 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_z_offset
354 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_offset
355 What:           /sys/bus/iio/devices/iio:deviceX/in_voltage_offset
356 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_offset
357 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_q_offset
358 What:           /sys/bus/iio/devices/iio:deviceX/in_voltage_q_offset
359 What:           /sys/bus/iio/devices/iio:deviceX/in_voltage_i_offset
360 What:           /sys/bus/iio/devices/iio:deviceX/in_currentY_offset
361 What:           /sys/bus/iio/devices/iio:deviceX/in_current_offset
362 What:           /sys/bus/iio/devices/iio:deviceX/in_currentY_i_offset
363 What:           /sys/bus/iio/devices/iio:deviceX/in_currentY_q_offset
364 What:           /sys/bus/iio/devices/iio:deviceX/in_current_q_offset
365 What:           /sys/bus/iio/devices/iio:deviceX/in_current_i_offset
366 What:           /sys/bus/iio/devices/iio:deviceX/in_tempY_offset
367 What:           /sys/bus/iio/devices/iio:deviceX/in_temp_offset
368 What:           /sys/bus/iio/devices/iio:deviceX/in_pressureY_offset
369 What:           /sys/bus/iio/devices/iio:deviceX/in_pressure_offset
370 What:           /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_offset
371 What:           /sys/bus/iio/devices/iio:deviceX/in_magn_offset
372 What:           /sys/bus/iio/devices/iio:deviceX/in_rot_offset
373 What:           /sys/bus/iio/devices/iio:deviceX/in_angl_offset
374 What:           /sys/bus/iio/devices/iio:deviceX/in_capacitanceX_offset
375 KernelVersion:  2.6.35
376 Contact:        linux-iio@vger.kernel.org
377 Description:
378                 If known for a device, offset to be added to <type>[Y]_raw prior
379                 to scaling by <type>[Y]_scale in order to obtain value in the
380                 <type> units as specified in <type>[Y]_raw documentation.
381                 Not present if the offset is always 0 or unknown. If Y or
382                 axis <x|y|z> is not present, then the offset applies to all
383                 in channels of <type>.
384                 May be writable if a variable offset can be applied on the
385                 device. Note that this is different to calibbias which
386                 is for devices (or drivers) that apply offsets to compensate
387                 for variation between different instances of the part, typically
388                 adjusted by using some hardware supported calibration procedure.
389                 Calibbias is applied internally, offset is applied in userspace
390                 to the _raw output.
391
392 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_scale
393 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_scale
394 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_q_scale
395 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_scale
396 What:           /sys/bus/iio/devices/iio:deviceX/in_voltage_scale
397 What:           /sys/bus/iio/devices/iio:deviceX/in_voltage_i_scale
398 What:           /sys/bus/iio/devices/iio:deviceX/in_voltage_q_scale
399 What:           /sys/bus/iio/devices/iio:deviceX/in_voltage-voltage_scale
400 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_scale
401 What:           /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_scale
402 What:           /sys/bus/iio/devices/iio:deviceX/in_currentY_scale
403 What:           /sys/bus/iio/devices/iio:deviceX/in_currentY_supply_scale
404 What:           /sys/bus/iio/devices/iio:deviceX/in_current_scale
405 What:           /sys/bus/iio/devices/iio:deviceX/in_currentY_i_scale
406 What:           /sys/bus/iio/devices/iio:deviceX/in_currentY_q_scale
407 What:           /sys/bus/iio/devices/iio:deviceX/in_current_i_scale
408 What:           /sys/bus/iio/devices/iio:deviceX/in_current_q_scale
409 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_scale
410 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_peak_scale
411 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_scale
412 What:           /sys/bus/iio/devices/iio:deviceX/in_energy_scale
413 What:           /sys/bus/iio/devices/iio:deviceX/in_distance_scale
414 What:           /sys/bus/iio/devices/iio:deviceX/in_magn_scale
415 What:           /sys/bus/iio/devices/iio:deviceX/in_magn_x_scale
416 What:           /sys/bus/iio/devices/iio:deviceX/in_magn_y_scale
417 What:           /sys/bus/iio/devices/iio:deviceX/in_magn_z_scale
418 What:           /sys/bus/iio/devices/iio:deviceX/in_rot_from_north_magnetic_scale
419 What:           /sys/bus/iio/devices/iio:deviceX/in_rot_from_north_true_scale
420 What:           /sys/bus/iio/devices/iio:deviceX/in_rot_from_north_magnetic_tilt_comp_scale
421 What:           /sys/bus/iio/devices/iio:deviceX/in_rot_from_north_true_tilt_comp_scale
422 What:           /sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
423 What:           /sys/bus/iio/devices/iio:deviceX/in_pressure_scale
424 What:           /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_scale
425 What:           /sys/bus/iio/devices/iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_scale
426 What:           /sys/bus/iio/devices/iio:deviceX/in_illuminance_scale
427 What:           /sys/bus/iio/devices/iio:deviceX/in_countY_scale
428 What:           /sys/bus/iio/devices/iio:deviceX/in_angl_scale
429 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_x_scale
430 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_y_scale
431 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_z_scale
432 KernelVersion:  2.6.35
433 Contact:        linux-iio@vger.kernel.org
434 Description:
435                 If known for a device, scale to be applied to <type>Y[_name]_raw
436                 post addition of <type>[Y][_name]_offset in order to obtain the
437                 measured value in <type> units as specified in
438                 <type>[Y][_name]_raw documentation.  If shared across all in
439                 channels then Y and <x|y|z> are not present and the value is
440                 called <type>[Y][_name]_scale. The peak modifier means this
441                 value is applied to <type>Y[_name]_peak_raw values.
442
443 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibbias
444 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_y_calibbias
445 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibbias
446 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibbias
447 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibbias
448 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibbias
449 What:           /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibbias
450 What:           /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibbias
451 What:           /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibbias
452 What:           /sys/bus/iio/devices/iio:deviceX/in_pressure_calibbias
453 KernelVersion:  2.6.35
454 Contact:        linux-iio@vger.kernel.org
455 Description:
456                 Hardware applied calibration offset (assumed to fix production
457                 inaccuracies).
458                 icm42600: For this device values are real physical offsets
459                 expressed in SI units (m/s^2 for accelerometers and rad/s
460                 for gyroscope)/
461
462 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_calibbias_available
463 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_calibbias_available
464 KernelVersion:  5.8
465 Contact:        linux-iio@vger.kernel.org
466 Description:
467                 Available values of calibbias. Maybe expressed as either of:
468
469                 - a small discrete set of values like "0 2 4 6 8"
470                 - a range specified as "[min step max]"
471
472 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_calibscale
473 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_calibscale
474 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_calibscale
475 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_q_calibscale
476 What:           /sys/bus/iio/devices/iio:deviceX/in_voltage_i_calibscale
477 What:           /sys/bus/iio/devices/iio:deviceX/in_voltage_q_calibscale
478 What:           /sys/bus/iio/devices/iio:deviceX/in_voltage_calibscale
479 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibscale
480 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_y_calibscale
481 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibscale
482 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibscale
483 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibscale
484 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibscale
485 What:           /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale
486 What:           /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale
487 What:           /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale
488 What:           /sys/bus/iio/devices/iio:deviceX/in_pressure_calibscale
489 What:           /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibscale
490 KernelVersion:  2.6.35
491 Contact:        linux-iio@vger.kernel.org
492 Description:
493                 Hardware applied calibration scale factor (assumed to fix
494                 production inaccuracies).  If shared across all channels,
495                 <type>_calibscale is used.
496
497 What:           /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender
498 What:           /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender
499 What:           /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender
500 What:           /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender
501 KernelVersion:  4.0
502 Contact:        linux-iio@vger.kernel.org
503 Description:
504                 Gender of the user (e.g.: male, female) used by some pedometers
505                 to compute the stride length, distance, speed and activity
506                 type.
507
508 What:           /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender_available
509 What:           /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender_available
510 What:           /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender_available
511 What:           /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender_available
512 KernelVersion:  4.0
513 Contact:        linux-iio@vger.kernel.org
514 Description:
515                 Lists all available gender values (e.g.: male, female).
516
517 What:           /sys/bus/iio/devices/iio:deviceX/in_activity_calibheight
518 What:           /sys/bus/iio/devices/iio:deviceX/in_energy_calibheight
519 What:           /sys/bus/iio/devices/iio:deviceX/in_distance_calibheight
520 What:           /sys/bus/iio/devices/iio:deviceX/in_velocity_calibheight
521 KernelVersion:  3.19
522 Contact:        linux-iio@vger.kernel.org
523 Description:
524                 Height of the user (in meters) used by some pedometers
525                 to compute the stride length, distance, speed and activity
526                 type.
527
528 What:           /sys/bus/iio/devices/iio:deviceX/in_energy_calibweight
529 KernelVersion:  4.0
530 Contact:        linux-iio@vger.kernel.org
531 Description:
532                 Weight of the user (in kg). It is needed by some pedometers
533                 to compute the calories burnt by the user.
534
535 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_scale_available
536 What:           /sys/.../iio:deviceX/in_anglvel_scale_available
537 What:           /sys/.../iio:deviceX/in_magn_scale_available
538 What:           /sys/.../iio:deviceX/in_illuminance_scale_available
539 What:           /sys/.../iio:deviceX/in_intensity_scale_available
540 What:           /sys/.../iio:deviceX/in_proximity_scale_available
541 What:           /sys/.../iio:deviceX/in_voltageX_scale_available
542 What:           /sys/.../iio:deviceX/in_voltage-voltage_scale_available
543 What:           /sys/.../iio:deviceX/out_voltageX_scale_available
544 What:           /sys/.../iio:deviceX/out_altvoltageX_scale_available
545 What:           /sys/.../iio:deviceX/in_capacitance_scale_available
546 What:           /sys/.../iio:deviceX/in_pressure_scale_available
547 What:           /sys/.../iio:deviceX/in_pressureY_scale_available
548 KernelVersion:  2.6.35
549 Contact:        linux-iio@vger.kernel.org
550 Description:
551                 If a discrete set of scale values is available, they
552                 are listed in this attribute.
553
554 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_hardwaregain
555 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_hardwaregain
556 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_red_hardwaregain
557 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_green_hardwaregain
558 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_blue_hardwaregain
559 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_clear_hardwaregain
560 KernelVersion:  2.6.35
561 Contact:        linux-iio@vger.kernel.org
562 Description:
563                 Hardware applied gain factor. If shared across all channels,
564                 <type>_hardwaregain is used.
565
566 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_hardwaregain_available
567 KernelVersion:  5.10
568 Contact:        linux-iio@vger.kernel.org
569 Description:
570                 Lists all available hardware applied gain factors. Shared across all
571                 channels.
572
573 What:           /sys/.../in_accel_filter_low_pass_3db_frequency
574 What:           /sys/.../in_magn_filter_low_pass_3db_frequency
575 What:           /sys/.../in_anglvel_filter_low_pass_3db_frequency
576 KernelVersion:  3.2
577 Contact:        linux-iio@vger.kernel.org
578 Description:
579                 If a known or controllable low pass filter is applied
580                 to the underlying data channel, then this parameter
581                 gives the 3dB frequency of the filter in Hz.
582
583 What:           /sys/.../in_accel_filter_high_pass_3db_frequency
584 What:           /sys/.../in_anglvel_filter_high_pass_3db_frequency
585 What:           /sys/.../in_magn_filter_high_pass_3db_frequency
586 KernelVersion:  4.2
587 Contact:        linux-iio@vger.kernel.org
588 Description:
589                 If a known or controllable high pass filter is applied
590                 to the underlying data channel, then this parameter
591                 gives the 3dB frequency of the filter in Hz.
592
593 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_raw
594 What:           /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_raw
595 KernelVersion:  2.6.37
596 Contact:        linux-iio@vger.kernel.org
597 Description:
598                 Raw (unscaled, no bias etc.) output voltage for
599                 channel Y.  The number must always be specified and
600                 unique if the output corresponds to a single channel.
601                 While DAC like devices typically use out_voltage,
602                 a continuous frequency generating device, such as
603                 a DDS or PLL should use out_altvoltage.
604
605 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY&Z_raw
606 What:           /sys/bus/iio/devices/iio:deviceX/out_altvoltageY&Z_raw
607 KernelVersion:  2.6.37
608 Contact:        linux-iio@vger.kernel.org
609 Description:
610                 Raw (unscaled, no bias etc.) output voltage for an aggregate of
611                 channel Y, channel Z, etc.  This interface is available in cases
612                 where a single output sets the value for multiple channels
613                 simultaneously.
614
615 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown_mode
616 What:           /sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown_mode
617 What:           /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown_mode
618 What:           /sys/bus/iio/devices/iio:deviceX/out_altvoltage_powerdown_mode
619 KernelVersion:  2.6.38
620 Contact:        linux-iio@vger.kernel.org
621 Description:
622                 Specifies the output powerdown mode.
623                 DAC output stage is disconnected from the amplifier and
624                 1kohm_to_gnd: connected to ground via an 1kOhm resistor,
625                 2.5kohm_to_gnd: connected to ground via a 2.5kOhm resistor,
626                 6kohm_to_gnd: connected to ground via a 6kOhm resistor,
627                 20kohm_to_gnd: connected to ground via a 20kOhm resistor,
628                 90kohm_to_gnd: connected to ground via a 90kOhm resistor,
629                 100kohm_to_gnd: connected to ground via an 100kOhm resistor,
630                 125kohm_to_gnd: connected to ground via an 125kOhm resistor,
631                 500kohm_to_gnd: connected to ground via a 500kOhm resistor,
632                 640kohm_to_gnd: connected to ground via a 640kOhm resistor,
633                 three_state: left floating.
634                 For a list of available output power down options read
635                 outX_powerdown_mode_available. If Y is not present the
636                 mode is shared across all outputs.
637
638 What:           /sys/.../iio:deviceX/out_voltageY_powerdown_mode_available
639 What:           /sys/.../iio:deviceX/out_voltage_powerdown_mode_available
640 What:           /sys/.../iio:deviceX/out_altvoltageY_powerdown_mode_available
641 What:           /sys/.../iio:deviceX/out_altvoltage_powerdown_mode_available
642 KernelVersion:  2.6.38
643 Contact:        linux-iio@vger.kernel.org
644 Description:
645                 Lists all available output power down modes.
646                 If Y is not present the mode is shared across all outputs.
647
648 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown
649 What:           /sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown
650 What:           /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown
651 What:           /sys/bus/iio/devices/iio:deviceX/out_altvoltage_powerdown
652 KernelVersion:  2.6.38
653 Contact:        linux-iio@vger.kernel.org
654 Description:
655                 Writing 1 causes output Y to enter the power down mode specified
656                 by the corresponding outY_powerdown_mode. DAC output stage is
657                 disconnected from the amplifier. Clearing returns to normal
658                 operation. Y may be suppressed if all outputs are controlled
659                 together.
660
661 What:           /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_frequency
662 KernelVersion:  3.4.0
663 Contact:        linux-iio@vger.kernel.org
664 Description:
665                 Output frequency for channel Y in Hz. The number must always be
666                 specified and unique if the output corresponds to a single
667                 channel.
668                 Some drivers have additional constraints:
669                 ADF4371 has an integrated VCO with fundamendal output
670                 frequency ranging from 4000000000 Hz 8000000000 Hz.
671
672                 out_altvoltage0_frequency:
673                         A divide by 1, 2, 4, 8, 16, 32 or circuit generates
674                         frequencies from 62500000 Hz to 8000000000 Hz.
675                 out_altvoltage1_frequency:
676                         This channel duplicates the channel 0 frequency
677                 out_altvoltage2_frequency:
678                         A frequency doubler generates frequencies from
679                         8000000000 Hz to 16000000000 Hz.
680                 out_altvoltage3_frequency:
681                         A frequency quadrupler generates frequencies from
682                         16000000000 Hz to 32000000000 Hz.
683
684                 Note: writes to one of the channels will affect the frequency of
685                 all the other channels, since it involves changing the VCO
686                 fundamental output frequency.
687
688 What:           /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_phase
689 KernelVersion:  3.4.0
690 Contact:        linux-iio@vger.kernel.org
691 Description:
692                 Phase in radians of one frequency/clock output Y
693                 (out_altvoltageY) relative to another frequency/clock output
694                 (out_altvoltageZ) of the device X. The number must always be
695                 specified and unique if the output corresponds to a single
696                 channel.
697
698 What:           /sys/bus/iio/devices/iio:deviceX/out_currentY_raw
699 Date:           May 2012
700 KernelVersion:  3.5
701 Contact:        Johan Hovold <jhovold@gmail.com>
702 Description:
703                 Set/get output current for channel Y. Units after application
704                 of scale and offset are milliamps.
705                 For some devices current channels are used to specify
706                 current supplied to elements used in taking a measurement
707                 of a different type. E.g. LED currents.
708
709 What:           /sys/bus/iio/devices/iio:deviceX/events
710 KernelVersion:  2.6.35
711 Contact:        linux-iio@vger.kernel.org
712 Description:
713                 Configuration of which hardware generated events are passed up
714                 to user-space.
715
716 What:           /sys/.../iio:deviceX/events/in_accel_x_thresh_rising_en
717 What:           /sys/.../iio:deviceX/events/in_accel_x_thresh_falling_en
718 What:           /sys/.../iio:deviceX/events/in_accel_y_thresh_rising_en
719 What:           /sys/.../iio:deviceX/events/in_accel_y_thresh_falling_en
720 What:           /sys/.../iio:deviceX/events/in_accel_z_thresh_rising_en
721 What:           /sys/.../iio:deviceX/events/in_accel_z_thresh_falling_en
722 What:           /sys/.../iio:deviceX/events/in_anglvel_x_thresh_rising_en
723 What:           /sys/.../iio:deviceX/events/in_anglvel_x_thresh_falling_en
724 What:           /sys/.../iio:deviceX/events/in_anglvel_y_thresh_rising_en
725 What:           /sys/.../iio:deviceX/events/in_anglvel_y_thresh_falling_en
726 What:           /sys/.../iio:deviceX/events/in_anglvel_z_thresh_rising_en
727 What:           /sys/.../iio:deviceX/events/in_anglvel_z_thresh_falling_en
728 What:           /sys/.../iio:deviceX/events/in_magn_x_thresh_rising_en
729 What:           /sys/.../iio:deviceX/events/in_magn_x_thresh_falling_en
730 What:           /sys/.../iio:deviceX/events/in_magn_y_thresh_rising_en
731 What:           /sys/.../iio:deviceX/events/in_magn_y_thresh_falling_en
732 What:           /sys/.../iio:deviceX/events/in_magn_z_thresh_rising_en
733 What:           /sys/.../iio:deviceX/events/in_magn_z_thresh_falling_en
734 What:           /sys/.../iio:deviceX/events/in_rot_from_north_magnetic_thresh_rising_en
735 What:           /sys/.../iio:deviceX/events/in_rot_from_north_magnetic_thresh_falling_en
736 What:           /sys/.../iio:deviceX/events/in_rot_from_north_true_thresh_rising_en
737 What:           /sys/.../iio:deviceX/events/in_rot_from_north_true_thresh_falling_en
738 What:           /sys/.../iio:deviceX/events/in_rot_from_north_magnetic_tilt_comp_thresh_rising_en
739 What:           /sys/.../iio:deviceX/events/in_rot_from_north_magnetic_tilt_comp_thresh_falling_en
740 What:           /sys/.../iio:deviceX/events/in_rot_from_north_true_tilt_comp_thresh_rising_en
741 What:           /sys/.../iio:deviceX/events/in_rot_from_north_true_tilt_comp_thresh_falling_en
742 What:           /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_rising_en
743 What:           /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_falling_en
744 What:           /sys/.../iio:deviceX/events/in_voltageY_thresh_rising_en
745 What:           /sys/.../iio:deviceX/events/in_voltageY_thresh_falling_en
746 What:           /sys/.../iio:deviceX/events/in_voltageY_thresh_either_en
747 What:           /sys/.../iio:deviceX/events/in_tempY_thresh_rising_en
748 What:           /sys/.../iio:deviceX/events/in_tempY_thresh_falling_en
749 What:           /sys/.../iio:deviceX/events/in_capacitanceY_thresh_rising_en
750 What:           /sys/.../iio:deviceX/events/in_capacitanceY_thresh_falling_en
751 KernelVersion:  2.6.37
752 Contact:        linux-iio@vger.kernel.org
753 Description:
754                 Event generated when channel passes a threshold in the specified
755                 (_rising|_falling) direction. If the direction is not specified,
756                 then either the device will report an event which ever direction
757                 a single threshold value is passed in (e.g.
758                 <type>[Y][_name]_<raw|input>_thresh_value) or
759                 <type>[Y][_name]_<raw|input>_thresh_rising_value and
760                 <type>[Y][_name]_<raw|input>_thresh_falling_value may take
761                 different values, but the device can only enable both thresholds
762                 or neither.
763
764                 Note the driver will assume the last p events requested are
765                 to be enabled where p is how many it supports (which may vary
766                 depending on the exact set requested. So if you want to be
767                 sure you have set what you think you have, check the contents of
768                 these attributes after everything is configured. Drivers may
769                 have to buffer any parameters so that they are consistent when
770                 a given event type is enabled at a future point (and not those for
771                 whatever event was previously enabled).
772
773 What:           /sys/.../iio:deviceX/events/in_accel_x_roc_rising_en
774 What:           /sys/.../iio:deviceX/events/in_accel_x_roc_falling_en
775 What:           /sys/.../iio:deviceX/events/in_accel_y_roc_rising_en
776 What:           /sys/.../iio:deviceX/events/in_accel_y_roc_falling_en
777 What:           /sys/.../iio:deviceX/events/in_accel_z_roc_rising_en
778 What:           /sys/.../iio:deviceX/events/in_accel_z_roc_falling_en
779 What:           /sys/.../iio:deviceX/events/in_anglvel_x_roc_rising_en
780 What:           /sys/.../iio:deviceX/events/in_anglvel_x_roc_falling_en
781 What:           /sys/.../iio:deviceX/events/in_anglvel_y_roc_rising_en
782 What:           /sys/.../iio:deviceX/events/in_anglvel_y_roc_falling_en
783 What:           /sys/.../iio:deviceX/events/in_anglvel_z_roc_rising_en
784 What:           /sys/.../iio:deviceX/events/in_anglvel_z_roc_falling_en
785 What:           /sys/.../iio:deviceX/events/in_magn_x_roc_rising_en
786 What:           /sys/.../iio:deviceX/events/in_magn_x_roc_falling_en
787 What:           /sys/.../iio:deviceX/events/in_magn_y_roc_rising_en
788 What:           /sys/.../iio:deviceX/events/in_magn_y_roc_falling_en
789 What:           /sys/.../iio:deviceX/events/in_magn_z_roc_rising_en
790 What:           /sys/.../iio:deviceX/events/in_magn_z_roc_falling_en
791 What:           /sys/.../iio:deviceX/events/in_rot_from_north_magnetic_roc_rising_en
792 What:           /sys/.../iio:deviceX/events/in_rot_from_north_magnetic_roc_falling_en
793 What:           /sys/.../iio:deviceX/events/in_rot_from_north_true_roc_rising_en
794 What:           /sys/.../iio:deviceX/events/in_rot_from_north_true_roc_falling_en
795 What:           /sys/.../iio:deviceX/events/in_rot_from_north_magnetic_tilt_comp_roc_rising_en
796 What:           /sys/.../iio:deviceX/events/in_rot_from_north_magnetic_tilt_comp_roc_falling_en
797 What:           /sys/.../iio:deviceX/events/in_rot_from_north_true_tilt_comp_roc_rising_en
798 What:           /sys/.../iio:deviceX/events/in_rot_from_north_true_tilt_comp_roc_falling_en
799 What:           /sys/.../iio:deviceX/events/in_voltageY_supply_roc_rising_en
800 What:           /sys/.../iio:deviceX/events/in_voltageY_supply_roc_falling_en
801 What:           /sys/.../iio:deviceX/events/in_voltageY_roc_rising_en
802 What:           /sys/.../iio:deviceX/events/in_voltageY_roc_falling_en
803 What:           /sys/.../iio:deviceX/events/in_tempY_roc_rising_en
804 What:           /sys/.../iio:deviceX/events/in_tempY_roc_falling_en
805 KernelVersion:  2.6.37
806 Contact:        linux-iio@vger.kernel.org
807 Description:
808                 Event generated when channel passes a threshold on the rate of
809                 change (1st differential) in the specified (_rising|_falling)
810                 direction. If the direction is not specified, then either the
811                 device will report an event which ever direction a single
812                 threshold value is passed in (e.g.
813                 <type>[Y][_name]_<raw|input>_roc_value) or
814                 <type>[Y][_name]_<raw|input>_roc_rising_value and
815                 <type>[Y][_name]_<raw|input>_roc_falling_value may take
816                 different values, but the device can only enable both rate of
817                 change thresholds or neither.
818
819                 Note the driver will assume the last p events requested are
820                 to be enabled where p is however many it supports (which may
821                 vary depending on the exact set requested. So if you want to be
822                 sure you have set what you think you have, check the contents of
823                 these attributes after everything is configured. Drivers may
824                 have to buffer any parameters so that they are consistent when
825                 a given event type is enabled a future point (and not those for
826                 whatever event was previously enabled).
827
828 What:           /sys/.../events/in_capacitanceY_adaptive_thresh_rising_en
829 What:           /sys/.../events/in_capacitanceY_adaptive_thresh_falling_en
830 KernelVersion:  5.13
831 Contact:        linux-iio@vger.kernel.org
832 Description:
833                 Adaptive thresholds are similar to normal fixed thresholds
834                 but the value is expressed as an offset from a value which
835                 provides a low frequency approximation of the channel itself.
836                 Thus these detect if a rapid change occurs in the specified
837                 direction which crosses tracking value + offset.
838                 Tracking value calculation is devices specific.
839
840 What:           /sys/.../in_capacitanceY_adaptive_thresh_rising_timeout
841 What:           /sys/.../in_capacitanceY_adaptive_thresh_falling_timeout
842 KernelVersion:  5.11
843 Contact:        linux-iio@vger.kernel.org
844 Description:
845                 When adaptive thresholds are used, the tracking signal
846                 may adjust too slowly to step changes in the raw signal.
847                 Thus these specify the time in seconds for which the
848                 difference between the slow tracking signal and the raw
849                 signal is allowed to remain out-of-range before a reset
850                 event occurs in which the tracking signal is made equal
851                 to the raw signal, allowing slow tracking to resume and the
852                 adaptive threshold event detection to function as expected.
853
854 What:           /sys/.../events/in_accel_thresh_rising_value
855 What:           /sys/.../events/in_accel_thresh_falling_value
856 What:           /sys/.../events/in_accel_x_raw_thresh_rising_value
857 What:           /sys/.../events/in_accel_x_raw_thresh_falling_value
858 What:           /sys/.../events/in_accel_y_raw_thresh_rising_value
859 What:           /sys/.../events/in_accel_y_raw_thresh_falling_value
860 What:           /sys/.../events/in_accel_z_raw_thresh_rising_value
861 What:           /sys/.../events/in_accel_z_raw_thresh_falling_value
862 What:           /sys/.../events/in_anglvel_x_raw_thresh_rising_value
863 What:           /sys/.../events/in_anglvel_x_raw_thresh_falling_value
864 What:           /sys/.../events/in_anglvel_y_raw_thresh_rising_value
865 What:           /sys/.../events/in_anglvel_y_raw_thresh_falling_value
866 What:           /sys/.../events/in_anglvel_z_raw_thresh_rising_value
867 What:           /sys/.../events/in_anglvel_z_raw_thresh_falling_value
868 What:           /sys/.../events/in_magn_x_raw_thresh_rising_value
869 What:           /sys/.../events/in_magn_x_raw_thresh_falling_value
870 What:           /sys/.../events/in_magn_y_raw_thresh_rising_value
871 What:           /sys/.../events/in_magn_y_raw_thresh_falling_value
872 What:           /sys/.../events/in_magn_z_raw_thresh_rising_value
873 What:           /sys/.../events/in_magn_z_raw_thresh_falling_value
874 What:           /sys/.../events/in_rot_from_north_magnetic_raw_thresh_rising_value
875 What:           /sys/.../events/in_rot_from_north_magnetic_raw_thresh_falling_value
876 What:           /sys/.../events/in_rot_from_north_true_raw_thresh_rising_value
877 What:           /sys/.../events/in_rot_from_north_true_raw_thresh_falling_value
878 What:           /sys/.../events/in_rot_from_north_magnetic_tilt_comp_raw_thresh_rising_value
879 What:           /sys/.../events/in_rot_from_north_magnetic_tilt_comp_raw_thresh_falling_value
880 What:           /sys/.../events/in_rot_from_north_true_tilt_comp_raw_thresh_rising_value
881 What:           /sys/.../events/in_rot_from_north_true_tilt_comp_raw_thresh_falling_value
882 What:           /sys/.../events/in_voltageY_supply_raw_thresh_rising_value
883 What:           /sys/.../events/in_voltageY_supply_raw_thresh_falling_value
884 What:           /sys/.../events/in_voltageY_raw_thresh_rising_value
885 What:           /sys/.../events/in_voltageY_raw_thresh_falling_value
886 What:           /sys/.../events/in_tempY_raw_thresh_rising_value
887 What:           /sys/.../events/in_tempY_raw_thresh_falling_value
888 What:           /sys/.../events/in_illuminance0_thresh_falling_value
889 What:           /sys/.../events/in_illuminance0_thresh_rising_value
890 What:           /sys/.../events/in_proximity0_thresh_falling_value
891 What:           /sys/.../events/in_proximity0_thresh_rising_value
892 What:           /sys/.../events/in_illuminance_thresh_rising_value
893 What:           /sys/.../events/in_illuminance_thresh_falling_value
894 What:           /sys/.../events/in_capacitanceY_thresh_rising_value
895 What:           /sys/.../events/in_capacitanceY_thresh_falling_value
896 What:           /sys/.../events/in_capacitanceY_thresh_adaptive_rising_value
897 What:           /sys/.../events/in_capacitanceY_thresh_falling_rising_value
898 KernelVersion:  2.6.37
899 Contact:        linux-iio@vger.kernel.org
900 Description:
901                 Specifies the value of threshold that the device is comparing
902                 against for the events enabled by
903                 <type>Y[_name]_thresh[_rising|falling]_en.
904
905                 If separate attributes exist for the two directions, but
906                 direction is not specified for this attribute, then a single
907                 threshold value applies to both directions.
908
909                 The raw or input element of the name indicates whether the
910                 value is in raw device units or in processed units (as _raw
911                 and _input do on sysfs direct channel read attributes).
912
913 What:           /sys/.../events/in_accel_scale
914 What:           /sys/.../events/in_accel_peak_scale
915 What:           /sys/.../events/in_anglvel_scale
916 What:           /sys/.../events/in_magn_scale
917 What:           /sys/.../events/in_rot_from_north_magnetic_scale
918 What:           /sys/.../events/in_rot_from_north_true_scale
919 What:           /sys/.../events/in_voltage_scale
920 What:           /sys/.../events/in_voltage_supply_scale
921 What:           /sys/.../events/in_temp_scale
922 What:           /sys/.../events/in_illuminance_scale
923 What:           /sys/.../events/in_proximity_scale
924 KernelVersion:  3.21
925 Contact:        linux-iio@vger.kernel.org
926 Description:
927                 Specifies the conversion factor from the standard units
928                 to device specific units used to set the event trigger
929                 threshold.
930
931 What:           /sys/.../events/in_accel_x_thresh_rising_hysteresis
932 What:           /sys/.../events/in_accel_x_thresh_falling_hysteresis
933 What:           /sys/.../events/in_accel_x_thresh_either_hysteresis
934 What:           /sys/.../events/in_accel_y_thresh_rising_hysteresis
935 What:           /sys/.../events/in_accel_y_thresh_falling_hysteresis
936 What:           /sys/.../events/in_accel_y_thresh_either_hysteresis
937 What:           /sys/.../events/in_accel_z_thresh_rising_hysteresis
938 What:           /sys/.../events/in_accel_z_thresh_falling_hysteresis
939 What:           /sys/.../events/in_accel_z_thresh_either_hysteresis
940 What:           /sys/.../events/in_anglvel_x_thresh_rising_hysteresis
941 What:           /sys/.../events/in_anglvel_x_thresh_falling_hysteresis
942 What:           /sys/.../events/in_anglvel_x_thresh_either_hysteresis
943 What:           /sys/.../events/in_anglvel_y_thresh_rising_hysteresis
944 What:           /sys/.../events/in_anglvel_y_thresh_falling_hysteresis
945 What:           /sys/.../events/in_anglvel_y_thresh_either_hysteresis
946 What:           /sys/.../events/in_anglvel_z_thresh_rising_hysteresis
947 What:           /sys/.../events/in_anglvel_z_thresh_falling_hysteresis
948 What:           /sys/.../events/in_anglvel_z_thresh_either_hysteresis
949 What:           /sys/.../events/in_magn_x_thresh_rising_hysteresis
950 What:           /sys/.../events/in_magn_x_thresh_falling_hysteresis
951 What:           /sys/.../events/in_magn_x_thresh_either_hysteresis
952 What:           /sys/.../events/in_magn_y_thresh_rising_hysteresis
953 What:           /sys/.../events/in_magn_y_thresh_falling_hysteresis
954 What:           /sys/.../events/in_magn_y_thresh_either_hysteresis
955 What:           /sys/.../events/in_magn_z_thresh_rising_hysteresis
956 What:           /sys/.../events/in_magn_z_thresh_falling_hysteresis
957 What:           /sys/.../events/in_magn_z_thresh_either_hysteresis
958 What:           /sys/.../events/in_rot_from_north_magnetic_thresh_rising_hysteresis
959 What:           /sys/.../events/in_rot_from_north_magnetic_thresh_falling_hysteresis
960 What:           /sys/.../events/in_rot_from_north_magnetic_thresh_either_hysteresis
961 What:           /sys/.../events/in_rot_from_north_true_thresh_rising_hysteresis
962 What:           /sys/.../events/in_rot_from_north_true_thresh_falling_hysteresis
963 What:           /sys/.../events/in_rot_from_north_true_thresh_either_hysteresis
964 What:           /sys/.../events/in_rot_from_north_magnetic_tilt_comp_thresh_rising_hysteresis
965 What:           /sys/.../events/in_rot_from_north_magnetic_tilt_comp_thresh_falling_hysteresis
966 What:           /sys/.../events/in_rot_from_north_magnetic_tilt_comp_thresh_either_hysteresis
967 What:           /sys/.../events/in_rot_from_north_true_tilt_comp_thresh_rising_hysteresis
968 What:           /sys/.../events/in_rot_from_north_true_tilt_comp_thresh_falling_hysteresis
969 What:           /sys/.../events/in_rot_from_north_true_tilt_comp_thresh_either_hysteresis
970 What:           /sys/.../events/in_voltageY_thresh_rising_hysteresis
971 What:           /sys/.../events/in_voltageY_thresh_falling_hysteresis
972 What:           /sys/.../events/in_voltageY_thresh_either_hysteresis
973 What:           /sys/.../events/in_tempY_thresh_rising_hysteresis
974 What:           /sys/.../events/in_tempY_thresh_falling_hysteresis
975 What:           /sys/.../events/in_tempY_thresh_either_hysteresis
976 What:           /sys/.../events/in_illuminance0_thresh_falling_hysteresis
977 What:           /sys/.../events/in_illuminance0_thresh_rising_hysteresis
978 What:           /sys/.../events/in_illuminance0_thresh_either_hysteresis
979 What:           /sys/.../events/in_proximity0_thresh_falling_hysteresis
980 What:           /sys/.../events/in_proximity0_thresh_rising_hysteresis
981 What:           /sys/.../events/in_proximity0_thresh_either_hysteresis
982 KernelVersion:  3.13
983 Contact:        linux-iio@vger.kernel.org
984 Description:
985                 Specifies the hysteresis of threshold that the device is comparing
986                 against for the events enabled by
987                 <type>Y[_name]_thresh[_(rising|falling)]_hysteresis.
988                 If separate attributes exist for the two directions, but
989                 direction is not specified for this attribute, then a single
990                 hysteresis value applies to both directions.
991
992                 For falling events the hysteresis is added to the _value attribute for
993                 this event to get the upper threshold for when the event goes back to
994                 normal, for rising events the hysteresis is subtracted from the _value
995                 attribute. E.g. if in_voltage0_raw_thresh_rising_value is set to 1200
996                 and in_voltage0_raw_thresh_rising_hysteresis is set to 50. The event
997                 will get activated once in_voltage0_raw goes above 1200 and will become
998                 deactivated again once the value falls below 1150.
999
1000 What:           /sys/.../events/in_accel_x_raw_roc_rising_value
1001 What:           /sys/.../events/in_accel_x_raw_roc_falling_value
1002 What:           /sys/.../events/in_accel_y_raw_roc_rising_value
1003 What:           /sys/.../events/in_accel_y_raw_roc_falling_value
1004 What:           /sys/.../events/in_accel_z_raw_roc_rising_value
1005 What:           /sys/.../events/in_accel_z_raw_roc_falling_value
1006 What:           /sys/.../events/in_anglvel_x_raw_roc_rising_value
1007 What:           /sys/.../events/in_anglvel_x_raw_roc_falling_value
1008 What:           /sys/.../events/in_anglvel_y_raw_roc_rising_value
1009 What:           /sys/.../events/in_anglvel_y_raw_roc_falling_value
1010 What:           /sys/.../events/in_anglvel_z_raw_roc_rising_value
1011 What:           /sys/.../events/in_anglvel_z_raw_roc_falling_value
1012 What:           /sys/.../events/in_magn_x_raw_roc_rising_value
1013 What:           /sys/.../events/in_magn_x_raw_roc_falling_value
1014 What:           /sys/.../events/in_magn_y_raw_roc_rising_value
1015 What:           /sys/.../events/in_magn_y_raw_roc_falling_value
1016 What:           /sys/.../events/in_magn_z_raw_roc_rising_value
1017 What:           /sys/.../events/in_magn_z_raw_roc_falling_value
1018 What:           /sys/.../events/in_rot_from_north_magnetic_raw_roc_rising_value
1019 What:           /sys/.../events/in_rot_from_north_magnetic_raw_roc_falling_value
1020 What:           /sys/.../events/in_rot_from_north_true_raw_roc_rising_value
1021 What:           /sys/.../events/in_rot_from_north_true_raw_roc_falling_value
1022 What:           /sys/.../events/in_rot_from_north_magnetic_tilt_comp_raw_roc_rising_value
1023 What:           /sys/.../events/in_rot_from_north_magnetic_tilt_comp_raw_roc_falling_value
1024 What:           /sys/.../events/in_rot_from_north_true_tilt_comp_raw_roc_rising_value
1025 What:           /sys/.../events/in_rot_from_north_true_tilt_comp_raw_roc_falling_value
1026 What:           /sys/.../events/in_voltageY_supply_raw_roc_rising_value
1027 What:           /sys/.../events/in_voltageY_supply_raw_roc_falling_value
1028 What:           /sys/.../events/in_voltageY_raw_roc_rising_value
1029 What:           /sys/.../events/in_voltageY_raw_roc_falling_value
1030 What:           /sys/.../events/in_tempY_raw_roc_rising_value
1031 What:           /sys/.../events/in_tempY_raw_roc_falling_value
1032 KernelVersion:  2.6.37
1033 Contact:        linux-iio@vger.kernel.org
1034 Description:
1035                 Specifies the value of rate of change threshold that the
1036                 device is comparing against for the events enabled by
1037                 <type>[Y][_name]_roc[_rising|falling]_en.
1038
1039                 If separate attributes exist for the two directions,
1040                 but direction is not specified for this attribute,
1041                 then a single threshold value applies to both directions.
1042                 The raw or input element of the name indicates whether the
1043                 value is in raw device units or in processed units (as _raw
1044                 and _input do on sysfs direct channel read attributes).
1045
1046 What:           /sys/.../events/in_accel_x_thresh_rising_period
1047 What:           /sys/.../events/in_accel_x_thresh_falling_period
1048 What:           /sys/.../events/in_accel_x_roc_rising_period
1049 What:           /sys/.../events/in_accel_x_roc_falling_period
1050 What:           /sys/.../events/in_accel_y_thresh_rising_period
1051 What:           /sys/.../events/in_accel_y_thresh_falling_period
1052 What:           /sys/.../events/in_accel_y_roc_rising_period
1053 What:           /sys/.../events/in_accel_y_roc_falling_period
1054 What:           /sys/.../events/in_accel_z_thresh_rising_period
1055 What:           /sys/.../events/in_accel_z_thresh_falling_period
1056 What:           /sys/.../events/in_accel_z_roc_rising_period
1057 What:           /sys/.../events/in_accel_z_roc_falling_period
1058 What:           /sys/.../events/in_anglvel_x_thresh_rising_period
1059 What:           /sys/.../events/in_anglvel_x_thresh_falling_period
1060 What:           /sys/.../events/in_anglvel_x_roc_rising_period
1061 What:           /sys/.../events/in_anglvel_x_roc_falling_period
1062 What:           /sys/.../events/in_anglvel_y_thresh_rising_period
1063 What:           /sys/.../events/in_anglvel_y_thresh_falling_period
1064 What:           /sys/.../events/in_anglvel_y_roc_rising_period
1065 What:           /sys/.../events/in_anglvel_y_roc_falling_period
1066 What:           /sys/.../events/in_anglvel_z_thresh_rising_period
1067 What:           /sys/.../events/in_anglvel_z_thresh_falling_period
1068 What:           /sys/.../events/in_anglvel_z_roc_rising_period
1069 What:           /sys/.../events/in_anglvel_z_roc_falling_period
1070 What:           /sys/.../events/in_magn_x_thresh_rising_period
1071 What:           /sys/.../events/in_magn_x_thresh_falling_period
1072 What:           /sys/.../events/in_magn_x_roc_rising_period
1073 What:           /sys/.../events/in_magn_x_roc_falling_period
1074 What:           /sys/.../events/in_magn_y_thresh_rising_period
1075 What:           /sys/.../events/in_magn_y_thresh_falling_period
1076 What:           /sys/.../events/in_magn_y_roc_rising_period
1077 What:           /sys/.../events/in_magn_y_roc_falling_period
1078 What:           /sys/.../events/in_magn_z_thresh_rising_period
1079 What:           /sys/.../events/in_magn_z_thresh_falling_period
1080 What:           /sys/.../events/in_magn_z_roc_rising_period
1081 What:           /sys/.../events/in_magn_z_roc_falling_period
1082 What:           /sys/.../events/in_rot_from_north_magnetic_thresh_rising_period
1083 What:           /sys/.../events/in_rot_from_north_magnetic_thresh_falling_period
1084 What:           /sys/.../events/in_rot_from_north_magnetic_roc_rising_period
1085 What:           /sys/.../events/in_rot_from_north_magnetic_roc_falling_period
1086 What:           /sys/.../events/in_rot_from_north_true_thresh_rising_period
1087 What:           /sys/.../events/in_rot_from_north_true_thresh_falling_period
1088 What:           /sys/.../events/in_rot_from_north_true_roc_rising_period
1089 What:           /sys/.../events/in_rot_from_north_true_roc_falling_period
1090 What:           /sys/.../events/in_rot_from_north_magnetic_tilt_comp_thresh_rising_period
1091 What:           /sys/.../events/in_rot_from_north_magnetic_tilt_comp_thresh_falling_period
1092 What:           /sys/.../events/in_rot_from_north_magnetic_tilt_comp_roc_rising_period
1093 What:           /sys/.../events/in_rot_from_north_magnetic_tilt_comp_roc_falling_period
1094 What:           /sys/.../events/in_rot_from_north_true_tilt_comp_thresh_rising_period
1095 What:           /sys/.../events/in_rot_from_north_true_tilt_comp_thresh_falling_period
1096 What:           /sys/.../events/in_rot_from_north_true_tilt_comp_roc_rising_period
1097 What:           /sys/.../events/in_rot_from_north_true_tilt_comp_roc_falling_period
1098 What:           /sys/.../events/in_voltageY_supply_thresh_rising_period
1099 What:           /sys/.../events/in_voltageY_supply_thresh_falling_period
1100 What:           /sys/.../events/in_voltageY_supply_roc_rising_period
1101 What:           /sys/.../events/in_voltageY_supply_roc_falling_period
1102 What:           /sys/.../events/in_voltageY_thresh_rising_period
1103 What:           /sys/.../events/in_voltageY_thresh_falling_period
1104 What:           /sys/.../events/in_voltageY_roc_rising_period
1105 What:           /sys/.../events/in_voltageY_roc_falling_period
1106 What:           /sys/.../events/in_tempY_thresh_rising_period
1107 What:           /sys/.../events/in_tempY_thresh_falling_period
1108 What:           /sys/.../events/in_tempY_roc_rising_period
1109 What:           /sys/.../events/in_tempY_roc_falling_period
1110 What:           /sys/.../events/in_accel_x&y&z_mag_falling_period
1111 What:           /sys/.../events/in_intensity0_thresh_period
1112 What:           /sys/.../events/in_proximity0_thresh_period
1113 What:           /sys/.../events/in_activity_still_thresh_rising_period
1114 What:           /sys/.../events/in_activity_still_thresh_falling_period
1115 What:           /sys/.../events/in_activity_walking_thresh_rising_period
1116 What:           /sys/.../events/in_activity_walking_thresh_falling_period
1117 What:           /sys/.../events/in_activity_jogging_thresh_rising_period
1118 What:           /sys/.../events/in_activity_jogging_thresh_falling_period
1119 What:           /sys/.../events/in_activity_running_thresh_rising_period
1120 What:           /sys/.../events/in_activity_running_thresh_falling_period
1121 What:           /sys/.../events/in_illuminance_thresh_either_period
1122 KernelVersion:  2.6.37
1123 Contact:        linux-iio@vger.kernel.org
1124 Description:
1125                 Period of time (in seconds) for which the condition must be
1126                 met before an event is generated. If direction is not
1127                 specified then this period applies to both directions.
1128
1129 What:           /sys/.../events/in_accel_thresh_rising_low_pass_filter_3db
1130 What:           /sys/.../events/in_anglvel_thresh_rising_low_pass_filter_3db
1131 What:           /sys/.../events/in_magn_thresh_rising_low_pass_filter_3db
1132 KernelVersion:  4.2
1133 Contact:        linux-iio@vger.kernel.org
1134 Description:
1135                 If a low pass filter can be applied to the event generation
1136                 this property gives its 3db frequency in Hz.
1137                 A value of zero disables the filter.
1138
1139 What:           /sys/.../events/in_accel_thresh_rising_high_pass_filter_3db
1140 What:           /sys/.../events/in_anglvel_thresh_rising_high_pass_filter_3db
1141 What:           /sys/.../events/in_magn_thresh_rising_high_pass_filter_3db
1142 KernelVersion:  4.2
1143 Contact:        linux-iio@vger.kernel.org
1144 Description:
1145                 If a high pass filter can be applied to the event generation
1146                 this property gives its 3db frequency in Hz.
1147                 A value of zero disables the filter.
1148
1149 What:           /sys/.../events/in_activity_still_thresh_rising_en
1150 What:           /sys/.../events/in_activity_still_thresh_falling_en
1151 What:           /sys/.../events/in_activity_walking_thresh_rising_en
1152 What:           /sys/.../events/in_activity_walking_thresh_falling_en
1153 What:           /sys/.../events/in_activity_jogging_thresh_rising_en
1154 What:           /sys/.../events/in_activity_jogging_thresh_falling_en
1155 What:           /sys/.../events/in_activity_running_thresh_rising_en
1156 What:           /sys/.../events/in_activity_running_thresh_falling_en
1157 KernelVersion:  3.19
1158 Contact:        linux-iio@vger.kernel.org
1159 Description:
1160                 Enables or disables activity events. Depending on direction
1161                 an event is generated when sensor ENTERS or LEAVES a given state.
1162
1163 What:           /sys/.../events/in_activity_still_thresh_rising_value
1164 What:           /sys/.../events/in_activity_still_thresh_falling_value
1165 What:           /sys/.../events/in_activity_walking_thresh_rising_value
1166 What:           /sys/.../events/in_activity_walking_thresh_falling_value
1167 What:           /sys/.../events/in_activity_jogging_thresh_rising_value
1168 What:           /sys/.../events/in_activity_jogging_thresh_falling_value
1169 What:           /sys/.../events/in_activity_running_thresh_rising_value
1170 What:           /sys/.../events/in_activity_running_thresh_falling_value
1171 KernelVersion:  3.19
1172 Contact:        linux-iio@vger.kernel.org
1173 Description:
1174                 Confidence value (in units as percentage) to be used
1175                 for deciding when an event should be generated. E.g for
1176                 running: If the confidence value reported by the sensor
1177                 is greater than in_activity_running_thresh_rising_value
1178                 then the sensor ENTERS running state. Conversely, if the
1179                 confidence value reported by the sensor is lower than
1180                 in_activity_running_thresh_falling_value then the sensor
1181                 is LEAVING running state.
1182
1183 What:           /sys/.../iio:deviceX/events/in_accel_mag_en
1184 What:           /sys/.../iio:deviceX/events/in_accel_mag_rising_en
1185 What:           /sys/.../iio:deviceX/events/in_accel_mag_falling_en
1186 What:           /sys/.../iio:deviceX/events/in_accel_x_mag_en
1187 What:           /sys/.../iio:deviceX/events/in_accel_x_mag_rising_en
1188 What:           /sys/.../iio:deviceX/events/in_accel_x_mag_falling_en
1189 What:           /sys/.../iio:deviceX/events/in_accel_y_mag_en
1190 What:           /sys/.../iio:deviceX/events/in_accel_y_mag_rising_en
1191 What:           /sys/.../iio:deviceX/events/in_accel_y_mag_falling_en
1192 What:           /sys/.../iio:deviceX/events/in_accel_z_mag_en
1193 What:           /sys/.../iio:deviceX/events/in_accel_z_mag_rising_en
1194 What:           /sys/.../iio:deviceX/events/in_accel_z_mag_falling_en
1195 What:           /sys/.../iio:deviceX/events/in_accel_x&y&z_mag_rising_en
1196 What:           /sys/.../iio:deviceX/events/in_accel_x&y&z_mag_falling_en
1197 KernelVersion:  2.6.37
1198 Contact:        linux-iio@vger.kernel.org
1199 Description:
1200                 Similar to in_accel_x_thresh[_rising|_falling]_en, but here the
1201                 magnitude of the channel is compared to the threshold, not its
1202                 signed value.
1203
1204 What:           /sys/.../events/in_accel_raw_mag_value
1205 What:           /sys/.../events/in_accel_x_raw_mag_rising_value
1206 What:           /sys/.../events/in_accel_y_raw_mag_rising_value
1207 What:           /sys/.../events/in_accel_z_raw_mag_rising_value
1208 KernelVersion:  2.6.37
1209 Contact:        linux-iio@vger.kernel.org
1210 Description:
1211                 The value to which the magnitude of the channel is compared. If
1212                 number or direction is not specified, applies to all channels of
1213                 this type.
1214
1215 What:           /sys/.../events/in_steps_change_en
1216 KernelVersion:  4.0
1217 Contact:        linux-iio@vger.kernel.org
1218 Description:
1219                 Event generated when channel passes a threshold on the absolute
1220                 change in value. E.g. for steps: a step change event is
1221                 generated each time the user takes N steps, where N is set using
1222                 in_steps_change_value.
1223
1224 What:           /sys/.../events/in_steps_change_value
1225 KernelVersion:  4.0
1226 Contact:        linux-iio@vger.kernel.org
1227 Description:
1228                 Specifies the value of change threshold that the
1229                 device is comparing against for the events enabled by
1230                 <type>[Y][_name]_roc[_rising|falling|]_en. E.g. for steps:
1231                 if set to 3, a step change event will be generated every 3
1232                 steps.
1233
1234 What:           /sys/bus/iio/devices/iio:deviceX/trigger/current_trigger
1235 KernelVersion:  2.6.35
1236 Contact:        linux-iio@vger.kernel.org
1237 Description:
1238                 The name of the trigger source being used, as per string given
1239                 in /sys/class/iio/triggerY/name.
1240
1241 What:           /sys/bus/iio/devices/iio:deviceX/bufferY/length
1242 KernelVersion:  5.11
1243 Contact:        linux-iio@vger.kernel.org
1244 Description:
1245                 Number of scans contained by the buffer.
1246
1247 What:           /sys/bus/iio/devices/iio:deviceX/bufferY/enable
1248 KernelVersion:  5.11
1249 Contact:        linux-iio@vger.kernel.org
1250 Description:
1251                 Actually start the buffer capture up.  Will start trigger
1252                 if first device and appropriate.
1253
1254 What:           /sys/bus/iio/devices/iio:deviceX/bufferY
1255 KernelVersion:  5.11
1256 Contact:        linux-iio@vger.kernel.org
1257 Description:
1258                 Directory containing interfaces for elements that will be
1259                 captured for a single triggered sample set in the buffer.
1260
1261                 Since kernel 5.11 the scan_elements attributes are merged into
1262                 the bufferY directory, to be configurable per buffer.
1263
1264 What:           /sys/.../iio:deviceX/bufferY/in_accel_x_en
1265 What:           /sys/.../iio:deviceX/bufferY/in_accel_y_en
1266 What:           /sys/.../iio:deviceX/bufferY/in_accel_z_en
1267 What:           /sys/.../iio:deviceX/bufferY/in_anglvel_x_en
1268 What:           /sys/.../iio:deviceX/bufferY/in_anglvel_y_en
1269 What:           /sys/.../iio:deviceX/bufferY/in_anglvel_z_en
1270 What:           /sys/.../iio:deviceX/bufferY/in_magn_x_en
1271 What:           /sys/.../iio:deviceX/bufferY/in_magn_y_en
1272 What:           /sys/.../iio:deviceX/bufferY/in_magn_z_en
1273 What:           /sys/.../iio:deviceX/bufferY/in_rot_from_north_magnetic_en
1274 What:           /sys/.../iio:deviceX/bufferY/in_rot_from_north_true_en
1275 What:           /sys/.../iio:deviceX/bufferY/in_rot_from_north_magnetic_tilt_comp_en
1276 What:           /sys/.../iio:deviceX/bufferY/in_rot_from_north_true_tilt_comp_en
1277 What:           /sys/.../iio:deviceX/bufferY/in_timestamp_en
1278 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_supply_en
1279 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_en
1280 What:           /sys/.../iio:deviceX/bufferY/in_voltageY-voltageZ_en
1281 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_i_en
1282 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_q_en
1283 What:           /sys/.../iio:deviceX/bufferY/in_voltage_i_en
1284 What:           /sys/.../iio:deviceX/bufferY/in_voltage_q_en
1285 What:           /sys/.../iio:deviceX/bufferY/in_incli_x_en
1286 What:           /sys/.../iio:deviceX/bufferY/in_incli_y_en
1287 What:           /sys/.../iio:deviceX/bufferY/in_pressureY_en
1288 What:           /sys/.../iio:deviceX/bufferY/in_pressure_en
1289 What:           /sys/.../iio:deviceX/bufferY/in_rot_quaternion_en
1290 What:           /sys/.../iio:deviceX/bufferY/in_proximity_en
1291 KernelVersion:  5.11
1292 Contact:        linux-iio@vger.kernel.org
1293 Description:
1294                 Scan element control for triggered data capture.
1295
1296 What:           /sys/.../iio:deviceX/bufferY/in_accel_type
1297 What:           /sys/.../iio:deviceX/bufferY/in_anglvel_type
1298 What:           /sys/.../iio:deviceX/bufferY/in_magn_type
1299 What:           /sys/.../iio:deviceX/bufferY/in_incli_type
1300 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_type
1301 What:           /sys/.../iio:deviceX/bufferY/in_voltage_type
1302 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_supply_type
1303 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_i_type
1304 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_q_type
1305 What:           /sys/.../iio:deviceX/bufferY/in_voltage_i_type
1306 What:           /sys/.../iio:deviceX/bufferY/in_voltage_q_type
1307 What:           /sys/.../iio:deviceX/bufferY/in_timestamp_type
1308 What:           /sys/.../iio:deviceX/bufferY/in_pressureY_type
1309 What:           /sys/.../iio:deviceX/bufferY/in_pressure_type
1310 What:           /sys/.../iio:deviceX/bufferY/in_rot_quaternion_type
1311 What:           /sys/.../iio:deviceX/bufferY/in_proximity_type
1312 KernelVersion:  5.11
1313 Contact:        linux-iio@vger.kernel.org
1314 Description:
1315                 Description of the scan element data storage within the buffer
1316                 and hence the form in which it is read from user-space.
1317                 Form is [be|le]:[s|u]bits/storagebits[>>shift].
1318                 be or le specifies big or little endian. s or u specifies if
1319                 signed (2's complement) or unsigned. bits is the number of bits
1320                 of data and storagebits is the space (after padding) that it
1321                 occupies in the buffer. shift if specified, is the shift that
1322                 needs to be applied prior to masking out unused bits. Some
1323                 devices put their data in the middle of the transferred elements
1324                 with additional information on both sides.  Note that some
1325                 devices will have additional information in the unused bits
1326                 so to get a clean value, the bits value must be used to mask
1327                 the buffer output value appropriately.  The storagebits value
1328                 also specifies the data alignment.  So s48/64>>2 will be a
1329                 signed 48 bit integer stored in a 64 bit location aligned to
1330                 a 64 bit boundary. To obtain the clean value, shift right 2
1331                 and apply a mask to zero the top 16 bits of the result.
1332                 For other storage combinations this attribute will be extended
1333                 appropriately.
1334
1335 What:           /sys/.../iio:deviceX/scan_elements/in_accel_type_available
1336 KernelVersion:  2.6.37
1337 Contact:        linux-iio@vger.kernel.org
1338 Description:
1339                 If the type parameter can take one of a small set of values,
1340                 this attribute lists them.
1341
1342 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_index
1343 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_supply_index
1344 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_i_index
1345 What:           /sys/.../iio:deviceX/bufferY/in_voltageY_q_index
1346 What:           /sys/.../iio:deviceX/bufferY/in_voltage_i_index
1347 What:           /sys/.../iio:deviceX/bufferY/in_voltage_q_index
1348 What:           /sys/.../iio:deviceX/bufferY/in_accel_x_index
1349 What:           /sys/.../iio:deviceX/bufferY/in_accel_y_index
1350 What:           /sys/.../iio:deviceX/bufferY/in_accel_z_index
1351 What:           /sys/.../iio:deviceX/bufferY/in_anglvel_x_index
1352 What:           /sys/.../iio:deviceX/bufferY/in_anglvel_y_index
1353 What:           /sys/.../iio:deviceX/bufferY/in_anglvel_z_index
1354 What:           /sys/.../iio:deviceX/bufferY/in_magn_x_index
1355 What:           /sys/.../iio:deviceX/bufferY/in_magn_y_index
1356 What:           /sys/.../iio:deviceX/bufferY/in_magn_z_index
1357 What:           /sys/.../iio:deviceX/bufferY/in_rot_from_north_magnetic_index
1358 What:           /sys/.../iio:deviceX/bufferY/in_rot_from_north_true_index
1359 What:           /sys/.../iio:deviceX/bufferY/in_rot_from_north_magnetic_tilt_comp_index
1360 What:           /sys/.../iio:deviceX/bufferY/in_rot_from_north_true_tilt_comp_index
1361 What:           /sys/.../iio:deviceX/bufferY/in_incli_x_index
1362 What:           /sys/.../iio:deviceX/bufferY/in_incli_y_index
1363 What:           /sys/.../iio:deviceX/bufferY/in_timestamp_index
1364 What:           /sys/.../iio:deviceX/bufferY/in_pressureY_index
1365 What:           /sys/.../iio:deviceX/bufferY/in_pressure_index
1366 What:           /sys/.../iio:deviceX/bufferY/in_rot_quaternion_index
1367 What:           /sys/.../iio:deviceX/bufferY/in_proximity_index
1368 KernelVersion:  5.11
1369 Contact:        linux-iio@vger.kernel.org
1370 Description:
1371                 A single positive integer specifying the position of this
1372                 scan element in the buffer. Note these are not dependent on
1373                 what is enabled and may not be contiguous. Thus for user-space
1374                 to establish the full layout these must be used in conjunction
1375                 with all _en attributes to establish which channels are present,
1376                 and the relevant _type attributes to establish the data storage
1377                 format.
1378
1379 What:           /sys/.../iio:deviceX/in_activity_still_input
1380 What:           /sys/.../iio:deviceX/in_activity_walking_input
1381 What:           /sys/.../iio:deviceX/in_activity_jogging_input
1382 What:           /sys/.../iio:deviceX/in_activity_running_input
1383 KernelVersion:  3.19
1384 Contact:        linux-iio@vger.kernel.org
1385 Description:
1386                 This attribute is used to read the confidence for an activity
1387                 expressed in units as percentage.
1388
1389 What:           /sys/.../iio:deviceX/in_anglvel_z_quadrature_correction_raw
1390 KernelVersion:  2.6.38
1391 Contact:        linux-iio@vger.kernel.org
1392 Description:
1393                 This attribute is used to read the amount of quadrature error
1394                 present in the device at a given time.
1395
1396 What:           /sys/.../iio:deviceX/in_accelX_power_mode
1397 KernelVersion:  3.11
1398 Contact:        linux-iio@vger.kernel.org
1399 Description:
1400                 Specifies the chip power mode.
1401                 low_noise: reduce noise level from ADC,
1402                 low_power: enable low current consumption.
1403                 For a list of available output power modes read
1404                 in_accel_power_mode_available.
1405
1406 What:           /sys/.../iio:deviceX/in_energy_input
1407 What:           /sys/.../iio:deviceX/in_energy_raw
1408 KernelVersion:  4.0
1409 Contact:        linux-iio@vger.kernel.org
1410 Description:
1411                 This attribute is used to read the energy value reported by the
1412                 device (e.g.: human activity sensors report energy burnt by the
1413                 user). Units after application of scale are Joules.
1414
1415 What:           /sys/.../iio:deviceX/in_distance_input
1416 What:           /sys/.../iio:deviceX/in_distance_raw
1417 KernelVersion:  4.0
1418 Contact:        linux-iio@vger.kernel.org
1419 Description:
1420                 This attribute is used to read the measured distance to an object
1421                 or the distance covered by the user since the last reboot while
1422                 activated. Units after application of scale are meters.
1423
1424 What:           /sys/bus/iio/devices/iio:deviceX/store_eeprom
1425 KernelVersion:  3.4.0
1426 Contact:        linux-iio@vger.kernel.org
1427 Description:
1428                 Writing '1' stores the current device configuration into
1429                 on-chip EEPROM. After power-up or chip reset the device will
1430                 automatically load the saved configuration.
1431
1432 What:           /sys/.../iio:deviceX/in_proximity_raw
1433 What:           /sys/.../iio:deviceX/in_proximity_input
1434 What:           /sys/.../iio:deviceX/in_proximityY_raw
1435 KernelVersion:  3.4
1436 Contact:        linux-iio@vger.kernel.org
1437 Description:
1438                 Proximity measurement indicating that some
1439                 object is near the sensor, usually by observing
1440                 reflectivity of infrared or ultrasound emitted.
1441
1442                 Often these sensors are unit less and as such conversion
1443                 to SI units is not possible. Higher proximity measurements
1444                 indicate closer objects, and vice versa. Units after
1445                 application of scale and offset are meters.
1446
1447 What:           /sys/.../iio:deviceX/in_illuminance_input
1448 What:           /sys/.../iio:deviceX/in_illuminance_raw
1449 What:           /sys/.../iio:deviceX/in_illuminanceY_input
1450 What:           /sys/.../iio:deviceX/in_illuminanceY_raw
1451 What:           /sys/.../iio:deviceX/in_illuminanceY_mean_raw
1452 What:           /sys/.../iio:deviceX/in_illuminance_ir_raw
1453 What:           /sys/.../iio:deviceX/in_illuminance_clear_raw
1454 KernelVersion:  3.4
1455 Contact:        linux-iio@vger.kernel.org
1456 Description:
1457                 Illuminance measurement, units after application of scale
1458                 and offset are lux.
1459
1460 What:           /sys/.../iio:deviceX/in_intensityY_raw
1461 What:           /sys/.../iio:deviceX/in_intensityY_ir_raw
1462 What:           /sys/.../iio:deviceX/in_intensityY_both_raw
1463 What:           /sys/.../iio:deviceX/in_intensityY_uv_raw
1464 What:           /sys/.../iio:deviceX/in_intensityY_duv_raw
1465 KernelVersion:  3.4
1466 Contact:        linux-iio@vger.kernel.org
1467 Description:
1468                 Unit-less light intensity. Modifiers both and ir indicate
1469                 that measurements contain visible and infrared light
1470                 components or just infrared light, respectively. Modifier
1471                 uv indicates that measurements contain ultraviolet light
1472                 components. Modifier duv indicates that measurements
1473                 contain deep ultraviolet light components.
1474
1475 What:           /sys/.../iio:deviceX/in_uvindex_input
1476 KernelVersion:  4.6
1477 Contact:        linux-iio@vger.kernel.org
1478 Description:
1479                 UV light intensity index measuring the human skin's response to
1480                 different wavelength of sunlight weighted according to the
1481                 standardised CIE Erythemal Action Spectrum. UV index values range
1482                 from 0 (low) to >=11 (extreme).
1483
1484 What:           /sys/.../iio:deviceX/in_intensity_integration_time
1485 What:           /sys/.../iio:deviceX/in_intensity_red_integration_time
1486 What:           /sys/.../iio:deviceX/in_intensity_green_integration_time
1487 What:           /sys/.../iio:deviceX/in_intensity_blue_integration_time
1488 What:           /sys/.../iio:deviceX/in_intensity_clear_integration_time
1489 What:           /sys/.../iio:deviceX/in_illuminance_integration_time
1490 KernelVersion:  3.12
1491 Contact:        linux-iio@vger.kernel.org
1492 Description:
1493                 This attribute is used to get/set the integration time in
1494                 seconds. If shared across all channels of a given type,
1495                 <type>_integration_time is used.
1496
1497 What:           /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time
1498 KernelVersion:  4.0
1499 Contact:        linux-iio@vger.kernel.org
1500 Description:
1501                 Number of seconds in which to compute speed.
1502
1503 What:           /sys/bus/iio/devices/iio:deviceX/in_rot_quaternion_raw
1504 KernelVersion:  3.15
1505 Contact:        linux-iio@vger.kernel.org
1506 Description:
1507                 Raw value of quaternion components using a format
1508                 x y z w. Here x, y, and z component represents the axis about
1509                 which a rotation will occur and w component represents the
1510                 amount of rotation.
1511
1512 What:           /sys/bus/iio/devices/iio:deviceX/in_rot_from_north_magnetic_tilt_comp_raw
1513 What:           /sys/bus/iio/devices/iio:deviceX/in_rot_from_north_true_tilt_comp_raw
1514 What:           /sys/bus/iio/devices/iio:deviceX/in_rot_from_north_magnetic_raw
1515 What:           /sys/bus/iio/devices/iio:deviceX/in_rot_from_north_true_raw
1516 KernelVersion:  3.15
1517 Contact:        linux-iio@vger.kernel.org
1518 Description:
1519                 Raw value of rotation from true/magnetic north measured with
1520                 or without compensation from tilt sensors.
1521
1522 What:           /sys/bus/iio/devices/iio:deviceX/in_currentX_raw
1523 What:           /sys/bus/iio/devices/iio:deviceX/in_currentX_i_raw
1524 What:           /sys/bus/iio/devices/iio:deviceX/in_currentX_q_raw
1525 KernelVersion:  3.18
1526 Contact:        linux-iio@vger.kernel.org
1527 Description:
1528                 Raw current measurement from channel X. Units are in milliamps
1529                 after application of scale and offset. If no offset or scale is
1530                 present, output should be considered as processed with the
1531                 unit in milliamps.
1532
1533                 Channels with 'i' and 'q' modifiers always exist in pairs and both
1534                 channels refer to the same signal. The 'i' channel contains the in-phase
1535                 component of the signal while the 'q' channel contains the quadrature
1536                 component.
1537
1538 What:           /sys/.../iio:deviceX/in_energy_en
1539 What:           /sys/.../iio:deviceX/in_distance_en
1540 What:           /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_en
1541 What:           /sys/.../iio:deviceX/in_steps_en
1542 KernelVersion:  3.19
1543 Contact:        linux-iio@vger.kernel.org
1544 Description:
1545                 Activates a device feature that runs in firmware/hardware.
1546                 E.g. for steps: the pedometer saves power while not used;
1547                 when activated, it will count the steps taken by the user in
1548                 firmware and export them through in_steps_input.
1549
1550 What:           /sys/.../iio:deviceX/in_steps_input
1551 KernelVersion:  3.19
1552 Contact:        linux-iio@vger.kernel.org
1553 Description:
1554                 This attribute is used to read the number of steps taken by the user
1555                 since the last reboot while activated.
1556
1557 What:           /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_input
1558 What:           /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_raw
1559 KernelVersion:  3.19
1560 Contact:        linux-iio@vger.kernel.org
1561 Description:
1562                 This attribute is used to read the current speed value of the
1563                 user (which is the norm or magnitude of the velocity vector).
1564                 Units after application of scale are m/s.
1565
1566 What:           /sys/.../iio:deviceX/in_steps_debounce_count
1567 KernelVersion:  4.0
1568 Contact:        linux-iio@vger.kernel.org
1569 Description:
1570                 Specifies the number of steps that must occur within
1571                 in_steps_filter_debounce_time for the pedometer to decide the
1572                 consumer is making steps.
1573
1574 What:           /sys/.../iio:deviceX/in_steps_debounce_time
1575 KernelVersion:  4.0
1576 Contact:        linux-iio@vger.kernel.org
1577 Description:
1578                 Specifies number of seconds in which we compute the steps
1579                 that occur in order to decide if the consumer is making steps.
1580
1581 What:           /sys/bus/iio/devices/iio:deviceX/bufferY/watermark
1582 KernelVersion:  5.11
1583 Contact:        linux-iio@vger.kernel.org
1584 Description:
1585                 A single positive integer specifying the maximum number of scan
1586                 elements to wait for.
1587
1588                 Poll will block until the watermark is reached.
1589
1590                 Blocking read will wait until the minimum between the requested
1591                 read amount or the low water mark is available.
1592
1593                 Non-blocking read will retrieve the available samples from the
1594                 buffer even if there are less samples then watermark level. This
1595                 allows the application to block on poll with a timeout and read
1596                 the available samples after the timeout expires and thus have a
1597                 maximum delay guarantee.
1598
1599 What:           /sys/bus/iio/devices/iio:deviceX/bufferY/data_available
1600 KernelVersion:  5.11
1601 Contact:        linux-iio@vger.kernel.org
1602 Description:
1603                 A read-only value indicating the bytes of data available in the
1604                 buffer. In the case of an output buffer, this indicates the
1605                 amount of empty space available to write data to. In the case of
1606                 an input buffer, this indicates the amount of data available for
1607                 reading.
1608
1609 What:           /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_enabled
1610 KernelVersion: 4.2
1611 Contact:        linux-iio@vger.kernel.org
1612 Description:
1613                 A read-only boolean value that indicates if the hardware fifo is
1614                 currently enabled or disabled. If the device does not have a
1615                 hardware fifo this entry is not present.
1616                 The hardware fifo is enabled when the buffer is enabled if the
1617                 current hardware fifo watermark level is set and other current
1618                 device settings allows it (e.g. if a trigger is set that samples
1619                 data differently that the hardware fifo does then hardware fifo
1620                 will not enabled).
1621
1622                 If the hardware fifo is enabled and the level of the hardware
1623                 fifo reaches the hardware fifo watermark level the device will
1624                 flush its hardware fifo to the device buffer. Doing a non
1625                 blocking read on the device when no samples are present in the
1626                 device buffer will also force a flush.
1627
1628                 When the hardware fifo is enabled there is no need to use a
1629                 trigger to use buffer mode since the watermark settings
1630                 guarantees that the hardware fifo is flushed to the device
1631                 buffer.
1632
1633 What:           /sys/bus/iio/devices/iio:device*/buffer/hwfifo_timeout
1634 KernelVersion:  4.12
1635 Contact:        linux-iio@vger.kernel.org
1636 Description:
1637                 A read/write property to provide capability to delay reporting of
1638                 samples till a timeout is reached. This allows host processors to
1639                 sleep, while the sensor is storing samples in its internal fifo.
1640                 The maximum timeout in seconds can be specified by setting
1641                 hwfifo_timeout.The current delay can be read by reading
1642                 hwfifo_timeout. A value of 0 means that there is no timeout.
1643
1644 What:           /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark
1645 KernelVersion: 4.2
1646 Contact:        linux-iio@vger.kernel.org
1647 Description:
1648                 Read-only entry that contains a single integer specifying the
1649                 current watermark level for the hardware fifo. If the device
1650                 does not have a hardware fifo this entry is not present.
1651                 The watermark level for the hardware fifo is set by the driver
1652                 based on the value set by the user in buffer/watermark but
1653                 taking into account hardware limitations (e.g. most hardware
1654                 buffers are limited to 32-64 samples, some hardware buffers
1655                 watermarks are fixed or have minimum levels).  A value of 0
1656                 means that the hardware watermark is unset.
1657
1658 What:           /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark_min
1659 KernelVersion: 4.2
1660 Contact:       linux-iio@vger.kernel.org
1661 Description:
1662                 A single positive integer specifying the minimum watermark level
1663                 for the hardware fifo of this device. If the device does not
1664                 have a hardware fifo this entry is not present.
1665
1666                 If the user sets buffer/watermark to a value less than this one,
1667                 then the hardware watermark will remain unset.
1668
1669 What:          /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark_max
1670 KernelVersion: 4.2
1671 Contact:       linux-iio@vger.kernel.org
1672 Description:
1673                 A single positive integer specifying the maximum watermark level
1674                 for the hardware fifo of this device. If the device does not
1675                 have a hardware fifo this entry is not present.
1676
1677                 If the user sets buffer/watermark to a value greater than this
1678                 one, then the hardware watermark will be capped at this value.
1679
1680 What:          /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark_available
1681 KernelVersion: 4.2
1682 Contact:       linux-iio@vger.kernel.org
1683 Description:
1684                 A list of positive integers specifying the available watermark
1685                 levels for the hardware fifo. This entry is optional and if it
1686                 is not present it means that all the values between
1687                 hwfifo_watermark_min and hwfifo_watermark_max are supported.
1688
1689                 If the user sets buffer/watermark to a value greater than
1690                 hwfifo_watermak_min but not equal to any of the values in this
1691                 list, the driver will chose an appropriate value for the
1692                 hardware fifo watermark level.
1693
1694 What:           /sys/bus/iio/devices/iio:deviceX/in_temp_calibemissivity
1695 What:           /sys/bus/iio/devices/iio:deviceX/in_tempX_calibemissivity
1696 What:           /sys/bus/iio/devices/iio:deviceX/in_temp_object_calibemissivity
1697 What:           /sys/bus/iio/devices/iio:deviceX/in_tempX_object_calibemissivity
1698 KernelVersion:  4.1
1699 Contact:        linux-iio@vger.kernel.org
1700 Description:
1701                 The emissivity ratio of the surface in the field of view of the
1702                 contactless temperature sensor.  Emissivity varies from 0 to 1,
1703                 with 1 being the emissivity of a black body.
1704
1705 What:           /sys/bus/iio/devices/iio:deviceX/in_magn_x_oversampling_ratio
1706 What:           /sys/bus/iio/devices/iio:deviceX/in_magn_y_oversampling_ratio
1707 What:           /sys/bus/iio/devices/iio:deviceX/in_magn_z_oversampling_ratio
1708 KernelVersion:  4.2
1709 Contact:        linux-iio@vger.kernel.org
1710 Description:
1711                 Hardware applied number of measurements for acquiring one
1712                 data point. The HW will do <type>[_name]_oversampling_ratio
1713                 measurements and return the average value as output data. Each
1714                 value resulted from <type>[_name]_oversampling_ratio measurements
1715                 is considered as one sample for <type>[_name]_sampling_frequency.
1716
1717 What:           /sys/bus/iio/devices/iio:deviceX/in_concentration_raw
1718 What:           /sys/bus/iio/devices/iio:deviceX/in_concentrationX_raw
1719 What:           /sys/bus/iio/devices/iio:deviceX/in_concentration_co2_raw
1720 What:           /sys/bus/iio/devices/iio:deviceX/in_concentrationX_co2_raw
1721 What:           /sys/bus/iio/devices/iio:deviceX/in_concentration_ethanol_raw
1722 What:           /sys/bus/iio/devices/iio:deviceX/in_concentrationX_ethanol_raw
1723 What:           /sys/bus/iio/devices/iio:deviceX/in_concentration_h2_raw
1724 What:           /sys/bus/iio/devices/iio:deviceX/in_concentrationX_h2_raw
1725 What:           /sys/bus/iio/devices/iio:deviceX/in_concentration_o2_raw
1726 What:           /sys/bus/iio/devices/iio:deviceX/in_concentrationX_o2_raw
1727 What:           /sys/bus/iio/devices/iio:deviceX/in_concentration_voc_raw
1728 What:           /sys/bus/iio/devices/iio:deviceX/in_concentrationX_voc_raw
1729 KernelVersion:  4.3
1730 Contact:        linux-iio@vger.kernel.org
1731 Description:
1732                 Raw (unscaled no offset etc.) reading of a substance. Units
1733                 after application of scale and offset are percents.
1734
1735 What:           /sys/bus/iio/devices/iio:deviceX/in_resistance_raw
1736 What:           /sys/bus/iio/devices/iio:deviceX/in_resistanceX_raw
1737 What:           /sys/bus/iio/devices/iio:deviceX/out_resistance_raw
1738 What:           /sys/bus/iio/devices/iio:deviceX/out_resistanceX_raw
1739 KernelVersion:  4.3
1740 Contact:        linux-iio@vger.kernel.org
1741 Description:
1742                 Raw (unscaled no offset etc.) resistance reading that can be processed
1743                 into an ohm value.
1744
1745 What:           /sys/bus/iio/devices/iio:deviceX/heater_enable
1746 KernelVersion:  4.1.0
1747 Contact:        linux-iio@vger.kernel.org
1748 Description:
1749                 '1' (enable) or '0' (disable) specifying the enable
1750                 of heater function. Same reading values apply.
1751
1752                 This ABI is especially applicable for humidity sensors
1753                 to heatup the device and get rid of any condensation
1754                 in some humidity environment
1755
1756 What:           /sys/bus/iio/devices/iio:deviceX/in_ph_raw
1757 KernelVersion:  4.5
1758 Contact:        linux-iio@vger.kernel.org
1759 Description:
1760                 Raw (unscaled no offset etc.) pH reading of a substance as a negative
1761                 base-10 logarithm of hydrodium ions in a litre of water.
1762
1763 What:           /sys/bus/iio/devices/iio:deviceX/mount_matrix
1764 What:           /sys/bus/iio/devices/iio:deviceX/in_mount_matrix
1765 What:           /sys/bus/iio/devices/iio:deviceX/out_mount_matrix
1766 What:           /sys/bus/iio/devices/iio:deviceX/in_anglvel_mount_matrix
1767 What:           /sys/bus/iio/devices/iio:deviceX/in_accel_mount_matrix
1768 KernelVersion:  4.6
1769 Contact:        linux-iio@vger.kernel.org
1770 Description:
1771                 Mounting matrix for IIO sensors. This is a rotation matrix which
1772                 informs userspace about sensor chip's placement relative to the
1773                 main hardware it is mounted on.
1774
1775                 Main hardware placement is defined according to the local
1776                 reference frame related to the physical quantity the sensor
1777                 measures.
1778
1779                 Given that the rotation matrix is defined in a board specific
1780                 way (platform data and / or device-tree), the main hardware
1781                 reference frame definition is left to the implementor's choice
1782                 (see below for a magnetometer example).
1783
1784                 Applications should apply this rotation matrix to samples so
1785                 that when main hardware reference frame is aligned onto local
1786                 reference frame, then sensor chip reference frame is also
1787                 perfectly aligned with it.
1788
1789                 Matrix is a 3x3 unitary matrix and typically looks like
1790                 [0, 1, 0; 1, 0, 0; 0, 0, -1]. Identity matrix
1791                 [1, 0, 0; 0, 1, 0; 0, 0, 1] means sensor chip and main hardware
1792                 are perfectly aligned with each other.
1793
1794                 For example, a mounting matrix for a magnetometer sensor informs
1795                 userspace about sensor chip's ORIENTATION relative to the main
1796                 hardware.
1797
1798                 More specifically, main hardware orientation is defined with
1799                 respect to the LOCAL EARTH GEOMAGNETIC REFERENCE FRAME where :
1800
1801                 * Y is in the ground plane and positive towards magnetic North ;
1802                 * X is in the ground plane, perpendicular to the North axis and
1803                   positive towards the East ;
1804                 * Z is perpendicular to the ground plane and positive upwards.
1805
1806                 An implementor might consider that for a hand-held device, a
1807                 'natural' orientation would be 'front facing camera at the top'.
1808                 The main hardware reference frame could then be described as :
1809
1810                 * Y is in the plane of the screen and is positive towards the
1811                   top of the screen ;
1812                 * X is in the plane of the screen, perpendicular to Y axis, and
1813                   positive towards the right hand side of the screen ;
1814                 * Z is perpendicular to the screen plane and positive out of the
1815                   screen.
1816
1817                 Another example for a quadrotor UAV might be :
1818
1819                 * Y is in the plane of the propellers and positive towards the
1820                   front-view camera;
1821                 * X is in the plane of the propellers, perpendicular to Y axis,
1822                   and positive towards the starboard side of the UAV ;
1823                 * Z is perpendicular to propellers plane and positive upwards.
1824
1825 What:           /sys/bus/iio/devices/iio:deviceX/in_electricalconductivity_raw
1826 KernelVersion:  4.8
1827 Contact:        linux-iio@vger.kernel.org
1828 Description:
1829                 Raw (unscaled no offset etc.) electric conductivity reading that
1830                 can be processed to siemens per meter.
1831
1832 What:           /sys/bus/iio/devices/iio:deviceX/in_countY_raw
1833 KernelVersion:  4.10
1834 Contact:        linux-iio@vger.kernel.org
1835 Description:
1836                 This interface is deprecated; please use the Counter subsystem.
1837
1838                 Raw counter device counts from channel Y. For quadrature
1839                 counters, multiplication by an available [Y]_scale results in
1840                 the counts of a single quadrature signal phase from channel Y.
1841
1842 What:           /sys/bus/iio/devices/iio:deviceX/in_indexY_raw
1843 KernelVersion:  4.10
1844 Contact:        linux-iio@vger.kernel.org
1845 Description:
1846                 This interface is deprecated; please use the Counter subsystem.
1847
1848                 Raw counter device index value from channel Y. This attribute
1849                 provides an absolute positional reference (e.g. a pulse once per
1850                 revolution) which may be used to home positional systems as
1851                 required.
1852
1853 What:           /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available
1854 KernelVersion:  4.12
1855 Contact:        linux-iio@vger.kernel.org
1856 Description:
1857                 This interface is deprecated; please use the Counter subsystem.
1858
1859                 A list of possible counting directions which are:
1860
1861                 - "up"  : counter device is increasing.
1862                 - "down": counter device is decreasing.
1863
1864 What:           /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction
1865 KernelVersion:  4.12
1866 Contact:        linux-iio@vger.kernel.org
1867 Description:
1868                 This interface is deprecated; please use the Counter subsystem.
1869
1870                 Raw counter device counters direction for channel Y.
1871
1872 What:           /sys/bus/iio/devices/iio:deviceX/in_voltageY_label
1873 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_label
1874 KernelVersion:  5.8
1875 Contact:        linux-iio@vger.kernel.org
1876 Description:
1877                 Optional symbolic label to a device channel.
1878                 If a label is defined for this channel add that to the channel
1879                 specific attributes. This is useful for userspace to be able to
1880                 better identify an individual channel.
1881
1882 What:           /sys/bus/iio/devices/iio:deviceX/in_phaseY_raw
1883 KernelVersion:  4.18
1884 Contact:        linux-iio@vger.kernel.org
1885 Description:
1886                 Raw (unscaled) phase difference reading from channel Y
1887                 that can be processed to radians.
1888
1889 What:           /sys/bus/iio/devices/iio:deviceX/in_massconcentration_pm1_input
1890 What:           /sys/bus/iio/devices/iio:deviceX/in_massconcentrationY_pm1_input
1891 What:           /sys/bus/iio/devices/iio:deviceX/in_massconcentration_pm2p5_input
1892 What:           /sys/bus/iio/devices/iio:deviceX/in_massconcentrationY_pm2p5_input
1893 What:           /sys/bus/iio/devices/iio:deviceX/in_massconcentration_pm4_input
1894 What:           /sys/bus/iio/devices/iio:deviceX/in_massconcentrationY_pm4_input
1895 What:           /sys/bus/iio/devices/iio:deviceX/in_massconcentration_pm10_input
1896 What:           /sys/bus/iio/devices/iio:deviceX/in_massconcentrationY_pm10_input
1897 KernelVersion:  4.22
1898 Contact:        linux-iio@vger.kernel.org
1899 Description:
1900                 Mass concentration reading of particulate matter in ug / m3.
1901                 pmX consists of particles with aerodynamic diameter less or
1902                 equal to X micrometers.
1903
1904 What:           /sys/bus/iio/devices/iio:deviceX/events/in_illuminance_period_available
1905 Date:           November 2019
1906 KernelVersion:  5.4
1907 Contact:        linux-iio@vger.kernel.org
1908 Description:
1909                 List of valid periods (in seconds) for which the light intensity
1910                 must be above the threshold level before interrupt is asserted.
1911
1912 What:           /sys/bus/iio/devices/iio:deviceX/in_filter_notch_center_frequency
1913 KernelVersion:  5.5
1914 Contact:        linux-iio@vger.kernel.org
1915 Description:
1916                 Center frequency in Hz for a notch filter. Used i.e. for line
1917                 noise suppression.
1918
1919 What:           /sys/bus/iio/devices/iio:deviceX/in_temp_thermocouple_type
1920 KernelVersion:  5.5
1921 Contact:        linux-iio@vger.kernel.org
1922 Description:
1923                 One of the following thermocouple types: B, E, J, K, N, R, S, T.
1924
1925 What:           /sys/bus/iio/devices/iio:deviceX/in_temp_object_calibambient
1926 What:           /sys/bus/iio/devices/iio:deviceX/in_tempX_object_calibambient
1927 KernelVersion:  5.10
1928 Contact:        linux-iio@vger.kernel.org
1929 Description:
1930                 Calibrated ambient temperature for object temperature
1931                 calculation in milli degrees Celsius.
1932
1933 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_x_raw
1934 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_y_raw
1935 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_z_raw
1936 KernelVersion:  5.10
1937 Contact:        linux-iio@vger.kernel.org
1938 Description:
1939                 Unscaled light intensity according to CIE 1931/DIN 5033 color space.
1940                 Units after application of scale are nano nanowatts per square meter.
1941
1942 What:           /sys/bus/iio/devices/iio:deviceX/in_anglY_label
1943 KernelVersion:  5.12
1944 Contact:        linux-iio@vger.kernel.org
1945 Description:
1946                 Optional symbolic label for channel Y.
1947                 For Intel hid hinge sensor, the label values are:
1948                 hinge, keyboard, screen. It means the three channels
1949                 each correspond respectively to hinge angle, keyboard angle,
1950                 and screen angle.
1951
1952 What:           /sys/bus/iio/devices/iio:deviceX/in_illuminance_hysteresis_relative
1953 What:           /sys/bus/iio/devices/iio:deviceX/in_intensity_hysteresis_relative
1954 KernelVersion:  5.12
1955 Contact:        linux-iio@vger.kernel.org
1956 Description:
1957                 Specify the percent for light sensor relative to the channel
1958                 absolute value that a data field should change before an event
1959                 is generated. Units are a percentage of the prior reading.