[PATCH 0/2] iio: adc: ad4080: add backend data size configuration

From: Antoniu Miclaus

Date: Tue Jun 23 2026 - 05:13:18 EST


The AD408X AXI core can pack sample data on the bus using different word
widths (20-bit, 16-bit and 14-bit), selected through the packet format
field of the CNTRL_3 register. Until now this was left at its default,
which only matched the AD4080 20-bit resolution.

This series exposes the packet format through a new data_size_set backend
operation and has the ad4080 driver program it during channel setup based
on the channel resolution, so the bus packing always matches the device
realbits.

Patch 1 adds the data_size_set operation to the adi-axi-adc backend.
Patch 2 calls iio_backend_data_size_set() from the ad4080 channel setup.

Link: https://analogdevicesinc.github.io/hdl/library/axi_ad408x/index.html

Antoniu Miclaus (2):
iio: adc: adi-axi-adc: add data size support for AD408X backend
iio: adc: ad4080: configure backend data size

drivers/iio/adc/ad4080.c | 5 +++++
drivers/iio/adc/adi-axi-adc.c | 30 ++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+)

--
2.43.0