xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/sysfs-bus-counter-104-quad-8 (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:		/sys/bus/counter/devices/counterX/signalY/cable_fault
2*4882a593SmuzhiyunKernelVersion:	5.7
3*4882a593SmuzhiyunContact:	linux-iio@vger.kernel.org
4*4882a593SmuzhiyunDescription:
5*4882a593Smuzhiyun		Read-only attribute that indicates whether a differential
6*4882a593Smuzhiyun		encoder cable fault (not connected or loose wires) is detected
7*4882a593Smuzhiyun		for the respective channel of Signal Y. Valid attribute values
8*4882a593Smuzhiyun		are boolean. Detection must first be enabled via the
9*4882a593Smuzhiyun		corresponding cable_fault_enable attribute.
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunWhat:		/sys/bus/counter/devices/counterX/signalY/cable_fault_enable
12*4882a593SmuzhiyunKernelVersion:	5.7
13*4882a593SmuzhiyunContact:	linux-iio@vger.kernel.org
14*4882a593SmuzhiyunDescription:
15*4882a593Smuzhiyun		Whether detection of differential encoder cable faults for the
16*4882a593Smuzhiyun		respective channel of Signal Y is enabled. Valid attribute
17*4882a593Smuzhiyun		values are boolean.
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunWhat:		/sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler
20*4882a593SmuzhiyunKernelVersion:	5.7
21*4882a593SmuzhiyunContact:	linux-iio@vger.kernel.org
22*4882a593SmuzhiyunDescription:
23*4882a593Smuzhiyun		Filter clock factor for input Signal Y. This prescaler value
24*4882a593Smuzhiyun		affects the inputs of both quadrature pair signals.
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunWhat:		/sys/bus/counter/devices/counterX/signalY/index_polarity
27*4882a593SmuzhiyunKernelVersion:	5.2
28*4882a593SmuzhiyunContact:	linux-iio@vger.kernel.org
29*4882a593SmuzhiyunDescription:
30*4882a593Smuzhiyun		Active level of index input Signal Y; irrelevant in
31*4882a593Smuzhiyun		non-synchronous load mode.
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunWhat:		/sys/bus/counter/devices/counterX/signalY/index_polarity_available
34*4882a593SmuzhiyunWhat:		/sys/bus/counter/devices/counterX/signalY/synchronous_mode_available
35*4882a593SmuzhiyunKernelVersion:	5.2
36*4882a593SmuzhiyunContact:	linux-iio@vger.kernel.org
37*4882a593SmuzhiyunDescription:
38*4882a593Smuzhiyun		Discrete set of available values for the respective Signal Y
39*4882a593Smuzhiyun		configuration are listed in this file.
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunWhat:		/sys/bus/counter/devices/counterX/signalY/synchronous_mode
42*4882a593SmuzhiyunKernelVersion:	5.2
43*4882a593SmuzhiyunContact:	linux-iio@vger.kernel.org
44*4882a593SmuzhiyunDescription:
45*4882a593Smuzhiyun		Configure the counter associated with Signal Y for
46*4882a593Smuzhiyun		non-synchronous or synchronous load mode. Synchronous load mode
47*4882a593Smuzhiyun		cannot be selected in non-quadrature (Pulse-Direction) clock
48*4882a593Smuzhiyun		mode.
49*4882a593Smuzhiyun
50*4882a593Smuzhiyun		non-synchronous:
51*4882a593Smuzhiyun			A logic low level is the active level at this index
52*4882a593Smuzhiyun			input. The index function (as enabled via preset_enable)
53*4882a593Smuzhiyun			is performed directly on the active level of the index
54*4882a593Smuzhiyun			input.
55*4882a593Smuzhiyun
56*4882a593Smuzhiyun		synchronous:
57*4882a593Smuzhiyun			Intended for interfacing with encoder Index output in
58*4882a593Smuzhiyun			quadrature clock mode. The active level is configured
59*4882a593Smuzhiyun			via index_polarity. The index function (as enabled via
60*4882a593Smuzhiyun			preset_enable) is performed synchronously with the
61*4882a593Smuzhiyun			quadrature clock on the active level of the index input.
62