From: Jonathan Cameron <jic23@kernel.org>
To: "Nuno Sá" <nuno.sa@analog.com>
Cc: "Tsao, Bruce" <Bruce.Tsao@analog.com>,
Andy Shevchenko <andriy.shevchenko@intel.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
David Lechner <dlechner@baylibre.com>,
Andy Shevchenko <andy@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 0/2] iio: dac: add support for AD5413
Date: Sat, 28 Nov 2026 23:54:57 +0000 [thread overview]
Message-ID: <20261128235457.525425a5@jic23-hlaptop> (raw)
In-Reply-To: <awWYZBYeVHNiwsiB@nsa>
On Tue, 24 Nov 2026 14:07:15 +0000
Nuno Sá <nuno.sa@analog.com> wrote:
> On Thu, Nov 19, 2026 at 07:46:04AM +0000, Tsao, Bruce wrote:
> > On Tue, Nov 03, 2026 at 10:06:08AM +0000, Tsao, Bruce wrote:
> > > David -- since you have the background here: ad5758 currently carries
> > > CRC as a TODO and disables it at probe, whereas the AD5413 implements
> > > per-frame CRC. For the merged driver, would you prefer (a) keeping the
> > > AD5758 CRC-off via the flag (no behaviour change), or (b) also
> > > enabling CRC on the AD5758 to finish that TODO?
> > >
> > > I'll get started on the no-functional-change refactor in the meantime.
> >
> > Hi Jonathan, David, Nuno,
> >
> > A short status update on the v2 rework, plus a gentle ping on the open
> > questions.
> >
> > Status:
> >
> > - ad5758 is now chip_info based: the per-device constants (name,
> > resolution, full scale and the DC-DC/CRC/reset traits) sit in a
> > chip_info selected via the OF/SPI match data. No functional change
> > for the AD5758; I checked this by comparing the generated object code
> > before and after.
> >
> > - The AD5413 is added on top as a second chip_info: compatible and SPI
> > ID, 14-bit data alignment, an optional reset controller (falling back
> > to the existing soft reset) and the avdd/dvdd/avss supplies. These
> > are all per variant, so the AD5758 behaves as before.
> >
> > The main open points are the CRC framing and the output mode, which
> > is where I would like your input.
> >
> > David, I would appreciate your view on the CRC question quoted above.
> >
> > One more point, for David and Nuno: register access still goes
> > through ad5758's own SPI helpers, which is also where the AD5413 CRC
> > would go. Should this series move it to regmap, e.g. with a custom
> > regmap_bus as in ltc2688, or keep the existing helpers?
>
> If the helpers can be reused without much trouble, I'm not seeing a big
> reason on changing to regmap. I do typically prefer custom regmap buses
> but now you need to convert the whole thing so really to you.
>
> As for the CRC, don't just wait for replies. Sometimes things are missed
> :). I would just not change behavior for the existing devices.
>
> >
> > Jonathan, on the output mode (your adi,ch-func pointer on the v1
> > binding): in the ad5758 binding, adi,dc-dc-mode selects voltage or
> > current output and with it which of adi,range-microvolt/-microamp
> > applies. The AD5413 has no DC-DC converter and only one range per mode
> > (+/-10.5 V or 0-24 mA), so only the mode needs describing. Two options
> > for the merged binding:
> >
> > 1) Reuse adi,range-microvolt / adi,range-microamp: an AD5413 node
> > carries exactly one of them, and that selects the mode. No new
> > property.
> >
> > 2) A top-level adi,ch-func (1 = voltage output, 2 = current output),
> > as adi,ad74115.yaml does for its single channel, with the same
> > values ad5710r and max22007 use per channel.
I think option 1 is a bit too obscure even though it does convey the right
info. So I'd do 2 but make sure to highlight it in the dt-binding patch
and we'll see what those folk think of it.
> >
> > Which would you prefer? Or, if you think now is the time for the
> > generic DAC binding you mentioned, I am happy to go that way instead.
> >
> > Jonathan, could you also confirm that you are fine with adding the
> > AD5413 to the ad5758 driver and binding, rather than as a new driver?
> >
>
> Again, my reply now might put this again on Jonathan radar but I would
> say to wait a few more days, take a path and send v2. Worse case
> scenario, Jonathan has other preferences and you need v3 :)
I'm fine with adding it and indeed Nuno's mail meant I noticed
this had an outstanding question!
Thanks,
Jonathan
>
> - Nuno Sá
>
> > Thanks,
> > Bruce
prev parent reply other threads:[~2026-11-28 23:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-16 19:23 Bruce Tsao via B4 Relay
2026-10-16 19:23 ` [PATCH 1/2] dt-bindings: iio: dac: Document Analog Devices AD5413 single-channel DAC Bruce Tsao via B4 Relay
2026-10-16 23:02 ` Jonathan Cameron
2026-10-16 19:23 ` [PATCH 2/2] iio: dac: add AD5413 driver Bruce Tsao via B4 Relay
2026-10-16 23:40 ` Jonathan Cameron
2026-10-19 8:46 ` [PATCH 0/2] iio: dac: add support for AD5413 Andy Shevchenko
2026-10-20 11:53 ` Tsao, Bruce
2026-10-21 6:19 ` Andy Shevchenko
2026-11-02 10:52 ` Nuno Sá
2026-11-03 10:06 ` Tsao, Bruce
2026-11-19 7:46 ` Tsao, Bruce
2026-11-24 14:07 ` Nuno Sá
2026-11-28 23:54 ` 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=20261128235457.525425a5@jic23-hlaptop \
--to=jic23@kernel.org \
--cc=Bruce.Tsao@analog.com \
--cc=andriy.shevchenko@intel.com \
--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=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
all inboxes | Powered by JetHome®