[PATCH v3 0/9] iio: amplifiers: ad8366: driver update and dt support

Rodrigo Alencar via B4 Relay posted 9 patches 5 days, 7 hours ago
.../bindings/iio/amplifiers/adi,ad8366.yaml        |  97 ++++++
MAINTAINERS                                        |   9 +
drivers/iio/amplifiers/Kconfig                     |   6 +
drivers/iio/amplifiers/ad8366.c                    | 362 +++++++++++----------
4 files changed, 297 insertions(+), 177 deletions(-)
[PATCH v3 0/9] iio: amplifiers: ad8366: driver update and dt support
Posted by Rodrigo Alencar via B4 Relay 5 days, 7 hours ago
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 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 (9):
      MAINTAINERS: Add missing maintainer entry for AD8366 driver
      dt-bindings: iio: amplifiers: Add AD8366 support
      iio: amplifiers: ad8366: use devm_mutex_init() and drop mutex_init()
      iio: amplifiers: ad8366: drop reset_gpio from private struct
      iio: amplifiers: ad8366: refactor device resource management
      iio: amplifiers: ad8366: sort header includes
      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                    | 362 +++++++++++----------
 4 files changed, 297 insertions(+), 177 deletions(-)
---
base-commit: 62b44ebc1f2c71db3ca2d4737c52e433f6f03038
change-id: 20251121-iio-ad8366-update-56abac58bbca

Best regards,
-- 
Rodrigo Alencar <rodrigo.alencar@analog.com>
Re: [PATCH v3 0/9] iio: amplifiers: ad8366: driver update and dt support
Posted by Jonathan Cameron 2 days, 22 hours ago
On Tue, 03 Feb 2026 11:24:06 +0000
Rodrigo Alencar via B4 Relay <devnull+rodrigo.alencar.analog.com@kernel.org> wrote:

> 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>
I took a look through and didn't have anything significant to add.

Looks like it'll be good to go for v4. We have plenty of time
to make things extra nice as I won't be merging anything else for
the coming merge window.

Thanks,

Jonathan