Analog Devices AD5758 DAC
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5758.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <Michael.Hennerich@analog.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,ad5758"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — required here #
true — No constraints added by this property rule.
adi,dc-dc-mode — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 3
Mode of operation of the dc-to-dc converter Dynamic Power Control (DPC) In this mode, the AD5758 circuitry senses the output voltage and dynamically regulates the supply voltage, VDPC+, to meet compliance requirements plus an optimized headroom voltage for the output buffer.
Programmable Power Control (PPC) In this mode, the VDPC+ voltage is user-programmable to a fixed level that needs to accommodate the maximum output load required.
The output of the DAC core is either converted to a current or voltage output at the VIOUT pin. Only one mode can be enabled at any one time.
The following values are currently supported: * 1: DPC current mode * 2: DPC voltage mode * 3: PPC current mode
Depending on the selected output mode (voltage or current) one of the two properties must be present:
adi,range-microvolt — not listed as required here #
Voltage output range specified as <minimum, maximum>
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Rule 2
Array item rules (
items)Item 1
Exact value (
const):-5000000Item 2
Exact value (
const):5000000
Rule 3
Array item rules (
items)Item 1
Exact value (
const):-10000000Item 2
Exact value (
const):10000000
adi,range-microamp — not listed as required here #
Current output range specified as <minimum, maximum>
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Rule 2
Array item rules (
items)Item 1
Exact value (
const):4Item 2
Exact value (
const):24000
Rule 3
Array item rules (
items)Item 1
Exact value (
const):-20000Item 2
Exact value (
const):20000
Rule 4
Array item rules (
items)Item 1
Exact value (
const):-24000Item 2
Exact value (
const):24000
Rule 5
Array item rules (
items)Item 1
Exact value (
const):-1000Item 2
Exact value (
const):22000
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
adi,dc-dc-ilim-microamp — not listed as required here #
Allowed values (enum): 150000, 200000, 250000, 300000, 350000, 400000
The dc-to-dc converter current limit.
adi,slew-time-us — not listed as required here #
The time it takes for the output to reach the full scale [uS]
Minimum value (minimum): 133
Maximum value (maximum): 1023984375
Required in this object (required): "compatible", "reg", "spi-cpha", "adi,dc-dc-mode"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
adi,dc-dc-mode— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
adi,range-microvolt— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
adi,range-microamp— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad5758";
reg = <0>;
spi-max-frequency = <1000000>;
spi-cpha;
reset-gpios = <&gpio 22 0>;
adi,dc-dc-mode = <2>;
adi,range-microvolt = <0 10000000>;
adi,dc-dc-ilim-microamp = <200000>;
adi,slew-time-us = <125000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)