blob: ca3d3b724efdcffb521d3227e79b2ef67a9699fb [file] [log] [blame]
Jonathan Cameronb3874062011-08-30 12:32:49 +01001What: /sys/bus/iio/devices/iio:deviceX
Jonathan Camerone34d2c52010-05-04 14:43:05 +01002KernelVersion: 2.6.35
3Contact: linux-iio@vger.kernel.org
4Description:
Jonathan Cameronde1874b2011-08-12 16:55:38 +01005 Hardware chip or device accessed by one communication port.
Jonathan Cameronf386caa2010-11-22 23:31:16 +00006 Corresponds to a grouping of sensor channels. X is the IIO
7 index of the device.
Jonathan Camerone34d2c52010-05-04 14:43:05 +01008
Jonathan Cameronf386caa2010-11-22 23:31:16 +00009What: /sys/bus/iio/devices/triggerX
Jonathan Camerone34d2c52010-05-04 14:43:05 +010010KernelVersion: 2.6.35
11Contact: linux-iio@vger.kernel.org
12Description:
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.
Jonathan Cameronf386caa2010-11-22 23:31:16 +000017 periodic timer, GPIO or high resolution timer).
Jonathan Camerone34d2c52010-05-04 14:43:05 +010018 Contains trigger type specific elements. These do not
19 generalize well and hence are not documented in this file.
Jonathan Cameronf386caa2010-11-22 23:31:16 +000020 X is the IIO index of the trigger.
Jonathan Camerone34d2c52010-05-04 14:43:05 +010021
Jonathan Cameronb3874062011-08-30 12:32:49 +010022What: /sys/bus/iio/devices/iio:deviceX/buffer
Jonathan Camerone34d2c52010-05-04 14:43:05 +010023KernelVersion: 2.6.35
24Contact: linux-iio@vger.kernel.org
25Description:
Jonathan Cameronb3874062011-08-30 12:32:49 +010026 Directory of attributes relating to the buffer for the device.
Jonathan Camerone34d2c52010-05-04 14:43:05 +010027
Jonathan Cameronb3874062011-08-30 12:32:49 +010028What: /sys/bus/iio/devices/iio:deviceX/name
Jonathan Camerone34d2c52010-05-04 14:43:05 +010029KernelVersion: 2.6.35
30Contact: linux-iio@vger.kernel.org
31Description:
Jonathan Cameronf386caa2010-11-22 23:31:16 +000032 Description of the physical chip / device for device X.
33 Typically a part number.
Jonathan Camerone34d2c52010-05-04 14:43:05 +010034
Jonathan Cameronb3874062011-08-30 12:32:49 +010035What: /sys/bus/iio/devices/iio:deviceX/sampling_frequency
Jonathan Cameron15739cd2011-09-21 11:15:51 +010036What: /sys/bus/iio/devices/iio:deviceX/buffer/sampling_frequency
37What: /sys/bus/iio/devices/triggerX/sampling_frequency
Jonathan Camerone34d2c52010-05-04 14:43:05 +010038KernelVersion: 2.6.35
39Contact: linux-iio@vger.kernel.org
40Description:
41 Some devices have internal clocks. This parameter sets the
42 resulting sampling frequency. In many devices this
Peter Meerwald8b417d72012-06-12 15:31:27 +020043 parameter has an effect on input filters etc. rather than
Jonathan Camerone34d2c52010-05-04 14:43:05 +010044 simply controlling when the input is sampled. As this
Peter Meerwald8b417d72012-06-12 15:31:27 +020045 effects data ready triggers, hardware buffers and the sysfs
Jonathan Camerone34d2c52010-05-04 14:43:05 +010046 direct access interfaces, it may be found in any of the
47 relevant directories. If it effects all of the above
Jonathan Cameron15739cd2011-09-21 11:15:51 +010048 then it is to be found in the base device directory.
Jonathan Camerone34d2c52010-05-04 14:43:05 +010049
Jonathan Cameronb3874062011-08-30 12:32:49 +010050What: /sys/bus/iio/devices/iio:deviceX/sampling_frequency_available
Jonathan Cameron15739cd2011-09-21 11:15:51 +010051What: /sys/.../iio:deviceX/buffer/sampling_frequency_available
52What: /sys/bus/iio/devices/triggerX/sampling_frequency_available
Jonathan Camerone34d2c52010-05-04 14:43:05 +010053KernelVersion: 2.6.35
54Contact: linux-iio@vger.kernel.org
55Description:
56 When the internal sampling clock can only take a small
Jonathan Cameronf386caa2010-11-22 23:31:16 +000057 discrete set of values, this file lists those available.
Jonathan Camerone34d2c52010-05-04 14:43:05 +010058
Jonathan Cameronb3874062011-08-30 12:32:49 +010059What: /sys/bus/iio/devices/iio:deviceX/oversampling_ratio
Michael Hennerichb9618c02011-02-22 21:46:18 +010060KernelVersion: 2.6.38
61Contact: linux-iio@vger.kernel.org
62Description:
63 Hardware dependent ADC oversampling. Controls the sampling ratio
64 of the digital filter if available.
65
Jonathan Cameronb3874062011-08-30 12:32:49 +010066What: /sys/bus/iio/devices/iio:deviceX/oversampling_ratio_available
Michael Hennerichb9618c02011-02-22 21:46:18 +010067KernelVersion: 2.6.38
68Contact: linux-iio@vger.kernel.org
69Description:
70 Hardware dependent values supported by the oversampling filter.
71
Jonathan Camerona37b5492011-09-02 17:14:35 +010072What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_raw
73What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_raw
Jonathan Camerone34d2c52010-05-04 14:43:05 +010074KernelVersion: 2.6.35
75Contact: linux-iio@vger.kernel.org
76Description:
Peter Meerwald8b417d72012-06-12 15:31:27 +020077 Raw (unscaled no bias removal etc.) voltage measurement from
Jonathan Cameronf386caa2010-11-22 23:31:16 +000078 channel Y. In special cases where the channel does not
79 correspond to externally available input one of the named
80 versions may be used. The number must always be specified and
Jonathan Cameron15739cd2011-09-21 11:15:51 +010081 unique to allow association with event codes. Units after
Lars-Peter Clausenc2b2db72013-09-28 10:31:00 +010082 application of scale and offset are millivolts.
Jonathan Camerone34d2c52010-05-04 14:43:05 +010083
Jonathan Camerona37b5492011-09-02 17:14:35 +010084What: /sys/bus/iio/devices/iio:deviceX/in_voltageY-voltageZ_raw
Jonathan Camerone34d2c52010-05-04 14:43:05 +010085KernelVersion: 2.6.35
86Contact: linux-iio@vger.kernel.org
87Description:
88 Raw (unscaled) differential voltage measurement equivalent to
Jonathan Cameronf386caa2010-11-22 23:31:16 +000089 channel Y - channel Z where these channel numbers apply to the
Jonathan Cameron2f3cc662010-10-08 12:14:12 +010090 physically equivalent inputs when non differential readings are
91 separately available. In differential only parts, then all that
Jonathan Cameron15739cd2011-09-21 11:15:51 +010092 is required is a consistent labeling. Units after application
Lars-Peter Clausenc2b2db72013-09-28 10:31:00 +010093 of scale and offset are millivolts.
Jonathan Camerone34d2c52010-05-04 14:43:05 +010094
Jonathan Cameron0baf29d2011-09-21 11:15:52 +010095What: /sys/bus/iio/devices/iio:deviceX/in_capacitanceY_raw
96KernelVersion: 3.2
97Contact: linux-iio@vger.kernel.org
98Description:
99 Raw capacitance measurement from channel Y. Units after
100 application of scale and offset are nanofarads.
101
102What: /sys/.../iio:deviceX/in_capacitanceY-in_capacitanceZ_raw
103KernelVersion: 3.2
104Contact: linux-iio@vger.kernel.org
105Description:
106 Raw differential capacitance measurement equivalent to
107 channel Y - channel Z where these channel numbers apply to the
108 physically equivalent inputs when non differential readings are
109 separately available. In differential only parts, then all that
110 is required is a consistent labeling. Units after application
Jonathan Cameron68284a12012-04-25 15:54:57 +0100111 of scale and offset are nanofarads.
Jonathan Cameron0baf29d2011-09-21 11:15:52 +0100112
Jonathan Camerona37b5492011-09-02 17:14:35 +0100113What: /sys/bus/iio/devices/iio:deviceX/in_temp_raw
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100114What: /sys/bus/iio/devices/iio:deviceX/in_tempX_raw
Jonathan Camerona37b5492011-09-02 17:14:35 +0100115What: /sys/bus/iio/devices/iio:deviceX/in_temp_x_raw
116What: /sys/bus/iio/devices/iio:deviceX/in_temp_y_raw
Peter Meerwald888c9c72014-02-05 16:57:00 +0000117What: /sys/bus/iio/devices/iio:deviceX/in_temp_ambient_raw
118What: /sys/bus/iio/devices/iio:deviceX/in_temp_object_raw
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000119KernelVersion: 2.6.35
120Contact: linux-iio@vger.kernel.org
121Description:
Peter Meerwald8b417d72012-06-12 15:31:27 +0200122 Raw (unscaled no bias removal etc.) temperature measurement.
Jonathan Cameron68284a12012-04-25 15:54:57 +0100123 If an axis is specified it generally means that the temperature
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000124 sensor is associated with one part of a compound device (e.g.
Peter Meerwald888c9c72014-02-05 16:57:00 +0000125 a gyroscope axis). The ambient and object modifiers distinguish
126 between ambient (reference) and distant temperature for contact-
127 less measurements. Units after application of scale and offset
Peter Meerwaldcf655d22012-06-15 19:25:23 +0200128 are milli degrees Celsius.
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000129
Jonathan Camerona37b5492011-09-02 17:14:35 +0100130What: /sys/bus/iio/devices/iio:deviceX/in_tempX_input
Michael Hennerich7c31b982011-02-24 12:32:45 +0100131KernelVersion: 2.6.38
132Contact: linux-iio@vger.kernel.org
133Description:
134 Scaled temperature measurement in milli degrees Celsius.
135
Jonathan Camerona37b5492011-09-02 17:14:35 +0100136What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_raw
137What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_raw
138What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_raw
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100139KernelVersion: 2.6.35
140Contact: linux-iio@vger.kernel.org
141Description:
142 Acceleration in direction x, y or z (may be arbitrarily assigned
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100143 but should match other such assignments on device).
144 Has all of the equivalent parameters as per voltageY. Units
145 after application of scale and offset are m/s^2.
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100146
Jonathan Camerond4c926f2011-10-05 15:28:00 +0100147What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_raw
148What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_raw
149What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_raw
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100150KernelVersion: 2.6.35
151Contact: linux-iio@vger.kernel.org
152Description:
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100153 Angular velocity about axis x, y or z (may be arbitrarily
Peter Meerwald8b417d72012-06-12 15:31:27 +0200154 assigned). Has all the equivalent parameters as per voltageY.
155 Units after application of scale and offset are radians per
156 second.
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100157
Jonathan Camerona37b5492011-09-02 17:14:35 +0100158What: /sys/bus/iio/devices/iio:deviceX/in_incli_x_raw
159What: /sys/bus/iio/devices/iio:deviceX/in_incli_y_raw
160What: /sys/bus/iio/devices/iio:deviceX/in_incli_z_raw
Jonathan Camerone5107fb2010-05-07 15:38:57 +0100161KernelVersion: 2.6.35
162Contact: linux-iio@vger.kernel.org
163Description:
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000164 Inclination raw reading about axis x, y or z (may be
165 arbitrarily assigned). Data converted by application of offset
Peter Meerwald8b417d72012-06-12 15:31:27 +0200166 and scale to degrees.
Jonathan Camerone5107fb2010-05-07 15:38:57 +0100167
Jonathan Camerona37b5492011-09-02 17:14:35 +0100168What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_raw
169What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_raw
170What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_raw
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100171KernelVersion: 2.6.35
172Contact: linux-iio@vger.kernel.org
173Description:
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100174 Magnetic field along axis x, y or z (may be arbitrarily
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100175 assigned). Data converted by application of offset
176 then scale to Gauss.
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100177
Jonathan Camerona37b5492011-09-02 17:14:35 +0100178What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_peak_raw
179What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_peak_raw
180What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_peak_raw
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000181KernelVersion: 2.6.36
182Contact: linux-iio@vger.kernel.org
183Description:
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100184 Highest value since some reset condition. These
185 attributes allow access to this and are otherwise
186 the direct equivalent of the <type>Y[_name]_raw attributes.
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000187
Jonathan Camerona37b5492011-09-02 17:14:35 +0100188What: /sys/bus/iio/devices/iio:deviceX/in_accel_xyz_squared_peak_raw
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000189KernelVersion: 2.6.36
190Contact: linux-iio@vger.kernel.org
191Description:
192 A computed peak value based on the sum squared magnitude of
193 the underlying value in the specified directions.
194
Lars-Peter Clausenc4f0c692012-11-20 13:36:00 +0000195What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_raw
196What: /sys/bus/iio/devices/iio:deviceX/in_pressure_raw
197KernelVersion: 3.8
198Contact: linux-iio@vger.kernel.org
199Description:
200 Raw pressure measurement from channel Y. Units after
201 application of scale and offset are kilopascal.
202
Harald Geyerac216aa2013-12-01 15:08:00 +0000203What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_raw
204KernelVersion: 3.14
205Contact: linux-iio@vger.kernel.org
206Description:
207 Raw humidity measurement of air. Units after application of
208 scale and offset are milli percent.
209
210What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_input
211KernelVersion: 3.14
212Contact: linux-iio@vger.kernel.org
213Description:
214 Scaled humidity measurement in milli percent.
215
Sebastian Reichelc0a6b7e2014-10-03 17:25:00 +0100216What: /sys/bus/iio/devices/iio:deviceX/in_X_mean_raw
217KernelVersion: 3.5
218Contact: linux-iio@vger.kernel.org
219Description:
220 Averaged raw measurement from channel X. The number of values
221 used for averaging is device specific. The converting rules for
222 normal raw values also applies to the averaged raw values.
223
Jonathan Camerona37b5492011-09-02 17:14:35 +0100224What: /sys/bus/iio/devices/iio:deviceX/in_accel_offset
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100225What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_offset
226What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_offset
227What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_offset
228What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_offset
229What: /sys/bus/iio/devices/iio:deviceX/in_voltage_offset
230What: /sys/bus/iio/devices/iio:deviceX/in_tempY_offset
Jonathan Camerona37b5492011-09-02 17:14:35 +0100231What: /sys/bus/iio/devices/iio:deviceX/in_temp_offset
Lars-Peter Clausenc4f0c692012-11-20 13:36:00 +0000232What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_offset
233What: /sys/bus/iio/devices/iio:deviceX/in_pressure_offset
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100234KernelVersion: 2.6.35
235Contact: linux-iio@vger.kernel.org
236Description:
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000237 If known for a device, offset to be added to <type>[Y]_raw prior
238 to scaling by <type>[Y]_scale in order to obtain value in the
Peter Meerwald8b417d72012-06-12 15:31:27 +0200239 <type> units as specified in <type>[Y]_raw documentation.
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100240 Not present if the offset is always 0 or unknown. If Y or
241 axis <x|y|z> is not present, then the offset applies to all
242 in channels of <type>.
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000243 May be writable if a variable offset can be applied on the
244 device. Note that this is different to calibbias which
245 is for devices (or drivers) that apply offsets to compensate
246 for variation between different instances of the part, typically
247 adjusted by using some hardware supported calibration procedure.
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100248 Calibbias is applied internally, offset is applied in userspace
249 to the _raw output.
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100250
Jonathan Camerona37b5492011-09-02 17:14:35 +0100251What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_scale
252What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_scale
253What: /sys/bus/iio/devices/iio:deviceX/in_voltage_scale
254What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_scale
Michael Hennerichd802bf62012-05-21 14:30:31 +0200255What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_scale
Jonathan Camerona37b5492011-09-02 17:14:35 +0100256What: /sys/bus/iio/devices/iio:deviceX/in_accel_scale
257What: /sys/bus/iio/devices/iio:deviceX/in_accel_peak_scale
Jonathan Camerond4c926f2011-10-05 15:28:00 +0100258What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_scale
Jonathan Camerona37b5492011-09-02 17:14:35 +0100259What: /sys/bus/iio/devices/iio:deviceX/in_magn_scale
260What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_scale
261What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_scale
262What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_scale
Lars-Peter Clausenc4f0c692012-11-20 13:36:00 +0000263What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
264What: /sys/bus/iio/devices/iio:deviceX/in_pressure_scale
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100265KernelVersion: 2.6.35
266Contact: linux-iio@vger.kernel.org
267Description:
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000268 If known for a device, scale to be applied to <type>Y[_name]_raw
269 post addition of <type>[Y][_name]_offset in order to obtain the
270 measured value in <type> units as specified in
Jonathan Cameron68284a12012-04-25 15:54:57 +0100271 <type>[Y][_name]_raw documentation. If shared across all in
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100272 channels then Y and <x|y|z> are not present and the value is
273 called <type>[Y][_name]_scale. The peak modifier means this
274 value is applied to <type>Y[_name]_peak_raw values.
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100275
Jonathan Camerona37b5492011-09-02 17:14:35 +0100276What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibbias
277What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_calibbias
278What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibbias
Jonathan Camerond4c926f2011-10-05 15:28:00 +0100279What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibbias
280What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibbias
281What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibbias
Jon Brenner3c97c082012-04-24 11:56:49 -0500282What: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibbias
283What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibbias
Lars-Peter Clausenc4f0c692012-11-20 13:36:00 +0000284What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibbias
285What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibbias
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000286KernelVersion: 2.6.35
287Contact: linux-iio@vger.kernel.org
288Description:
Peter Meerwald8b417d72012-06-12 15:31:27 +0200289 Hardware applied calibration offset (assumed to fix production
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100290 inaccuracies).
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100291
Jonathan Camerona37b5492011-09-02 17:14:35 +0100292What /sys/bus/iio/devices/iio:deviceX/in_voltageY_calibscale
293What /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_calibscale
294What /sys/bus/iio/devices/iio:deviceX/in_voltage_calibscale
295What /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibscale
296What /sys/bus/iio/devices/iio:deviceX/in_accel_y_calibscale
297What /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibscale
Jonathan Camerond4c926f2011-10-05 15:28:00 +0100298What /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibscale
299What /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibscale
300What /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibscale
Jon Brenner3c97c082012-04-24 11:56:49 -0500301what /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale
302what /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale
Lars-Peter Clausenc4f0c692012-11-20 13:36:00 +0000303What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale
304What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibscale
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000305KernelVersion: 2.6.35
306Contact: linux-iio@vger.kernel.org
307Description:
Peter Meerwald8b417d72012-06-12 15:31:27 +0200308 Hardware applied calibration scale factor (assumed to fix
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000309 production inaccuracies). If shared across all channels,
310 <type>_calibscale is used.
311
Jonathan Camerona37b5492011-09-02 17:14:35 +0100312What: /sys/bus/iio/devices/iio:deviceX/in_accel_scale_available
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100313What: /sys/.../iio:deviceX/in_voltageX_scale_available
314What: /sys/.../iio:deviceX/in_voltage-voltage_scale_available
315What: /sys/.../iio:deviceX/out_voltageX_scale_available
Michael Hennerichd802bf62012-05-21 14:30:31 +0200316What: /sys/.../iio:deviceX/out_altvoltageX_scale_available
Jonathan Cameron0baf29d2011-09-21 11:15:52 +0100317What: /sys/.../iio:deviceX/in_capacitance_scale_available
Lars-Peter Clausenc4f0c692012-11-20 13:36:00 +0000318What: /sys/.../iio:deviceX/in_pressure_scale_available
319What: /sys/.../iio:deviceX/in_pressureY_scale_available
Peter Meerwaldcf09fe92012-07-01 12:20:11 +0200320KernelVersion: 2.6.35
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000321Contact: linux-iio@vger.kernel.org
322Description:
Peter Meerwald8b417d72012-06-12 15:31:27 +0200323 If a discrete set of scale values is available, they
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000324 are listed in this attribute.
325
Michael Hennerichb65d6212012-05-11 11:36:53 +0200326What /sys/bus/iio/devices/iio:deviceX/out_voltageY_hardwaregain
327KernelVersion: 2.6.35
328Contact: linux-iio@vger.kernel.org
329Description:
330 Hardware applied gain factor. If shared across all channels,
331 <type>_hardwaregain is used.
332
Jonathan Cameron0c22db4392011-11-27 11:39:14 +0000333What: /sys/.../in_accel_filter_low_pass_3db_frequency
334What: /sys/.../in_magn_filter_low_pass_3db_frequency
335What: /sys/.../in_anglvel_filter_low_pass_3db_frequency
336KernelVersion: 3.2
337Contact: linux-iio@vger.kernel.org
338Description:
339 If a known or controllable low pass filter is applied
340 to the underlying data channel, then this parameter
341 gives the 3dB frequency of the filter in Hz.
342
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100343What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_raw
Michael Hennerichd802bf62012-05-21 14:30:31 +0200344What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_raw
Roland Stigge98069c32011-01-13 17:43:29 +0100345KernelVersion: 2.6.37
346Contact: linux-iio@vger.kernel.org
347Description:
348 Raw (unscaled, no bias etc.) output voltage for
349 channel Y. The number must always be specified and
350 unique if the output corresponds to a single channel.
Michael Hennerichd802bf62012-05-21 14:30:31 +0200351 While DAC like devices typically use out_voltage,
352 a continuous frequency generating device, such as
353 a DDS or PLL should use out_altvoltage.
Roland Stigge98069c32011-01-13 17:43:29 +0100354
Jonathan Camerona37b5492011-09-02 17:14:35 +0100355What: /sys/bus/iio/devices/iio:deviceX/out_voltageY&Z_raw
Michael Hennerichd802bf62012-05-21 14:30:31 +0200356What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY&Z_raw
Roland Stigge98069c32011-01-13 17:43:29 +0100357KernelVersion: 2.6.37
358Contact: linux-iio@vger.kernel.org
359Description:
360 Raw (unscaled, no bias etc.) output voltage for an aggregate of
361 channel Y, channel Z, etc. This interface is available in cases
362 where a single output sets the value for multiple channels
363 simultaneously.
364
Jonathan Camerona37b5492011-09-02 17:14:35 +0100365What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown_mode
366What: /sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown_mode
Michael Hennerichd802bf62012-05-21 14:30:31 +0200367What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown_mode
368What: /sys/bus/iio/devices/iio:deviceX/out_altvoltage_powerdown_mode
Michael Hennerich14f88f12011-03-09 16:01:45 +0100369KernelVersion: 2.6.38
370Contact: linux-iio@vger.kernel.org
371Description:
372 Specifies the output powerdown mode.
373 DAC output stage is disconnected from the amplifier and
Peter Meerwald8b417d72012-06-12 15:31:27 +0200374 1kohm_to_gnd: connected to ground via an 1kOhm resistor,
375 6kohm_to_gnd: connected to ground via a 6kOhm resistor,
376 20kohm_to_gnd: connected to ground via a 20kOhm resistor,
377 100kohm_to_gnd: connected to ground via an 100kOhm resistor,
Peter Meerwaldbd53a412013-06-23 22:30:00 +0100378 500kohm_to_gnd: connected to ground via a 500kOhm resistor,
Peter Meerwald8b417d72012-06-12 15:31:27 +0200379 three_state: left floating.
Michael Hennerich14f88f12011-03-09 16:01:45 +0100380 For a list of available output power down options read
381 outX_powerdown_mode_available. If Y is not present the
382 mode is shared across all outputs.
383
Jonathan Camerona37b5492011-09-02 17:14:35 +0100384What: /sys/.../iio:deviceX/out_votlageY_powerdown_mode_available
385What: /sys/.../iio:deviceX/out_voltage_powerdown_mode_available
Michael Hennerichd802bf62012-05-21 14:30:31 +0200386What: /sys/.../iio:deviceX/out_altvotlageY_powerdown_mode_available
387What: /sys/.../iio:deviceX/out_altvoltage_powerdown_mode_available
Michael Hennerich14f88f12011-03-09 16:01:45 +0100388KernelVersion: 2.6.38
389Contact: linux-iio@vger.kernel.org
390Description:
391 Lists all available output power down modes.
392 If Y is not present the mode is shared across all outputs.
393
Jonathan Camerona37b5492011-09-02 17:14:35 +0100394What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown
395What: /sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown
Michael Hennerichd802bf62012-05-21 14:30:31 +0200396What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown
397What: /sys/bus/iio/devices/iio:deviceX/out_altvoltage_powerdown
Michael Hennerich14f88f12011-03-09 16:01:45 +0100398KernelVersion: 2.6.38
399Contact: linux-iio@vger.kernel.org
400Description:
401 Writing 1 causes output Y to enter the power down mode specified
Peter Meerwald8b417d72012-06-12 15:31:27 +0200402 by the corresponding outY_powerdown_mode. DAC output stage is
403 disconnected from the amplifier. Clearing returns to normal
404 operation. Y may be suppressed if all outputs are controlled
405 together.
Michael Hennerich14f88f12011-03-09 16:01:45 +0100406
Michael Hennerichd802bf62012-05-21 14:30:31 +0200407What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_frequency
408KernelVersion: 3.4.0
409Contact: linux-iio@vger.kernel.org
410Description:
411 Output frequency for channel Y in Hz. The number must always be
412 specified and unique if the output corresponds to a single
413 channel.
414
415What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_phase
416KernelVersion: 3.4.0
417Contact: linux-iio@vger.kernel.org
418Description:
419 Phase in radians of one frequency/clock output Y
420 (out_altvoltageY) relative to another frequency/clock output
421 (out_altvoltageZ) of the device X. The number must always be
422 specified and unique if the output corresponds to a single
423 channel.
424
Jonathan Cameronb3874062011-08-30 12:32:49 +0100425What: /sys/bus/iio/devices/iio:deviceX/events
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000426KernelVersion: 2.6.35
427Contact: linux-iio@vger.kernel.org
428Description:
429 Configuration of which hardware generated events are passed up
430 to user-space.
431
Jonathan Camerona37b5492011-09-02 17:14:35 +0100432What: /sys/.../iio:deviceX/events/in_accel_x_thresh_rising_en
433What: /sys/.../iio:deviceX/events/in_accel_x_thresh_falling_en
434What: /sys/.../iio:deviceX/events/in_accel_y_thresh_rising_en
435What: /sys/.../iio:deviceX/events/in_accel_y_thresh_falling_en
436What: /sys/.../iio:deviceX/events/in_accel_z_thresh_rising_en
437What: /sys/.../iio:deviceX/events/in_accel_z_thresh_falling_en
Jonathan Camerond4c926f2011-10-05 15:28:00 +0100438What: /sys/.../iio:deviceX/events/in_anglvel_x_thresh_rising_en
439What: /sys/.../iio:deviceX/events/in_anglvel_x_thresh_falling_en
440What: /sys/.../iio:deviceX/events/in_anglvel_y_thresh_rising_en
441What: /sys/.../iio:deviceX/events/in_anglvel_y_thresh_falling_en
442What: /sys/.../iio:deviceX/events/in_anglvel_z_thresh_rising_en
443What: /sys/.../iio:deviceX/events/in_anglvel_z_thresh_falling_en
Jonathan Camerona37b5492011-09-02 17:14:35 +0100444What: /sys/.../iio:deviceX/events/in_magn_x_thresh_rising_en
445What: /sys/.../iio:deviceX/events/in_magn_x_thresh_falling_en
446What: /sys/.../iio:deviceX/events/in_magn_y_thresh_rising_en
447What: /sys/.../iio:deviceX/events/in_magn_y_thresh_falling_en
448What: /sys/.../iio:deviceX/events/in_magn_z_thresh_rising_en
449What: /sys/.../iio:deviceX/events/in_magn_z_thresh_falling_en
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100450What: /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_rising_en
451What: /sys/.../iio:deviceX/events/in_voltageY_supply_thresh_falling_en
452What: /sys/.../iio:deviceX/events/in_voltageY_thresh_rising_en
453What: /sys/.../iio:deviceX/events/in_voltageY_thresh_falling_en
454What: /sys/.../iio:deviceX/events/in_tempY_thresh_rising_en
455What: /sys/.../iio:deviceX/events/in_tempY_thresh_falling_en
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100456KernelVersion: 2.6.37
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100457Contact: linux-iio@vger.kernel.org
458Description:
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000459 Event generated when channel passes a threshold in the specified
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100460 (_rising|_falling) direction. If the direction is not specified,
461 then either the device will report an event which ever direction
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100462 a single threshold value is passed in (e.g.
463 <type>[Y][_name]_<raw|input>_thresh_value) or
464 <type>[Y][_name]_<raw|input>_thresh_rising_value and
465 <type>[Y][_name]_<raw|input>_thresh_falling_value may take
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000466 different values, but the device can only enable both thresholds
467 or neither.
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100468 Note the driver will assume the last p events requested are
Peter Meerwald8b417d72012-06-12 15:31:27 +0200469 to be enabled where p is how many it supports (which may vary
470 depending on the exact set requested. So if you want to be
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100471 sure you have set what you think you have, check the contents of
472 these attributes after everything is configured. Drivers may
473 have to buffer any parameters so that they are consistent when
Peter Meerwald8b417d72012-06-12 15:31:27 +0200474 a given event type is enabled at a future point (and not those for
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100475 whatever event was previously enabled).
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100476
Jonathan Camerona37b5492011-09-02 17:14:35 +0100477What: /sys/.../iio:deviceX/events/in_accel_x_roc_rising_en
478What: /sys/.../iio:deviceX/events/in_accel_x_roc_falling_en
479What: /sys/.../iio:deviceX/events/in_accel_y_roc_rising_en
480What: /sys/.../iio:deviceX/events/in_accel_y_roc_falling_en
481What: /sys/.../iio:deviceX/events/in_accel_z_roc_rising_en
482What: /sys/.../iio:deviceX/events/in_accel_z_roc_falling_en
Jonathan Camerond4c926f2011-10-05 15:28:00 +0100483What: /sys/.../iio:deviceX/events/in_anglvel_x_roc_rising_en
484What: /sys/.../iio:deviceX/events/in_anglvel_x_roc_falling_en
485What: /sys/.../iio:deviceX/events/in_anglvel_y_roc_rising_en
486What: /sys/.../iio:deviceX/events/in_anglvel_y_roc_falling_en
487What: /sys/.../iio:deviceX/events/in_anglvel_z_roc_rising_en
488What: /sys/.../iio:deviceX/events/in_anglvel_z_roc_falling_en
Jonathan Camerona37b5492011-09-02 17:14:35 +0100489What: /sys/.../iio:deviceX/events/in_magn_x_roc_rising_en
490What: /sys/.../iio:deviceX/events/in_magn_x_roc_falling_en
491What: /sys/.../iio:deviceX/events/in_magn_y_roc_rising_en
492What: /sys/.../iio:deviceX/events/in_magn_y_roc_falling_en
493What: /sys/.../iio:deviceX/events/in_magn_z_roc_rising_en
494What: /sys/.../iio:deviceX/events/in_magn_z_roc_falling_en
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100495What: /sys/.../iio:deviceX/events/in_voltageY_supply_roc_rising_en
496What: /sys/.../iio:deviceX/events/in_voltageY_supply_roc_falling_en
497What: /sys/.../iio:deviceX/events/in_voltageY_roc_rising_en
498What: /sys/.../iio:deviceX/events/in_voltageY_roc_falling_en
499What: /sys/.../iio:deviceX/events/in_tempY_roc_rising_en
500What: /sys/.../iio:deviceX/events/in_tempY_roc_falling_en
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000501KernelVersion: 2.6.37
502Contact: linux-iio@vger.kernel.org
503Description:
504 Event generated when channel passes a threshold on the rate of
505 change (1st differential) in the specified (_rising|_falling)
506 direction. If the direction is not specified, then either the
507 device will report an event which ever direction a single
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100508 threshold value is passed in (e.g.
509 <type>[Y][_name]_<raw|input>_roc_value) or
510 <type>[Y][_name]_<raw|input>_roc_rising_value and
511 <type>[Y][_name]_<raw|input>_roc_falling_value may take
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000512 different values, but the device can only enable both rate of
513 change thresholds or neither.
514 Note the driver will assume the last p events requested are
515 to be enabled where p is however many it supports (which may
516 vary depending on the exact set requested. So if you want to be
517 sure you have set what you think you have, check the contents of
518 these attributes after everything is configured. Drivers may
519 have to buffer any parameters so that they are consistent when
520 a given event type is enabled a future point (and not those for
521 whatever event was previously enabled).
522
Jonathan Camerona37b5492011-09-02 17:14:35 +0100523What: /sys/.../events/in_accel_x_raw_thresh_rising_value
524What: /sys/.../events/in_accel_x_raw_thresh_falling_value
525What: /sys/.../events/in_accel_y_raw_thresh_rising_value
526What: /sys/.../events/in_accel_y_raw_thresh_falling_value
527What: /sys/.../events/in_accel_z_raw_thresh_rising_value
528What: /sys/.../events/in_accel_z_raw_thresh_falling_value
Jonathan Camerond4c926f2011-10-05 15:28:00 +0100529What: /sys/.../events/in_anglvel_x_raw_thresh_rising_value
530What: /sys/.../events/in_anglvel_x_raw_thresh_falling_value
531What: /sys/.../events/in_anglvel_y_raw_thresh_rising_value
532What: /sys/.../events/in_anglvel_y_raw_thresh_falling_value
533What: /sys/.../events/in_anglvel_z_raw_thresh_rising_value
534What: /sys/.../events/in_anglvel_z_raw_thresh_falling_value
Jonathan Camerona37b5492011-09-02 17:14:35 +0100535What: /sys/.../events/in_magn_x_raw_thresh_rising_value
536What: /sys/.../events/in_magn_x_raw_thresh_falling_value
537What: /sys/.../events/in_magn_y_raw_thresh_rising_value
538What: /sys/.../events/in_magn_y_raw_thresh_falling_value
539What: /sys/.../events/in_magn_z_raw_thresh_rising_value
540What: /sys/.../events/in_magn_z_raw_thresh_falling_value
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100541What: /sys/.../events/in_voltageY_supply_raw_thresh_rising_value
542What: /sys/.../events/in_voltageY_supply_raw_thresh_falling_value
Jonathan Camerona7322fc2012-04-13 10:24:19 +0100543What: /sys/.../events/in_voltageY_raw_thresh_rising_value
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100544What: /sys/.../events/in_voltageY_raw_thresh_falling_value
Jonathan Camerona7322fc2012-04-13 10:24:19 +0100545What: /sys/.../events/in_tempY_raw_thresh_rising_value
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100546What: /sys/.../events/in_tempY_raw_thresh_falling_value
Jon Brenner3c97c082012-04-24 11:56:49 -0500547What: /sys/.../events/in_illuminance0_thresh_falling_value
548what: /sys/.../events/in_illuminance0_thresh_rising_value
549what: /sys/.../events/in_proximity0_thresh_falling_value
550what: /sys/.../events/in_proximity0_thresh_rising_value
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100551KernelVersion: 2.6.37
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100552Contact: linux-iio@vger.kernel.org
553Description:
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100554 Specifies the value of threshold that the device is comparing
555 against for the events enabled by
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100556 <type>Y[_name]_thresh[_rising|falling]_en.
557 If separate attributes exist for the two directions, but
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000558 direction is not specified for this attribute, then a single
559 threshold value applies to both directions.
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100560 The raw or input element of the name indicates whether the
561 value is in raw device units or in processed units (as _raw
562 and _input do on sysfs direct channel read attributes).
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100563
Lars-Peter Clausenec6670a2013-10-07 15:11:00 +0100564What: /sys/.../events/in_accel_x_thresh_rising_hysteresis
565What: /sys/.../events/in_accel_x_thresh_falling_hysteresis
566What: /sys/.../events/in_accel_x_thresh_either_hysteresis
567What: /sys/.../events/in_accel_y_thresh_rising_hysteresis
568What: /sys/.../events/in_accel_y_thresh_falling_hysteresis
569What: /sys/.../events/in_accel_y_thresh_either_hysteresis
570What: /sys/.../events/in_accel_z_thresh_rising_hysteresis
571What: /sys/.../events/in_accel_z_thresh_falling_hysteresis
572What: /sys/.../events/in_accel_z_thresh_either_hysteresis
573What: /sys/.../events/in_anglvel_x_thresh_rising_hysteresis
574What: /sys/.../events/in_anglvel_x_thresh_falling_hysteresis
575What: /sys/.../events/in_anglvel_x_thresh_either_hysteresis
576What: /sys/.../events/in_anglvel_y_thresh_rising_hysteresis
577What: /sys/.../events/in_anglvel_y_thresh_falling_hysteresis
578What: /sys/.../events/in_anglvel_y_thresh_either_hysteresis
579What: /sys/.../events/in_anglvel_z_thresh_rising_hysteresis
580What: /sys/.../events/in_anglvel_z_thresh_falling_hysteresis
581What: /sys/.../events/in_anglvel_z_thresh_either_hysteresis
582What: /sys/.../events/in_magn_x_thresh_rising_hysteresis
583What: /sys/.../events/in_magn_x_thresh_falling_hysteresis
584What: /sys/.../events/in_magn_x_thresh_either_hysteresis
585What: /sys/.../events/in_magn_y_thresh_rising_hysteresis
586What: /sys/.../events/in_magn_y_thresh_falling_hysteresis
587What: /sys/.../events/in_magn_y_thresh_either_hysteresis
588What: /sys/.../events/in_magn_z_thresh_rising_hysteresis
589What: /sys/.../events/in_magn_z_thresh_falling_hysteresis
590What: /sys/.../events/in_magn_z_thresh_either_hysteresis
591What: /sys/.../events/in_voltageY_thresh_rising_hysteresis
592What: /sys/.../events/in_voltageY_thresh_falling_hysteresis
593What: /sys/.../events/in_voltageY_thresh_either_hysteresis
594What: /sys/.../events/in_tempY_thresh_rising_hysteresis
595What: /sys/.../events/in_tempY_thresh_falling_hysteresis
596What: /sys/.../events/in_tempY_thresh_either_hysteresis
597What: /sys/.../events/in_illuminance0_thresh_falling_hysteresis
598what: /sys/.../events/in_illuminance0_thresh_rising_hysteresis
599what: /sys/.../events/in_illuminance0_thresh_either_hysteresis
600what: /sys/.../events/in_proximity0_thresh_falling_hysteresis
601what: /sys/.../events/in_proximity0_thresh_rising_hysteresis
602what: /sys/.../events/in_proximity0_thresh_either_hysteresis
603KernelVersion: 3.13
604Contact: linux-iio@vger.kernel.org
605Description:
606 Specifies the hysteresis of threshold that the device is comparing
607 against for the events enabled by
608 <type>Y[_name]_thresh[_(rising|falling)]_hysteresis.
609 If separate attributes exist for the two directions, but
610 direction is not specified for this attribute, then a single
611 hysteresis value applies to both directions.
612 For falling events the hysteresis is added to the _value attribute for
613 this event to get the upper threshold for when the event goes back to
614 normal, for rising events the hysteresis is subtracted from the _value
615 attribute. E.g. if in_voltage0_raw_thresh_rising_value is set to 1200
616 and in_voltage0_raw_thresh_rising_hysteresis is set to 50. The event
617 will get activated once in_voltage0_raw goes above 1200 and will become
618 deactived again once the value falls below 1150.
619
Jonathan Camerona37b5492011-09-02 17:14:35 +0100620What: /sys/.../events/in_accel_x_raw_roc_rising_value
621What: /sys/.../events/in_accel_x_raw_roc_falling_value
622What: /sys/.../events/in_accel_y_raw_roc_rising_value
623What: /sys/.../events/in_accel_y_raw_roc_falling_value
624What: /sys/.../events/in_accel_z_raw_roc_rising_value
625What: /sys/.../events/in_accel_z_raw_roc_falling_value
Jonathan Camerond4c926f2011-10-05 15:28:00 +0100626What: /sys/.../events/in_anglvel_x_raw_roc_rising_value
627What: /sys/.../events/in_anglvel_x_raw_roc_falling_value
628What: /sys/.../events/in_anglvel_y_raw_roc_rising_value
629What: /sys/.../events/in_anglvel_y_raw_roc_falling_value
630What: /sys/.../events/in_anglvel_z_raw_roc_rising_value
631What: /sys/.../events/in_anglvel_z_raw_roc_falling_value
Jonathan Camerona37b5492011-09-02 17:14:35 +0100632What: /sys/.../events/in_magn_x_raw_roc_rising_value
633What: /sys/.../events/in_magn_x_raw_roc_falling_value
634What: /sys/.../events/in_magn_y_raw_roc_rising_value
635What: /sys/.../events/in_magn_y_raw_roc_falling_value
636What: /sys/.../events/in_magn_z_raw_roc_rising_value
637What: /sys/.../events/in_magn_z_raw_roc_falling_value
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100638What: /sys/.../events/in_voltageY_supply_raw_roc_rising_value
639What: /sys/.../events/in_voltageY_supply_raw_roc_falling_value
Jonathan Camerona7322fc2012-04-13 10:24:19 +0100640What: /sys/.../events/in_voltageY_raw_roc_rising_value
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100641What: /sys/.../events/in_voltageY_raw_roc_falling_value
Jonathan Camerona7322fc2012-04-13 10:24:19 +0100642What: /sys/.../events/in_tempY_raw_roc_rising_value
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100643What: /sys/.../events/in_tempY_raw_roc_falling_value
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100644KernelVersion: 2.6.37
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100645Contact: linux-iio@vger.kernel.org
646Description:
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000647 Specifies the value of rate of change threshold that the
648 device is comparing against for the events enabled by
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100649 <type>[Y][_name]_roc[_rising|falling]_en.
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000650 If separate attributes exist for the two directions,
651 but direction is not specified for this attribute,
652 then a single threshold value applies to both directions.
653 The raw or input element of the name indicates whether the
654 value is in raw device units or in processed units (as _raw
655 and _input do on sysfs direct channel read attributes).
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100656
Jonathan Camerona37b5492011-09-02 17:14:35 +0100657What: /sys/.../events/in_accel_x_thresh_rising_period
658What: /sys/.../events/in_accel_x_thresh_falling_period
659hat: /sys/.../events/in_accel_x_roc_rising_period
660What: /sys/.../events/in_accel_x_roc_falling_period
661What: /sys/.../events/in_accel_y_thresh_rising_period
662What: /sys/.../events/in_accel_y_thresh_falling_period
663What: /sys/.../events/in_accel_y_roc_rising_period
664What: /sys/.../events/in_accel_y_roc_falling_period
665What: /sys/.../events/in_accel_z_thresh_rising_period
666What: /sys/.../events/in_accel_z_thresh_falling_period
667What: /sys/.../events/in_accel_z_roc_rising_period
668What: /sys/.../events/in_accel_z_roc_falling_period
Jonathan Camerond4c926f2011-10-05 15:28:00 +0100669What: /sys/.../events/in_anglvel_x_thresh_rising_period
670What: /sys/.../events/in_anglvel_x_thresh_falling_period
671What: /sys/.../events/in_anglvel_x_roc_rising_period
672What: /sys/.../events/in_anglvel_x_roc_falling_period
673What: /sys/.../events/in_anglvel_y_thresh_rising_period
674What: /sys/.../events/in_anglvel_y_thresh_falling_period
675What: /sys/.../events/in_anglvel_y_roc_rising_period
676What: /sys/.../events/in_anglvel_y_roc_falling_period
677What: /sys/.../events/in_anglvel_z_thresh_rising_period
678What: /sys/.../events/in_anglvel_z_thresh_falling_period
679What: /sys/.../events/in_anglvel_z_roc_rising_period
680What: /sys/.../events/in_anglvel_z_roc_falling_period
Jonathan Camerona37b5492011-09-02 17:14:35 +0100681What: /sys/.../events/in_magn_x_thresh_rising_period
682What: /sys/.../events/in_magn_x_thresh_falling_period
683What: /sys/.../events/in_magn_x_roc_rising_period
684What: /sys/.../events/in_magn_x_roc_falling_period
685What: /sys/.../events/in_magn_y_thresh_rising_period
686What: /sys/.../events/in_magn_y_thresh_falling_period
687What: /sys/.../events/in_magn_y_roc_rising_period
688What: /sys/.../events/in_magn_y_roc_falling_period
689What: /sys/.../events/in_magn_z_thresh_rising_period
690What: /sys/.../events/in_magn_z_thresh_falling_period
691What: /sys/.../events/in_magn_z_roc_rising_period
692What: /sys/.../events/in_magn_z_roc_falling_period
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100693What: /sys/.../events/in_voltageY_supply_thresh_rising_period
694What: /sys/.../events/in_voltageY_supply_thresh_falling_period
695What: /sys/.../events/in_voltageY_supply_roc_rising_period
696What: /sys/.../events/in_voltageY_supply_roc_falling_period
697What: /sys/.../events/in_voltageY_thresh_rising_period
698What: /sys/.../events/in_voltageY_thresh_falling_period
699What: /sys/.../events/in_voltageY_roc_rising_period
700What: /sys/.../events/in_voltageY_roc_falling_period
701What: /sys/.../events/in_tempY_thresh_rising_period
702What: /sys/.../events/in_tempY_thresh_falling_period
703What: /sys/.../events/in_tempY_roc_rising_period
704What: /sys/.../events/in_tempY_roc_falling_period
Jonathan Camerona37b5492011-09-02 17:14:35 +0100705What: /sys/.../events/in_accel_x&y&z_mag_falling_period
Jon Brenner3c97c082012-04-24 11:56:49 -0500706What: /sys/.../events/in_intensity0_thresh_period
707What: /sys/.../events/in_proximity0_thresh_period
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100708KernelVersion: 2.6.37
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100709Contact: linux-iio@vger.kernel.org
710Description:
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000711 Period of time (in seconds) for which the condition must be
712 met before an event is generated. If direction is not
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100713 specified then this period applies to both directions.
714
Jonathan Camerona37b5492011-09-02 17:14:35 +0100715What: /sys/.../iio:deviceX/events/in_accel_mag_en
716What: /sys/.../iio:deviceX/events/in_accel_mag_rising_en
717What: /sys/.../iio:deviceX/events/in_accel_mag_falling_en
718What: /sys/.../iio:deviceX/events/in_accel_x_mag_en
719What: /sys/.../iio:deviceX/events/in_accel_x_mag_rising_en
720What: /sys/.../iio:deviceX/events/in_accel_x_mag_falling_en
721What: /sys/.../iio:deviceX/events/in_accel_y_mag_en
722What: /sys/.../iio:deviceX/events/in_accel_y_mag_rising_en
723What: /sys/.../iio:deviceX/events/in_accel_y_mag_falling_en
724What: /sys/.../iio:deviceX/events/in_accel_z_mag_en
725What: /sys/.../iio:deviceX/events/in_accel_z_mag_rising_en
726What: /sys/.../iio:deviceX/events/in_accel_z_mag_falling_en
727What: /sys/.../iio:deviceX/events/in_accel_x&y&z_mag_rising_en
728What: /sys/.../iio:deviceX/events/in_accel_x&y&z_mag_falling_en
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100729KernelVersion: 2.6.37
730Contact: linux-iio@vger.kernel.org
731Description:
Jonathan Camerona37b5492011-09-02 17:14:35 +0100732 Similar to in_accel_x_thresh[_rising|_falling]_en, but here the
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100733 magnitude of the channel is compared to the threshold, not its
734 signed value.
735
Jonathan Camerona37b5492011-09-02 17:14:35 +0100736What: /sys/.../events/in_accel_raw_mag_value
737What: /sys/.../events/in_accel_x_raw_mag_rising_value
738What: /sys/.../events/in_accel_y_raw_mag_rising_value
739What: /sys/.../events/in_accel_z_raw_mag_rising_value
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100740KernelVersion: 2.6.37
741Contact: linux-iio@vger.kernel.org
742Description:
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000743 The value to which the magnitude of the channel is compared. If
744 number or direction is not specified, applies to all channels of
745 this type.
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100746
Jonathan Cameronb3874062011-08-30 12:32:49 +0100747What: /sys/bus/iio/devices/iio:deviceX/trigger/current_trigger
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100748KernelVersion: 2.6.35
749Contact: linux-iio@vger.kernel.org
750Description:
751 The name of the trigger source being used, as per string given
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000752 in /sys/class/iio/triggerY/name.
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100753
Jonathan Cameronb3874062011-08-30 12:32:49 +0100754What: /sys/bus/iio/devices/iio:deviceX/buffer/length
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100755KernelVersion: 2.6.35
756Contact: linux-iio@vger.kernel.org
757Description:
758 Number of scans contained by the buffer.
759
Jonathan Cameronb3874062011-08-30 12:32:49 +0100760What: /sys/bus/iio/devices/iio:deviceX/buffer/bytes_per_datum
Manuel Stahl5770b8f2010-08-31 11:32:53 +0200761KernelVersion: 2.6.37
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100762Contact: linux-iio@vger.kernel.org
763Description:
764 Bytes per scan. Due to alignment fun, the scan may be larger
765 than implied directly by the scan_element parameters.
766
Jonathan Cameronb3874062011-08-30 12:32:49 +0100767What: /sys/bus/iio/devices/iio:deviceX/buffer/enable
Jonathan Camerone34d2c52010-05-04 14:43:05 +0100768KernelVersion: 2.6.35
769Contact: linux-iio@vger.kernel.org
770Description:
771 Actually start the buffer capture up. Will start trigger
772 if first device and appropriate.
773
Alexandre Relangeab52a952013-06-11 15:52:00 +0100774What: /sys/bus/iio/devices/iio:deviceX/scan_elements
Manuel Stahl5770b8f2010-08-31 11:32:53 +0200775KernelVersion: 2.6.37
776Contact: linux-iio@vger.kernel.org
777Description:
Jonathan Cameron2f3cc662010-10-08 12:14:12 +0100778 Directory containing interfaces for elements that will be
779 captured for a single triggered sample set in the buffer.
Manuel Stahl5770b8f2010-08-31 11:32:53 +0200780
Alexandre Relangeab52a952013-06-11 15:52:00 +0100781What: /sys/.../iio:deviceX/scan_elements/in_accel_x_en
782What: /sys/.../iio:deviceX/scan_elements/in_accel_y_en
783What: /sys/.../iio:deviceX/scan_elements/in_accel_z_en
784What: /sys/.../iio:deviceX/scan_elements/in_anglvel_x_en
785What: /sys/.../iio:deviceX/scan_elements/in_anglvel_y_en
786What: /sys/.../iio:deviceX/scan_elements/in_anglvel_z_en
787What: /sys/.../iio:deviceX/scan_elements/in_magn_x_en
788What: /sys/.../iio:deviceX/scan_elements/in_magn_y_en
789What: /sys/.../iio:deviceX/scan_elements/in_magn_z_en
790What: /sys/.../iio:deviceX/scan_elements/in_timestamp_en
791What: /sys/.../iio:deviceX/scan_elements/in_voltageY_supply_en
792What: /sys/.../iio:deviceX/scan_elements/in_voltageY_en
793What: /sys/.../iio:deviceX/scan_elements/in_voltageY-voltageZ_en
794What: /sys/.../iio:deviceX/scan_elements/in_incli_x_en
795What: /sys/.../iio:deviceX/scan_elements/in_incli_y_en
796What: /sys/.../iio:deviceX/scan_elements/in_pressureY_en
797What: /sys/.../iio:deviceX/scan_elements/in_pressure_en
Srinivas Pandruvadab4a2d472014-04-29 00:51:00 +0100798What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_en
Manuel Stahl5770b8f2010-08-31 11:32:53 +0200799KernelVersion: 2.6.37
800Contact: linux-iio@vger.kernel.org
801Description:
Jonathan Cameron10ba8ea2010-09-21 14:41:08 +0100802 Scan element control for triggered data capture.
Manuel Stahl5770b8f2010-08-31 11:32:53 +0200803
Alexandre Relangeab52a952013-06-11 15:52:00 +0100804What: /sys/.../iio:deviceX/scan_elements/in_accel_type
805What: /sys/.../iio:deviceX/scan_elements/in_anglvel_type
806What: /sys/.../iio:deviceX/scan_elements/in_magn_type
807What: /sys/.../iio:deviceX/scan_elements/in_incli_type
808What: /sys/.../iio:deviceX/scan_elements/in_voltageY_type
809What: /sys/.../iio:deviceX/scan_elements/in_voltage_type
810What: /sys/.../iio:deviceX/scan_elements/in_voltageY_supply_type
811What: /sys/.../iio:deviceX/scan_elements/in_timestamp_type
812What: /sys/.../iio:deviceX/scan_elements/in_pressureY_type
813What: /sys/.../iio:deviceX/scan_elements/in_pressure_type
Srinivas Pandruvadab4a2d472014-04-29 00:51:00 +0100814What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_type
Manuel Stahl5770b8f2010-08-31 11:32:53 +0200815KernelVersion: 2.6.37
816Contact: linux-iio@vger.kernel.org
817Description:
Jonathan Cameron10ba8ea2010-09-21 14:41:08 +0100818 Description of the scan element data storage within the buffer
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000819 and hence the form in which it is read from user-space.
Jonathan Cameron15739cd2011-09-21 11:15:51 +0100820 Form is [be|le]:[s|u]bits/storagebits[>>shift].
821 be or le specifies big or little endian. s or u specifies if
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000822 signed (2's complement) or unsigned. bits is the number of bits
823 of data and storagebits is the space (after padding) that it
824 occupies in the buffer. shift if specified, is the shift that
825 needs to be applied prior to masking out unused bits. Some
826 devices put their data in the middle of the transferred elements
827 with additional information on both sides. Note that some
828 devices will have additional information in the unused bits
829 so to get a clean value, the bits value must be used to mask
830 the buffer output value appropriately. The storagebits value
831 also specifies the data alignment. So s48/64>>2 will be a
832 signed 48 bit integer stored in a 64 bit location aligned to
Peter Meerwald8b417d72012-06-12 15:31:27 +0200833 a 64 bit boundary. To obtain the clean value, shift right 2
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000834 and apply a mask to zero the top 16 bits of the result.
Jonathan Cameron10ba8ea2010-09-21 14:41:08 +0100835 For other storage combinations this attribute will be extended
836 appropriately.
837
Alexandre Relangeab52a952013-06-11 15:52:00 +0100838What: /sys/.../iio:deviceX/scan_elements/in_accel_type_available
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000839KernelVersion: 2.6.37
840Contact: linux-iio@vger.kernel.org
841Description:
842 If the type parameter can take one of a small set of values,
843 this attribute lists them.
844
Alexandre Relangeab52a952013-06-11 15:52:00 +0100845What: /sys/.../iio:deviceX/scan_elements/in_voltageY_index
846What: /sys/.../iio:deviceX/scan_elements/in_voltageY_supply_index
847What: /sys/.../iio:deviceX/scan_elements/in_accel_x_index
848What: /sys/.../iio:deviceX/scan_elements/in_accel_y_index
849What: /sys/.../iio:deviceX/scan_elements/in_accel_z_index
850What: /sys/.../iio:deviceX/scan_elements/in_anglvel_x_index
851What: /sys/.../iio:deviceX/scan_elements/in_anglvel_y_index
852What: /sys/.../iio:deviceX/scan_elements/in_anglvel_z_index
853What: /sys/.../iio:deviceX/scan_elements/in_magn_x_index
854What: /sys/.../iio:deviceX/scan_elements/in_magn_y_index
855What: /sys/.../iio:deviceX/scan_elements/in_magn_z_index
856What: /sys/.../iio:deviceX/scan_elements/in_incli_x_index
857What: /sys/.../iio:deviceX/scan_elements/in_incli_y_index
858What: /sys/.../iio:deviceX/scan_elements/in_timestamp_index
859What: /sys/.../iio:deviceX/scan_elements/in_pressureY_index
860What: /sys/.../iio:deviceX/scan_elements/in_pressure_index
Srinivas Pandruvadab4a2d472014-04-29 00:51:00 +0100861What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_index
Jonathan Cameron10ba8ea2010-09-21 14:41:08 +0100862KernelVersion: 2.6.37
863Contact: linux-iio@vger.kernel.org
864Description:
865 A single positive integer specifying the position of this
Jonathan Cameronf386caa2010-11-22 23:31:16 +0000866 scan element in the buffer. Note these are not dependent on
867 what is enabled and may not be contiguous. Thus for user-space
Jonathan Cameron10ba8ea2010-09-21 14:41:08 +0100868 to establish the full layout these must be used in conjunction
869 with all _en attributes to establish which channels are present,
870 and the relevant _type attributes to establish the data storage
871 format.
Michael Hennerichd4894632011-04-06 11:42:48 +0200872
Jonathan Camerond4c926f2011-10-05 15:28:00 +0100873What: /sys/.../iio:deviceX/in_anglvel_z_quadrature_correction_raw
Michael Hennerichd4894632011-04-06 11:42:48 +0200874KernelVersion: 2.6.38
Jonathan Camerona37b5492011-09-02 17:14:35 +0100875Contact: linux-iio@vger.kernel.org
Michael Hennerichd4894632011-04-06 11:42:48 +0200876Description:
877 This attribute is used to read the amount of quadrature error
878 present in the device at a given time.
Peter Meerwaldf7883d12013-06-23 22:30:00 +0100879
Oleksandr Kravchenko63fa65d2013-08-28 12:01:00 +0100880What: /sys/.../iio:deviceX/in_accelX_power_mode
881KernelVersion: 3.11
882Contact: linux-iio@vger.kernel.org
883Description:
884 Specifies the chip power mode.
885 low_noise: reduce noise level from ADC,
886 low_power: enable low current consumption.
887 For a list of available output power modes read
888 in_accel_power_mode_available.
889
Peter Meerwaldf7883d12013-06-23 22:30:00 +0100890What: /sys/bus/iio/devices/iio:deviceX/store_eeprom
891KernelVersion: 3.4.0
892Contact: linux-iio@vger.kernel.org
893Description:
894 Writing '1' stores the current device configuration into
895 on-chip EEPROM. After power-up or chip reset the device will
896 automatically load the saved configuration.
Peter Meerwald899d90b2013-09-08 16:20:00 +0100897
898What: /sys/.../iio:deviceX/in_intensity_red_integration_time
899What: /sys/.../iio:deviceX/in_intensity_green_integration_time
900What: /sys/.../iio:deviceX/in_intensity_blue_integration_time
901What: /sys/.../iio:deviceX/in_intensity_clear_integration_time
902What: /sys/.../iio:deviceX/in_illuminance_integration_time
903KernelVersion: 3.12
904Contact: linux-iio@vger.kernel.org
905Description:
906 This attribute is used to get/set the integration time in
907 seconds.
Srinivas Pandruvadab4a2d472014-04-29 00:51:00 +0100908
909What: /sys/bus/iio/devices/iio:deviceX/in_rot_quaternion_raw
910KernelVersion: 3.15
911Contact: linux-iio@vger.kernel.org
912Description:
913 Raw value of quaternion components using a format
914 x y z w. Here x, y, and z component represents the axis about
915 which a rotation will occur and w component represents the
916 amount of rotation.