lkml.org 
[lkml]   [2018]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v5 7/8] counter: stm32-timer-cnt: Add sysfs documentation
Date
From: Benjamin Gaignard <benjamin.gaignard@st.com>

In addition of the generic sysfs-bus-counter ABI stm32-timer-cnt
offerts three functionality:
- enable the counter
- set preset value
- allow to read counter direction

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
---
.../ABI/testing/sysfs-bus-counter-stm32-timer-cnt | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt

diff --git a/Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt b/Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt
new file mode 100644
index 000000000000..73328e8e6d7e
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt
@@ -0,0 +1,21 @@
+What: /sys/bus/counter/devices/counterX/countY_direction
+KernelVersion: 4.17
+Contact: linux-iio@vger.kernel.org
+Description:
+ Read-only attribute that indicates the count direction of
+ Count Y. Two count directions are available: Forward and
+ Backward.
+
+What: /sys/bus/counter/devices/counterX/countY_enable
+KernelVersion: 4.17
+Contact: linux-iio@vger.kernel.org
+Description:
+ Whether channel Y inputs A and B are enabled. Valid attribute
+ values are boolean.
+
+What: /sys/bus/counter/devices/counterX/countY_preset
+KernelVersion: 4.17
+Contact: linux-iio@vger.kernel.org
+Description:
+ If the counter device supports preset registers, the preset
+ count for channel Y is provided by this attribute.
--
2.16.2
\
 
 \ /
  Last update: 2018-03-09 19:45    [W:0.148 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site