This patch series introduces support for the Analog Devices MAX22007, a
quad-channel, 12-bit digital-to-analog converter (DAC) with integrated
precision output amplifiers and configurable voltage/current output capability.
**Device Overview:**
The MAX22007 features four independent DAC channels that can each be configured
for either voltage output (0-12.5V) or current output (0-25mA) mode. The device
communicates via SPI interface with built-in CRC8 error checking for data integrity.
**Features Implemented:**
- Support for all 4 DAC channels with 12-bit resolution
- Per-channel voltage/current mode configuration via device tree
property `adi,type = [voltage, current]`
- Independent power control for each channel (attribute)
- Hardware reset support via GPIO (during probe)
- CRC8 error checking for SPI communication
**Patch Summary:**
1. dt-bindings: Binding documentation with channel configuration
2. documentation: Driver documentation with usage examples
3. driver: Implement IIO DAC driver
**Testing:**
The driver was hardware tested on a Raspberry Pi4 on top of v6.12.y
kernel using the MAX22007EVKIT evaluation board.
Janani Sunil (3):
dt-bindings: iio: dac: Add max22007
iio: dac: Add MAX22007 DAC driver support
docs: iio: Add documentation for MAX22007 driver
.../bindings/iio/dac/adi,max22007.yaml | 117 ++++
Documentation/iio/index.rst | 1 +
Documentation/iio/max22007.rst | 170 ++++++
drivers/iio/dac/Kconfig | 12 +
drivers/iio/dac/Makefile | 1 +
drivers/iio/dac/max22007.c | 522 ++++++++++++++++++
6 files changed, 823 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,max22007.yaml
create mode 100644 Documentation/iio/max22007.rst
create mode 100644 drivers/iio/dac/max22007.c
---
To: Lars-Peter Clausen <lars@metafoo.de>
To: Michael Hennerich <Michael.Hennerich@analog.com>
To: Alexandru Ardelean <alexandru.ardelean@analog.com>
To: Jonathan Cameron <jic23@kernel.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Jonathan Corbet <corbet@lwn.net>
Cc: linux-iio@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-doc@vger.kernel.org
Signed-off-by: Janani Sunil <janani.sunil@analog.com>
---
Janani Sunil (3):
dt-bindings: iio: dac: Add max22007
docs: iio: Add documentation for MAX22007 driver
iio: dac: Add MAX22007 DAC driver support
.../devicetree/bindings/iio/dac/adi,max22007.yaml | 116 +++++
Documentation/iio/index.rst | 1 +
Documentation/iio/max22007.rst | 145 ++++++
MAINTAINERS | 9 +
drivers/iio/dac/Kconfig | 13 +
drivers/iio/dac/Makefile | 1 +
drivers/iio/dac/max22007.c | 487 +++++++++++++++++++++
7 files changed, 772 insertions(+)
---
base-commit: a7b10f0963c651a6406d958a5f64b9c5594f84da
change-id: 20251219-max22007-dev-1aaf08db7890
Best regards,
--
Janani Sunil <janani.sunil@analog.com>