-
Notifications
You must be signed in to change notification settings - Fork 892
iio: dac: Add AD5413 support #2786
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
Open
BruceTsaoADI
wants to merge
6
commits into
analogdevicesinc:main
Choose a base branch
from
BruceTsaoADI:add-ad5413-driver
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.
+842
−1
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
def3ac3
iio: dac: Add AD5413 support
BruceTsaoADI 768a806
iio: dac: ad5413: Integrate reviewer feedback
BruceTsaoADI e666c72
dt-bindings: iio: dac: ad5413: address yaml feedback (range, reset-gp…
BruceTsaoADI 1401608
iio: dac: ad5413: fix FIELD_PREP() include and YAML binding
BruceTsaoADI 9fff4a3
iio: dac: ad5413: finalize updates per reviewer feedback
BruceTsaoADI fba488a
iio: dac: ad5413: fix style issues and YAML schema
BruceTsaoADI File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/iio/dac/adi,ad5413.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Analog Devices AD5413 DAC | ||
|
||
maintainers: | ||
- Bruce Tsao <[email protected]> | ||
|
||
properties: | ||
compatible: | ||
const: adi,ad5413 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
spi-max-frequency: | ||
maximum: 50000000 | ||
|
||
reset-gpios: true | ||
|
||
avdd-supply: | ||
description: Analog positive supply (AVDD) | ||
|
||
dvdd-supply: | ||
description: Digital positive supply (DVDD) | ||
|
||
avss-supply: | ||
description: Analog negative supply (AVSS) | ||
|
||
adi,range-microvolt: | ||
description: Voltage output range <min, max> in microvolts | ||
oneOf: | ||
- items: | ||
- const: -10500000 | ||
- const: 10500000 | ||
- items: | ||
- const: -12600000 | ||
- const: 12600000 | ||
|
||
adi,range-microamp: | ||
description: Current output range <min, max> in microamps | ||
items: | ||
- const: 0 | ||
- const: 24000 | ||
|
||
adi,slew-time-us: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably need a |
||
description: Output digital slew control time in microseconds | ||
minimum: 0 | ||
maximum: 1000000 | ||
default: 0 | ||
|
||
required: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Power supplies should also be required. |
||
- compatible | ||
- reg | ||
- spi-max-frequency | ||
- avdd-supply | ||
- dvdd-supply | ||
- avss-supply | ||
|
||
allOf: | ||
- $ref: /schemas/spi/spi-peripheral-props.yaml# | ||
- oneOf: | ||
- required: ['adi,range-microamp'] | ||
- required: ['adi,range-microvolt'] | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
spi { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
dac@0 { | ||
compatible = "adi,ad5413"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
reset-gpios = <&gpio 0 GPIO_ACTIVE_LOW>; | ||
avdd-supply = <&avdd>; | ||
dvdd-supply = <&dvdd>; | ||
avss-supply = <&avss>; | ||
adi,range-microvolt = <(-10500000) 10500000>; | ||
adi,slew-time-us = <125>; | ||
}; | ||
}; |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.