xref: /linux/Documentation/ABI/testing/sysfs-bus-iio (revision 40cb761306d6c19d80fe85f9ae52615932f76b71)
18af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX
28af2c75aSJonathan CameronKernelVersion:	2.6.35
38af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
48af2c75aSJonathan CameronDescription:
58af2c75aSJonathan Cameron		Hardware chip or device accessed by one communication port.
68af2c75aSJonathan Cameron		Corresponds to a grouping of sensor channels. X is the IIO
78af2c75aSJonathan Cameron		index of the device.
88af2c75aSJonathan Cameron
98af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/triggerX
108af2c75aSJonathan CameronKernelVersion:	2.6.35
118af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
128af2c75aSJonathan CameronDescription:
138af2c75aSJonathan Cameron		An event driven driver of data capture to an in kernel buffer.
148af2c75aSJonathan Cameron		May be provided by a device driver that also has an IIO device
158af2c75aSJonathan Cameron		based on hardware generated events (e.g. data ready) or
168af2c75aSJonathan Cameron		provided by a separate driver for other hardware (e.g.
178af2c75aSJonathan Cameron		periodic timer, GPIO or high resolution timer).
188af2c75aSJonathan Cameron		Contains trigger type specific elements. These do not
198af2c75aSJonathan Cameron		generalize well and hence are not documented in this file.
208af2c75aSJonathan Cameron		X is the IIO index of the trigger.
218af2c75aSJonathan Cameron
228af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/buffer
238af2c75aSJonathan CameronKernelVersion:	2.6.35
248af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
258af2c75aSJonathan CameronDescription:
268af2c75aSJonathan Cameron		Directory of attributes relating to the buffer for the device.
278af2c75aSJonathan Cameron
288af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/name
298af2c75aSJonathan CameronKernelVersion:	2.6.35
308af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
318af2c75aSJonathan CameronDescription:
328af2c75aSJonathan Cameron		Description of the physical chip / device for device X.
338af2c75aSJonathan Cameron		Typically a part number.
348af2c75aSJonathan Cameron
358af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/sampling_frequency
368af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/sampling_frequency
378af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/triggerX/sampling_frequency
388af2c75aSJonathan CameronKernelVersion:	2.6.35
398af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
408af2c75aSJonathan CameronDescription:
418af2c75aSJonathan Cameron		Some devices have internal clocks.  This parameter sets the
428af2c75aSJonathan Cameron		resulting sampling frequency.  In many devices this
438b417d78SPeter Meerwald		parameter has an effect on input filters etc. rather than
448af2c75aSJonathan Cameron		simply controlling when the input is sampled.  As this
458b417d78SPeter Meerwald		effects data ready triggers, hardware buffers and the sysfs
468af2c75aSJonathan Cameron		direct access interfaces, it may be found in any of the
478af2c75aSJonathan Cameron		relevant directories.  If it effects all of the above
488af2c75aSJonathan Cameron		then it is to be found in the base device directory.
498af2c75aSJonathan Cameron
508af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/sampling_frequency_available
518af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/buffer/sampling_frequency_available
528af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/triggerX/sampling_frequency_available
538af2c75aSJonathan CameronKernelVersion:	2.6.35
548af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
558af2c75aSJonathan CameronDescription:
568af2c75aSJonathan Cameron		When the internal sampling clock can only take a small
578af2c75aSJonathan Cameron		discrete set of values, this file lists those available.
588af2c75aSJonathan Cameron
598af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/oversampling_ratio
608af2c75aSJonathan CameronKernelVersion:	2.6.38
618af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
628af2c75aSJonathan CameronDescription:
638af2c75aSJonathan Cameron		Hardware dependent ADC oversampling. Controls the sampling ratio
648af2c75aSJonathan Cameron		of the digital filter if available.
658af2c75aSJonathan Cameron
668af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/oversampling_ratio_available
678af2c75aSJonathan CameronKernelVersion:	2.6.38
688af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
698af2c75aSJonathan CameronDescription:
708af2c75aSJonathan Cameron		Hardware dependent values supported by the oversampling filter.
718af2c75aSJonathan Cameron
728af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_raw
738af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_raw
748af2c75aSJonathan CameronKernelVersion:	2.6.35
758af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
768af2c75aSJonathan CameronDescription:
778b417d78SPeter Meerwald		Raw (unscaled no bias removal etc.) voltage measurement from
788af2c75aSJonathan Cameron		channel Y. In special cases where the channel does not
798af2c75aSJonathan Cameron		correspond to externally available input one of the named
808af2c75aSJonathan Cameron		versions may be used. The number must always be specified and
818af2c75aSJonathan Cameron		unique to allow association with event codes. Units after
82c2b2db71SLars-Peter Clausen		application of scale and offset are millivolts.
838af2c75aSJonathan Cameron
848af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY-voltageZ_raw
858af2c75aSJonathan CameronKernelVersion:	2.6.35
868af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
878af2c75aSJonathan CameronDescription:
888af2c75aSJonathan Cameron		Raw (unscaled) differential voltage measurement equivalent to
898af2c75aSJonathan Cameron		channel Y - channel Z where these channel numbers apply to the
908af2c75aSJonathan Cameron		physically equivalent inputs when non differential readings are
918af2c75aSJonathan Cameron		separately available. In differential only parts, then all that
928af2c75aSJonathan Cameron		is required is a consistent labeling.  Units after application
93c2b2db71SLars-Peter Clausen		of scale and offset are millivolts.
948af2c75aSJonathan Cameron
957f1c2cbbSAdam ThomsonWhat:		/sys/bus/iio/devices/iio:deviceX/in_currentY_raw
967f1c2cbbSAdam ThomsonWhat:		/sys/bus/iio/devices/iio:deviceX/in_currentY_supply_raw
977f1c2cbbSAdam ThomsonKernelVersion:	3.17
987f1c2cbbSAdam ThomsonContact:	linux-iio@vger.kernel.org
997f1c2cbbSAdam ThomsonDescription:
1007f1c2cbbSAdam Thomson		Raw (unscaled no bias removal etc.) current measurement from
1017f1c2cbbSAdam Thomson		channel Y. In special cases where the channel does not
1027f1c2cbbSAdam Thomson		correspond to externally available input one of the named
1037f1c2cbbSAdam Thomson		versions may be used. The number must always be specified and
1047f1c2cbbSAdam Thomson		unique to allow association with event codes. Units after
1057f1c2cbbSAdam Thomson		application of scale and offset are milliamps.
1067f1c2cbbSAdam Thomson
1078af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_capacitanceY_raw
1088af2c75aSJonathan CameronKernelVersion:	3.2
1098af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
1108af2c75aSJonathan CameronDescription:
1118af2c75aSJonathan Cameron		Raw capacitance measurement from channel Y. Units after
1128af2c75aSJonathan Cameron		application of scale and offset are nanofarads.
1138af2c75aSJonathan Cameron
1148af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/in_capacitanceY-in_capacitanceZ_raw
1158af2c75aSJonathan CameronKernelVersion:	3.2
1168af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
1178af2c75aSJonathan CameronDescription:
1188af2c75aSJonathan Cameron		Raw differential capacitance measurement equivalent to
1198af2c75aSJonathan Cameron		channel Y - channel Z where these channel numbers apply to the
1208af2c75aSJonathan Cameron		physically equivalent inputs when non differential readings are
1218af2c75aSJonathan Cameron		separately available. In differential only parts, then all that
1228af2c75aSJonathan Cameron		is required is a consistent labeling.  Units after application
1238af2c75aSJonathan Cameron		of scale and offset are nanofarads.
1248af2c75aSJonathan Cameron
1258af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_temp_raw
1268af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_tempX_raw
1278af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_temp_x_raw
1288af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_temp_y_raw
129888c9c73SPeter MeerwaldWhat:		/sys/bus/iio/devices/iio:deviceX/in_temp_ambient_raw
130888c9c73SPeter MeerwaldWhat:		/sys/bus/iio/devices/iio:deviceX/in_temp_object_raw
1318af2c75aSJonathan CameronKernelVersion:	2.6.35
1328af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
1338af2c75aSJonathan CameronDescription:
1348b417d78SPeter Meerwald		Raw (unscaled no bias removal etc.) temperature measurement.
1358af2c75aSJonathan Cameron		If an axis is specified it generally means that the temperature
1368af2c75aSJonathan Cameron		sensor is associated with one part of a compound device (e.g.
137888c9c73SPeter Meerwald		a gyroscope axis). The ambient and object modifiers distinguish
138888c9c73SPeter Meerwald		between ambient (reference) and distant temperature for contact-
139888c9c73SPeter Meerwald		less measurements. Units after application of scale and offset
140cf655d2dSPeter Meerwald		are milli degrees Celsius.
1418af2c75aSJonathan Cameron
1428af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_tempX_input
1438af2c75aSJonathan CameronKernelVersion:	2.6.38
1448af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
1458af2c75aSJonathan CameronDescription:
1468af2c75aSJonathan Cameron		Scaled temperature measurement in milli degrees Celsius.
1478af2c75aSJonathan Cameron
1488af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_x_raw
1498af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_y_raw
1508af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_z_raw
1518af2c75aSJonathan CameronKernelVersion:	2.6.35
1528af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
1538af2c75aSJonathan CameronDescription:
1548af2c75aSJonathan Cameron		Acceleration in direction x, y or z (may be arbitrarily assigned
1558af2c75aSJonathan Cameron		but should match other such assignments on device).
1568af2c75aSJonathan Cameron		Has all of the equivalent parameters as per voltageY. Units
1578af2c75aSJonathan Cameron		after application of scale and offset are m/s^2.
1588af2c75aSJonathan Cameron
1598af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_x_raw
1608af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_y_raw
1618af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_z_raw
1628af2c75aSJonathan CameronKernelVersion:	2.6.35
1638af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
1648af2c75aSJonathan CameronDescription:
1658af2c75aSJonathan Cameron		Angular velocity about axis x, y or z (may be arbitrarily
1668b417d78SPeter Meerwald		assigned). Has all the equivalent parameters as	per voltageY.
1678b417d78SPeter Meerwald		Units after application of scale and offset are	radians per
1688b417d78SPeter Meerwald		second.
1698af2c75aSJonathan Cameron
1708af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_incli_x_raw
1718af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_incli_y_raw
1728af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_incli_z_raw
1738af2c75aSJonathan CameronKernelVersion:	2.6.35
1748af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
1758af2c75aSJonathan CameronDescription:
1768af2c75aSJonathan Cameron		Inclination raw reading about axis x, y or z (may be
1778af2c75aSJonathan Cameron		arbitrarily assigned). Data converted by application of offset
1788b417d78SPeter Meerwald		and scale to degrees.
1798af2c75aSJonathan Cameron
1808af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_x_raw
1818af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_y_raw
1828af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_z_raw
1838af2c75aSJonathan CameronKernelVersion:	2.6.35
1848af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
1858af2c75aSJonathan CameronDescription:
1868af2c75aSJonathan Cameron		Magnetic field along axis x, y or z (may be arbitrarily
1878af2c75aSJonathan Cameron		assigned).  Data converted by application of offset
1888af2c75aSJonathan Cameron		then scale to Gauss.
1898af2c75aSJonathan Cameron
1908af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_x_peak_raw
1918af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_y_peak_raw
1928af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_z_peak_raw
1938af2c75aSJonathan CameronKernelVersion:	2.6.36
1948af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
1958af2c75aSJonathan CameronDescription:
1968af2c75aSJonathan Cameron		Highest value since some reset condition.  These
1978af2c75aSJonathan Cameron		attributes allow access to this and are otherwise
1988af2c75aSJonathan Cameron		the direct equivalent of the <type>Y[_name]_raw attributes.
1998af2c75aSJonathan Cameron
2008af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_xyz_squared_peak_raw
2018af2c75aSJonathan CameronKernelVersion:	2.6.36
2028af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
2038af2c75aSJonathan CameronDescription:
2048af2c75aSJonathan Cameron		A computed peak value based on the sum squared magnitude of
2058af2c75aSJonathan Cameron		the underlying value in the specified directions.
2068af2c75aSJonathan Cameron
207c4f0c693SLars-Peter ClausenWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressureY_raw
208c4f0c693SLars-Peter ClausenWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressure_raw
209c4f0c693SLars-Peter ClausenKernelVersion:	3.8
210c4f0c693SLars-Peter ClausenContact:	linux-iio@vger.kernel.org
211c4f0c693SLars-Peter ClausenDescription:
212c4f0c693SLars-Peter Clausen		Raw pressure measurement from channel Y. Units after
213c4f0c693SLars-Peter Clausen		application of scale and offset are kilopascal.
214c4f0c693SLars-Peter Clausen
215c22e15f3SVlad DogaruWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressureY_input
216c22e15f3SVlad DogaruWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressure_input
217c22e15f3SVlad DogaruKernelVersion:	3.8
218c22e15f3SVlad DogaruContact:	linux-iio@vger.kernel.org
219c22e15f3SVlad DogaruDescription:
220c22e15f3SVlad Dogaru		Scaled pressure measurement from channel Y, in kilopascal.
221c22e15f3SVlad Dogaru
222ac216aa2SHarald GeyerWhat:		/sys/bus/iio/devices/iio:deviceX/in_humidityrelative_raw
223ac216aa2SHarald GeyerKernelVersion:	3.14
224ac216aa2SHarald GeyerContact:	linux-iio@vger.kernel.org
225ac216aa2SHarald GeyerDescription:
226ac216aa2SHarald Geyer		Raw humidity measurement of air. Units after application of
227ac216aa2SHarald Geyer		scale and offset are milli percent.
228ac216aa2SHarald Geyer
229ac216aa2SHarald GeyerWhat:		/sys/bus/iio/devices/iio:deviceX/in_humidityrelative_input
230ac216aa2SHarald GeyerKernelVersion:	3.14
231ac216aa2SHarald GeyerContact:	linux-iio@vger.kernel.org
232ac216aa2SHarald GeyerDescription:
233ac216aa2SHarald Geyer		Scaled humidity measurement in milli percent.
234ac216aa2SHarald Geyer
235c0a6b7eeSSebastian ReichelWhat:		/sys/bus/iio/devices/iio:deviceX/in_X_mean_raw
236c0a6b7eeSSebastian ReichelKernelVersion:	3.5
237c0a6b7eeSSebastian ReichelContact:	linux-iio@vger.kernel.org
238c0a6b7eeSSebastian ReichelDescription:
239c0a6b7eeSSebastian Reichel		Averaged raw measurement from channel X. The number of values
240c0a6b7eeSSebastian Reichel		used for averaging is device specific. The converting rules for
241c0a6b7eeSSebastian Reichel		normal raw values also applies to the averaged raw values.
242c0a6b7eeSSebastian Reichel
2438af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_offset
2448af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_x_offset
2458af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_y_offset
2468af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_z_offset
2478af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_offset
2488af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltage_offset
2497f1c2cbbSAdam ThomsonWhat:		/sys/bus/iio/devices/iio:deviceX/in_currentY_offset
2507f1c2cbbSAdam ThomsonWhat:		/sys/bus/iio/devices/iio:deviceX/in_current_offset
2518af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_tempY_offset
2528af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_temp_offset
253c4f0c693SLars-Peter ClausenWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressureY_offset
254c4f0c693SLars-Peter ClausenWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressure_offset
2554d5ce6bbSRoberta DobrescuWhat:		/sys/bus/iio/devices/iio:deviceX/in_humidityrelative_offset
2568af2c75aSJonathan CameronKernelVersion:	2.6.35
2578af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
2588af2c75aSJonathan CameronDescription:
2598af2c75aSJonathan Cameron		If known for a device, offset to be added to <type>[Y]_raw prior
2608af2c75aSJonathan Cameron		to scaling by <type>[Y]_scale in order to obtain value in the
2618b417d78SPeter Meerwald		<type> units as specified in <type>[Y]_raw documentation.
2628af2c75aSJonathan Cameron		Not present if the offset is always 0 or unknown. If Y or
2638af2c75aSJonathan Cameron		axis <x|y|z> is not present, then the offset applies to all
2648af2c75aSJonathan Cameron		in channels of <type>.
2658af2c75aSJonathan Cameron		May be writable if a variable offset can be applied on the
2668af2c75aSJonathan Cameron		device. Note that this is different to calibbias which
2678af2c75aSJonathan Cameron		is for devices (or drivers) that apply offsets to compensate
2688af2c75aSJonathan Cameron		for variation between different instances of the part, typically
2698af2c75aSJonathan Cameron		adjusted by using some hardware supported calibration procedure.
2708af2c75aSJonathan Cameron		Calibbias is applied internally, offset is applied in userspace
2718af2c75aSJonathan Cameron		to the _raw output.
2728af2c75aSJonathan Cameron
2738af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_scale
2748af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_scale
2758af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltage_scale
2764e4cd14eSDarshana PadmadasWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltage-voltage_scale
2778af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltageY_scale
278d802bf6fSMichael HennerichWhat:		/sys/bus/iio/devices/iio:deviceX/out_altvoltageY_scale
2797f1c2cbbSAdam ThomsonWhat:		/sys/bus/iio/devices/iio:deviceX/in_currentY_scale
2807f1c2cbbSAdam ThomsonWhat:		/sys/bus/iio/devices/iio:deviceX/in_currentY_supply_scale
2817f1c2cbbSAdam ThomsonWhat:		/sys/bus/iio/devices/iio:deviceX/in_current_scale
2828af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_scale
2838af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_peak_scale
2848af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_scale
28572c66644SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_energy_scale
286cc3c9eecSIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_distance_scale
2878af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_scale
2888af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_x_scale
2898af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_y_scale
2908af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_z_scale
291b531db84SReyad AttiyatWhat:		/sys/bus/iio/devices/iio:deviceX/in_rot_from_north_magnetic_scale
292b531db84SReyad AttiyatWhat:		/sys/bus/iio/devices/iio:deviceX/in_rot_from_north_true_scale
293b531db84SReyad AttiyatWhat:		/sys/bus/iio/devices/iio:deviceX/in_rot_from_north_magnetic_tilt_comp_scale
294b531db84SReyad AttiyatWhat:		/sys/bus/iio/devices/iio:deviceX/in_rot_from_north_true_tilt_comp_scale
295c4f0c693SLars-Peter ClausenWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
296c4f0c693SLars-Peter ClausenWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressure_scale
2974d5ce6bbSRoberta DobrescuWhat:		/sys/bus/iio/devices/iio:deviceX/in_humidityrelative_scale
2985a1a9329SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_scale
2998af2c75aSJonathan CameronKernelVersion:	2.6.35
3008af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
3018af2c75aSJonathan CameronDescription:
3028af2c75aSJonathan Cameron		If known for a device, scale to be applied to <type>Y[_name]_raw
3038af2c75aSJonathan Cameron		post addition of <type>[Y][_name]_offset in order to obtain the
3048af2c75aSJonathan Cameron		measured value in <type> units as specified in
3058af2c75aSJonathan Cameron		<type>[Y][_name]_raw documentation.  If shared across all in
3068af2c75aSJonathan Cameron		channels then Y and <x|y|z> are not present and the value is
3078af2c75aSJonathan Cameron		called <type>[Y][_name]_scale. The peak modifier means this
3088af2c75aSJonathan Cameron		value is applied to <type>Y[_name]_peak_raw values.
3098af2c75aSJonathan Cameron
3108af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_x_calibbias
3118af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_y_calibbias
3128af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_z_calibbias
3138af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibbias
3148af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibbias
3158af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibbias
3168af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibbias
3178af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calibbias
318c4f0c693SLars-Peter ClausenWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressureY_calibbias
319c4f0c693SLars-Peter ClausenWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressure_calibbias
3208af2c75aSJonathan CameronKernelVersion:	2.6.35
3218af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
3228af2c75aSJonathan CameronDescription:
3238b417d78SPeter Meerwald		Hardware applied calibration offset (assumed to fix production
3248af2c75aSJonathan Cameron		inaccuracies).
3258af2c75aSJonathan Cameron
3268af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_voltageY_calibscale
3278af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_calibscale
3288af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_voltage_calibscale
3298af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_accel_x_calibscale
3308af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_accel_y_calibscale
3318af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_accel_z_calibscale
3328af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibscale
3338af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibscale
3348af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibscale
3358af2c75aSJonathan Cameronwhat		/sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale
3368af2c75aSJonathan Cameronwhat		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale
337c4f0c693SLars-Peter ClausenWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale
338c4f0c693SLars-Peter ClausenWhat:		/sys/bus/iio/devices/iio:deviceX/in_pressure_calibscale
3398af2c75aSJonathan CameronKernelVersion:	2.6.35
3408af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
3418af2c75aSJonathan CameronDescription:
3428b417d78SPeter Meerwald		Hardware applied calibration scale factor (assumed to fix
3438af2c75aSJonathan Cameron		production inaccuracies).  If shared across all channels,
3448af2c75aSJonathan Cameron		<type>_calibscale is used.
3458af2c75aSJonathan Cameron
346*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_activity_calibgender
347*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_energy_calibgender
348*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_distance_calibgender
349*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender
350*40cb7613SIrina TirdeaKernelVersion:	3.20
351*40cb7613SIrina TirdeaContact:	linux-iio@vger.kernel.org
352*40cb7613SIrina TirdeaDescription:
353*40cb7613SIrina Tirdea		Gender of the user (e.g.: male, female) used by some pedometers
354*40cb7613SIrina Tirdea		to compute the stride length, distance, speed and activity
355*40cb7613SIrina Tirdea		type.
356*40cb7613SIrina Tirdea
357*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_activity_calibgender_available
358*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_energy_calibgender_available
359*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_distance_calibgender_available
360*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender_available
361*40cb7613SIrina TirdeaKernelVersion:	3.20
362*40cb7613SIrina TirdeaContact:	linux-iio@vger.kernel.org
363*40cb7613SIrina TirdeaDescription:
364*40cb7613SIrina Tirdea		Lists all available gender values (e.g.: male, female).
365*40cb7613SIrina Tirdea
366*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_activity_calibheight
367*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_energy_calibheight
368*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_distance_calibheight
369*40cb7613SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_velocity_calibheight
370bcdf28fbSIrina TirdeaKernelVersion:	3.19
371bcdf28fbSIrina TirdeaContact:	linux-iio@vger.kernel.org
372bcdf28fbSIrina TirdeaDescription:
37381110933SIrina Tirdea		Height of the user (in meters) used by some pedometers
374bcdf28fbSIrina Tirdea		to compute the stride length, distance, speed and activity
375bcdf28fbSIrina Tirdea		type.
376bcdf28fbSIrina Tirdea
377d37f6836SIrina TirdeaWhat:		/sys/bus/iio/devices/iio:deviceX/in_energy_calibweight
378d37f6836SIrina TirdeaKernelVersion:	3.20
379d37f6836SIrina TirdeaContact:	linux-iio@vger.kernel.org
380d37f6836SIrina TirdeaDescription:
381d37f6836SIrina Tirdea		Weight of the user (in kg). It is needed by some pedometers
382d37f6836SIrina Tirdea		to compute the calories burnt by the user.
383d37f6836SIrina Tirdea
3848af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_scale_available
3858af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/in_voltageX_scale_available
3868af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/in_voltage-voltage_scale_available
3878af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/out_voltageX_scale_available
388d802bf6fSMichael HennerichWhat:		/sys/.../iio:deviceX/out_altvoltageX_scale_available
3898af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/in_capacitance_scale_available
390c4f0c693SLars-Peter ClausenWhat:		/sys/.../iio:deviceX/in_pressure_scale_available
391c4f0c693SLars-Peter ClausenWhat:		/sys/.../iio:deviceX/in_pressureY_scale_available
392cf09fe9cSPeter MeerwaldKernelVersion:	2.6.35
3938af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
3948af2c75aSJonathan CameronDescription:
3958b417d78SPeter Meerwald		If a discrete set of scale values is available, they
3968af2c75aSJonathan Cameron		are listed in this attribute.
3978af2c75aSJonathan Cameron
398b65d6212SMichael HennerichWhat		/sys/bus/iio/devices/iio:deviceX/out_voltageY_hardwaregain
399ed56330dSRoberta DobrescuWhat:		/sys/bus/iio/devices/iio:deviceX/in_intensity_red_hardwaregain
400ed56330dSRoberta DobrescuWhat:		/sys/bus/iio/devices/iio:deviceX/in_intensity_green_hardwaregain
401ed56330dSRoberta DobrescuWhat:		/sys/bus/iio/devices/iio:deviceX/in_intensity_blue_hardwaregain
402ed56330dSRoberta DobrescuWhat:		/sys/bus/iio/devices/iio:deviceX/in_intensity_clear_hardwaregain
403b65d6212SMichael HennerichKernelVersion:	2.6.35
404b65d6212SMichael HennerichContact:	linux-iio@vger.kernel.org
405b65d6212SMichael HennerichDescription:
406b65d6212SMichael Hennerich		Hardware applied gain factor. If shared across all channels,
407b65d6212SMichael Hennerich		<type>_hardwaregain is used.
408b65d6212SMichael Hennerich
4098af2c75aSJonathan CameronWhat:		/sys/.../in_accel_filter_low_pass_3db_frequency
4108af2c75aSJonathan CameronWhat:		/sys/.../in_magn_filter_low_pass_3db_frequency
4118af2c75aSJonathan CameronWhat:		/sys/.../in_anglvel_filter_low_pass_3db_frequency
4128af2c75aSJonathan CameronKernelVersion:	3.2
4138af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
4148af2c75aSJonathan CameronDescription:
4158af2c75aSJonathan Cameron		If a known or controllable low pass filter is applied
4168af2c75aSJonathan Cameron		to the underlying data channel, then this parameter
4178af2c75aSJonathan Cameron		gives the 3dB frequency of the filter in Hz.
4188af2c75aSJonathan Cameron
4198af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltageY_raw
420d802bf6fSMichael HennerichWhat:		/sys/bus/iio/devices/iio:deviceX/out_altvoltageY_raw
4218af2c75aSJonathan CameronKernelVersion:	2.6.37
4228af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
4238af2c75aSJonathan CameronDescription:
4248af2c75aSJonathan Cameron		Raw (unscaled, no bias etc.) output voltage for
4258af2c75aSJonathan Cameron		channel Y.  The number must always be specified and
4268af2c75aSJonathan Cameron		unique if the output corresponds to a single channel.
427d802bf6fSMichael Hennerich		While DAC like devices typically use out_voltage,
428d802bf6fSMichael Hennerich		a continuous frequency generating device, such as
429d802bf6fSMichael Hennerich		a DDS or PLL should use out_altvoltage.
4308af2c75aSJonathan Cameron
4318af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltageY&Z_raw
432d802bf6fSMichael HennerichWhat:		/sys/bus/iio/devices/iio:deviceX/out_altvoltageY&Z_raw
4338af2c75aSJonathan CameronKernelVersion:	2.6.37
4348af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
4358af2c75aSJonathan CameronDescription:
4368af2c75aSJonathan Cameron		Raw (unscaled, no bias etc.) output voltage for an aggregate of
4378af2c75aSJonathan Cameron		channel Y, channel Z, etc.  This interface is available in cases
4388af2c75aSJonathan Cameron		where a single output sets the value for multiple channels
4398af2c75aSJonathan Cameron		simultaneously.
4408af2c75aSJonathan Cameron
4418af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown_mode
4428af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown_mode
443d802bf6fSMichael HennerichWhat:		/sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown_mode
444d802bf6fSMichael HennerichWhat:		/sys/bus/iio/devices/iio:deviceX/out_altvoltage_powerdown_mode
4458af2c75aSJonathan CameronKernelVersion:	2.6.38
4468af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
4478af2c75aSJonathan CameronDescription:
4488af2c75aSJonathan Cameron		Specifies the output powerdown mode.
4498af2c75aSJonathan Cameron		DAC output stage is disconnected from the amplifier and
4508b417d78SPeter Meerwald		1kohm_to_gnd: connected	to ground via an 1kOhm resistor,
4518b417d78SPeter Meerwald		6kohm_to_gnd: connected to ground via a 6kOhm resistor,
4528b417d78SPeter Meerwald		20kohm_to_gnd: connected to ground via a 20kOhm resistor,
4538b417d78SPeter Meerwald		100kohm_to_gnd: connected to ground via an 100kOhm resistor,
454bd53a414SPeter Meerwald		500kohm_to_gnd: connected to ground via a 500kOhm resistor,
4558b417d78SPeter Meerwald		three_state: left floating.
4568af2c75aSJonathan Cameron		For a list of available output power down options read
4578af2c75aSJonathan Cameron		outX_powerdown_mode_available. If Y is not present the
4588af2c75aSJonathan Cameron		mode is shared across all outputs.
4598af2c75aSJonathan Cameron
4608af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/out_votlageY_powerdown_mode_available
4618af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/out_voltage_powerdown_mode_available
462d802bf6fSMichael HennerichWhat:		/sys/.../iio:deviceX/out_altvotlageY_powerdown_mode_available
463d802bf6fSMichael HennerichWhat:		/sys/.../iio:deviceX/out_altvoltage_powerdown_mode_available
4648af2c75aSJonathan CameronKernelVersion:	2.6.38
4658af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
4668af2c75aSJonathan CameronDescription:
4678af2c75aSJonathan Cameron		Lists all available output power down modes.
4688af2c75aSJonathan Cameron		If Y is not present the mode is shared across all outputs.
4698af2c75aSJonathan Cameron
4708af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown
4718af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown
472d802bf6fSMichael HennerichWhat:		/sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown
473d802bf6fSMichael HennerichWhat:		/sys/bus/iio/devices/iio:deviceX/out_altvoltage_powerdown
4748af2c75aSJonathan CameronKernelVersion:	2.6.38
4758af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
4768af2c75aSJonathan CameronDescription:
4778af2c75aSJonathan Cameron		Writing 1 causes output Y to enter the power down mode specified
4788b417d78SPeter Meerwald		by the corresponding outY_powerdown_mode. DAC output stage is
4798b417d78SPeter Meerwald		disconnected from the amplifier. Clearing returns to normal
4808b417d78SPeter Meerwald		operation. Y may be suppressed if all outputs are controlled
4818b417d78SPeter Meerwald		together.
4828af2c75aSJonathan Cameron
483d802bf6fSMichael HennerichWhat:		/sys/bus/iio/devices/iio:deviceX/out_altvoltageY_frequency
484d802bf6fSMichael HennerichKernelVersion:	3.4.0
485d802bf6fSMichael HennerichContact:	linux-iio@vger.kernel.org
486d802bf6fSMichael HennerichDescription:
487d802bf6fSMichael Hennerich		Output frequency for channel Y in Hz. The number must always be
488d802bf6fSMichael Hennerich		specified and unique if the output corresponds to a single
489d802bf6fSMichael Hennerich		channel.
490d802bf6fSMichael Hennerich
491d802bf6fSMichael HennerichWhat:		/sys/bus/iio/devices/iio:deviceX/out_altvoltageY_phase
492d802bf6fSMichael HennerichKernelVersion:	3.4.0
493d802bf6fSMichael HennerichContact:	linux-iio@vger.kernel.org
494d802bf6fSMichael HennerichDescription:
495d802bf6fSMichael Hennerich		Phase in radians of one frequency/clock output Y
496d802bf6fSMichael Hennerich		(out_altvoltageY) relative to another frequency/clock output
497d802bf6fSMichael Hennerich		(out_altvoltageZ) of the device X. The number must always be
498d802bf6fSMichael Hennerich		specified and unique if the output corresponds to a single
499d802bf6fSMichael Hennerich		channel.
500d802bf6fSMichael Hennerich
5018af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/events
5028af2c75aSJonathan CameronKernelVersion:	2.6.35
5038af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
5048af2c75aSJonathan CameronDescription:
5058af2c75aSJonathan Cameron		Configuration of which hardware generated events are passed up
5068af2c75aSJonathan Cameron		to user-space.
5078af2c75aSJonathan Cameron
5088af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_thresh_rising_en
5098af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_thresh_falling_en
5108af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_thresh_rising_en
5118af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_thresh_falling_en
5128af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_thresh_rising_en
5138af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_thresh_falling_en
5148af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_x_thresh_rising_en
5158af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_x_thresh_falling_en
5168af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_y_thresh_rising_en
5178af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_y_thresh_falling_en
5188af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_z_thresh_rising_en
5198af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_z_thresh_falling_en
5208af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_x_thresh_rising_en
5218af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_x_thresh_falling_en
5228af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_y_thresh_rising_en
5238af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_y_thresh_falling_en
5248af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_z_thresh_rising_en
5258af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_z_thresh_falling_en
526b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_magnetic_thresh_rising_en
527b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_magnetic_thresh_falling_en
528b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_true_thresh_rising_en
529b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_true_thresh_falling_en
530b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_magnetic_tilt_comp_thresh_rising_en
531b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_magnetic_tilt_comp_thresh_falling_en
532b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_true_tilt_comp_thresh_rising_en
533b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_true_tilt_comp_thresh_falling_en
5348af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_supply_thresh_rising_en
5358af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_supply_thresh_falling_en
5368af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_thresh_rising_en
5378af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_thresh_falling_en
5388af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_tempY_thresh_rising_en
5398af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_tempY_thresh_falling_en
5408af2c75aSJonathan CameronKernelVersion:	2.6.37
5418af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
5428af2c75aSJonathan CameronDescription:
5438af2c75aSJonathan Cameron		Event generated when channel passes a threshold in the specified
5448af2c75aSJonathan Cameron		(_rising|_falling) direction. If the direction is not specified,
5458af2c75aSJonathan Cameron		then either the device will report an event which ever direction
5468af2c75aSJonathan Cameron		a single threshold value is passed in (e.g.
5478af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_thresh_value) or
5488af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_thresh_rising_value and
5498af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_thresh_falling_value may take
5508af2c75aSJonathan Cameron		different values, but the device can only enable both thresholds
5518af2c75aSJonathan Cameron		or neither.
5528af2c75aSJonathan Cameron		Note the driver will assume the last p events requested are
5538b417d78SPeter Meerwald		to be enabled where p is how many it supports (which may vary
5548b417d78SPeter Meerwald		depending on the exact set requested. So if you want to be
5558af2c75aSJonathan Cameron		sure you have set what you think you have, check the contents of
5568af2c75aSJonathan Cameron		these attributes after everything is configured. Drivers may
5578af2c75aSJonathan Cameron		have to buffer any parameters so that they are consistent when
5588b417d78SPeter Meerwald		a given event type is enabled at a future point (and not those for
5598af2c75aSJonathan Cameron		whatever event was previously enabled).
5608af2c75aSJonathan Cameron
5618af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_roc_rising_en
5628af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_roc_falling_en
5638af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_roc_rising_en
5648af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_roc_falling_en
5658af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_roc_rising_en
5668af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_roc_falling_en
5678af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_x_roc_rising_en
5688af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_x_roc_falling_en
5698af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_y_roc_rising_en
5708af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_y_roc_falling_en
5718af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_z_roc_rising_en
5728af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_z_roc_falling_en
5738af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_x_roc_rising_en
5748af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_x_roc_falling_en
5758af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_y_roc_rising_en
5768af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_y_roc_falling_en
5778af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_z_roc_rising_en
5788af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_z_roc_falling_en
579b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_magnetic_roc_rising_en
580b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_magnetic_roc_falling_en
581b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_true_roc_rising_en
582b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_true_roc_falling_en
583b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_magnetic_tilt_comp_roc_rising_en
584b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_magnetic_tilt_comp_roc_falling_en
585b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_true_tilt_comp_roc_rising_en
586b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/events/in_rot_from_north_true_tilt_comp_roc_falling_en
5878af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_supply_roc_rising_en
5888af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_supply_roc_falling_en
5898af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_roc_rising_en
5908af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_roc_falling_en
5918af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_tempY_roc_rising_en
5928af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_tempY_roc_falling_en
5938af2c75aSJonathan CameronKernelVersion:	2.6.37
5948af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
5958af2c75aSJonathan CameronDescription:
5968af2c75aSJonathan Cameron		Event generated when channel passes a threshold on the rate of
5978af2c75aSJonathan Cameron		change (1st differential) in the specified (_rising|_falling)
5988af2c75aSJonathan Cameron		direction. If the direction is not specified, then either the
5998af2c75aSJonathan Cameron		device will report an event which ever direction a single
6008af2c75aSJonathan Cameron		threshold value is passed in (e.g.
6018af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_roc_value) or
6028af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_roc_rising_value and
6038af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_roc_falling_value may take
6048af2c75aSJonathan Cameron		different values, but the device can only enable both rate of
6058af2c75aSJonathan Cameron		change thresholds or neither.
6068af2c75aSJonathan Cameron		Note the driver will assume the last p events requested are
6078af2c75aSJonathan Cameron		to be enabled where p is however many it supports (which may
6088af2c75aSJonathan Cameron		vary depending on the exact set requested. So if you want to be
6098af2c75aSJonathan Cameron		sure you have set what you think you have, check the contents of
6108af2c75aSJonathan Cameron		these attributes after everything is configured. Drivers may
6118af2c75aSJonathan Cameron		have to buffer any parameters so that they are consistent when
6128af2c75aSJonathan Cameron		a given event type is enabled a future point (and not those for
6138af2c75aSJonathan Cameron		whatever event was previously enabled).
6148af2c75aSJonathan Cameron
6158af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_raw_thresh_rising_value
6168af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_raw_thresh_falling_value
6178af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_raw_thresh_rising_value
6188af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_raw_thresh_falling_value
6198af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_raw_thresh_rising_value
6208af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_raw_thresh_falling_value
6218af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_raw_thresh_rising_value
6228af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_raw_thresh_falling_value
6238af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_raw_thresh_rising_value
6248af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_raw_thresh_falling_value
6258af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_raw_thresh_rising_value
6268af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_raw_thresh_falling_value
6278af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_raw_thresh_rising_value
6288af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_raw_thresh_falling_value
6298af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_raw_thresh_rising_value
6308af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_raw_thresh_falling_value
6318af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_raw_thresh_rising_value
6328af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_raw_thresh_falling_value
633b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_raw_thresh_rising_value
634b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_raw_thresh_falling_value
635b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_raw_thresh_rising_value
636b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_raw_thresh_falling_value
637b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_tilt_comp_raw_thresh_rising_value
638b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_tilt_comp_raw_thresh_falling_value
639b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_tilt_comp_raw_thresh_rising_value
640b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_tilt_comp_raw_thresh_falling_value
6418af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_raw_thresh_rising_value
6428af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_raw_thresh_falling_value
6438af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_raw_thresh_rising_value
6448af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_raw_thresh_falling_value
6458af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_raw_thresh_rising_value
6468af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_raw_thresh_falling_value
6478af2c75aSJonathan CameronWhat:		/sys/.../events/in_illuminance0_thresh_falling_value
6488af2c75aSJonathan Cameronwhat:		/sys/.../events/in_illuminance0_thresh_rising_value
6498af2c75aSJonathan Cameronwhat:		/sys/.../events/in_proximity0_thresh_falling_value
6508af2c75aSJonathan Cameronwhat:		/sys/.../events/in_proximity0_thresh_rising_value
6518af2c75aSJonathan CameronKernelVersion:	2.6.37
6528af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
6538af2c75aSJonathan CameronDescription:
6548af2c75aSJonathan Cameron		Specifies the value of threshold that the device is comparing
6558af2c75aSJonathan Cameron		against for the events enabled by
6568af2c75aSJonathan Cameron		<type>Y[_name]_thresh[_rising|falling]_en.
6578af2c75aSJonathan Cameron		If separate attributes exist for the two directions, but
6588af2c75aSJonathan Cameron		direction is not specified for this attribute, then a single
6598af2c75aSJonathan Cameron		threshold value applies to both directions.
6608af2c75aSJonathan Cameron		The raw or input element of the name indicates whether the
6618af2c75aSJonathan Cameron		value is in raw device units or in processed units (as _raw
6628af2c75aSJonathan Cameron		and _input do on sysfs direct channel read attributes).
6638af2c75aSJonathan Cameron
664ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_accel_x_thresh_rising_hysteresis
665ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_accel_x_thresh_falling_hysteresis
666ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_accel_x_thresh_either_hysteresis
667ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_accel_y_thresh_rising_hysteresis
668ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_accel_y_thresh_falling_hysteresis
669ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_accel_y_thresh_either_hysteresis
670ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_accel_z_thresh_rising_hysteresis
671ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_accel_z_thresh_falling_hysteresis
672ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_accel_z_thresh_either_hysteresis
673ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_anglvel_x_thresh_rising_hysteresis
674ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_anglvel_x_thresh_falling_hysteresis
675ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_anglvel_x_thresh_either_hysteresis
676ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_anglvel_y_thresh_rising_hysteresis
677ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_anglvel_y_thresh_falling_hysteresis
678ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_anglvel_y_thresh_either_hysteresis
679ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_anglvel_z_thresh_rising_hysteresis
680ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_anglvel_z_thresh_falling_hysteresis
681ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_anglvel_z_thresh_either_hysteresis
682ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_magn_x_thresh_rising_hysteresis
683ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_magn_x_thresh_falling_hysteresis
684ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_magn_x_thresh_either_hysteresis
685ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_magn_y_thresh_rising_hysteresis
686ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_magn_y_thresh_falling_hysteresis
687ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_magn_y_thresh_either_hysteresis
688ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_magn_z_thresh_rising_hysteresis
689ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_magn_z_thresh_falling_hysteresis
690ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_magn_z_thresh_either_hysteresis
691b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_thresh_rising_hysteresis
692b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_thresh_falling_hysteresis
693b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_thresh_either_hysteresis
694b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_thresh_rising_hysteresis
695b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_thresh_falling_hysteresis
696b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_thresh_either_hysteresis
697b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_tilt_comp_thresh_rising_hysteresis
698b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_tilt_comp_thresh_falling_hysteresis
699b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_tilt_comp_thresh_either_hysteresis
700b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_tilt_comp_thresh_rising_hysteresis
701b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_tilt_comp_thresh_falling_hysteresis
702b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_tilt_comp_thresh_either_hysteresis
703ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_voltageY_thresh_rising_hysteresis
704ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_voltageY_thresh_falling_hysteresis
705ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_voltageY_thresh_either_hysteresis
706ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_tempY_thresh_rising_hysteresis
707ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_tempY_thresh_falling_hysteresis
708ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_tempY_thresh_either_hysteresis
709ec6670aeSLars-Peter ClausenWhat:		/sys/.../events/in_illuminance0_thresh_falling_hysteresis
710ec6670aeSLars-Peter Clausenwhat:		/sys/.../events/in_illuminance0_thresh_rising_hysteresis
711ec6670aeSLars-Peter Clausenwhat:		/sys/.../events/in_illuminance0_thresh_either_hysteresis
712ec6670aeSLars-Peter Clausenwhat:		/sys/.../events/in_proximity0_thresh_falling_hysteresis
713ec6670aeSLars-Peter Clausenwhat:		/sys/.../events/in_proximity0_thresh_rising_hysteresis
714ec6670aeSLars-Peter Clausenwhat:		/sys/.../events/in_proximity0_thresh_either_hysteresis
715ec6670aeSLars-Peter ClausenKernelVersion:	3.13
716ec6670aeSLars-Peter ClausenContact:	linux-iio@vger.kernel.org
717ec6670aeSLars-Peter ClausenDescription:
718ec6670aeSLars-Peter Clausen		Specifies the hysteresis of threshold that the device is comparing
719ec6670aeSLars-Peter Clausen		against for the events enabled by
720ec6670aeSLars-Peter Clausen		<type>Y[_name]_thresh[_(rising|falling)]_hysteresis.
721ec6670aeSLars-Peter Clausen		If separate attributes exist for the two directions, but
722ec6670aeSLars-Peter Clausen		direction is not specified for this attribute, then a single
723ec6670aeSLars-Peter Clausen		hysteresis value applies to both directions.
724ec6670aeSLars-Peter Clausen		For falling events the hysteresis is added to the _value attribute for
725ec6670aeSLars-Peter Clausen		this event to get the upper threshold for when the event goes back to
726ec6670aeSLars-Peter Clausen		normal, for rising events the hysteresis is subtracted from the _value
727ec6670aeSLars-Peter Clausen		attribute. E.g. if in_voltage0_raw_thresh_rising_value is set to 1200
728ec6670aeSLars-Peter Clausen		and in_voltage0_raw_thresh_rising_hysteresis is set to 50. The event
729ec6670aeSLars-Peter Clausen		will get activated once in_voltage0_raw goes above 1200 and will become
730ec6670aeSLars-Peter Clausen		deactived again once the value falls below 1150.
731ec6670aeSLars-Peter Clausen
7328af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_raw_roc_rising_value
7338af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_raw_roc_falling_value
7348af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_raw_roc_rising_value
7358af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_raw_roc_falling_value
7368af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_raw_roc_rising_value
7378af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_raw_roc_falling_value
7388af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_raw_roc_rising_value
7398af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_raw_roc_falling_value
7408af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_raw_roc_rising_value
7418af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_raw_roc_falling_value
7428af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_raw_roc_rising_value
7438af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_raw_roc_falling_value
7448af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_raw_roc_rising_value
7458af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_raw_roc_falling_value
7468af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_raw_roc_rising_value
7478af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_raw_roc_falling_value
7488af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_raw_roc_rising_value
7498af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_raw_roc_falling_value
750b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_raw_roc_rising_value
751b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_raw_roc_falling_value
752b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_raw_roc_rising_value
753b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_raw_roc_falling_value
754b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_tilt_comp_raw_roc_rising_value
755b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_tilt_comp_raw_roc_falling_value
756b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_tilt_comp_raw_roc_rising_value
757b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_tilt_comp_raw_roc_falling_value
7588af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_raw_roc_rising_value
7598af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_raw_roc_falling_value
7608af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_raw_roc_rising_value
7618af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_raw_roc_falling_value
7628af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_raw_roc_rising_value
7638af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_raw_roc_falling_value
7648af2c75aSJonathan CameronKernelVersion:	2.6.37
7658af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
7668af2c75aSJonathan CameronDescription:
7678af2c75aSJonathan Cameron		Specifies the value of rate of change threshold that the
7688af2c75aSJonathan Cameron		device is comparing against for the events enabled by
7698af2c75aSJonathan Cameron		<type>[Y][_name]_roc[_rising|falling]_en.
7708af2c75aSJonathan Cameron		If separate attributes exist for the two directions,
7718af2c75aSJonathan Cameron		but direction is not specified for this attribute,
7728af2c75aSJonathan Cameron		then a single threshold value applies to both directions.
7738af2c75aSJonathan Cameron		The raw or input element of the name indicates whether the
7748af2c75aSJonathan Cameron		value is in raw device units or in processed units (as _raw
7758af2c75aSJonathan Cameron		and _input do on sysfs direct channel read attributes).
7768af2c75aSJonathan Cameron
7778af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_thresh_rising_period
7788af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_thresh_falling_period
7798af2c75aSJonathan Cameronhat:		/sys/.../events/in_accel_x_roc_rising_period
7808af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_roc_falling_period
7818af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_thresh_rising_period
7828af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_thresh_falling_period
7838af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_roc_rising_period
7848af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_roc_falling_period
7858af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_thresh_rising_period
7868af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_thresh_falling_period
7878af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_roc_rising_period
7888af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_roc_falling_period
7898af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_thresh_rising_period
7908af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_thresh_falling_period
7918af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_roc_rising_period
7928af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_roc_falling_period
7938af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_thresh_rising_period
7948af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_thresh_falling_period
7958af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_roc_rising_period
7968af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_roc_falling_period
7978af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_thresh_rising_period
7988af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_thresh_falling_period
7998af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_roc_rising_period
8008af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_roc_falling_period
8018af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_thresh_rising_period
8028af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_thresh_falling_period
8038af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_roc_rising_period
8048af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_roc_falling_period
8058af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_thresh_rising_period
8068af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_thresh_falling_period
8078af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_roc_rising_period
8088af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_roc_falling_period
8098af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_thresh_rising_period
8108af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_thresh_falling_period
8118af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_roc_rising_period
8128af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_roc_falling_period
813b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_thresh_rising_period
814b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_thresh_falling_period
815b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_roc_rising_period
816b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_roc_falling_period
817b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_thresh_rising_period
818b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_thresh_falling_period
819b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_roc_rising_period
820b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_roc_falling_period
821b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_tilt_comp_thresh_rising_period
822b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_tilt_comp_thresh_falling_period
823b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_tilt_comp_roc_rising_period
824b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_magnetic_tilt_comp_roc_falling_period
825b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_tilt_comp_thresh_rising_period
826b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_tilt_comp_thresh_falling_period
827b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_tilt_comp_roc_rising_period
828b531db84SReyad AttiyatWhat:		/sys/.../events/in_rot_from_north_true_tilt_comp_roc_falling_period
8298af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_thresh_rising_period
8308af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_thresh_falling_period
8318af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_roc_rising_period
8328af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_roc_falling_period
8338af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_thresh_rising_period
8348af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_thresh_falling_period
8358af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_roc_rising_period
8368af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_roc_falling_period
8378af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_thresh_rising_period
8388af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_thresh_falling_period
8398af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_roc_rising_period
8408af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_roc_falling_period
8418af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x&y&z_mag_falling_period
8428af2c75aSJonathan CameronWhat:		/sys/.../events/in_intensity0_thresh_period
8438af2c75aSJonathan CameronWhat:		/sys/.../events/in_proximity0_thresh_period
844*40cb7613SIrina TirdeaWhat:		/sys/.../events/in_activity_still_thresh_rising_period
845*40cb7613SIrina TirdeaWhat:		/sys/.../events/in_activity_still_thresh_falling_period
846*40cb7613SIrina TirdeaWhat:		/sys/.../events/in_activity_walking_thresh_rising_period
847*40cb7613SIrina TirdeaWhat:		/sys/.../events/in_activity_walking_thresh_falling_period
848*40cb7613SIrina TirdeaWhat:		/sys/.../events/in_activity_jogging_thresh_rising_period
849*40cb7613SIrina TirdeaWhat:		/sys/.../events/in_activity_jogging_thresh_falling_period
850*40cb7613SIrina TirdeaWhat:		/sys/.../events/in_activity_running_thresh_rising_period
851*40cb7613SIrina TirdeaWhat:		/sys/.../events/in_activity_running_thresh_falling_period
8528af2c75aSJonathan CameronKernelVersion:	2.6.37
8538af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
8548af2c75aSJonathan CameronDescription:
8558af2c75aSJonathan Cameron		Period of time (in seconds) for which the condition must be
8568af2c75aSJonathan Cameron		met before an event is generated. If direction is not
8578af2c75aSJonathan Cameron		specified then this period applies to both directions.
8588af2c75aSJonathan Cameron
85955aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_still_thresh_rising_en
86055aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_still_thresh_falling_en
86155aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_walking_thresh_rising_en
86255aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_walking_thresh_falling_en
86355aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_jogging_thresh_rising_en
86455aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_jogging_thresh_falling_en
86555aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_running_thresh_rising_en
86655aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_running_thresh_falling_en
86755aebeb9SDaniel BalutaKernelVersion:	3.19
86855aebeb9SDaniel BalutaContact:	linux-iio@vger.kernel.org
86955aebeb9SDaniel BalutaDescription:
87055aebeb9SDaniel Baluta		Enables or disables activitity events. Depending on direction
87155aebeb9SDaniel Baluta		an event is generated when sensor ENTERS or LEAVES a given state.
87255aebeb9SDaniel Baluta
87355aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_still_thresh_rising_value
87455aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_still_thresh_falling_value
87555aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_walking_thresh_rising_value
87655aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_walking_thresh_falling_value
87755aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_jogging_thresh_rising_value
87855aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_jogging_thresh_falling_value
87955aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_running_thresh_rising_value
88055aebeb9SDaniel BalutaWhat:		/sys/.../events/in_activity_running_thresh_falling_value
88155aebeb9SDaniel BalutaKernelVersion:	3.19
88255aebeb9SDaniel BalutaContact:	linux-iio@vger.kernel.org
88355aebeb9SDaniel BalutaDescription:
88455aebeb9SDaniel Baluta		Confidence value (in units as percentage) to be used
88555aebeb9SDaniel Baluta		for deciding when an event should be generated. E.g for
88655aebeb9SDaniel Baluta		running: If the confidence value reported by the sensor
88755aebeb9SDaniel Baluta		is greater than in_activity_running_thresh_rising_value
88855aebeb9SDaniel Baluta		then the sensor ENTERS running state. Conversely, if the
88955aebeb9SDaniel Baluta		confidence value reported by the sensor is lower than
89055aebeb9SDaniel Baluta		in_activity_running_thresh_falling_value then the sensor
89155aebeb9SDaniel Baluta		is LEAVING running state.
89255aebeb9SDaniel Baluta
8938af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_mag_en
8948af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_mag_rising_en
8958af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_mag_falling_en
8968af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_mag_en
8978af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_mag_rising_en
8988af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_mag_falling_en
8998af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_mag_en
9008af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_mag_rising_en
9018af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_mag_falling_en
9028af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_mag_en
9038af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_mag_rising_en
9048af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_mag_falling_en
9058af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x&y&z_mag_rising_en
9068af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x&y&z_mag_falling_en
9078af2c75aSJonathan CameronKernelVersion:	2.6.37
9088af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
9098af2c75aSJonathan CameronDescription:
9108af2c75aSJonathan Cameron		Similar to in_accel_x_thresh[_rising|_falling]_en, but here the
9118af2c75aSJonathan Cameron		magnitude of the channel is compared to the threshold, not its
9128af2c75aSJonathan Cameron		signed value.
9138af2c75aSJonathan Cameron
9148af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_raw_mag_value
9158af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_raw_mag_rising_value
9168af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_raw_mag_rising_value
9178af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_raw_mag_rising_value
9188af2c75aSJonathan CameronKernelVersion:	2.6.37
9198af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
9208af2c75aSJonathan CameronDescription:
9218af2c75aSJonathan Cameron		The value to which the magnitude of the channel is compared. If
9228af2c75aSJonathan Cameron		number or direction is not specified, applies to all channels of
9238af2c75aSJonathan Cameron		this type.
9248af2c75aSJonathan Cameron
92527be8423SIrina TirdeaWhat:		/sys/.../events/in_steps_change_en
92627be8423SIrina TirdeaKernelVersion:	3.20
927a88bfe78SIrina TirdeaContact:	linux-iio@vger.kernel.org
928a88bfe78SIrina TirdeaDescription:
92927be8423SIrina Tirdea		Event generated when channel passes a threshold on the absolute
93027be8423SIrina Tirdea		change in value. E.g. for steps: a step change event is
93127be8423SIrina Tirdea		generated each time the user takes N steps, where N is set using
93227be8423SIrina Tirdea		in_steps_change_value.
93327be8423SIrina Tirdea
93427be8423SIrina TirdeaWhat:		/sys/.../events/in_steps_change_value
93527be8423SIrina TirdeaKernelVersion:	3.20
93627be8423SIrina TirdeaContact:	linux-iio@vger.kernel.org
93727be8423SIrina TirdeaDescription:
93827be8423SIrina Tirdea		Specifies the value of change threshold that the
93927be8423SIrina Tirdea		device is comparing against for the events enabled by
94027be8423SIrina Tirdea		<type>[Y][_name]_roc[_rising|falling|]_en. E.g. for steps:
94127be8423SIrina Tirdea		if set to 3, a step change event will be generated every 3
94227be8423SIrina Tirdea		steps.
943a88bfe78SIrina Tirdea
9448af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/trigger/current_trigger
9458af2c75aSJonathan CameronKernelVersion:	2.6.35
9468af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
9478af2c75aSJonathan CameronDescription:
9488af2c75aSJonathan Cameron		The name of the trigger source being used, as per string given
9498af2c75aSJonathan Cameron		in /sys/class/iio/triggerY/name.
9508af2c75aSJonathan Cameron
9518af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/length
9528af2c75aSJonathan CameronKernelVersion:	2.6.35
9538af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
9548af2c75aSJonathan CameronDescription:
9558af2c75aSJonathan Cameron		Number of scans contained by the buffer.
9568af2c75aSJonathan Cameron
9578af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/bytes_per_datum
9588af2c75aSJonathan CameronKernelVersion:	2.6.37
9598af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
9608af2c75aSJonathan CameronDescription:
9618af2c75aSJonathan Cameron		Bytes per scan.  Due to alignment fun, the scan may be larger
9628af2c75aSJonathan Cameron		than implied directly by the scan_element parameters.
9638af2c75aSJonathan Cameron
9648af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/enable
9658af2c75aSJonathan CameronKernelVersion:	2.6.35
9668af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
9678af2c75aSJonathan CameronDescription:
9688af2c75aSJonathan Cameron		Actually start the buffer capture up.  Will start trigger
9698af2c75aSJonathan Cameron		if first device and appropriate.
9708af2c75aSJonathan Cameron
971ab52a958SAlexandre RelangeWhat:		/sys/bus/iio/devices/iio:deviceX/scan_elements
9728af2c75aSJonathan CameronKernelVersion:	2.6.37
9738af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
9748af2c75aSJonathan CameronDescription:
9758af2c75aSJonathan Cameron		Directory containing interfaces for elements that will be
9768af2c75aSJonathan Cameron		captured for a single triggered sample set in the buffer.
9778af2c75aSJonathan Cameron
978ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_x_en
979ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_y_en
980ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_z_en
981ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_x_en
982ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_y_en
983ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_z_en
984ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_x_en
985ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_y_en
986ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_z_en
987b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_en
988b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_en
989b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_tilt_comp_en
990b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_tilt_comp_en
991ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_timestamp_en
992ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_supply_en
993ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_en
994ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY-voltageZ_en
995ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_x_en
996ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_y_en
997ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_pressureY_en
998ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_pressure_en
999b4a2d475SSrinivas PandruvadaWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_quaternion_en
10008af2c75aSJonathan CameronKernelVersion:	2.6.37
10018af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
10028af2c75aSJonathan CameronDescription:
10038af2c75aSJonathan Cameron		Scan element control for triggered data capture.
10048af2c75aSJonathan Cameron
1005ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_type
1006ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_type
1007ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_type
1008ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_type
1009ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_type
1010ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_voltage_type
1011ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_supply_type
1012ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_timestamp_type
1013ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_pressureY_type
1014ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_pressure_type
1015b4a2d475SSrinivas PandruvadaWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_quaternion_type
10168af2c75aSJonathan CameronKernelVersion:	2.6.37
10178af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
10188af2c75aSJonathan CameronDescription:
10198af2c75aSJonathan Cameron		Description of the scan element data storage within the buffer
10208af2c75aSJonathan Cameron		and hence the form in which it is read from user-space.
10218af2c75aSJonathan Cameron		Form is [be|le]:[s|u]bits/storagebits[>>shift].
10228af2c75aSJonathan Cameron		be or le specifies big or little endian. s or u specifies if
10238af2c75aSJonathan Cameron		signed (2's complement) or unsigned. bits is the number of bits
10248af2c75aSJonathan Cameron		of data and storagebits is the space (after padding) that it
10258af2c75aSJonathan Cameron		occupies in the buffer. shift if specified, is the shift that
10268af2c75aSJonathan Cameron		needs to be applied prior to masking out unused bits. Some
10278af2c75aSJonathan Cameron		devices put their data in the middle of the transferred elements
10288af2c75aSJonathan Cameron		with additional information on both sides.  Note that some
10298af2c75aSJonathan Cameron		devices will have additional information in the unused bits
10308af2c75aSJonathan Cameron		so to get a clean value, the bits value must be used to mask
10318af2c75aSJonathan Cameron		the buffer output value appropriately.  The storagebits value
10328af2c75aSJonathan Cameron		also specifies the data alignment.  So s48/64>>2 will be a
10338af2c75aSJonathan Cameron		signed 48 bit integer stored in a 64 bit location aligned to
10348b417d78SPeter Meerwald		a 64 bit boundary. To obtain the clean value, shift right 2
10358af2c75aSJonathan Cameron		and apply a mask to zero the top 16 bits of the result.
10368af2c75aSJonathan Cameron		For other storage combinations this attribute will be extended
10378af2c75aSJonathan Cameron		appropriately.
10388af2c75aSJonathan Cameron
1039ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_type_available
10408af2c75aSJonathan CameronKernelVersion:	2.6.37
10418af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
10428af2c75aSJonathan CameronDescription:
10438af2c75aSJonathan Cameron		If the type parameter can take one of a small set of values,
10448af2c75aSJonathan Cameron		this attribute lists them.
10458af2c75aSJonathan Cameron
1046ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_index
1047ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_supply_index
1048ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_x_index
1049ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_y_index
1050ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_z_index
1051ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_x_index
1052ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_y_index
1053ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_z_index
1054ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_x_index
1055ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_y_index
1056ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_z_index
1057b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_index
1058b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_index
1059b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_tilt_comp_index
1060b531db84SReyad AttiyatWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_tilt_comp_index
1061ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_x_index
1062ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_y_index
1063ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_timestamp_index
1064ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_pressureY_index
1065ab52a958SAlexandre RelangeWhat:		/sys/.../iio:deviceX/scan_elements/in_pressure_index
1066b4a2d475SSrinivas PandruvadaWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_quaternion_index
10678af2c75aSJonathan CameronKernelVersion:	2.6.37
10688af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
10698af2c75aSJonathan CameronDescription:
10708af2c75aSJonathan Cameron		A single positive integer specifying the position of this
10718af2c75aSJonathan Cameron		scan element in the buffer. Note these are not dependent on
10728af2c75aSJonathan Cameron		what is enabled and may not be contiguous. Thus for user-space
10738af2c75aSJonathan Cameron		to establish the full layout these must be used in conjunction
10748af2c75aSJonathan Cameron		with all _en attributes to establish which channels are present,
10758af2c75aSJonathan Cameron		and the relevant _type attributes to establish the data storage
10768af2c75aSJonathan Cameron		format.
10778af2c75aSJonathan Cameron
107855aebeb9SDaniel BalutaWhat:		/sys/.../iio:deviceX/in_activity_still_input
107955aebeb9SDaniel BalutaWhat:		/sys/.../iio:deviceX/in_activity_walking_input
108055aebeb9SDaniel BalutaWhat:		/sys/.../iio:deviceX/in_activity_jogging_input
108155aebeb9SDaniel BalutaWhat:		/sys/.../iio:deviceX/in_activity_running_input
108255aebeb9SDaniel BalutaKernelVersion:	3.19
108355aebeb9SDaniel BalutaContact:	linux-iio@vger.kernel.org
108455aebeb9SDaniel BalutaDescription:
108555aebeb9SDaniel Baluta		This attribute is used to read the confidence for an activity
108655aebeb9SDaniel Baluta		expressed in units as percentage.
108755aebeb9SDaniel Baluta
10888af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/in_anglvel_z_quadrature_correction_raw
10898af2c75aSJonathan CameronKernelVersion:	2.6.38
10908af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
10918af2c75aSJonathan CameronDescription:
10928af2c75aSJonathan Cameron		This attribute is used to read the amount of quadrature error
10938af2c75aSJonathan Cameron		present in the device at a given time.
1094f7883d12SPeter Meerwald
109563fa65d3SOleksandr KravchenkoWhat:		/sys/.../iio:deviceX/in_accelX_power_mode
109663fa65d3SOleksandr KravchenkoKernelVersion:	3.11
109763fa65d3SOleksandr KravchenkoContact:	linux-iio@vger.kernel.org
109863fa65d3SOleksandr KravchenkoDescription:
109963fa65d3SOleksandr Kravchenko		Specifies the chip power mode.
110063fa65d3SOleksandr Kravchenko		low_noise: reduce noise level from ADC,
110163fa65d3SOleksandr Kravchenko		low_power: enable low current consumption.
110263fa65d3SOleksandr Kravchenko		For a list of available output power modes read
110363fa65d3SOleksandr Kravchenko		in_accel_power_mode_available.
110463fa65d3SOleksandr Kravchenko
110572c66644SIrina TirdeaWhat:		/sys/.../iio:deviceX/in_energy_input
110672c66644SIrina TirdeaWhat:		/sys/.../iio:deviceX/in_energy_raw
110772c66644SIrina TirdeaKernelVersion:	3.20
110872c66644SIrina TirdeaContact:	linux-iio@vger.kernel.org
110972c66644SIrina TirdeaDescription:
111072c66644SIrina Tirdea		This attribute is used to read the energy value reported by the
111172c66644SIrina Tirdea		device (e.g.: human activity sensors report energy burnt by the
111272c66644SIrina Tirdea		user). Units after application of scale are Joules.
111372c66644SIrina Tirdea
1114cc3c9eecSIrina TirdeaWhat:		/sys/.../iio:deviceX/in_distance_input
1115cc3c9eecSIrina TirdeaWhat:		/sys/.../iio:deviceX/in_distance_raw
1116cc3c9eecSIrina TirdeaKernelVersion:	3.20
1117cc3c9eecSIrina TirdeaContact:	linux-iio@vger.kernel.org
1118cc3c9eecSIrina TirdeaDescription:
1119cc3c9eecSIrina Tirdea		This attribute is used to read the distance covered by the user
1120cc3c9eecSIrina Tirdea		since the last reboot while activated. Units after application
1121cc3c9eecSIrina Tirdea		of scale are meters.
1122cc3c9eecSIrina Tirdea
1123f7883d12SPeter MeerwaldWhat:		/sys/bus/iio/devices/iio:deviceX/store_eeprom
1124f7883d12SPeter MeerwaldKernelVersion:	3.4.0
1125f7883d12SPeter MeerwaldContact:	linux-iio@vger.kernel.org
1126f7883d12SPeter MeerwaldDescription:
1127f7883d12SPeter Meerwald		Writing '1' stores the current device configuration into
1128f7883d12SPeter Meerwald		on-chip EEPROM. After power-up or chip reset the device will
1129f7883d12SPeter Meerwald		automatically load the saved configuration.
1130899d90bdSPeter Meerwald
11316c0690ecSPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_proximity_raw
11326c0690ecSPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_proximity_input
11336c0690ecSPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_proximityY_raw
11346c0690ecSPeter MeerwaldKernelVersion:	3.4
11356c0690ecSPeter MeerwaldContact:	linux-iio@vger.kernel.org
11366c0690ecSPeter MeerwaldDescription:
11376c0690ecSPeter Meerwald		Proximity measurement indicating that some
11386c0690ecSPeter Meerwald		object is near the sensor, usually be observing
11396c0690ecSPeter Meerwald		reflectivity of infrared or ultrasound emitted.
11406c0690ecSPeter Meerwald		Often these sensors are unit less and as such conversion
11416c0690ecSPeter Meerwald		to SI units is not possible.  Where it is, the units should
1142614e8842SVlad Dogaru		be meters.  If such a conversion is not possible, the reported
1143614e8842SVlad Dogaru		values should behave in the same way as a distance, i.e. lower
1144614e8842SVlad Dogaru		values indicate something is closer to the sensor.
11456c0690ecSPeter Meerwald
1146994265f1SPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_illuminanceY_input
1147994265f1SPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_illuminanceY_raw
1148994265f1SPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_illuminanceY_mean_raw
1149994265f1SPeter MeerwaldKernelVersion:	3.4
1150994265f1SPeter MeerwaldContact:	linux-iio@vger.kernel.org
1151994265f1SPeter MeerwaldDescription:
1152994265f1SPeter Meerwald		Illuminance measurement, units after application of scale
1153994265f1SPeter Meerwald		and offset are lux.
1154994265f1SPeter Meerwald
1155065b055dSPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_intensityY_raw
1156065b055dSPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_intensityY_ir_raw
1157065b055dSPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_intensityY_both_raw
1158065b055dSPeter MeerwaldKernelVersion:	3.4
1159065b055dSPeter MeerwaldContact:	linux-iio@vger.kernel.org
1160065b055dSPeter MeerwaldDescription:
1161065b055dSPeter Meerwald		Unit-less light intensity. Modifiers both and ir indicate
1162065b055dSPeter Meerwald		that measurements contains visible and infrared light
1163065b055dSPeter Meerwald		components or just infrared light, respectively.
1164065b055dSPeter Meerwald
1165899d90bdSPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_intensity_red_integration_time
1166899d90bdSPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_intensity_green_integration_time
1167899d90bdSPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_intensity_blue_integration_time
1168899d90bdSPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_intensity_clear_integration_time
1169899d90bdSPeter MeerwaldWhat:		/sys/.../iio:deviceX/in_illuminance_integration_time
1170899d90bdSPeter MeerwaldKernelVersion:	3.12
1171899d90bdSPeter MeerwaldContact:	linux-iio@vger.kernel.org
1172899d90bdSPeter MeerwaldDescription:
1173899d90bdSPeter Meerwald		This attribute is used to get/set the integration time in
1174899d90bdSPeter Meerwald		seconds.
1175b4a2d475SSrinivas Pandruvada
1176*40cb7613SIrina TirdeaWhat:		/sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time
1177*40cb7613SIrina TirdeaKernelVersion:	3.20
1178*40cb7613SIrina TirdeaContact:	linux-iio@vger.kernel.org
1179*40cb7613SIrina TirdeaDescription:
1180*40cb7613SIrina Tirdea		Number of seconds in which to compute speed.
1181*40cb7613SIrina Tirdea
1182b4a2d475SSrinivas PandruvadaWhat:		/sys/bus/iio/devices/iio:deviceX/in_rot_quaternion_raw
1183b4a2d475SSrinivas PandruvadaKernelVersion:	3.15
1184b4a2d475SSrinivas PandruvadaContact:	linux-iio@vger.kernel.org
1185b4a2d475SSrinivas PandruvadaDescription:
1186b4a2d475SSrinivas Pandruvada		Raw value of quaternion components using a format
1187b4a2d475SSrinivas Pandruvada		x y z w. Here x, y, and z component represents the axis about
1188b4a2d475SSrinivas Pandruvada		which a rotation will occur and w component represents the
1189b4a2d475SSrinivas Pandruvada		amount of rotation.
1190b531db84SReyad Attiyat
1191b531db84SReyad AttiyatWhat:		/sys/bus/iio/devices/iio:deviceX/in_rot_from_north_magnetic_tilt_comp_raw
1192b531db84SReyad AttiyatWhat:		/sys/bus/iio/devices/iio:deviceX/in_rot_from_north_true_tilt_comp_raw
1193b531db84SReyad AttiyatWhat:		/sys/bus/iio/devices/iio:deviceX/in_rot_from_north_magnetic_raw
1194b531db84SReyad AttiyatWhat:		/sys/bus/iio/devices/iio:deviceX/in_rot_from_north_true_raw
1195b531db84SReyad AttiyatKernelVersion:	3.15
1196b531db84SReyad AttiyatContact:	linux-iio@vger.kernel.org
1197b531db84SReyad AttiyatDescription:
1198b531db84SReyad Attiyat		Raw value of rotation from true/magnetic north measured with
1199b531db84SReyad Attiyat		or without compensation from tilt sensors.
1200c20d4dffSJacob Pan
1201c20d4dffSJacob PanWhat:		/sys/bus/iio/devices/iio:deviceX/in_currentX_raw
1202c20d4dffSJacob PanKernelVersion:	3.18
1203c20d4dffSJacob PanContact:	linux-iio@vger.kernel.org
1204c20d4dffSJacob PanDescription:
1205c20d4dffSJacob Pan		Raw current measurement from channel X. Units are in milliamps
1206c20d4dffSJacob Pan		after application of scale and offset. If no offset or scale is
1207c20d4dffSJacob Pan		present, output should be considered as processed with the
1208c20d4dffSJacob Pan		unit in milliamps.
1209a88bfe78SIrina Tirdea
1210*40cb7613SIrina TirdeaWhat:		/sys/.../iio:deviceX/in_energy_en
1211*40cb7613SIrina TirdeaWhat:		/sys/.../iio:deviceX/in_distance_en
1212*40cb7613SIrina TirdeaWhat:		/sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_en
1213a88bfe78SIrina TirdeaWhat:		/sys/.../iio:deviceX/in_steps_en
1214a88bfe78SIrina TirdeaKernelVersion:	3.19
1215a88bfe78SIrina TirdeaContact:	linux-iio@vger.kernel.org
1216a88bfe78SIrina TirdeaDescription:
1217*40cb7613SIrina Tirdea		Activates a device feature that runs in firmware/hardware.
1218*40cb7613SIrina Tirdea		E.g. for steps: the pedometer saves power while not used;
1219*40cb7613SIrina Tirdea		when activated, it will count the steps taken by the user in
1220*40cb7613SIrina Tirdea		firmware and export them through in_steps_input.
1221a88bfe78SIrina Tirdea
1222a88bfe78SIrina TirdeaWhat:		/sys/.../iio:deviceX/in_steps_input
1223a88bfe78SIrina TirdeaKernelVersion:	3.19
1224a88bfe78SIrina TirdeaContact:	linux-iio@vger.kernel.org
1225a88bfe78SIrina TirdeaDescription:
1226a88bfe78SIrina Tirdea		This attribute is used to read the number of steps taken by the user
1227a88bfe78SIrina Tirdea		since the last reboot while activated.
12285a1a9329SIrina Tirdea
12295a1a9329SIrina TirdeaWhat:		/sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_input
12305a1a9329SIrina TirdeaWhat:		/sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_raw
12315a1a9329SIrina TirdeaKernelVersion:	3.19
12325a1a9329SIrina TirdeaContact:	linux-iio@vger.kernel.org
12335a1a9329SIrina TirdeaDescription:
12345a1a9329SIrina Tirdea		This attribute is used to read the current speed value of the
12355a1a9329SIrina Tirdea		user (which is the norm or magnitude of the velocity vector).
12365a1a9329SIrina Tirdea		Units after application of scale are m/s.
12372f0ecb7cSIrina Tirdea
12382f0ecb7cSIrina TirdeaWhat:		/sys/.../iio:deviceX/in_steps_debounce_count
12392f0ecb7cSIrina TirdeaKernelVersion:	3.20
12402f0ecb7cSIrina TirdeaContact:	linux-iio@vger.kernel.org
12412f0ecb7cSIrina TirdeaDescription:
12422f0ecb7cSIrina Tirdea		Specifies the number of steps that must occur within
12432f0ecb7cSIrina Tirdea		in_steps_filter_debounce_time for the pedometer to decide the
12442f0ecb7cSIrina Tirdea		consumer is making steps.
12452f0ecb7cSIrina Tirdea
12462f0ecb7cSIrina TirdeaWhat:		/sys/.../iio:deviceX/in_steps_debounce_time
12472f0ecb7cSIrina TirdeaKernelVersion:	3.20
12482f0ecb7cSIrina TirdeaContact:	linux-iio@vger.kernel.org
12492f0ecb7cSIrina TirdeaDescription:
12502f0ecb7cSIrina Tirdea		Specifies number of seconds in which we compute the steps
12512f0ecb7cSIrina Tirdea		that occur in order to decide if the consumer is making steps.
1252