]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - Documentation/ABI/testing/sysfs-bus-iio-timer-stm32
Merge tag 'renesas-fixes4-for-v4.13' of https://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / Documentation / ABI / testing / sysfs-bus-iio-timer-stm32
index 230020e06677d73a2b8b24c031962e3fbda19c45..161c147d3c40323a7f21aa323c27f31efa223f22 100644 (file)
@@ -16,6 +16,54 @@ Description:
                - "OC2REF"    : OC2REF signal is used as trigger output.
                - "OC3REF"    : OC3REF signal is used as trigger output.
                - "OC4REF"    : OC4REF signal is used as trigger output.
+               Additional modes (on TRGO2 only):
+               - "OC5REF"    : OC5REF signal is used as trigger output.
+               - "OC6REF"    : OC6REF signal is used as trigger output.
+               - "compare_pulse_OC4REF":
+                 OC4REF rising or falling edges generate pulses.
+               - "compare_pulse_OC6REF":
+                 OC6REF rising or falling edges generate pulses.
+               - "compare_pulse_OC4REF_r_or_OC6REF_r":
+                 OC4REF or OC6REF rising edges generate pulses.
+               - "compare_pulse_OC4REF_r_or_OC6REF_f":
+                 OC4REF rising or OC6REF falling edges generate pulses.
+               - "compare_pulse_OC5REF_r_or_OC6REF_r":
+                 OC5REF or OC6REF rising edges generate pulses.
+               - "compare_pulse_OC5REF_r_or_OC6REF_f":
+                 OC5REF rising or OC6REF falling edges generate pulses.
+
+               +-----------+   +-------------+            +---------+
+               | Prescaler +-> | Counter     |        +-> | Master  | TRGO(2)
+               +-----------+   +--+--------+-+        |-> | Control +-->
+                                  |        |          ||  +---------+
+                               +--v--------+-+ OCxREF ||  +---------+
+                               | Chx compare +----------> | Output  | ChX
+                               +-----------+-+         |  | Control +-->
+                                     .     |           |  +---------+
+                                     .     |           |    .
+                               +-----------v-+ OC6REF  |    .
+                               | Ch6 compare +---------+>
+                               +-------------+
+
+               Example with: "compare_pulse_OC4REF_r_or_OC6REF_r":
+
+                               X
+                             X   X
+                           X .   . X
+                         X   .   .   X
+                       X     .   .     X
+               count X .     .   .     . X
+                       .     .   .     .
+                       .     .   .     .
+                       +---------------+
+               OC4REF  |     .   .     |
+                     +-+     .   .     +-+
+                       .     +---+     .
+               OC6REF  .     |   |     .
+                     +-------+   +-------+
+                       +-+   +-+
+               TRGO2   | |   | |
+                     +-+ +---+ +---------+
 
 What:          /sys/bus/iio/devices/triggerX/master_mode
 KernelVersion: 4.11
@@ -90,3 +138,18 @@ Description:
                        Counting is enabled on rising edge of the connected
                        trigger, and remains enabled for the duration of this
                        selected mode.
+
+What:          /sys/bus/iio/devices/iio:deviceX/in_count_trigger_mode_available
+KernelVersion: 4.13
+Contact:       benjamin.gaignard@st.com
+Description:
+               Reading returns the list possible trigger modes.
+
+What:          /sys/bus/iio/devices/iio:deviceX/in_count0_trigger_mode
+KernelVersion: 4.13
+Contact:       benjamin.gaignard@st.com
+Description:
+               Configure the device counter trigger mode
+               counting direction is set by in_count0_count_direction
+               attribute and the counter is clocked by the connected trigger
+               rising edges.