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

From: Geert Uytterhoeven

Date: Tue Dec 01 2026 - 06:18:54 EST


Hi Marcelo,

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.

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