[PATCH 00/16] iio: frequency: ad9523: add firmware support

From: Nuno Sá

Date: Mon Nov 30 2026 - 12:37:41 EST


The ad9523 driver can only be configured through platform data, and
nothing in tree provides it, so the driver can't really be used. This
series adds a binding and firmware support, and drops the platform data
header.

The first patches fix issues found along the way: an out of bounds
access of vco_out_map[] for channels 10 to 13, channels 4 to 9 being
switched to a powered down M2 divider, and a wrong choice between the
M1 and M2 dividers when setting their frequency.

Then:
- The GPIOs are handled with their real (active low) polarity.
- Following what was done for other drivers, the platform data is first
moved into the driver and renamed to config. Options with no use are
then dropped before the firmware conversion: PLL1 is always bypassed,
as downstream users only run the device in single loop mode, and
some unused channel options go away. Channel names are exposed
through labels instead of extend_name.
- The binding and the firmware support. The PLL2 dividers are computed
from the M1 output frequency, with the reference divider and doubler
given in firmware since they depend on the loop filter design, as
done for other PLLs.
- The dividers are synced at the end of probe, as the datasheet
recommends after the VCO calibration.
- Finally, the device can act as a clock provider. In that case the
outputs are only controlled through the clock framework, like other
IIO frequency drivers do.

An LLM was used to help me put this series together. Also to mention
that this is just build tested! Given that I'm fairly sure this won't
land on v1, I chose to send it untested while trying to get my hands to
real HW.

---
Nuno Sá (16):
iio: frequency: ad9523: fix out of bounds access of vco_out_map
iio: frequency: ad9523: don't select a powered down M2 divider
iio: frequency: ad9523: fix the M2 divider selection
iio: frequency: ad9523: fix GPIO polarity handling
iio: frequency: ad9523: factor out the channel divider calculation
MAINTAINERS: add an entry for the AD9523 driver
iio: frequency: ad9523: move the platform data into the driver
iio: frequency: ad9523: rename the platform data to config
iio: frequency: ad9523: always bypass PLL1
iio: frequency: ad9523: drop unused channel options
iio: frequency: ad9523: use read_label() for channel names
dt-bindings: iio: frequency: Add AD9523-1
iio: frequency: ad9523: add firmware support and drop platform data
iio: frequency: ad9523: sync the dividers at the end of probe
iio: frequency: ad9523: split the clock source selection
iio: frequency: ad9523: add clock provider support

.../bindings/iio/frequency/adi,ad9523-1.yaml | 289 ++++++++
MAINTAINERS | 10 +
drivers/iio/frequency/Kconfig | 2 +-
drivers/iio/frequency/ad9523.c | 802 ++++++++++++++++++---
include/linux/iio/frequency/ad9523.h | 194 -----
5 files changed, 985 insertions(+), 312 deletions(-)
---
base-commit: b70566610b48ba49dec636019da4d696db64b085
change-id: 20261112-iio-ad9523-fw-31e189054b61
--

Thanks!
- Nuno Sá