From: Cristian Pop <cristian.pop@analog.com>
To: <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <jic23@kernel.org>, <devicetree@vger.kernel.org>,
<robh+dt@kernel.org>, Cristian Pop <cristian.pop@analog.com>
Subject: [PATCH v3 2/3] Documentation/ABI/testing: Add documentation for AD5766 new ABI
Date: Tue, 8 Dec 2020 15:19:56 +0200 [thread overview]
Message-ID: <20201208131957.34381-2-cristian.pop@analog.com> (raw)
In-Reply-To: <20201208131957.34381-1-cristian.pop@analog.com>
New interface is proposed for dither functionality. This future allows
composing an external signals to the selected output channel.
The dither signal can be turned on/off, scaled, inverted, or it can be
selected from different sources.
Signed-off-by: Cristian Pop <cristian.pop@analog.com>
---
.../ABI/testing/sysfs-bus-iio-dac-ad5766 | 45 +++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-dac-ad5766
diff --git a/Documentation/ABI/testing/sysfs-bus-iio-dac-ad5766 b/Documentation/ABI/testing/sysfs-bus-iio-dac-ad5766
new file mode 100644
index 000000000000..361bbd0862df
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-bus-iio-dac-ad5766
@@ -0,0 +1,45 @@
+What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_dither_pwr
+KernelVersion:
+Contact: linux-iio@vger.kernel.org
+Description:
+ Dither power on/off. Write 0 to power on dither or 1 to power it off.
+
+What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_dither_invert
+KernelVersion:
+Contact: linux-iio@vger.kernel.org
+Description:
+ Inverts the dither applied to the selected DAC channel. Dither signal is
+ not inverted (default) Dither signal is inverted.
+
+What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_dither_scale_available
+KernelVersion:
+Contact: linux-iio@vger.kernel.org
+Description:
+ Returns possible scalings available for the current channel:
+ "NO_SCALING 75%_SCALING 50%_SCALING 25%_SCALING"
+
+What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_dither_scale
+KernelVersion:
+Contact: linux-iio@vger.kernel.org
+Description:
+ Scales the dither before it is applied to the selected channel.
+ NO_SCALING - No scaling
+ 75%_SCALING - 75% scaling
+ 50%_SCALING - 50% scaling
+ 25%_SCALING - 25% scaling
+
+What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_dither_source_available
+KernelVersion:
+Contact: linux-iio@vger.kernel.org
+Description:
+ Returns possible dither sources available for the selected channel:
+ "NO_DITHER N0 N1"
+
+What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_dither_source
+KernelVersion:
+Contact: linux-iio@vger.kernel.org
+Description:
+ Selects dither source applied to the selected channel.
+ NO_DITHER - No dither applied
+ N0 - N0 dither signal applied
+ N1 - N1 dither signal applied
--
2.17.1
next prev parent reply other threads:[~2020-12-08 13:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-08 13:19 [PATCH v3 1/3] dt-bindings: iio: dac: AD5766 yaml documentation Cristian Pop
2020-12-08 13:19 ` Cristian Pop [this message]
2020-12-13 14:47 ` [PATCH v3 2/3] Documentation/ABI/testing: Add documentation for AD5766 new ABI Jonathan Cameron
2020-12-08 13:19 ` [PATCH v3 3/3] iio: dac: ad5766: add driver support for AD5766 Cristian Pop
2020-12-13 14:57 ` Jonathan Cameron
2020-12-10 14:03 ` [PATCH v3 1/3] dt-bindings: iio: dac: AD5766 yaml documentation Rob Herring
2020-12-13 14:51 ` Jonathan Cameron
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=20201208131957.34381-2-cristian.pop@analog.com \
--to=cristian.pop@analog.com \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).