18c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_count_count_mode_available
28c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_count_noise_error_available
38c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
48c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_index_index_polarity_available
58c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_index_synchronous_mode_available
68c2ecf20Sopenharmony_ciKernelVersion:	4.10
78c2ecf20Sopenharmony_ciContact:	linux-iio@vger.kernel.org
88c2ecf20Sopenharmony_ciDescription:
98c2ecf20Sopenharmony_ci		This interface is deprecated; please use the Counter subsystem.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci		Discrete set of available values for the respective counter
128c2ecf20Sopenharmony_ci		configuration are listed in this file.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_countY_count_mode
158c2ecf20Sopenharmony_ciKernelVersion:	4.10
168c2ecf20Sopenharmony_ciContact:	linux-iio@vger.kernel.org
178c2ecf20Sopenharmony_ciDescription:
188c2ecf20Sopenharmony_ci		This interface is deprecated; please use the Counter subsystem.
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci		Count mode for channel Y. Four count modes are available:
218c2ecf20Sopenharmony_ci		normal, range limit, non-recycle, and modulo-n. The preset value
228c2ecf20Sopenharmony_ci		for channel Y is used by the count mode where required.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci		Normal:
258c2ecf20Sopenharmony_ci			Counting is continuous in either direction.
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci		Range Limit:
288c2ecf20Sopenharmony_ci			An upper or lower limit is set, mimicking limit switches
298c2ecf20Sopenharmony_ci			in the mechanical counterpart. The upper limit is set to
308c2ecf20Sopenharmony_ci			the preset value, while the lower limit is set to 0. The
318c2ecf20Sopenharmony_ci			counter freezes at count = preset when counting up, and
328c2ecf20Sopenharmony_ci			at count = 0 when counting down. At either of these
338c2ecf20Sopenharmony_ci			limits, the counting is resumed only when the count
348c2ecf20Sopenharmony_ci			direction is reversed.
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci		Non-recycle:
378c2ecf20Sopenharmony_ci			Counter is disabled whenever a 24-bit count overflow or
388c2ecf20Sopenharmony_ci			underflow takes place. The counter is re-enabled when a
398c2ecf20Sopenharmony_ci			new count value is loaded to the counter via a preset
408c2ecf20Sopenharmony_ci			operation or write to raw.
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci		Modulo-N:
438c2ecf20Sopenharmony_ci			A count boundary is set between 0 and the preset value.
448c2ecf20Sopenharmony_ci			The counter is reset to 0 at count = preset when
458c2ecf20Sopenharmony_ci			counting up, while the counter is set to the preset
468c2ecf20Sopenharmony_ci			value at count = 0 when counting down; the counter does
478c2ecf20Sopenharmony_ci			not freeze at the bundary points, but counts
488c2ecf20Sopenharmony_ci			continuously throughout.
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_countY_noise_error
518c2ecf20Sopenharmony_ciKernelVersion:	4.10
528c2ecf20Sopenharmony_ciContact:	linux-iio@vger.kernel.org
538c2ecf20Sopenharmony_ciDescription:
548c2ecf20Sopenharmony_ci		This interface is deprecated; please use the Counter subsystem.
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci		Read-only attribute that indicates whether excessive noise is
578c2ecf20Sopenharmony_ci		present at the channel Y count inputs in quadrature clock mode;
588c2ecf20Sopenharmony_ci		irrelevant in non-quadrature clock mode.
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_countY_preset
618c2ecf20Sopenharmony_ciKernelVersion:	4.10
628c2ecf20Sopenharmony_ciContact:	linux-iio@vger.kernel.org
638c2ecf20Sopenharmony_ciDescription:
648c2ecf20Sopenharmony_ci		This interface is deprecated; please use the Counter subsystem.
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci		If the counter device supports preset registers, the preset
678c2ecf20Sopenharmony_ci		count for channel Y is provided by this attribute.
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_countY_quadrature_mode
708c2ecf20Sopenharmony_ciKernelVersion:	4.10
718c2ecf20Sopenharmony_ciContact:	linux-iio@vger.kernel.org
728c2ecf20Sopenharmony_ciDescription:
738c2ecf20Sopenharmony_ci		This interface is deprecated; please use the Counter subsystem.
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ci		Configure channel Y counter for non-quadrature or quadrature
768c2ecf20Sopenharmony_ci		clock mode. Selecting non-quadrature clock mode will disable
778c2ecf20Sopenharmony_ci		synchronous load mode. In quadrature clock mode, the channel Y
788c2ecf20Sopenharmony_ci		scale attribute selects the encoder phase division (scale of 1
798c2ecf20Sopenharmony_ci		selects full-cycle, scale of 0.5 selects half-cycle, scale of
808c2ecf20Sopenharmony_ci		0.25 selects quarter-cycle) processed by the channel Y counter.
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci		Non-quadrature:
838c2ecf20Sopenharmony_ci			The filter and decoder circuit are bypassed. Encoder A
848c2ecf20Sopenharmony_ci			input serves as the count input and B as the UP/DOWN
858c2ecf20Sopenharmony_ci			direction control input, with B = 1 selecting UP Count
868c2ecf20Sopenharmony_ci			mode and B = 0 selecting Down Count mode.
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci		Quadrature:
898c2ecf20Sopenharmony_ci			Encoder A and B inputs are digitally filtered and
908c2ecf20Sopenharmony_ci			decoded for UP/DN clock.
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_countY_set_to_preset_on_index
938c2ecf20Sopenharmony_ciKernelVersion:	4.10
948c2ecf20Sopenharmony_ciContact:	linux-iio@vger.kernel.org
958c2ecf20Sopenharmony_ciDescription:
968c2ecf20Sopenharmony_ci		This interface is deprecated; please use the Counter subsystem.
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ci		Whether to set channel Y counter with channel Y preset value
998c2ecf20Sopenharmony_ci		when channel Y index input is active, or continuously count.
1008c2ecf20Sopenharmony_ci		Valid attribute values are boolean.
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_indexY_index_polarity
1038c2ecf20Sopenharmony_ciKernelVersion:	4.10
1048c2ecf20Sopenharmony_ciContact:	linux-iio@vger.kernel.org
1058c2ecf20Sopenharmony_ciDescription:
1068c2ecf20Sopenharmony_ci		This interface is deprecated; please use the Counter subsystem.
1078c2ecf20Sopenharmony_ci
1088c2ecf20Sopenharmony_ci		Active level of channel Y index input; irrelevant in
1098c2ecf20Sopenharmony_ci		non-synchronous load mode.
1108c2ecf20Sopenharmony_ci
1118c2ecf20Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_indexY_synchronous_mode
1128c2ecf20Sopenharmony_ciKernelVersion:	4.10
1138c2ecf20Sopenharmony_ciContact:	linux-iio@vger.kernel.org
1148c2ecf20Sopenharmony_ciDescription:
1158c2ecf20Sopenharmony_ci		This interface is deprecated; please use the Counter subsystem.
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ci		Configure channel Y counter for non-synchronous or synchronous
1188c2ecf20Sopenharmony_ci		load mode. Synchronous load mode cannot be selected in
1198c2ecf20Sopenharmony_ci		non-quadrature clock mode.
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci		Non-synchronous:
1228c2ecf20Sopenharmony_ci			A logic low level is the active level at this index
1238c2ecf20Sopenharmony_ci			input. The index function (as enabled via
1248c2ecf20Sopenharmony_ci			set_to_preset_on_index) is performed directly on the
1258c2ecf20Sopenharmony_ci			active level of the index input.
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci		Synchronous:
1288c2ecf20Sopenharmony_ci			Intended for interfacing with encoder Index output in
1298c2ecf20Sopenharmony_ci			quadrature clock mode. The active level is configured
1308c2ecf20Sopenharmony_ci			via index_polarity. The index function (as enabled via
1318c2ecf20Sopenharmony_ci			set_to_preset_on_index) is performed synchronously with
1328c2ecf20Sopenharmony_ci			the quadrature clock on the active level of the index
1338c2ecf20Sopenharmony_ci			input.
134