mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Marcelo Schmitt <marcelo.schmitt@analog.com>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux@analog.com, jic23@kernel.org,
	nuno.sa@analog.com, dlechner@baylibre.com, andy@kernel.org,
	Michael.Hennerich@analog.com, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, corbet@lwn.net,
	skhan@linuxfoundation.org
Subject: Re: [PATCH v6 15/16] iio: adc: ad4134: Support high-speed data capture
Date: Tue, 1 Dec 2026 11:55:47 -0300	[thread overview]
Message-ID: <aw7f82HWlAxYHVSf@debian-BULLSEYE-live-builder-AMD64> (raw)
In-Reply-To: <CAMuHMdWhgcYhcjyqWDnFE8a-uFpLcoV+4_pNsWuBDyQWB0UXNQ@mail.gmail.com>

On 12/01, Geert Uytterhoeven wrote:
> Hi Marcelo,
> 
Hi Geert,

> On Sat, 24 Oct 2026 at 00:38, Marcelo Schmitt
> <marcelo.schmitt@analog.com> wrote:
> > Make use of SPI transfer offloading to speed up data capture, enabling data
> > acquisition at faster sample rates (up to 1.496 MSPS). In this operation
> > mode, a PWM connected to ADC ODR pin and single-shot reads can't be
> > supported due to that.
> >
> > Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
> 
> Thanks for your patch, which is now commit 12c531a201c92635 ("iio:
> adc: ad4134: Support high-speed data capture") in iio/togreg.
> 
> > --- a/drivers/iio/adc/Kconfig
> > +++ b/drivers/iio/adc/Kconfig
> > @@ -123,9 +123,14 @@ config AD4130
> >  config AD4134
> >         tristate "Analog Devices AD4134 ADC Driver"
> >         depends on SPI
> > +       depends on PWM
> 
> Just wondering: as the PWM input is optional, would it make sense to
> not let the driver itself depend on PWM, but only the code implementing
> this feature?  That way users don't have to enable CONFIG_PWM to use
> this driver without PWM input.

Well, I've proposed that a while ago. The suggestion was to factor out PWM
dependant code into a separate device driver file (e.g. ad4134-offload) [1].

Some time later, I then proposed a device driver following that separate file
approach, but that was dismissed [2].

My impression is that the users of these devices either don't care or would
enable anything to use these ADCs.

[1]: https://lore.kernel.org/linux-pwm/51dab5dee00b95018c8bc6b7ef56b9b722d618f3.camel@gmail.com/
[2]: https://lore.kernel.org/linux-iio/1dd07840-9a52-4f9c-8e4b-476232d2d4c2@baylibre.com/

With best regards,
Marcelo

> 
> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> -- 
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds

  reply	other threads:[~2026-12-01 14:54 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23 22:32 [PATCH v6 00/16] iio: adc: ad4134: Enable greater sample rate " Marcelo Schmitt
2026-10-23 22:33 ` [PATCH v6 01/16] iio: adc: ad4134: Adjust register map range Marcelo Schmitt
2026-10-23 22:33 ` [PATCH v6 02/16] iio: adc: ad4134: Sign extend sample data Marcelo Schmitt
2026-10-23 22:33 ` [PATCH v6 03/16] iio: adc: ad4134: Apply reset recovery wait time Marcelo Schmitt
2026-10-23 22:34 ` [PATCH v6 04/16] iio: adc: ad4134: Update include list to comply with IWYU principles Marcelo Schmitt
2026-10-23 22:34 ` [PATCH v6 05/16] iio: adc: ad4134: Serialize single-read operations Marcelo Schmitt
2026-10-23 22:34 ` [PATCH v6 06/16] iio: adc: ad4134: Protect conventional device access from debug accesses Marcelo Schmitt
2026-10-24  1:46   ` Jonathan Cameron
2026-10-23 22:35 ` [PATCH v6 07/16] iio: adc: ad4134: Run shorter transfers when CRC is disabled Marcelo Schmitt
2026-10-23 22:35 ` [PATCH v6 08/16] iio: ABI: Add sinc6 filter_type Marcelo Schmitt
2026-10-23 22:35 ` [PATCH v6 09/16] iio: adc: ad4134: Add support for digital filter type selection Marcelo Schmitt
2026-10-23 22:36 ` [PATCH v6 10/16] iio: adc: ad4134: Support buffered data read Marcelo Schmitt
2026-10-23 22:36 ` [PATCH v6 11/16] dt-bindings: iio: adc: adi,ad4134: Document SPI connection mode Marcelo Schmitt
2026-10-23 22:36 ` [PATCH v6 12/16] dt-bindings: iio: adc: adi,ad4134: Document external multiplexer usage Marcelo Schmitt
2026-10-23 22:36 ` [PATCH v6 13/16] iio: adc: ad4134: Support SPI 4-wire mode Marcelo Schmitt
2026-10-23 22:37 ` [PATCH v6 14/16] dt-bindings: iio: adc: adi,ad4134: Document PWM usage Marcelo Schmitt
2026-10-23 22:37 ` [PATCH v6 15/16] iio: adc: ad4134: Support high-speed data capture Marcelo Schmitt
2026-12-01 11:18   ` Geert Uytterhoeven
2026-12-01 14:55     ` Marcelo Schmitt [this message]
2026-10-23 22:37 ` [PATCH v6 16/16] Docs: iio: Add AD4134 Marcelo Schmitt
2026-10-24  1:54 ` [PATCH v6 00/16] iio: adc: ad4134: Enable greater sample rate data capture Jonathan Cameron
2026-11-02  0:27   ` 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=aw7f82HWlAxYHVSf@debian-BULLSEYE-live-builder-AMD64 \
    --to=marcelo.schmitt1@gmail.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=geert@linux-m68k.org \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@analog.com \
    --cc=marcelo.schmitt@analog.com \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    --cc=skhan@linuxfoundation.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®