Re: [PATCH v6 15/16] iio: adc: ad4134: Support high-speed data capture

From: Marcelo Schmitt

Date: Tue Dec 01 2026 - 09:54:25 EST


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

> On Sat, 24 Oct 2026 at 00:38, Marcelo Schmitt
> <marcelo.schmitt@xxxxxxxxxx> 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@xxxxxxxxxx>
>
> 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@xxxxxxxxx/
[2]: https://lore.kernel.org/linux-iio/1dd07840-9a52-4f9c-8e4b-476232d2d4c2@xxxxxxxxxxxx/

With best regards,
Marcelo

>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
>
> 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