-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for AD4170 sigma-delta ADCs #2573
Open
machschmitt
wants to merge
10
commits into
main
Choose a base branch
from
staging/ad4170
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
machschmitt
force-pushed
the
staging/ad4170
branch
5 times, most recently
from
October 8, 2024 18:20
b978385
to
3418827
Compare
Add defines to improve readability of AD4170 device tree nodes. Signed-off-by: Ana-Maria Cusco <ana-maria.cusco@analog.com> Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Add device tree documentation for AD4170 sigma-delta ADCs. Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com> Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Add support for the AD4170 ADC with the following features: - Single-shot read (read_raw), scale, sampling freq - Multi channel buffer support - Buffered capture in triggered mode - Buffered capture with SPI-Engine - Gain and offset calibration - Support for gpio controller - chop_iexc and chop_adc device configuration - Powerdown switch configuration Signed-off-by: Ana-Maria Cusco <ana-maria.cusco@analog.com> Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com> Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
machschmitt
force-pushed
the
staging/ad4170
branch
from
October 9, 2024 12:45
3418827
to
1373835
Compare
ADCs can have different input configurations such that developers can get confused when trying to model some of them into IIO channels. For example, some differential ADCs can have their channels configured as pseudo-differential channels. In that configuration, only one input connects to the signal of interest as opposed to using two inputs of a differential input configuration. Datasheets sometimes also refer to pseudo-differential inputs as single-ended inputs even though they have distinct physical configuration and measurement procedure. There has been some previous discussion in the mailing list about pseudo-differential and single-ended channels [1]. Documenting the many possible ADC channel configurations should provide two benefits: A) Consolidate the knowledge from [2] and from [1], and hopefully reduce the reviewing time of forthcoming ADC drivers. B) Help Linux developers figure out quicker how to better support differential ADCs, specially those that can have channels configured as pseudo-differential inputs. Add documentation about common ADC characteristics and IIO support for them. [1]: https://lore.kernel.org/linux-iio/0fef36f8-a7db-40cc-86bd-9449cb4ab46e@gmail.com/ [2]: https://www.analog.com/en/resources/technical-articles/sar-adc-input-types.html. Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Currently, the CI complains about not finding |
machschmitt
requested review from
nunojsa,
mhennerich,
dbogdan,
btogorean,
chegbeli,
buha,
amiclaus,
rbolboac,
danmois and
CiprianRegus
as code owners
October 9, 2024 13:25
Copied from socfpga_cyclone5_de10_nano_ad4190.dts. Only compatible string change. Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Copied from zynq-coraz7s-ad4170.dts. Only compatible string change. Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Initial support for AD4190. Same functionality as AD4170 but displays different name. Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
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
Add support for AD4170 Sigma-Delta ADC.
This ADC supports many configurations.
One tricky part is supporting different channel setups (differential / pseudo-differential) and voltage reference supplies.
The added documentation aims to help review this driver by explaining the many possible ADC channel configurations and tries to generalize the consolidated knowledge so it may be useful for other ADCs.
PR Type
PR Checklist