From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Marcelo Schmitt <marcelo.schmitt@analog.com>,
linux-iio@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: jic23@kernel.org, lars@metafoo.de, corbet@lwn.net,
dlechner@baylibre.com, marcelo.schmitt1@gmail.com
Subject: Re: [PATCH v4 1/1] Documentation: iio: Add ADC documentation
Date: Thu, 20 Feb 2025 15:29:17 +0700 [thread overview]
Message-ID: <Z7bn3TEC4faXbzEj@archie.me> (raw)
In-Reply-To: <e6ac2a595f06ba2d5ff0eb86e5895479c9dd797f.1739998491.git.marcelo.schmitt@analog.com>
[-- Attachment #1: Type: text/plain, Size: 1341 bytes --]
On Wed, Feb 19, 2025 at 06:00:56PM -0300, Marcelo Schmitt wrote:
> +For a **single-ended bipolar** channel, the analog voltage input can go from
> +-VREF to +VREF (where -VREF is the voltage reference that has the lower
> +electrical potential while +VREF is the reference with the higher one). Some ADC
> +chips derive the lower reference from +VREF, others get it from a separate
"... obtain it ..."
> +input. Often, +VREF and -VREF are symmetric but they don't need to be so. When
> +-VREF is lower than system ground, these inputs are also called single-ended
> +true bipolar. Also, while there is a relevant difference between bipolar and
> +true bipolar from the electrical perspective, IIO makes no explicit distinction
> +between them.
> +
> <snipped>...
> +In the ADC driver, ``differential = 1`` is set into ``struct iio_chan_spec`` for
> +the channel. Even though, there are three general input types, ``differential``
> +is only used to distinguish between differential and not differential (either
"... non-differential ..."
> +single-ended or pseudo-differential) input types. See
> +``include/linux/iio/iio.h`` for more information.
Thanks.
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2025-02-20 8:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-19 21:00 [PATCH v4 1/1] Documentation: iio: Add ADC documentation Marcelo Schmitt
2025-02-20 8:29 ` Bagas Sanjaya [this message]
2025-02-22 16:43 ` Marcelo Schmitt
2025-03-02 11:18 ` Jonathan Cameron
2025-02-22 16:48 ` David Lechner
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=Z7bn3TEC4faXbzEj@archie.me \
--to=bagasdotme@gmail.com \
--cc=corbet@lwn.net \
--cc=dlechner@baylibre.com \
--cc=jic23@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=marcelo.schmitt1@gmail.com \
--cc=marcelo.schmitt@analog.com \
/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