All of lore.kernel.org
 help / color / mirror / Atom feed
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 09/11] counter: Documentation: Add Quadrature Counter sysfs documentation
Date: Thu, 14 Dec 2017 15:52:41 -0500	[thread overview]
Message-ID: <875b929895c1f38972c921c7591bb8370e8e9163.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 Quadrature Counter interface.

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
---
 .../ABI/testing/sysfs-bus-counter-quadrature-sysfs | 76 ++++++++++++++++++++++
 1 file changed, 76 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-quadrature-sysfs

diff --git a/Documentation/ABI/testing/sysfs-bus-counter-quadrature-sysfs b/Documentation/ABI/testing/sysfs-bus-counter-quadrature-sysfs
new file mode 100644
index 000000000000..69d1a3e4a1a5
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-bus-counter-quadrature-sysfs
@@ -0,0 +1,76 @@
+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 position. Typically, this is determined by
+		hardware evaluation of the quadrature encoding input signals.
+
+What:		/sys/bus/counter/devices/counterX/countY_direction
+KernelVersion:	4.16
+Contact:	linux-iio@vger.kernel.org
+Description:
+		Count direction of Count Y. Typically, this is determined by
+		hardware evaluation of the quadrature encoding input signals.
+		Two count directions are available: forward and backward.
+
+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. Four count function modes are available:
+		pulse-direction, quadrature x1, quadrature x2, quadrature x4.
+
+		Pulse-Direction:
+			Rising edges on quadrature pair signal A updates the
+			respective count. The input level of quadrature pair
+			signal B determines direction.
+
+		Quadrature x1:
+			If direction is forward, rising edges on quadrature pair
+			signal A updates the respective count; if the direction
+			is backward, falling edges on quadrature pair signal A
+			updates the respective count. Quadrature encoding
+			determines the direction.
+
+		Quadrature x2:
+			Any state transition on quadrature pair signal A updates
+			the respective count. Quadrature encoding determines the
+			direction.
+
+		Quadrature x4:
+			Any state transition on either quadrature pair signals
+			updates	the respective count. Quadrature encoding
+			determines the direction.
+
+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. In
+			Pulse-Direction count function mode, this Signal is
+			evaluated as Direction.
+
+		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

  parent reply	other threads:[~2017-12-14 20:52 UTC|newest]

Thread overview: 28+ 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 ` [PATCH v4 05/11] counter: Documentation: Add Simple Counter sysfs documentation William Breathitt Gray
2018-01-01 12:36   ` 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 ` William Breathitt Gray [this message]
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-01-15  9:02       ` Benjamin Gaignard
2018-02-23 12:58       ` Benjamin Gaignard
2018-02-23 12:58         ` Benjamin Gaignard
2018-02-23 13:14         ` William Breathitt Gray
2018-02-23 13:19           ` Benjamin Gaignard
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=875b929895c1f38972c921c7591bb8370e8e9163.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.