From: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
To: David Lechner <dlechner@baylibre.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Chris Hall" <c-hall@ti.com>, "Patrick Edwards" <pedwards@ti.com>,
"Kurt Borja" <kuurtb@gmail.com>,
"Nguyen Minh Tien" <zizuzacker@gmail.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 4/8] dt-bindings: iio: adc: add input-chopping property
Date: Mon, 13 Jul 2026 08:24:00 -0700 [thread overview]
Message-ID: <20260713082400.000024f1@oss.qualcomm.com> (raw)
In-Reply-To: <1700ed07-47b5-4831-87c5-a6115928baab@baylibre.com>
On Mon, 13 Jul 2026 09:55:53 -0500
David Lechner <dlechner@baylibre.com> wrote:
> On 7/12/26 8:34 PM, Jonathan Cameron wrote:
> > On Fri, 10 Jul 2026 17:50:37 -0500
> > "David Lechner (TI)" <dlechner@baylibre.com> wrote:
> >
> >> Add a generic input-chopping property to adc.yaml. This is a feature
> >> seen frequently in ADCs that are designed to measure resistive loads,
> >> such as RTDs and strain gauges. Enabling this can reduce offset errors
> >> by swapping the positive and negative input channels on every other
> >> conversion. This can have side-effects in timing and filter response, so
> >> it is not always desirable to enable this feature in some applications.
> >> Therefore, it is best to make this a property that can be enabled or
> >> disabled in the device tree.
> >>
> >> Signed-off-by: David Lechner (TI) <dlechner@baylibre.com>
> >> ---
> >> v3 changes:
> >> * Renamed property to input-chopping to reflect more common terminology.
> >> * Removed "allowed" from the description.
> >> * Extended description to explain when it should not be used.
> >>
> >> v2 changes:
> >> * New patch.
> >> ---
> >> Documentation/devicetree/bindings/iio/adc/adc.yaml | 8 ++++++++
> >> 1 file changed, 8 insertions(+)
> >>
> >> diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Documentation/devicetree/bindings/iio/adc/adc.yaml
> >> index 308857f11220..c408feebd46d 100644
> >> --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml
> >> +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml
> >> @@ -80,6 +80,14 @@ properties:
> >> ADCs usually allow choosing between internal reference sources or a pair
> >> of external pins.
> >>
> >> + input-chopping:
> >> + type: boolean
> >> + description:
> >> + If set, the positive and negative input channels are swapped on every
> >> + other conversion to reduce offset error. This generally comes at the
> >> + expense of added settling time between conversions, so should be omitted
> >> + on systems with high-frequency signals or high data rate requirements.
> >
> > I'm lazy so I didn't check back, but in my mental model of this, the DT is simply
> > saying that the analog circuitry is suitable for doing chopping. Driver decision
> > on whether to do it. Perhaps we can reword it for that?
>
> Heh, that was the "allowed" part that I removed.
>
> I think this is really more of a design decision between the tradeoff
> of less noise vs. data rate. By setting this property, we are saying
> we should favor less noise. So I think it is more about the expected
> signal than the circuitry.
>
> So not sure that I would add anything here.
Fair enough. Given the driver can always ignore what is in DT I guess it
is fine as is.
Thanks,
Jonathan
>
>
> >> +
> >> excitation-channels:
> >> $ref: /schemas/types.yaml#/definitions/uint32-array
> >> description:
> >>
> >
>
>
next prev parent reply other threads:[~2026-07-13 15:24 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-10 22:50 [PATCH v3 0/8] iio: adc: new ti-ads112c14 driver David Lechner
2026-07-10 22:50 ` [PATCH v3 1/8] dt-bindings: iio: adc: Add reference-sources property David Lechner
2026-07-10 22:50 ` [PATCH v3 2/8] dt-bindings: iio: adc: Add excitation current sources properties David Lechner
2026-07-13 1:32 ` Jonathan Cameron
2026-07-10 22:50 ` [PATCH v3 3/8] dt-bindings: iio: adc: Add burn-out current properties David Lechner
2026-07-10 22:50 ` [PATCH v3 4/8] dt-bindings: iio: adc: add input-chopping property David Lechner (TI)
2026-07-13 1:34 ` Jonathan Cameron
2026-07-13 14:55 ` David Lechner
2026-07-13 15:24 ` Jonathan Cameron [this message]
2026-07-13 16:29 ` Conor Dooley
2026-07-10 22:50 ` [PATCH v3 5/8] dt-bindings: iio: adc: add ti,ads122c14 David Lechner (TI)
2026-07-10 23:12 ` David Lechner
2026-07-13 1:54 ` Jonathan Cameron
2026-07-13 16:28 ` Conor Dooley
2026-07-10 22:50 ` [PATCH v3 6/8] iio: adc: add ti-ads112c14 driver David Lechner (TI)
2026-07-12 9:42 ` Andy Shevchenko
2026-07-12 16:30 ` David Lechner
2026-07-13 2:11 ` Jonathan Cameron
2026-07-13 14:03 ` David Lechner
2026-07-10 22:50 ` [PATCH v3 7/8] iio: adc: ti-ads112c14: implement gain on internal short SYS_MON channel David Lechner (TI)
2026-07-11 9:11 ` Andy Shevchenko
2026-07-13 2:21 ` Jonathan Cameron
2026-07-10 22:50 ` [PATCH v3 8/8] iio: adc: ti-ads112c14: add measurement channel support David Lechner (TI)
2026-07-11 13:00 ` Andy Shevchenko
2026-07-13 19:40 ` David Lechner
2026-07-14 1:04 ` Andy Shevchenko
2026-07-13 2:35 ` 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=20260713082400.000024f1@oss.qualcomm.com \
--to=jonathan.cameron@oss.qualcomm.com \
--cc=andy@kernel.org \
--cc=c-hall@ti.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kuurtb@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=pedwards@ti.com \
--cc=robh@kernel.org \
--cc=zizuzacker@gmail.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