From: Jonathan Cameron <jic23@kernel.org>
To: Julien Stephan <jstephan@baylibre.com>
Cc: "Michael Hennerich" <michael.hennerich@analog.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"David Lechner" <dlechner@baylibre.com>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Jonathan Corbet" <corbet@lwn.net>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH 5/5] docs: iio: ad7380: add support for single-ended parts
Date: Sun, 28 Jul 2024 17:37:25 +0100 [thread overview]
Message-ID: <20240728173725.45043f11@jic23-huawei> (raw)
In-Reply-To: <20240726-ad7380-add-single-ended-chips-v1-5-2d628b60ccd1@baylibre.com>
On Fri, 26 Jul 2024 17:20:10 +0200
Julien Stephan <jstephan@baylibre.com> wrote:
> The AD7380 family has some compatible single-ended chips: AD7386/7/8(-4).
> These single-ended chips have a 2:1 multiplexer in front of each ADC.
> They also include additional configuration registers that allow for either
> manual selection or automatic switching (sequencer mode), of the
> multiplexer inputs. Add a section to describe this.
>
> Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Just one trivial missing space.
Nice patch set. Thanks,
Jonathan
> ---
> Documentation/iio/ad7380.rst | 42 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
>
> diff --git a/Documentation/iio/ad7380.rst b/Documentation/iio/ad7380.rst
> index 061cd632b5df..81dfa39519fb 100644
> --- a/Documentation/iio/ad7380.rst
> +++ b/Documentation/iio/ad7380.rst
> @@ -17,10 +17,16 @@ The following chips are supported by this driver:
> * `AD7381 <https://www.analog.com/en/products/ad7381.html>`_
> * `AD7383 <https://www.analog.com/en/products/ad7383.html>`_
> * `AD7384 <https://www.analog.com/en/products/ad7384.html>`_
> +* `AD7386 <https://www.analog.com/en/products/ad7386.html>`_
> +* `AD7387 <https://www.analog.com/en/products/ad7387.html>`_
> +* `AD7388 <https://www.analog.com/en/products/ad7388.html>`_
> * `AD7380-4 <https://www.analog.com/en/products/ad7380-4.html>`_
> * `AD7381-4 <https://www.analog.com/en/products/ad7381-4.html>`_
> * `AD7383-4 <https://www.analog.com/en/products/ad7383-4.html>`_
> * `AD7384-4 <https://www.analog.com/en/products/ad7384-4.html>`_
> +* `AD7386-4 <https://www.analog.com/en/products/ad7386-4.html>`_
> +* `AD7387-4 <https://www.analog.com/en/products/ad7387-4.html>`_
> +* `AD7388-4 <https://www.analog.com/en/products/ad7388-4.html>`_
>
>
> Supported features
> @@ -69,6 +75,42 @@ must restart iiod using the following command:
>
> root:~# systemctl restart iiod
>
> +Channel selection and sequencer (single-end chips only)
> +-------------------------------------------------------
> +
> +Single-ended chips of this family (ad7386/7/8(-4)) have a 2:1 multiplexer in
> +front of each ADC. They also include additional configuration registers that
allow for either manual selection or automatic switching (sequencer mode),of the
space after ,
plus adjust the wrap as that'll make it 81 chars I think.
> +multiplexer inputs.
> +
> +From an IIO point of view, all inputs are exported, i.e ad7386/7/8
> +export 4 channels and ad7386-4/7-4/8-4 export 8 channels.
> +
> +Inputs ``AinX0`` of multiplexers correspond to the first half of IIO channels (i.e
> +0-1 or 0-3) and inputs ``AinX1`` correspond to second half (i.e 2-3 or 4-7).
> +Example for AD7386/7/8 (2 channels parts):
> +
> +.. code-block::
> +
> + IIO | AD7386/7/8
> + | +----------------------------
> + | | _____ ______
> + | | | | | |
> + voltage0 | AinA0 --|--->| | | |
> + | | | mux |----->| ADCA |---
> + voltage2 | AinA1 --|--->| | | |
> + | | |_____| |_____ |
> + | | _____ ______
> + | | | | | |
> + voltage1 | AinB0 --|--->| | | |
> + | | | mux |----->| ADCB |---
> + voltage3 | AinB1 --|--->| | | |
> + | | |_____| |______|
> + | |
> + | +----------------------------
> +
> +
> +When enabling sequencer mode, the effective sampling rate is divided by two.
>
> Unimplemented features
> ----------------------
>
prev parent reply other threads:[~2024-07-28 16:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-26 15:20 [PATCH 0/5] ad7380: add support for single-ended parts Julien Stephan
2024-07-26 15:20 ` [PATCH 1/5] dt-bindings: iio: adc: ad7380: add single-ended compatible parts Julien Stephan
2024-07-28 10:33 ` Krzysztof Kozlowski
2024-07-28 10:34 ` Krzysztof Kozlowski
2024-07-26 15:20 ` [PATCH 2/5] ad7380: prepare driver for single-ended parts support Julien Stephan
2024-07-26 15:20 ` [PATCH 3/5] ad7380: add support for single-ended parts Julien Stephan
2024-07-28 16:23 ` Jonathan Cameron
2024-07-26 15:20 ` [PATCH 4/5] ad7380: enable sequencer " Julien Stephan
2024-07-28 16:35 ` Jonathan Cameron
2024-07-30 7:34 ` Julien Stephan
2024-07-26 15:20 ` [PATCH 5/5] docs: iio: ad7380: add support " Julien Stephan
2024-07-28 16:37 ` Jonathan Cameron [this message]
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=20240728173725.45043f11@jic23-huawei \
--to=jic23@kernel.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jstephan@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-doc@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.hennerich@analog.com \
--cc=nuno.sa@analog.com \
--cc=robh@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