Merge tag 'nfsd-4.12' of git://linux-nfs.org/~bfields/linux
[sfrench/cifs-2.6.git] / Documentation / ABI / testing / sysfs-bus-iio-timer-stm32
1 What:           /sys/bus/iio/devices/triggerX/master_mode_available
2 KernelVersion:  4.11
3 Contact:        benjamin.gaignard@st.com
4 Description:
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
20 What:           /sys/bus/iio/devices/triggerX/master_mode
21 KernelVersion:  4.11
22 Contact:        benjamin.gaignard@st.com
23 Description:
24                 Reading returns the current master modes.
25                 Writing set the master mode
26
27 What:           /sys/bus/iio/devices/triggerX/sampling_frequency
28 KernelVersion:  4.11
29 Contact:        benjamin.gaignard@st.com
30 Description:
31                 Reading returns the current sampling frequency.
32                 Writing an value different of 0 set and start sampling.
33                 Writing 0 stop sampling.
34
35 What:           /sys/bus/iio/devices/iio:deviceX/in_count0_preset
36 KernelVersion:  4.12
37 Contact:        benjamin.gaignard@st.com
38 Description:
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
46 What:           /sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
47 KernelVersion:  4.12
48 Contact:        benjamin.gaignard@st.com
49 Description:
50                 Reading returns the list possible quadrature modes.
51
52 What:           /sys/bus/iio/devices/iio:deviceX/in_count0_quadrature_mode
53 KernelVersion:  4.12
54 Contact:        benjamin.gaignard@st.com
55 Description:
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
69 What:           /sys/bus/iio/devices/iio:deviceX/in_count_enable_mode_available
70 KernelVersion:  4.12
71 Contact:        benjamin.gaignard@st.com
72 Description:
73                 Reading returns the list possible enable modes.
74
75 What:           /sys/bus/iio/devices/iio:deviceX/in_count0_enable_mode
76 KernelVersion:  4.12
77 Contact:        benjamin.gaignard@st.com
78 Description:
79                 Configure the device counter enable modes, in all case
80                 counting direction is set by in_count0_count_direction
81                 attribute and the counter is clocked by the internal clock.
82                 always:
83                         Counter is always ON.
84
85                 gated:
86                         Counting is enabled when connected trigger signal
87                         level is high else counting is disabled.
88
89                 triggered:
90                         Counting is enabled on rising edge of the connected
91                         trigger, and remains enabled for the duration of this
92                         selected mode.