1What:		/sys/bus/iio/devices/iio:deviceX/in_count0_preset
2KernelVersion:	4.13
3Contact:	fabrice.gasnier@st.com
4Description:
5		Reading returns the current preset value. Writing sets the
6		preset value. Encoder counts continuously from 0 to preset
7		value, depending on direction (up/down).
8
9What:		/sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
10KernelVersion:	4.13
11Contact:	fabrice.gasnier@st.com
12Description:
13		Reading returns the list possible quadrature modes.
14
15What:		/sys/bus/iio/devices/iio:deviceX/in_count0_quadrature_mode
16KernelVersion:	4.13
17Contact:	fabrice.gasnier@st.com
18Description:
19		Configure the device counter quadrature modes:
20		- non-quadrature:
21			Encoder IN1 input servers as the count input (up
22			direction).
23		- quadrature:
24			Encoder IN1 and IN2 inputs are mixed to get direction
25			and count.
26
27What:		/sys/bus/iio/devices/iio:deviceX/in_count_polarity_available
28KernelVersion:	4.13
29Contact:	fabrice.gasnier@st.com
30Description:
31		Reading returns the list possible active edges.
32
33What:		/sys/bus/iio/devices/iio:deviceX/in_count0_polarity
34KernelVersion:	4.13
35Contact:	fabrice.gasnier@st.com
36Description:
37		Configure the device encoder/counter active edge:
38		- rising-edge
39		- falling-edge
40		- both-edges
41
42		In non-quadrature mode, device counts up on active edge.
43		In quadrature mode, encoder counting scenarios are as follows:
44		----------------------------------------------------------------
45		| Active  | Level on |      IN1 signal    |     IN2 signal     |
46		| edge    | opposite |------------------------------------------
47		|         | signal   |  Rising  | Falling |  Rising  | Falling |
48		----------------------------------------------------------------
49		| Rising  | High ->  |   Down   |    -    |    Up    |    -    |
50		| edge    | Low  ->  |    Up    |    -    |   Down   |    -    |
51		----------------------------------------------------------------
52		| Falling | High ->  |    -     |    Up   |    -     |   Down  |
53		| edge    | Low  ->  |    -     |   Down  |    -     |    Up   |
54		----------------------------------------------------------------
55		| Both    | High ->  |   Down   |    Up   |    Up    |   Down  |
56		| edges   | Low  ->  |    Up    |   Down  |   Down   |    Up   |
57		----------------------------------------------------------------
58