Re: [PATCH 4/5] staging: iio: ad9832: convert to iio channels and ext_info attrs

From: Jonathan Cameron

Date: Sun Dec 21 2025 - 14:36:22 EST


On Mon, 15 Dec 2025 16:08:05 -0300
Tomas Borquez <tomasborquez13@xxxxxxxxx> wrote:

> Convert ad9832 from custom sysfs attributes to standard channel interface
> using a single IIO_ALTCURRENT channel with ext_info attributes, as this
> device is a current source DAC with one output, as well as removing the
> dds.h header.
>
> Changes:
> - Add single iio_chan_spec with ext_info for frequency0/1 and phase0-3
> - Phase attributes accept radians directly, driver converts internally
> - Frequency attributes accept Hz (unchanged)
> - Cache frequency and phase values in driver state for readback
> - Remove dependency on dds.h macros
> - Rename symbol attributes to frequency_symbol and phase_symbol

If you can break this up into a few smaller patches that would make
it easier to review. These symbol elements would be one thing I think
could be done in a separate patch.

Otherwise I didn't see anything extra to comment on in the actual code.

Jonathan

>
> The pincontrol_en attribute is kept temporarily with a TODO noting it
> should become a DT property during staging graduation.
>
> NOTE: This changes the ABI from out_altvoltage0_* to out_altcurrent0_*
> with different attribute organization.
>
> Signed-off-by: Tomas Borquez <tomasborquez13@xxxxxxxxx>