xref: /linux/Documentation/ABI/testing/sysfs-bus-iio (revision 8af2c75a328355c23d68d3f8651ad52af3c7979d)
1*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX
2*8af2c75aSJonathan CameronKernelVersion:	2.6.35
3*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
4*8af2c75aSJonathan CameronDescription:
5*8af2c75aSJonathan Cameron		Hardware chip or device accessed by one communication port.
6*8af2c75aSJonathan Cameron		Corresponds to a grouping of sensor channels. X is the IIO
7*8af2c75aSJonathan Cameron		index of the device.
8*8af2c75aSJonathan Cameron
9*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/triggerX
10*8af2c75aSJonathan CameronKernelVersion:	2.6.35
11*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
12*8af2c75aSJonathan CameronDescription:
13*8af2c75aSJonathan Cameron		An event driven driver of data capture to an in kernel buffer.
14*8af2c75aSJonathan Cameron		May be provided by a device driver that also has an IIO device
15*8af2c75aSJonathan Cameron		based on hardware generated events (e.g. data ready) or
16*8af2c75aSJonathan Cameron		provided by a separate driver for other hardware (e.g.
17*8af2c75aSJonathan Cameron		periodic timer, GPIO or high resolution timer).
18*8af2c75aSJonathan Cameron		Contains trigger type specific elements. These do not
19*8af2c75aSJonathan Cameron		generalize well and hence are not documented in this file.
20*8af2c75aSJonathan Cameron		X is the IIO index of the trigger.
21*8af2c75aSJonathan Cameron
22*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/buffer
23*8af2c75aSJonathan CameronKernelVersion:	2.6.35
24*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
25*8af2c75aSJonathan CameronDescription:
26*8af2c75aSJonathan Cameron		Directory of attributes relating to the buffer for the device.
27*8af2c75aSJonathan Cameron
28*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/name
29*8af2c75aSJonathan CameronKernelVersion:	2.6.35
30*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
31*8af2c75aSJonathan CameronDescription:
32*8af2c75aSJonathan Cameron		Description of the physical chip / device for device X.
33*8af2c75aSJonathan Cameron		Typically a part number.
34*8af2c75aSJonathan Cameron
35*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/sampling_frequency
36*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/sampling_frequency
37*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/triggerX/sampling_frequency
38*8af2c75aSJonathan CameronKernelVersion:	2.6.35
39*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
40*8af2c75aSJonathan CameronDescription:
41*8af2c75aSJonathan Cameron		Some devices have internal clocks.  This parameter sets the
42*8af2c75aSJonathan Cameron		resulting sampling frequency.  In many devices this
43*8af2c75aSJonathan Cameron		parameter has an effect on input filters etc rather than
44*8af2c75aSJonathan Cameron		simply controlling when the input is sampled.  As this
45*8af2c75aSJonathan Cameron		effects datardy triggers, hardware buffers and the sysfs
46*8af2c75aSJonathan Cameron		direct access interfaces, it may be found in any of the
47*8af2c75aSJonathan Cameron		relevant directories.  If it effects all of the above
48*8af2c75aSJonathan Cameron		then it is to be found in the base device directory.
49*8af2c75aSJonathan Cameron
50*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/sampling_frequency_available
51*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/buffer/sampling_frequency_available
52*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/triggerX/sampling_frequency_available
53*8af2c75aSJonathan CameronKernelVersion:	2.6.35
54*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
55*8af2c75aSJonathan CameronDescription:
56*8af2c75aSJonathan Cameron		When the internal sampling clock can only take a small
57*8af2c75aSJonathan Cameron		discrete set of values, this file lists those available.
58*8af2c75aSJonathan Cameron
59*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/oversampling_ratio
60*8af2c75aSJonathan CameronKernelVersion:	2.6.38
61*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
62*8af2c75aSJonathan CameronDescription:
63*8af2c75aSJonathan Cameron		Hardware dependent ADC oversampling. Controls the sampling ratio
64*8af2c75aSJonathan Cameron		of the digital filter if available.
65*8af2c75aSJonathan Cameron
66*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/oversampling_ratio_available
67*8af2c75aSJonathan CameronKernelVersion:	2.6.38
68*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
69*8af2c75aSJonathan CameronDescription:
70*8af2c75aSJonathan Cameron		Hardware dependent values supported by the oversampling filter.
71*8af2c75aSJonathan Cameron
72*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_raw
73*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_raw
74*8af2c75aSJonathan CameronKernelVersion:	2.6.35
75*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
76*8af2c75aSJonathan CameronDescription:
77*8af2c75aSJonathan Cameron		Raw (unscaled no bias removal etc) voltage measurement from
78*8af2c75aSJonathan Cameron		channel Y. In special cases where the channel does not
79*8af2c75aSJonathan Cameron		correspond to externally available input one of the named
80*8af2c75aSJonathan Cameron		versions may be used. The number must always be specified and
81*8af2c75aSJonathan Cameron		unique to allow association with event codes. Units after
82*8af2c75aSJonathan Cameron		application of scale and offset are microvolts.
83*8af2c75aSJonathan Cameron
84*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY-voltageZ_raw
85*8af2c75aSJonathan CameronKernelVersion:	2.6.35
86*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
87*8af2c75aSJonathan CameronDescription:
88*8af2c75aSJonathan Cameron		Raw (unscaled) differential voltage measurement equivalent to
89*8af2c75aSJonathan Cameron		channel Y - channel Z where these channel numbers apply to the
90*8af2c75aSJonathan Cameron		physically equivalent inputs when non differential readings are
91*8af2c75aSJonathan Cameron		separately available. In differential only parts, then all that
92*8af2c75aSJonathan Cameron		is required is a consistent labeling.  Units after application
93*8af2c75aSJonathan Cameron		of scale and offset are microvolts.
94*8af2c75aSJonathan Cameron
95*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_capacitanceY_raw
96*8af2c75aSJonathan CameronKernelVersion:	3.2
97*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
98*8af2c75aSJonathan CameronDescription:
99*8af2c75aSJonathan Cameron		Raw capacitance measurement from channel Y. Units after
100*8af2c75aSJonathan Cameron		application of scale and offset are nanofarads.
101*8af2c75aSJonathan Cameron
102*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/in_capacitanceY-in_capacitanceZ_raw
103*8af2c75aSJonathan CameronKernelVersion:	3.2
104*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
105*8af2c75aSJonathan CameronDescription:
106*8af2c75aSJonathan Cameron		Raw differential capacitance measurement equivalent to
107*8af2c75aSJonathan Cameron		channel Y - channel Z where these channel numbers apply to the
108*8af2c75aSJonathan Cameron		physically equivalent inputs when non differential readings are
109*8af2c75aSJonathan Cameron		separately available. In differential only parts, then all that
110*8af2c75aSJonathan Cameron		is required is a consistent labeling.  Units after application
111*8af2c75aSJonathan Cameron		of scale and offset are nanofarads.
112*8af2c75aSJonathan Cameron
113*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_temp_raw
114*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_tempX_raw
115*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_temp_x_raw
116*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_temp_y_raw
117*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_temp_z_raw
118*8af2c75aSJonathan CameronKernelVersion:	2.6.35
119*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
120*8af2c75aSJonathan CameronDescription:
121*8af2c75aSJonathan Cameron		Raw (unscaled no bias removal etc) temperature measurement.
122*8af2c75aSJonathan Cameron		If an axis is specified it generally means that the temperature
123*8af2c75aSJonathan Cameron		sensor is associated with one part of a compound device (e.g.
124*8af2c75aSJonathan Cameron		a gyroscope axis). Units after application of scale and offset
125*8af2c75aSJonathan Cameron		are milli degrees Celsuis.
126*8af2c75aSJonathan Cameron
127*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_tempX_input
128*8af2c75aSJonathan CameronKernelVersion:	2.6.38
129*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
130*8af2c75aSJonathan CameronDescription:
131*8af2c75aSJonathan Cameron		Scaled temperature measurement in milli degrees Celsius.
132*8af2c75aSJonathan Cameron
133*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_x_raw
134*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_y_raw
135*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_z_raw
136*8af2c75aSJonathan CameronKernelVersion:	2.6.35
137*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
138*8af2c75aSJonathan CameronDescription:
139*8af2c75aSJonathan Cameron		Acceleration in direction x, y or z (may be arbitrarily assigned
140*8af2c75aSJonathan Cameron		but should match other such assignments on device).
141*8af2c75aSJonathan Cameron		Has all of the equivalent parameters as per voltageY. Units
142*8af2c75aSJonathan Cameron		after application of scale and offset are m/s^2.
143*8af2c75aSJonathan Cameron
144*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_x_raw
145*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_y_raw
146*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_z_raw
147*8af2c75aSJonathan CameronKernelVersion:	2.6.35
148*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
149*8af2c75aSJonathan CameronDescription:
150*8af2c75aSJonathan Cameron		Angular velocity about axis x, y or z (may be arbitrarily
151*8af2c75aSJonathan Cameron		assigned) Data converted by application of offset then scale to
152*8af2c75aSJonathan Cameron		radians per second. Has all the equivalent parameters as
153*8af2c75aSJonathan Cameron		per voltageY. Units after application of scale and offset are
154*8af2c75aSJonathan Cameron		radians per second.
155*8af2c75aSJonathan Cameron
156*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_incli_x_raw
157*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_incli_y_raw
158*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_incli_z_raw
159*8af2c75aSJonathan CameronKernelVersion:	2.6.35
160*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
161*8af2c75aSJonathan CameronDescription:
162*8af2c75aSJonathan Cameron		Inclination raw reading about axis x, y or z (may be
163*8af2c75aSJonathan Cameron		arbitrarily assigned). Data converted by application of offset
164*8af2c75aSJonathan Cameron		and scale to Degrees.
165*8af2c75aSJonathan Cameron
166*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_x_raw
167*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_y_raw
168*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_z_raw
169*8af2c75aSJonathan CameronKernelVersion:	2.6.35
170*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
171*8af2c75aSJonathan CameronDescription:
172*8af2c75aSJonathan Cameron		Magnetic field along axis x, y or z (may be arbitrarily
173*8af2c75aSJonathan Cameron		assigned).  Data converted by application of offset
174*8af2c75aSJonathan Cameron		then scale to Gauss.
175*8af2c75aSJonathan Cameron
176*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_x_peak_raw
177*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_y_peak_raw
178*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_z_peak_raw
179*8af2c75aSJonathan CameronKernelVersion:	2.6.36
180*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
181*8af2c75aSJonathan CameronDescription:
182*8af2c75aSJonathan Cameron		Highest value since some reset condition.  These
183*8af2c75aSJonathan Cameron		attributes allow access to this and are otherwise
184*8af2c75aSJonathan Cameron		the direct equivalent of the <type>Y[_name]_raw attributes.
185*8af2c75aSJonathan Cameron
186*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_xyz_squared_peak_raw
187*8af2c75aSJonathan CameronKernelVersion:	2.6.36
188*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
189*8af2c75aSJonathan CameronDescription:
190*8af2c75aSJonathan Cameron		A computed peak value based on the sum squared magnitude of
191*8af2c75aSJonathan Cameron		the underlying value in the specified directions.
192*8af2c75aSJonathan Cameron
193*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_offset
194*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_x_offset
195*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_y_offset
196*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_z_offset
197*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_offset
198*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltage_offset
199*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_tempY_offset
200*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_temp_offset
201*8af2c75aSJonathan CameronKernelVersion:	2.6.35
202*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
203*8af2c75aSJonathan CameronDescription:
204*8af2c75aSJonathan Cameron		If known for a device, offset to be added to <type>[Y]_raw prior
205*8af2c75aSJonathan Cameron		to scaling by <type>[Y]_scale in order to obtain value in the
206*8af2c75aSJonathan Cameron		<type> units as specified in <type>[y]_raw documentation.
207*8af2c75aSJonathan Cameron		Not present if the offset is always 0 or unknown. If Y or
208*8af2c75aSJonathan Cameron		axis <x|y|z> is not present, then the offset applies to all
209*8af2c75aSJonathan Cameron		in channels of <type>.
210*8af2c75aSJonathan Cameron		May be writable if a variable offset can be applied on the
211*8af2c75aSJonathan Cameron		device. Note that this is different to calibbias which
212*8af2c75aSJonathan Cameron		is for devices (or drivers) that apply offsets to compensate
213*8af2c75aSJonathan Cameron		for variation between different instances of the part, typically
214*8af2c75aSJonathan Cameron		adjusted by using some hardware supported calibration procedure.
215*8af2c75aSJonathan Cameron		Calibbias is applied internally, offset is applied in userspace
216*8af2c75aSJonathan Cameron		to the _raw output.
217*8af2c75aSJonathan Cameron
218*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_scale
219*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_scale
220*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltage_scale
221*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltageY_scale
222*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_scale
223*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_peak_scale
224*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_scale
225*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_scale
226*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_x_scale
227*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_y_scale
228*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_magn_z_scale
229*8af2c75aSJonathan CameronKernelVersion:	2.6.35
230*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
231*8af2c75aSJonathan CameronDescription:
232*8af2c75aSJonathan Cameron		If known for a device, scale to be applied to <type>Y[_name]_raw
233*8af2c75aSJonathan Cameron		post addition of <type>[Y][_name]_offset in order to obtain the
234*8af2c75aSJonathan Cameron		measured value in <type> units as specified in
235*8af2c75aSJonathan Cameron		<type>[Y][_name]_raw documentation.  If shared across all in
236*8af2c75aSJonathan Cameron		channels then Y and <x|y|z> are not present and the value is
237*8af2c75aSJonathan Cameron		called <type>[Y][_name]_scale. The peak modifier means this
238*8af2c75aSJonathan Cameron		value is applied to <type>Y[_name]_peak_raw values.
239*8af2c75aSJonathan Cameron
240*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_x_calibbias
241*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_y_calibbias
242*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_z_calibbias
243*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibbias
244*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibbias
245*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibbias
246*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibbias
247*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calibbias
248*8af2c75aSJonathan CameronKernelVersion:	2.6.35
249*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
250*8af2c75aSJonathan CameronDescription:
251*8af2c75aSJonathan Cameron		Hardware applied calibration offset. (assumed to fix production
252*8af2c75aSJonathan Cameron		inaccuracies).
253*8af2c75aSJonathan Cameron
254*8af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_voltageY_calibscale
255*8af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_calibscale
256*8af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_voltage_calibscale
257*8af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_accel_x_calibscale
258*8af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_accel_y_calibscale
259*8af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_accel_z_calibscale
260*8af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibscale
261*8af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibscale
262*8af2c75aSJonathan CameronWhat		/sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibscale
263*8af2c75aSJonathan Cameronwhat		/sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale
264*8af2c75aSJonathan Cameronwhat		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale
265*8af2c75aSJonathan CameronKernelVersion:	2.6.35
266*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
267*8af2c75aSJonathan CameronDescription:
268*8af2c75aSJonathan Cameron		Hardware applied calibration scale factor. (assumed to fix
269*8af2c75aSJonathan Cameron		production inaccuracies).  If shared across all channels,
270*8af2c75aSJonathan Cameron		<type>_calibscale is used.
271*8af2c75aSJonathan Cameron
272*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/in_accel_scale_available
273*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/in_voltageX_scale_available
274*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/in_voltage-voltage_scale_available
275*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/out_voltageX_scale_available
276*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/in_capacitance_scale_available
277*8af2c75aSJonathan CameronKernelVersion:	2.635
278*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
279*8af2c75aSJonathan CameronDescription:
280*8af2c75aSJonathan Cameron		If a discrete set of scale values are available, they
281*8af2c75aSJonathan Cameron		are listed in this attribute.
282*8af2c75aSJonathan Cameron
283*8af2c75aSJonathan CameronWhat:		/sys/.../in_accel_filter_low_pass_3db_frequency
284*8af2c75aSJonathan CameronWhat:		/sys/.../in_magn_filter_low_pass_3db_frequency
285*8af2c75aSJonathan CameronWhat:		/sys/.../in_anglvel_filter_low_pass_3db_frequency
286*8af2c75aSJonathan CameronKernelVersion:	3.2
287*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
288*8af2c75aSJonathan CameronDescription:
289*8af2c75aSJonathan Cameron		If a known or controllable low pass filter is applied
290*8af2c75aSJonathan Cameron		to the underlying data channel, then this parameter
291*8af2c75aSJonathan Cameron		gives the 3dB frequency of the filter in Hz.
292*8af2c75aSJonathan Cameron
293*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltageY_raw
294*8af2c75aSJonathan CameronKernelVersion:	2.6.37
295*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
296*8af2c75aSJonathan CameronDescription:
297*8af2c75aSJonathan Cameron		Raw (unscaled, no bias etc.) output voltage for
298*8af2c75aSJonathan Cameron		channel Y.  The number must always be specified and
299*8af2c75aSJonathan Cameron		unique if the output corresponds to a single channel.
300*8af2c75aSJonathan Cameron
301*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltageY&Z_raw
302*8af2c75aSJonathan CameronKernelVersion:	2.6.37
303*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
304*8af2c75aSJonathan CameronDescription:
305*8af2c75aSJonathan Cameron		Raw (unscaled, no bias etc.) output voltage for an aggregate of
306*8af2c75aSJonathan Cameron		channel Y, channel Z, etc.  This interface is available in cases
307*8af2c75aSJonathan Cameron		where a single output sets the value for multiple channels
308*8af2c75aSJonathan Cameron		simultaneously.
309*8af2c75aSJonathan Cameron
310*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown_mode
311*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown_mode
312*8af2c75aSJonathan CameronKernelVersion:	2.6.38
313*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
314*8af2c75aSJonathan CameronDescription:
315*8af2c75aSJonathan Cameron		Specifies the output powerdown mode.
316*8af2c75aSJonathan Cameron		DAC output stage is disconnected from the amplifier and
317*8af2c75aSJonathan Cameron		1kohm_to_gnd: connected to ground via an 1kOhm resistor
318*8af2c75aSJonathan Cameron		100kohm_to_gnd: connected to ground via an 100kOhm resistor
319*8af2c75aSJonathan Cameron		three_state: left floating
320*8af2c75aSJonathan Cameron		For a list of available output power down options read
321*8af2c75aSJonathan Cameron		outX_powerdown_mode_available. If Y is not present the
322*8af2c75aSJonathan Cameron		mode is shared across all outputs.
323*8af2c75aSJonathan Cameron
324*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/out_votlageY_powerdown_mode_available
325*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/out_voltage_powerdown_mode_available
326*8af2c75aSJonathan CameronKernelVersion:	2.6.38
327*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
328*8af2c75aSJonathan CameronDescription:
329*8af2c75aSJonathan Cameron		Lists all available output power down modes.
330*8af2c75aSJonathan Cameron		If Y is not present the mode is shared across all outputs.
331*8af2c75aSJonathan Cameron
332*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown
333*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown
334*8af2c75aSJonathan CameronKernelVersion:	2.6.38
335*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
336*8af2c75aSJonathan CameronDescription:
337*8af2c75aSJonathan Cameron		Writing 1 causes output Y to enter the power down mode specified
338*8af2c75aSJonathan Cameron		by the corresponding outY_powerdown_mode. Clearing returns to
339*8af2c75aSJonathan Cameron		normal operation. Y may be suppressed if all outputs are
340*8af2c75aSJonathan Cameron		controlled together.
341*8af2c75aSJonathan Cameron
342*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/events
343*8af2c75aSJonathan CameronKernelVersion:	2.6.35
344*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
345*8af2c75aSJonathan CameronDescription:
346*8af2c75aSJonathan Cameron		Configuration of which hardware generated events are passed up
347*8af2c75aSJonathan Cameron		to user-space.
348*8af2c75aSJonathan Cameron
349*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_thresh_rising_en
350*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_thresh_falling_en
351*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_thresh_rising_en
352*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_thresh_falling_en
353*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_thresh_rising_en
354*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_thresh_falling_en
355*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_x_thresh_rising_en
356*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_x_thresh_falling_en
357*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_y_thresh_rising_en
358*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_y_thresh_falling_en
359*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_z_thresh_rising_en
360*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_z_thresh_falling_en
361*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_x_thresh_rising_en
362*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_x_thresh_falling_en
363*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_y_thresh_rising_en
364*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_y_thresh_falling_en
365*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_z_thresh_rising_en
366*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_z_thresh_falling_en
367*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_supply_thresh_rising_en
368*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_supply_thresh_falling_en
369*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_thresh_rising_en
370*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_thresh_falling_en
371*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_tempY_thresh_rising_en
372*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_tempY_thresh_falling_en
373*8af2c75aSJonathan CameronKernelVersion:	2.6.37
374*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
375*8af2c75aSJonathan CameronDescription:
376*8af2c75aSJonathan Cameron		Event generated when channel passes a threshold in the specified
377*8af2c75aSJonathan Cameron		(_rising|_falling) direction. If the direction is not specified,
378*8af2c75aSJonathan Cameron		then either the device will report an event which ever direction
379*8af2c75aSJonathan Cameron		a single threshold value is passed in (e.g.
380*8af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_thresh_value) or
381*8af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_thresh_rising_value and
382*8af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_thresh_falling_value may take
383*8af2c75aSJonathan Cameron		different values, but the device can only enable both thresholds
384*8af2c75aSJonathan Cameron		or neither.
385*8af2c75aSJonathan Cameron		Note the driver will assume the last p events requested are
386*8af2c75aSJonathan Cameron		to be enabled where p is however many it supports (which may
387*8af2c75aSJonathan Cameron		vary depending on the exact set requested. So if you want to be
388*8af2c75aSJonathan Cameron		sure you have set what you think you have, check the contents of
389*8af2c75aSJonathan Cameron		these attributes after everything is configured. Drivers may
390*8af2c75aSJonathan Cameron		have to buffer any parameters so that they are consistent when
391*8af2c75aSJonathan Cameron		a given event type is enabled a future point (and not those for
392*8af2c75aSJonathan Cameron		whatever event was previously enabled).
393*8af2c75aSJonathan Cameron
394*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_roc_rising_en
395*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_roc_falling_en
396*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_roc_rising_en
397*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_roc_falling_en
398*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_roc_rising_en
399*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_roc_falling_en
400*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_x_roc_rising_en
401*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_x_roc_falling_en
402*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_y_roc_rising_en
403*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_y_roc_falling_en
404*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_z_roc_rising_en
405*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_anglvel_z_roc_falling_en
406*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_x_roc_rising_en
407*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_x_roc_falling_en
408*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_y_roc_rising_en
409*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_y_roc_falling_en
410*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_z_roc_rising_en
411*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_magn_z_roc_falling_en
412*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_supply_roc_rising_en
413*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_supply_roc_falling_en
414*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_roc_rising_en
415*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_voltageY_roc_falling_en
416*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_tempY_roc_rising_en
417*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_tempY_roc_falling_en
418*8af2c75aSJonathan CameronKernelVersion:	2.6.37
419*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
420*8af2c75aSJonathan CameronDescription:
421*8af2c75aSJonathan Cameron		Event generated when channel passes a threshold on the rate of
422*8af2c75aSJonathan Cameron		change (1st differential) in the specified (_rising|_falling)
423*8af2c75aSJonathan Cameron		direction. If the direction is not specified, then either the
424*8af2c75aSJonathan Cameron		device will report an event which ever direction a single
425*8af2c75aSJonathan Cameron		threshold value is passed in (e.g.
426*8af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_roc_value) or
427*8af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_roc_rising_value and
428*8af2c75aSJonathan Cameron		<type>[Y][_name]_<raw|input>_roc_falling_value may take
429*8af2c75aSJonathan Cameron		different values, but the device can only enable both rate of
430*8af2c75aSJonathan Cameron		change thresholds or neither.
431*8af2c75aSJonathan Cameron		Note the driver will assume the last p events requested are
432*8af2c75aSJonathan Cameron		to be enabled where p is however many it supports (which may
433*8af2c75aSJonathan Cameron		vary depending on the exact set requested. So if you want to be
434*8af2c75aSJonathan Cameron		sure you have set what you think you have, check the contents of
435*8af2c75aSJonathan Cameron		these attributes after everything is configured. Drivers may
436*8af2c75aSJonathan Cameron		have to buffer any parameters so that they are consistent when
437*8af2c75aSJonathan Cameron		a given event type is enabled a future point (and not those for
438*8af2c75aSJonathan Cameron		whatever event was previously enabled).
439*8af2c75aSJonathan Cameron
440*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_raw_thresh_rising_value
441*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_raw_thresh_falling_value
442*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_raw_thresh_rising_value
443*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_raw_thresh_falling_value
444*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_raw_thresh_rising_value
445*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_raw_thresh_falling_value
446*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_raw_thresh_rising_value
447*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_raw_thresh_falling_value
448*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_raw_thresh_rising_value
449*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_raw_thresh_falling_value
450*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_raw_thresh_rising_value
451*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_raw_thresh_falling_value
452*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_raw_thresh_rising_value
453*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_raw_thresh_falling_value
454*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_raw_thresh_rising_value
455*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_raw_thresh_falling_value
456*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_raw_thresh_rising_value
457*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_raw_thresh_falling_value
458*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_raw_thresh_rising_value
459*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_raw_thresh_falling_value
460*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_raw_thresh_rising_value
461*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_raw_thresh_falling_value
462*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_raw_thresh_rising_value
463*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_raw_thresh_falling_value
464*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_illuminance0_thresh_falling_value
465*8af2c75aSJonathan Cameronwhat:		/sys/.../events/in_illuminance0_thresh_rising_value
466*8af2c75aSJonathan Cameronwhat:		/sys/.../events/in_proximity0_thresh_falling_value
467*8af2c75aSJonathan Cameronwhat:		/sys/.../events/in_proximity0_thresh_rising_value
468*8af2c75aSJonathan CameronKernelVersion:	2.6.37
469*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
470*8af2c75aSJonathan CameronDescription:
471*8af2c75aSJonathan Cameron		Specifies the value of threshold that the device is comparing
472*8af2c75aSJonathan Cameron		against for the events enabled by
473*8af2c75aSJonathan Cameron		<type>Y[_name]_thresh[_rising|falling]_en.
474*8af2c75aSJonathan Cameron		If separate attributes exist for the two directions, but
475*8af2c75aSJonathan Cameron		direction is not specified for this attribute, then a single
476*8af2c75aSJonathan Cameron		threshold value applies to both directions.
477*8af2c75aSJonathan Cameron		The raw or input element of the name indicates whether the
478*8af2c75aSJonathan Cameron		value is in raw device units or in processed units (as _raw
479*8af2c75aSJonathan Cameron		and _input do on sysfs direct channel read attributes).
480*8af2c75aSJonathan Cameron
481*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_raw_roc_rising_value
482*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_raw_roc_falling_value
483*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_raw_roc_rising_value
484*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_raw_roc_falling_value
485*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_raw_roc_rising_value
486*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_raw_roc_falling_value
487*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_raw_roc_rising_value
488*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_raw_roc_falling_value
489*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_raw_roc_rising_value
490*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_raw_roc_falling_value
491*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_raw_roc_rising_value
492*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_raw_roc_falling_value
493*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_raw_roc_rising_value
494*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_raw_roc_falling_value
495*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_raw_roc_rising_value
496*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_raw_roc_falling_value
497*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_raw_roc_rising_value
498*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_raw_roc_falling_value
499*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_raw_roc_rising_value
500*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_raw_roc_falling_value
501*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_raw_roc_rising_value
502*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_raw_roc_falling_value
503*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_raw_roc_rising_value
504*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_raw_roc_falling_value
505*8af2c75aSJonathan CameronKernelVersion:	2.6.37
506*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
507*8af2c75aSJonathan CameronDescription:
508*8af2c75aSJonathan Cameron		Specifies the value of rate of change threshold that the
509*8af2c75aSJonathan Cameron		device is comparing against for the events enabled by
510*8af2c75aSJonathan Cameron		<type>[Y][_name]_roc[_rising|falling]_en.
511*8af2c75aSJonathan Cameron		If separate attributes exist for the two directions,
512*8af2c75aSJonathan Cameron		but direction is not specified for this attribute,
513*8af2c75aSJonathan Cameron		then a single threshold value applies to both directions.
514*8af2c75aSJonathan Cameron		The raw or input element of the name indicates whether the
515*8af2c75aSJonathan Cameron		value is in raw device units or in processed units (as _raw
516*8af2c75aSJonathan Cameron		and _input do on sysfs direct channel read attributes).
517*8af2c75aSJonathan Cameron
518*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_thresh_rising_period
519*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_thresh_falling_period
520*8af2c75aSJonathan Cameronhat:		/sys/.../events/in_accel_x_roc_rising_period
521*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_roc_falling_period
522*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_thresh_rising_period
523*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_thresh_falling_period
524*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_roc_rising_period
525*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_roc_falling_period
526*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_thresh_rising_period
527*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_thresh_falling_period
528*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_roc_rising_period
529*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_roc_falling_period
530*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_thresh_rising_period
531*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_thresh_falling_period
532*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_roc_rising_period
533*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_x_roc_falling_period
534*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_thresh_rising_period
535*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_thresh_falling_period
536*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_roc_rising_period
537*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_y_roc_falling_period
538*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_thresh_rising_period
539*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_thresh_falling_period
540*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_roc_rising_period
541*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_anglvel_z_roc_falling_period
542*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_thresh_rising_period
543*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_thresh_falling_period
544*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_roc_rising_period
545*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_x_roc_falling_period
546*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_thresh_rising_period
547*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_thresh_falling_period
548*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_roc_rising_period
549*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_y_roc_falling_period
550*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_thresh_rising_period
551*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_thresh_falling_period
552*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_roc_rising_period
553*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_magn_z_roc_falling_period
554*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_thresh_rising_period
555*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_thresh_falling_period
556*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_roc_rising_period
557*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_supply_roc_falling_period
558*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_thresh_rising_period
559*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_thresh_falling_period
560*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_roc_rising_period
561*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_voltageY_roc_falling_period
562*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_thresh_rising_period
563*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_thresh_falling_period
564*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_roc_rising_period
565*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_tempY_roc_falling_period
566*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x&y&z_mag_falling_period
567*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_intensity0_thresh_period
568*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_proximity0_thresh_period
569*8af2c75aSJonathan CameronKernelVersion:	2.6.37
570*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
571*8af2c75aSJonathan CameronDescription:
572*8af2c75aSJonathan Cameron		Period of time (in seconds) for which the condition must be
573*8af2c75aSJonathan Cameron		met before an event is generated. If direction is not
574*8af2c75aSJonathan Cameron		specified then this period applies to both directions.
575*8af2c75aSJonathan Cameron
576*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_mag_en
577*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_mag_rising_en
578*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_mag_falling_en
579*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_mag_en
580*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_mag_rising_en
581*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x_mag_falling_en
582*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_mag_en
583*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_mag_rising_en
584*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_y_mag_falling_en
585*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_mag_en
586*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_mag_rising_en
587*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_z_mag_falling_en
588*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x&y&z_mag_rising_en
589*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/events/in_accel_x&y&z_mag_falling_en
590*8af2c75aSJonathan CameronKernelVersion:	2.6.37
591*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
592*8af2c75aSJonathan CameronDescription:
593*8af2c75aSJonathan Cameron		Similar to in_accel_x_thresh[_rising|_falling]_en, but here the
594*8af2c75aSJonathan Cameron		magnitude of the channel is compared to the threshold, not its
595*8af2c75aSJonathan Cameron		signed value.
596*8af2c75aSJonathan Cameron
597*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_raw_mag_value
598*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_x_raw_mag_rising_value
599*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_y_raw_mag_rising_value
600*8af2c75aSJonathan CameronWhat:		/sys/.../events/in_accel_z_raw_mag_rising_value
601*8af2c75aSJonathan CameronKernelVersion:	2.6.37
602*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
603*8af2c75aSJonathan CameronDescription:
604*8af2c75aSJonathan Cameron		The value to which the magnitude of the channel is compared. If
605*8af2c75aSJonathan Cameron		number or direction is not specified, applies to all channels of
606*8af2c75aSJonathan Cameron		this type.
607*8af2c75aSJonathan Cameron
608*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/trigger/current_trigger
609*8af2c75aSJonathan CameronKernelVersion:	2.6.35
610*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
611*8af2c75aSJonathan CameronDescription:
612*8af2c75aSJonathan Cameron		The name of the trigger source being used, as per string given
613*8af2c75aSJonathan Cameron		in /sys/class/iio/triggerY/name.
614*8af2c75aSJonathan Cameron
615*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/length
616*8af2c75aSJonathan CameronKernelVersion:	2.6.35
617*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
618*8af2c75aSJonathan CameronDescription:
619*8af2c75aSJonathan Cameron		Number of scans contained by the buffer.
620*8af2c75aSJonathan Cameron
621*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/bytes_per_datum
622*8af2c75aSJonathan CameronKernelVersion:	2.6.37
623*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
624*8af2c75aSJonathan CameronDescription:
625*8af2c75aSJonathan Cameron		Bytes per scan.  Due to alignment fun, the scan may be larger
626*8af2c75aSJonathan Cameron		than implied directly by the scan_element parameters.
627*8af2c75aSJonathan Cameron
628*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/enable
629*8af2c75aSJonathan CameronKernelVersion:	2.6.35
630*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
631*8af2c75aSJonathan CameronDescription:
632*8af2c75aSJonathan Cameron		Actually start the buffer capture up.  Will start trigger
633*8af2c75aSJonathan Cameron		if first device and appropriate.
634*8af2c75aSJonathan Cameron
635*8af2c75aSJonathan CameronWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/scan_elements
636*8af2c75aSJonathan CameronKernelVersion:	2.6.37
637*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
638*8af2c75aSJonathan CameronDescription:
639*8af2c75aSJonathan Cameron		Directory containing interfaces for elements that will be
640*8af2c75aSJonathan Cameron		captured for a single triggered sample set in the buffer.
641*8af2c75aSJonathan Cameron
642*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_accel_x_en
643*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_accel_y_en
644*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_accel_z_en
645*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_anglvel_x_en
646*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_anglvel_y_en
647*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_anglvel_z_en
648*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_magn_x_en
649*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_magn_y_en
650*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_magn_z_en
651*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_timestamp_en
652*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_voltageY_supply_en
653*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_voltageY_en
654*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_voltageY-voltageZ_en
655*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_incli_x_en
656*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_incli_y_en
657*8af2c75aSJonathan CameronKernelVersion:	2.6.37
658*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
659*8af2c75aSJonathan CameronDescription:
660*8af2c75aSJonathan Cameron		Scan element control for triggered data capture.
661*8af2c75aSJonathan Cameron
662*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_accel_type
663*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_anglvel_type
664*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_magn_type
665*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_incli_type
666*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_voltageY_type
667*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_voltage-in_type
668*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_voltageY_supply_type
669*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_timestamp_type
670*8af2c75aSJonathan CameronKernelVersion:	2.6.37
671*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
672*8af2c75aSJonathan CameronDescription:
673*8af2c75aSJonathan Cameron		Description of the scan element data storage within the buffer
674*8af2c75aSJonathan Cameron		and hence the form in which it is read from user-space.
675*8af2c75aSJonathan Cameron		Form is [be|le]:[s|u]bits/storagebits[>>shift].
676*8af2c75aSJonathan Cameron		be or le specifies big or little endian. s or u specifies if
677*8af2c75aSJonathan Cameron		signed (2's complement) or unsigned. bits is the number of bits
678*8af2c75aSJonathan Cameron		of data and storagebits is the space (after padding) that it
679*8af2c75aSJonathan Cameron		occupies in the buffer. shift if specified, is the shift that
680*8af2c75aSJonathan Cameron		needs to be applied prior to masking out unused bits. Some
681*8af2c75aSJonathan Cameron		devices put their data in the middle of the transferred elements
682*8af2c75aSJonathan Cameron		with additional information on both sides.  Note that some
683*8af2c75aSJonathan Cameron		devices will have additional information in the unused bits
684*8af2c75aSJonathan Cameron		so to get a clean value, the bits value must be used to mask
685*8af2c75aSJonathan Cameron		the buffer output value appropriately.  The storagebits value
686*8af2c75aSJonathan Cameron		also specifies the data alignment.  So s48/64>>2 will be a
687*8af2c75aSJonathan Cameron		signed 48 bit integer stored in a 64 bit location aligned to
688*8af2c75aSJonathan Cameron		a a64 bit boundary. To obtain the clean value, shift right 2
689*8af2c75aSJonathan Cameron		and apply a mask to zero the top 16 bits of the result.
690*8af2c75aSJonathan Cameron		For other storage combinations this attribute will be extended
691*8af2c75aSJonathan Cameron		appropriately.
692*8af2c75aSJonathan Cameron
693*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_accel_type_available
694*8af2c75aSJonathan CameronKernelVersion:	2.6.37
695*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
696*8af2c75aSJonathan CameronDescription:
697*8af2c75aSJonathan Cameron		If the type parameter can take one of a small set of values,
698*8af2c75aSJonathan Cameron		this attribute lists them.
699*8af2c75aSJonathan Cameron
700*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_voltageY_index
701*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_voltageY_supply_index
702*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_accel_x_index
703*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_accel_y_index
704*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_accel_z_index
705*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_anglvel_x_index
706*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_anglvel_y_index
707*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_anglvel_z_index
708*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_magn_x_index
709*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_magn_y_index
710*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_magn_z_index
711*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_incli_x_index
712*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_incli_y_index
713*8af2c75aSJonathan CameronWhat:		/sys/.../buffer/scan_elements/in_timestamp_index
714*8af2c75aSJonathan CameronKernelVersion:	2.6.37
715*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
716*8af2c75aSJonathan CameronDescription:
717*8af2c75aSJonathan Cameron		A single positive integer specifying the position of this
718*8af2c75aSJonathan Cameron		scan element in the buffer. Note these are not dependent on
719*8af2c75aSJonathan Cameron		what is enabled and may not be contiguous. Thus for user-space
720*8af2c75aSJonathan Cameron		to establish the full layout these must be used in conjunction
721*8af2c75aSJonathan Cameron		with all _en attributes to establish which channels are present,
722*8af2c75aSJonathan Cameron		and the relevant _type attributes to establish the data storage
723*8af2c75aSJonathan Cameron		format.
724*8af2c75aSJonathan Cameron
725*8af2c75aSJonathan CameronWhat:		/sys/.../iio:deviceX/in_anglvel_z_quadrature_correction_raw
726*8af2c75aSJonathan CameronKernelVersion:	2.6.38
727*8af2c75aSJonathan CameronContact:	linux-iio@vger.kernel.org
728*8af2c75aSJonathan CameronDescription:
729*8af2c75aSJonathan Cameron		This attribute is used to read the amount of quadrature error
730*8af2c75aSJonathan Cameron		present in the device at a given time.
731