summaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>2017-04-04 09:47:52 +0200
committerJonathan Cameron <jic23@kernel.org>2017-04-14 15:09:04 +0100
commit2a830a45ffb05d1aa8d7866235501f635678bec6 (patch)
treea5a48abbea064c60f455ffb9dd249543f7fcf27d /Documentation/ABI
parent4adec7da0536a345d901d7ba55b6c93a14eeeaff (diff)
downloadlinux-2a830a45ffb05d1aa8d7866235501f635678bec6.tar.gz
linux-2a830a45ffb05d1aa8d7866235501f635678bec6.tar.bz2
linux-2a830a45ffb05d1aa8d7866235501f635678bec6.zip
iio: stm32 trigger: Add counter enable modes
Device counting could be controlled by the level or the edges of a trigger. in_count0_enable_mode attibute allow to set the control mode. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/sysfs-bus-iio-timer-stm3225
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32 b/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32
index a55ad44446c5..230020e06677 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32
+++ b/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32
@@ -65,3 +65,28 @@ Description:
quadrature:
Encoder A and B inputs are mixed to get direction
and count with a scale of 0.25.
+
+What: /sys/bus/iio/devices/iio:deviceX/in_count_enable_mode_available
+KernelVersion: 4.12
+Contact: benjamin.gaignard@st.com
+Description:
+ Reading returns the list possible enable modes.
+
+What: /sys/bus/iio/devices/iio:deviceX/in_count0_enable_mode
+KernelVersion: 4.12
+Contact: benjamin.gaignard@st.com
+Description:
+ Configure the device counter enable modes, in all case
+ counting direction is set by in_count0_count_direction
+ attribute and the counter is clocked by the internal clock.
+ always:
+ Counter is always ON.
+
+ gated:
+ Counting is enabled when connected trigger signal
+ level is high else counting is disabled.
+
+ triggered:
+ Counting is enabled on rising edge of the connected
+ trigger, and remains enabled for the duration of this
+ selected mode.