Analog Devices AD5770R DAC device driver
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5770r.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>", "Nuno Sá <nuno.sa@analog.com>"
Bindings for the Analog Devices AD5770R current DAC device. Datasheet can be
found here:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD5770R.pdf
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "adi,ad5770r"
reg — required here #
Maximum number of items (maxItems): 1
avdd-supply — not listed as required here #
AVdd voltage supply. Represents two different supplies in the datasheet that are in fact the same.
iovdd-supply — not listed as required here #
Voltage supply for the chip interface.
vref-supply — not listed as required here #
Specify the voltage of the external reference used. Available reference options are 1.25 V or 2.5 V. If no external reference declared then the device will use the internal reference of 1.25 V.
adi,external-resistor — not listed as required here #
Specify if an external 2.5k ohm resistor is used. If not specified the device will use an internal 2.5k ohm resistor. The precision resistor is used for reference current generation.
Value type (type): "boolean"
reset-gpios — not listed as required here #
GPIO spec for the RESET pin. If specified, it will be asserted during driver probe.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
channel@0 — required here #
Represents an external channel which are connected to the DAC. Channel 0 can act both as a current source and sink.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
This represents the channel number.
Exact value (const): 0
adi,range-microamp — not listed as required here
Output range of the channel.
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Exact value (
const):300000
Rule 2
Array item rules (
items)Item 1
Exact value (
const):-60000Item 2
Exact value (
const):0
Rule 3
Array item rules (
items)Item 1
Exact value (
const):-60000Item 2
Exact value (
const):300000
channel@1 — required here #
Represents an external channel which are connected to the DAC.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
This represents the channel number.
Exact value (const): 1
adi,range-microamp — not listed as required here
Output range of the channel.
Array item rules (items)
Item 1
Exact value (
const):0
Item 2
channel@2 — required here #
Represents an external channel which are connected to the DAC.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
This represents the channel number.
Exact value (const): 2
adi,range-microamp — not listed as required here
Output range of the channel.
Array item rules (items)
Item 1
Exact value (
const):0
Item 2
Properties matching a name pattern (patternProperties) #
^channel@([3-5])$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Represents the external channels which are connected to the DAC.
Properties and child nodes (properties) #
reg — not listed as required here
This represents the channel number.
Minimum value (minimum): 3
Maximum value (maximum): 5
adi,range-microamp — not listed as required here
Output range of the channel.
Array item rules (items)
Item 1
Exact value (
const):0
Item 2
Required in this object (required): "reg", "channel@0", "channel@1", "channel@2", "channel@3", "channel@4", "channel@5"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
ad5770r@0 {
compatible = "adi,ad5770r";
reg = <0>;
spi-max-frequency = <1000000>;
vref-supply = <&vref>;
adi,external-resistor;
reset-gpios = <&gpio 22 0>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
adi,range-microamp = <0 300000>;
};
channel@1 {
reg = <1>;
adi,range-microamp = <0 140000>;
};
channel@2 {
reg = <2>;
adi,range-microamp = <0 55000>;
};
channel@3 {
reg = <3>;
adi,range-microamp = <0 45000>;
};
channel@4 {
reg = <4>;
adi,range-microamp = <0 45000>;
};
channel@5 {
reg = <5>;
adi,range-microamp = <0 45000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2020 Analog Devices Inc.