xref: /openbmc/linux/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32 (revision 4adec7da0536a345d901d7ba55b6c93a14eeeaff)
1What:		/sys/bus/iio/devices/triggerX/master_mode_available
2KernelVersion:	4.11
3Contact:	benjamin.gaignard@st.com
4Description:
5		Reading returns the list possible master modes which are:
6		- "reset"     :	The UG bit from the TIMx_EGR register is
7				used as trigger output (TRGO).
8		- "enable"    : The Counter Enable signal CNT_EN is used
9				as trigger output.
10		- "update"    : The update event is selected as trigger output.
11				For instance a master timer can then be used
12				as a prescaler for a slave timer.
13		- "compare_pulse" : The trigger output send a positive pulse
14				    when the CC1IF flag is to be set.
15		- "OC1REF"    : OC1REF signal is used as trigger output.
16		- "OC2REF"    : OC2REF signal is used as trigger output.
17		- "OC3REF"    : OC3REF signal is used as trigger output.
18		- "OC4REF"    : OC4REF signal is used as trigger output.
19
20What:		/sys/bus/iio/devices/triggerX/master_mode
21KernelVersion:	4.11
22Contact:	benjamin.gaignard@st.com
23Description:
24		Reading returns the current master modes.
25		Writing set the master mode
26
27What:		/sys/bus/iio/devices/triggerX/sampling_frequency
28KernelVersion:	4.11
29Contact:	benjamin.gaignard@st.com
30Description:
31		Reading returns the current sampling frequency.
32		Writing an value different of 0 set and start sampling.
33		Writing 0 stop sampling.
34
35What:		/sys/bus/iio/devices/iio:deviceX/in_count0_preset
36KernelVersion:	4.12
37Contact:	benjamin.gaignard@st.com
38Description:
39		Reading returns the current preset value.
40		Writing sets the preset value.
41		When counting up the counter starts from 0 and fires an
42		event when reach preset value.
43		When counting down the counter start from preset value
44		and fire event when reach 0.
45
46What:		/sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
47KernelVersion:	4.12
48Contact:	benjamin.gaignard@st.com
49Description:
50		Reading returns the list possible quadrature modes.
51
52What:		/sys/bus/iio/devices/iio:deviceX/in_count0_quadrature_mode
53KernelVersion:	4.12
54Contact:	benjamin.gaignard@st.com
55Description:
56		Configure the device counter quadrature modes:
57		channel_A:
58			Encoder A input servers as the count input and B as
59			the UP/DOWN direction control input.
60
61		channel_B:
62			Encoder B input serves as the count input and A as
63			the UP/DOWN direction control input.
64
65		quadrature:
66			Encoder A and B inputs are mixed to get direction
67			and count with a scale of 0.25.
68