xref: /linux/Documentation/ABI/obsolete/sysfs-bus-iio (revision 0d5ec7919f3747193f051036b2301734a4b5e1d6)
1caf0fb3bSMauro Carvalho ChehabWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/length
2caf0fb3bSMauro Carvalho ChehabKernelVersion:	2.6.35
3caf0fb3bSMauro Carvalho ChehabContact:	linux-iio@vger.kernel.org
4caf0fb3bSMauro Carvalho ChehabDescription:
5caf0fb3bSMauro Carvalho Chehab		Number of scans contained by the buffer.
6caf0fb3bSMauro Carvalho Chehab
7caf0fb3bSMauro Carvalho Chehab		Since Kernel 5.11, multiple buffers are supported.
8caf0fb3bSMauro Carvalho Chehab		so, it is better to use, instead:
9*3a0d390bSMauro Carvalho Chehab
10caf0fb3bSMauro Carvalho Chehab			/sys/bus/iio/devices/iio:deviceX/bufferY/length
11caf0fb3bSMauro Carvalho Chehab
12caf0fb3bSMauro Carvalho ChehabWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/enable
13caf0fb3bSMauro Carvalho ChehabKernelVersion:	2.6.35
14caf0fb3bSMauro Carvalho ChehabContact:	linux-iio@vger.kernel.org
15caf0fb3bSMauro Carvalho ChehabDescription:
16caf0fb3bSMauro Carvalho Chehab		Actually start the buffer capture up.  Will start trigger
17caf0fb3bSMauro Carvalho Chehab		if first device and appropriate.
18caf0fb3bSMauro Carvalho Chehab
19caf0fb3bSMauro Carvalho Chehab		Since Kernel 5.11, multiple buffers are supported.
20caf0fb3bSMauro Carvalho Chehab		so, it is better to use, instead:
21*3a0d390bSMauro Carvalho Chehab
22caf0fb3bSMauro Carvalho Chehab			/sys/bus/iio/devices/iio:deviceX/bufferY/enable
23caf0fb3bSMauro Carvalho Chehab
24caf0fb3bSMauro Carvalho ChehabWhat:		/sys/bus/iio/devices/iio:deviceX/scan_elements
25caf0fb3bSMauro Carvalho ChehabKernelVersion:	2.6.37
26caf0fb3bSMauro Carvalho ChehabContact:	linux-iio@vger.kernel.org
27caf0fb3bSMauro Carvalho ChehabDescription:
28caf0fb3bSMauro Carvalho Chehab		Directory containing interfaces for elements that will be
29caf0fb3bSMauro Carvalho Chehab		captured for a single triggered sample set in the buffer.
30caf0fb3bSMauro Carvalho Chehab
31caf0fb3bSMauro Carvalho Chehab		Since kernel 5.11 the scan_elements attributes are merged into
32caf0fb3bSMauro Carvalho Chehab		the bufferY directory, to be configurable per buffer.
33caf0fb3bSMauro Carvalho Chehab
34caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_x_en
35caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_y_en
36caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_z_en
37caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_x_en
38caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_y_en
39caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_z_en
40caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_x_en
41caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_y_en
42caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_z_en
43caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_en
44caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_en
45caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_tilt_comp_en
46caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_tilt_comp_en
47caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_timestamp_en
48caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_supply_en
49caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_en
50caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY-voltageZ_en
51caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_x_en
52caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_y_en
53caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_pressureY_en
54caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_pressure_en
55caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_quaternion_en
56caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_proximity_en
57caf0fb3bSMauro Carvalho ChehabKernelVersion:	2.6.37
58caf0fb3bSMauro Carvalho ChehabContact:	linux-iio@vger.kernel.org
59caf0fb3bSMauro Carvalho ChehabDescription:
60caf0fb3bSMauro Carvalho Chehab		Scan element control for triggered data capture.
61caf0fb3bSMauro Carvalho Chehab
62caf0fb3bSMauro Carvalho Chehab		Since kernel 5.11 the scan_elements attributes are merged into
63caf0fb3bSMauro Carvalho Chehab		the bufferY directory, to be configurable per buffer.
64caf0fb3bSMauro Carvalho Chehab
65caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_type
66caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_type
67caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_type
68caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_type
69caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_type
70caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_voltage_type
71caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_supply_type
72caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_timestamp_type
73caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_pressureY_type
74caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_pressure_type
75caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_quaternion_type
76caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_proximity_type
77caf0fb3bSMauro Carvalho ChehabKernelVersion:	2.6.37
78caf0fb3bSMauro Carvalho ChehabContact:	linux-iio@vger.kernel.org
79caf0fb3bSMauro Carvalho ChehabDescription:
80caf0fb3bSMauro Carvalho Chehab		Description of the scan element data storage within the buffer
81caf0fb3bSMauro Carvalho Chehab		and hence the form in which it is read from user-space.
82caf0fb3bSMauro Carvalho Chehab		Form is [be|le]:[s|u]bits/storagebits[>>shift].
83caf0fb3bSMauro Carvalho Chehab		be or le specifies big or little endian. s or u specifies if
84caf0fb3bSMauro Carvalho Chehab		signed (2's complement) or unsigned. bits is the number of bits
85caf0fb3bSMauro Carvalho Chehab		of data and storagebits is the space (after padding) that it
86caf0fb3bSMauro Carvalho Chehab		occupies in the buffer. shift if specified, is the shift that
87caf0fb3bSMauro Carvalho Chehab		needs to be applied prior to masking out unused bits. Some
88caf0fb3bSMauro Carvalho Chehab		devices put their data in the middle of the transferred elements
89caf0fb3bSMauro Carvalho Chehab		with additional information on both sides.  Note that some
90caf0fb3bSMauro Carvalho Chehab		devices will have additional information in the unused bits
91caf0fb3bSMauro Carvalho Chehab		so to get a clean value, the bits value must be used to mask
92caf0fb3bSMauro Carvalho Chehab		the buffer output value appropriately.  The storagebits value
93caf0fb3bSMauro Carvalho Chehab		also specifies the data alignment.  So s48/64>>2 will be a
94caf0fb3bSMauro Carvalho Chehab		signed 48 bit integer stored in a 64 bit location aligned to
95caf0fb3bSMauro Carvalho Chehab		a 64 bit boundary. To obtain the clean value, shift right 2
96caf0fb3bSMauro Carvalho Chehab		and apply a mask to zero the top 16 bits of the result.
97caf0fb3bSMauro Carvalho Chehab		For other storage combinations this attribute will be extended
98caf0fb3bSMauro Carvalho Chehab		appropriately.
99caf0fb3bSMauro Carvalho Chehab
100caf0fb3bSMauro Carvalho Chehab		Since kernel 5.11 the scan_elements attributes are merged into
101caf0fb3bSMauro Carvalho Chehab		the bufferY directory, to be configurable per buffer.
102caf0fb3bSMauro Carvalho Chehab
103caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_index
104caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_voltageY_supply_index
105caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_x_index
106caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_y_index
107caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_accel_z_index
108caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_x_index
109caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_y_index
110caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_anglvel_z_index
111caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_x_index
112caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_y_index
113caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_magn_z_index
114caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_index
115caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_index
116caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_magnetic_tilt_comp_index
117caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_from_north_true_tilt_comp_index
118caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_x_index
119caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_incli_y_index
120caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_timestamp_index
121caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_pressureY_index
122caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_pressure_index
123caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_rot_quaternion_index
124caf0fb3bSMauro Carvalho ChehabWhat:		/sys/.../iio:deviceX/scan_elements/in_proximity_index
125caf0fb3bSMauro Carvalho ChehabKernelVersion:	2.6.37
126caf0fb3bSMauro Carvalho ChehabDescription:
127caf0fb3bSMauro Carvalho Chehab		A single positive integer specifying the position of this
128caf0fb3bSMauro Carvalho Chehab		scan element in the buffer. Note these are not dependent on
129caf0fb3bSMauro Carvalho Chehab		what is enabled and may not be contiguous. Thus for user-space
130caf0fb3bSMauro Carvalho Chehab		to establish the full layout these must be used in conjunction
131caf0fb3bSMauro Carvalho Chehab		with all _en attributes to establish which channels are present,
132caf0fb3bSMauro Carvalho Chehab		and the relevant _type attributes to establish the data storage
133caf0fb3bSMauro Carvalho Chehab		format.
134caf0fb3bSMauro Carvalho Chehab
135caf0fb3bSMauro Carvalho Chehab		Since kernel 5.11 the scan_elements attributes are merged into
136caf0fb3bSMauro Carvalho Chehab		the bufferY directory, to be configurable per buffer.
137caf0fb3bSMauro Carvalho Chehab
138caf0fb3bSMauro Carvalho ChehabWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/watermark
139caf0fb3bSMauro Carvalho ChehabKernelVersion:	4.2
140caf0fb3bSMauro Carvalho ChehabContact:	linux-iio@vger.kernel.org
141caf0fb3bSMauro Carvalho ChehabDescription:
142caf0fb3bSMauro Carvalho Chehab		A single positive integer specifying the maximum number of scan
143caf0fb3bSMauro Carvalho Chehab		elements to wait for.
144caf0fb3bSMauro Carvalho Chehab
145caf0fb3bSMauro Carvalho Chehab		Poll will block until the watermark is reached.
146caf0fb3bSMauro Carvalho Chehab
147caf0fb3bSMauro Carvalho Chehab		Blocking read will wait until the minimum between the requested
148caf0fb3bSMauro Carvalho Chehab		read amount or the low water mark is available.
149caf0fb3bSMauro Carvalho Chehab
150caf0fb3bSMauro Carvalho Chehab		Non-blocking read will retrieve the available samples from the
151caf0fb3bSMauro Carvalho Chehab		buffer even if there are less samples then watermark level. This
152caf0fb3bSMauro Carvalho Chehab		allows the application to block on poll with a timeout and read
153caf0fb3bSMauro Carvalho Chehab		the available samples after the timeout expires and thus have a
154caf0fb3bSMauro Carvalho Chehab		maximum delay guarantee.
155caf0fb3bSMauro Carvalho Chehab
156caf0fb3bSMauro Carvalho Chehab		Since Kernel 5.11, multiple buffers are supported.
157caf0fb3bSMauro Carvalho Chehab		so, it is better to use, instead:
158*3a0d390bSMauro Carvalho Chehab
159caf0fb3bSMauro Carvalho Chehab			/sys/bus/iio/devices/iio:deviceX/bufferY/watermark
160caf0fb3bSMauro Carvalho Chehab
161caf0fb3bSMauro Carvalho ChehabWhat:		/sys/bus/iio/devices/iio:deviceX/buffer/data_available
162caf0fb3bSMauro Carvalho ChehabKernelVersion: 4.16
163caf0fb3bSMauro Carvalho ChehabContact:	linux-iio@vger.kernel.org
164caf0fb3bSMauro Carvalho ChehabDescription:
165caf0fb3bSMauro Carvalho Chehab		A read-only value indicating the bytes of data available in the
166caf0fb3bSMauro Carvalho Chehab		buffer. In the case of an output buffer, this indicates the
167caf0fb3bSMauro Carvalho Chehab		amount of empty space available to write data to. In the case of
168caf0fb3bSMauro Carvalho Chehab		an input buffer, this indicates the amount of data available for
169caf0fb3bSMauro Carvalho Chehab		reading.
170caf0fb3bSMauro Carvalho Chehab
171caf0fb3bSMauro Carvalho Chehab		Since Kernel 5.11, multiple buffers are supported.
172caf0fb3bSMauro Carvalho Chehab		so, it is better to use, instead:
173*3a0d390bSMauro Carvalho Chehab
174caf0fb3bSMauro Carvalho Chehab			/sys/bus/iio/devices/iio:deviceX/bufferY/data_available
175