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