Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Piyush Patle <piyushpatle228@gmail.com>
Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, ak@it-klinger.de, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, andy@kernel.org,
	nuno.sa@analog.com, dlechner@baylibre.com
Subject: Re: [PATCH v11 00/11] iio: adc: Add support for AVIA HX710B ADC
Date: Fri, 24 Jul 2026 22:32:05 +0100	[thread overview]
Message-ID: <20260724223205.25184e92@jic23-huawei> (raw)
In-Reply-To: <CAMB+xkbpgDxv1Lt=qxqKyeEhXyxRpZ3Y1v7ZDaMGKUqAa1hDxg@mail.gmail.com>

On Fri, 24 Jul 2026 05:51:25 +0530
Piyush Patle <piyushpatle228@gmail.com> wrote:

> On Mon, Jun 15, 2026 at 2:34 AM Jonathan Cameron <jic23@kernel.org> wrote:
> >
> > On Thu,  4 Jun 2026 00:18:48 +0530
> > Piyush Patle <piyushpatle228@gmail.com> wrote:
> >  
> > > The HX710B is a 24-bit ADC from AVIA Semiconductor, related to the
> > > HX711 already supported in this driver.  Unlike the HX711 (which has
> > > selectable gain and two input channels), the HX710B has a fixed gain
> > > of 128 and two operating modes selected by the trailing PD_SCK pulse
> > > count after each conversion:
> > >
> > >   25 pulses (1 trailing): differential input at 10 SPS
> > >   26 pulses (2 trailing): DVDD-AVDD supply monitor at 40 SPS
> > >   27 pulses (3 trailing): differential input at 40 SPS
> > >
> > > This series first extends the existing HX711 binding and driver with
> > > preparatory refactoring, then adds HX710B support on top.
> > >
> > > The differential input is exposed as a single IIO channel with
> > > IIO_CHAN_INFO_SAMP_FREQ, allowing userspace to select 10 or 40 SPS
> > > without needing two separate channels for the same physical input.
> > > The supply monitor is a second channel at fixed 40 SPS.
> > >
> > > This revision is rebased onto current mainline.  Note that
> > > iio_device_claim_direct_mode() / iio_device_release_direct_mode() were
> > > removed from the IIO core since v10, so 11/11 now uses the replacement
> > > iio_device_claim_direct() / iio_device_release_direct() API.
> > >
> > > Tested on a PocketBeagle2 (TI AM625): the avia,hx710b node probes and
> > > the driver registers its two IIO channels.
> > >
> > > Changes from v10:
> > >   - 02/11: Retitled to "add VSUP and DVDD supply properties"; the
> > >     commit message now documents both supplies (the patch already
> > >     added both; only the title/text were out of sync). [Jonathan]
> > >   - 04/11: Reworded commit message so DVDD is no longer described as
> > >     HX710B-specific (it is added for both parts in 02/11). The
> > >     compatible match now uses "contains: const: avia,hx710b" so the
> > >     constraints still apply if the compatible is later used as a
> > >     fallback. dvdd-supply is now required for HX710B (in the HX710B
> > >     branch only, so existing HX711 device trees are unaffected) and
> > >     added to the HX710B example. [Jonathan, Conor, Sashiko]
> > >   - 11/11: Kconfig title and file header use "similar" instead of
> > >     "compatible". Simplified the tail of hx711_set_hx710b_channel()
> > >     to "return hx711_wait_for_ready()". Dropped an unrelated
> > >     reindentation of the iio_push_to_buffers_with_timestamp() call.
> > >     Converted hx710b_write_raw() to the new
> > >     iio_device_claim_direct() API (see above). [Jonathan]
> > >
> > > The Reviewed-by (Andy Shevchenko) and Acked-by (Conor Dooley) tags on
> > > 02/11 and 04/11 are carried over although those patches changed; please
> > > re-confirm if you disagree with the reworked constraints.  
> > As the only comments I had (well mostly sashiko) were on the 710b patch
> > at the end and some patches were queued from previous patches, I now have
> > patches 1-3 and 5-10 applied to the testing branch of iio.git.  
> 
> Thanks a lot for picking those up, and for the reviews through the
> series.
> 
> Two questions, mostly to make sure I do the right thing next:
> 
> Looking at mainline I currently only see 01/11 ("dt-bindings: iio: adc:
> hx711: clean up existing binding text") and 05/11 ("iio: adc: hx711:
> move scale computation to per-device storage") under my name.  I assume
> the rest are still sitting in testing/togreg and will flow in at the
> next merge window rather than anything having gone missing, is that
> right?  Just checking I'm reading the tree correctly, no rush from my
> side.

Exactly that - assuming nothing odd happens they should go into mainline
in the next merge window. 

> 
> For the two that weren't applied, 04/11 (dt-bindings HX710B) and 11/11
> (driver HX710B support): would you prefer I resend just those two as a
> standalone v12 based on the testing branch, once I've worked through
> the remaining comments from you and Sashiko?  That seemed cleaner than
> reposting all eleven, but happy to send the full series again if you'd
> rather have it that way.

Go for the togreg branch (it's a little behind but should have all your
work on it) and make sure to have a Based-on entry in the cover letter.
I'm not sure if Sashiko will find the right thing test on but worth a go.


> 
> If there is anything still outstanding on 04/11 or 11/11 beyond what
> was raised on v11, please do point me at it and I'll fold it in.

Not that I know of, but we'll see on v11 :)

Jonathan

> 
> Thanks,
> Piyush
> >
> > Thanks,
> >
> > Jonathan
> >  
> > >
> > > Patches 01/11, 03/11, and 05/11 are unchanged from v10.
> > >
> > > Piyush Patle (11):
> > >   dt-bindings: iio: adc: hx711: clean up existing binding text
> > >   dt-bindings: iio: adc: hx711: add VSUP and DVDD supply properties
> > >   dt-bindings: iio: adc: hx711: add RATE GPIO property
> > >   dt-bindings: iio: adc: hx711: add HX710B support
> > >   iio: adc: hx711: move scale computation to per-device storage
> > >   iio: adc: hx711: introduce hx711_chip_info structure
> > >   iio: adc: hx711: pass trailing pulse count into hx711_read
> > >   iio: adc: hx711: split variable assignments in hx711_read and
> > >     hx711_reset
> > >   iio: adc: hx711: localize loop iterators in hx711_read
> > >   iio: adc: hx711: pass iio_chan_spec to hx711_reset_read
> > >   iio: adc: hx711: add support for HX710B
> > >
> > >  .../bindings/iio/adc/avia-hx711.yaml          |  82 ++++-
> > >  drivers/iio/adc/Kconfig                       |   8 +-
> > >  drivers/iio/adc/hx711.c                       | 343 +++++++++++++++---
> > >  3 files changed, 359 insertions(+), 74 deletions(-)
> > >  
> >  


      reply	other threads:[~2026-07-24 21:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-03 18:48 [PATCH v11 00/11] iio: adc: Add support for AVIA HX710B ADC Piyush Patle
2026-06-03 18:48 ` [PATCH v11 01/11] dt-bindings: iio: adc: hx711: clean up existing binding text Piyush Patle
2026-06-03 18:48 ` [PATCH v11 02/11] dt-bindings: iio: adc: hx711: add VSUP and DVDD supply properties Piyush Patle
2026-06-03 18:48 ` [PATCH v11 03/11] dt-bindings: iio: adc: hx711: add RATE GPIO property Piyush Patle
2026-06-03 18:48 ` [PATCH v11 04/11] dt-bindings: iio: adc: hx711: add HX710B support Piyush Patle
2026-06-03 18:48 ` [PATCH v11 05/11] iio: adc: hx711: move scale computation to per-device storage Piyush Patle
2026-06-03 18:48 ` [PATCH v11 06/11] iio: adc: hx711: introduce hx711_chip_info structure Piyush Patle
2026-06-03 18:48 ` [PATCH v11 07/11] iio: adc: hx711: pass trailing pulse count into hx711_read Piyush Patle
2026-06-03 18:48 ` [PATCH v11 08/11] iio: adc: hx711: split variable assignments in hx711_read and hx711_reset Piyush Patle
2026-06-03 18:48 ` [PATCH v11 09/11] iio: adc: hx711: localize loop iterators in hx711_read Piyush Patle
2026-06-03 18:48 ` [PATCH v11 10/11] iio: adc: hx711: pass iio_chan_spec to hx711_reset_read Piyush Patle
2026-06-03 18:48 ` [PATCH v11 11/11] iio: adc: hx711: add support for HX710B Piyush Patle
2026-06-14 20:19   ` Jonathan Cameron
2026-06-14 21:04 ` [PATCH v11 00/11] iio: adc: Add support for AVIA HX710B ADC Jonathan Cameron
2026-07-24  0:21   ` Piyush Patle
2026-07-24 21:32     ` 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=20260724223205.25184e92@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=ak@it-klinger.de \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=piyushpatle228@gmail.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