[PATCH v4 0/2] add AD8460 DAC driver
From: Mariel Tinaco
Date: Thu Sep 12 2024 - 05:55:35 EST
Apply comments for adding support to AD8460 Waveform Generator DAC
changes in v4
ad8460:
* Fixed spacing issues and tab format of includes.
* Changed data type of spi_tx_buffer to __le16. Then used le16_to_cpu and
cpu_to_le16 functions for bulk read and write access.
* Changed print format in sysfs_emit for unsigned int.
* Added comments on powerdown write function to describe logic.
* Omitted "_shared" parameter in AD8460_CHAN_EXT_INFO.
* Applied further changes to channel definition (endianness = IIO_CPU and
AD8460_CURRENT_CHAN output = 1).
* Reformatted section that reads REFIO_1P2V voltage.
* Fixed upper and lower limits for checking of REFIO_1P2V.
* Removed comment for arming the device in probe function.
* Created a section for IIO related includes.
* Replaced mutex_init with devm_mutex_init.
* Added and enabled the other supplies using regulator bulk enable
* Handled devm_iio_channel_get error -EPROBE_DEFER by returning
-EPROBE_DEFER
Bindings:
* Removed description on clocks
* Reverted GPIO pin name to shutdown-reset-GPIO
* Added minimum, maximum and default for setting voltage, current and
temperature
* Added required supplies
* Changed additionalProperties to unevaluatedProperties
Mariel Tinaco (2):
dt-bindings: iio: dac: add docs for ad8460
iio: dac: support the ad8460 Waveform DAC
.../bindings/iio/dac/adi,ad8460.yaml | 164 +++
MAINTAINERS | 8 +
drivers/iio/dac/Kconfig | 13 +
drivers/iio/dac/Makefile | 1 +
drivers/iio/dac/ad8460.c | 947 ++++++++++++++++++
5 files changed, 1133 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ad8460.yaml
create mode 100644 drivers/iio/dac/ad8460.c
base-commit: fec496684388685647652ab4213454fbabdab099
--
2.34.1