[PATCH v4 00/11] iio: amplifiers: ad8366: driver update and dt support

Rodrigo Alencar via B4 Relay
2026-02-10T19:42:17Z

This patch series updates the AD8366 amplifier/attenuator driver with
modern device resource management, including support for additional
device variants.

Adds support for multiple digital step attenuators:
- ADRF5720: 0.5 dB LSB, 6-Bit, Digital Attenuator, 9 kHz to 40 GHz
- ADRF5730: 0.5 dB LSB, 6-Bit, Digital Attenuator, 100 MHz to 40 GHz
- ADRF5731: 2 dB LSB, 4-Bit, Digital Attenuator, 100 MHz to 40 GHz
- HMC271A: 1 dB LSB, 5-bit, Digital Attenuator, 0.7 - 3.7 GHz
- HMC1018A: 1.0 dB LSB GaAs MMIC 5-BIT DIGITAL ATTENUATOR, 0.1 - 30 GHz
- HMC1019A: 0.5 dB LSB GaAs MMIC 5-BIT DIGITAL ATTENUATOR, 0.1 - 30 GHz

Device Tree Support:
- Adds device tree binding documentation
- Adds device tree compatible strings for all supported devices
- Favor chip info tables over device type.

Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
---
Changes in v4:
- Review of included headers.
- Split of device-tree support patch.
- Consume reset controller rather than gpio.
- Link to v3: https://lore.kernel.org/r/20260203-iio-ad8366-update-v3-0-5d5636b5181a@analog.com

Changes in v3:
- Add compatible checks for dt-binding gpio properties.
- Remove reset and enable gpio from device state struct.
- Split refactoring commits.
- Drop part of the refactoring in favor of a cleaner diff.
- Get included header files sorted.
- Link to v2: https://lore.kernel.org/r/20260126-iio-ad8366-update-v2-0-c9a4d31aeb01@analog.com

Changes in v2:
- Reorganize commits with cleanups before features.
- Link to v1: https://lore.kernel.org/r/20260119-iio-ad8366-update-v1-0-8044e23e964a@analog.com

---
Rodrigo Alencar (11):
MAINTAINERS: Add missing maintainer entry for AD8366 driver
dt-bindings: iio: amplifiers: Add AD8366 support
iio: amplifiers: ad8366: remove unused include headers
iio: amplifiers: ad8366: add local dev pointer to the probe function
iio: amplifiers: ad8366: use devm_mutex_init() and drop mutex_init()
iio: amplifiers: ad8366: replace reset-gpio with reset controller
iio: amplifiers: ad8366: refactor device resource management
iio: amplifiers: ad8366: prepare for device-tree support
iio: amplifiers: ad8366: add device tree support
iio: amplifiers: ad8366: consume enable gpio
iio: amplifiers: ad8366: update device support

.../bindings/iio/amplifiers/adi,ad8366.yaml | 97 ++++++
MAINTAINERS | 9 +
drivers/iio/amplifiers/Kconfig | 6 +
drivers/iio/amplifiers/ad8366.c | 355 +++++++++++----------
4 files changed, 291 insertions(+), 176 deletions(-)
---
base-commit: 62b44ebc1f2c71db3ca2d4737c52e433f6f03038
change-id: 20251121-iio-ad8366-update-56abac58bbca

Best regards,
--
Rodrigo Alencar <rodrigo.alencar@analog.com>