From: William Breathitt Gray <vilhelm.gray@gmail.com>
To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net
Cc: benjamin.gaignard@linaro.org, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org,
William Breathitt Gray <vilhelm.gray@gmail.com>
Subject: [PATCH v4 05/11] counter: Documentation: Add Simple Counter sysfs documentation
Date: Thu, 14 Dec 2017 15:51:43 -0500 [thread overview]
Message-ID: <91b739431afb52f0f95a4e33d01e636347649d05.1513266127.git.vilhelm.gray@gmail.com> (raw)
In-Reply-To: <cover.1513266127.git.vilhelm.gray@gmail.com>
This patch adds standard documentation for the userspace sysfs
attributes of the Simple Counter interface.
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
---
.../ABI/testing/sysfs-bus-counter-simple-sysfs | 61 ++++++++++++++++++++++
1 file changed, 61 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-simple-sysfs
diff --git a/Documentation/ABI/testing/sysfs-bus-counter-simple-sysfs b/Documentation/ABI/testing/sysfs-bus-counter-simple-sysfs
new file mode 100644
index 000000000000..e1f32c64c667
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-bus-counter-simple-sysfs
@@ -0,0 +1,61 @@
+What: /sys/bus/counter/devices/counterX/countY
+KernelVersion: 4.16
+Contact: linux-iio@vger.kernel.org
+Description:
+ Count data of Count Y. This is a signed integer value that
+ represents the accumulated count.
+
+What: /sys/bus/counter/devices/counterX/countY_function
+KernelVersion: 4.16
+Contact: linux-iio@vger.kernel.org
+Description:
+ Count function mode of Count Y. Count function evaluation is
+ triggered by conditions specified by the countY_signalZ_action
+ attributes. Two count function modes are available: increase and
+ decrease.
+
+ Increase:
+ Accumulated count is incremented.
+
+ Decrease:
+ Accumulated count is decremented.
+
+What: /sys/bus/counter/devices/counterX/countY_max
+KernelVersion: 4.16
+Contact: linux-iio@vger.kernel.org
+Description:
+ Count Y count data maximum value.
+
+What: /sys/bus/counter/devices/counterX/countY_min
+KernelVersion: 4.16
+Contact: linux-iio@vger.kernel.org
+Description:
+ Count Y count data minimum value.
+
+What: /sys/bus/counter/devices/counterX/countY_signalZ_action
+KernelVersion: 4.16
+Contact: linux-iio@vger.kernel.org
+Description:
+ Action mode of Count Y for Signal Z. This attribute indicates
+ the condition of Signal Z that triggers the count function
+ evaluation for Count Y. Four action modes are available: none,
+ rising edge, falling edge, and both edges.
+
+ None:
+ Signal does not trigger the count function.
+
+ Rising Edge:
+ Low state transitions to High state.
+
+ Falling Edge:
+ High state transitions to Low state.
+
+ Both Edges:
+ Any state transition.
+
+What: /sys/bus/counter/devices/counterX/signalY
+KernelVersion: 4.16
+Contact: linux-iio@vger.kernel.org
+Description:
+ Signal data of Signal Y. This is the respective input level
+ represented by two available states: low and high.
--
2.15.1
next prev parent reply other threads:[~2017-12-14 20:51 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-14 20:50 [PATCH v4 00/11] Introduce the Counter subsystem William Breathitt Gray
2017-12-14 20:50 ` [PATCH v4 01/11] iio: Introduce the Generic Counter interface William Breathitt Gray
2018-01-01 12:09 ` Jonathan Cameron
2017-12-14 20:50 ` [PATCH v4 02/11] counter: Documentation: Add Generic Counter sysfs documentation William Breathitt Gray
2018-01-01 11:26 ` Jonathan Cameron
2017-12-14 20:51 ` [PATCH v4 03/11] docs: Add Generic Counter interface documentation William Breathitt Gray
2018-01-01 11:45 ` Jonathan Cameron
2017-12-14 20:51 ` [PATCH v4 04/11] counter: Introduce the Simple Counter interface William Breathitt Gray
2018-01-01 12:33 ` Jonathan Cameron
2017-12-14 20:51 ` William Breathitt Gray [this message]
2018-01-01 12:36 ` [PATCH v4 05/11] counter: Documentation: Add Simple Counter sysfs documentation Jonathan Cameron
2017-12-14 20:51 ` [PATCH v4 06/11] docs: Add Simple Counter interface documentation William Breathitt Gray
2018-01-01 12:42 ` Jonathan Cameron
2017-12-14 20:52 ` [PATCH v4 07/11] counter: Add dummy counter driver William Breathitt Gray
2017-12-14 20:52 ` [PATCH v4 08/11] counter: Introduce the Quadrature Counter interface William Breathitt Gray
2018-01-01 12:48 ` Jonathan Cameron
2017-12-14 20:52 ` [PATCH v4 09/11] counter: Documentation: Add Quadrature Counter sysfs documentation William Breathitt Gray
2017-12-14 20:52 ` [PATCH v4 10/11] docs: Add Quadrature Counter interface documentation William Breathitt Gray
2017-12-14 20:53 ` [PATCH v4 11/11] counter: 104-quad-8: Add Quadrature Counter interface support William Breathitt Gray
2018-01-01 11:16 ` [PATCH v4 00/11] Introduce the Counter subsystem Jonathan Cameron
2018-01-01 13:04 ` Jonathan Cameron
2018-01-15 9:02 ` Benjamin Gaignard
2018-02-23 12:58 ` Benjamin Gaignard
2018-02-23 13:14 ` William Breathitt Gray
2018-02-23 13:19 ` Benjamin Gaignard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=91b739431afb52f0f95a4e33d01e636347649d05.1513266127.git.vilhelm.gray@gmail.com \
--to=vilhelm.gray@gmail.com \
--cc=benjamin.gaignard@linaro.org \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®