Skip to content
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 ad3530r driver #2680

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

add ad3530r driver #2680

wants to merge 4 commits into from

Conversation

kseerp
Copy link
Contributor

@kseerp kseerp commented Dec 17, 2024

PR Description

Part is unreleased, allowed by requestor to create PR for public release and initial review.

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly (if there is the case)

@kseerp
Copy link
Contributor Author

kseerp commented Dec 20, 2024

v2

  • address relevant CI complaints

@kseerp kseerp marked this pull request as ready for review December 20, 2024 15:46
Copy link
Collaborator

@nunojsa nunojsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First round...

drivers/iio/dac/ad3530r.c Outdated Show resolved Hide resolved
drivers/iio/dac/ad3530r.c Show resolved Hide resolved
drivers/iio/dac/ad3530r.c Show resolved Hide resolved
drivers/iio/dac/ad3530r.c Outdated Show resolved Hide resolved
drivers/iio/dac/ad3530r.c Outdated Show resolved Hide resolved
drivers/iio/dac/ad3530r.c Outdated Show resolved Hide resolved
drivers/iio/dac/ad3530r.c Outdated Show resolved Hide resolved
drivers/iio/dac/ad3530r.c Outdated Show resolved Hide resolved
drivers/iio/dac/ad3530r.c Show resolved Hide resolved
drivers/iio/dac/ad3530r.c Outdated Show resolved Hide resolved
Define muxout_select and muxout_select_available sysfs interface for the
AD3530R DAC.

Signed-off-by: Kim Seer Paller <[email protected]>
Add documentation for ad3530r.

Signed-off-by: Kim Seer Paller <[email protected]>
The AD3530/AD3530R are low power, 8-channel, 16-bit, buffered voltage
output, DACs that include software-programmable gain controls that
result in full-scale output spans of 2.5V or 5V for reference voltages
of 2.5V. The devices operate from single, 2.7V to 5.5V supply ranges and
are guaranteed monotonic by design. The AD3530R also offers a 2.5V,
5ppm/°C internal reference that is disabled by default.

Signed-off-by: Kim Seer Paller <[email protected]>
Add entry for the AD3530R driver.

Signed-off-by: Kim Seer Paller <[email protected]>
@kseerp kseerp reopened this Jan 31, 2025
@kseerp
Copy link
Contributor Author

kseerp commented Jan 31, 2025

v3

  • added ABI file

bindings:

  • added iovcc-supply property
  • made vcc-supply and iovcc-supply as required property
  • added datasheet link

ad3530r:

  • dropped unused macros, headers and registers
  • used devm_regulator_get_enable_read_voltage()
  • used IIO_DMA_MINALIGN macro for alignment
  • used macros for hardcoded values
  • modified state for reset-gpio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants