Extend device support for AD5686 driver #3232
Open
rodrigo455 wants to merge 103 commits into
Open
Conversation
5da2875 to
71cdaf3
Compare
9e516c8 to
9f44ff1
Compare
nunojsa
reviewed
Apr 2, 2026
Collaborator
nunojsa
left a comment
There was a problem hiding this comment.
Looks mostly good! Some things more relevant to change but I would say it's mostly upstream ready.
Thanks for taking care of this and bringing one more driver up to date!
|
|
||
| ret = spi_sync(spi, &bus_data->msg); | ||
| if (ret) | ||
| return ret; |
Collaborator
There was a problem hiding this comment.
nit: new line
I also wonder if this does not need locking?
3469c5e to
4c5c47c
Compare
59be8ec to
58a740e
Compare
8ccfdb1 to
5d18d61
Compare
Check return value of iio_compute_scan_bytes() as it can return an error. The result is moved to an output parameter while we are touching this as we will need to add a second output parameter in a later change. The return type of iio_buffer_update_bytes_per_datum() also had to be changed to propagate the error. Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Most of the supported devices rely on a GAIN pin to control a 2x multiplier applied to the output voltage. Other devices, e.g. the single-channel ones, provides a gain control through a bit field in the control register. Some designs might have the GAIN pin hardwired to VDD/VLOGIC or GND, which would still be fine for this patch, that allows the scale property to be configurable with two available options. In read_raw() and write_raw() implementations mutex guards are used to allow early returns. Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Support for AD5316R, AD5673R, AD5675, AD5677R and AD5697R missing from the device-tree bindings documentation. These devices have different bit resolutions or different number of channels so no fallback compatibles are used. Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Add compatible entries for AD5313R, AD5317R, AD5674, AD5679, AD5687, AD5687R, AD5689, AD5689R. These devices have unique combination of channel count, bit resolution and supported command set, so that fallback compatibles are not used. Also, a small copy-and-paste error is fixed to the title field. Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Add support for AD5313R, AD5317R, AD5674, AD5679, AD5687, AD5687R, AD5689, AD5689R to the AD5686 SPI driver. Also adding support for AD5316R, AD5675, AD5697R to the AD5696 I2C driver. This includes the creation of seven chip info struct instances and reuse of existing ones. Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Update device list entries in Kconfig and remove device description from file headers. One can rely on the ID table(s) to check for supported devices. Adjust comment header accordingly and update update Copyright notice in comment file headers with the current year. Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
2474435 to
ad5f1d1
Compare
850d20b to
590b70f
Compare
c2f48c4 to
d16d458
Compare
d16d458 to
4783e10
Compare
Collaborator
|
@rodrigo455, I lost a bit track of this one upstream! Was it accepted already? If so, please update this PR |
Collaborator
Author
Hi @nunojsa, a patch series is broken down into three now:
The first one is on its way, but fixes are pending to be merged first so the cleanups can go in. |
90f0e0f to
0aebd74
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
This series adds support for multiple nanoDAC parts, adding triggered
buffer and gain control support to the ad5686 DAC driver family, along
with a number of driver cleanups and fixes.
Initial patches update the device-tree bindings:
Driver cleanups and fixes:
bus transfers.
New functionality:
AD5674, AD5679, AD5687, AD5687R, AD5689 and AD5689R;
all channel writes atomically;
PR Type
PR Checklist