Analog Devices AD5791 and similar DACs
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5791.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Jonathan Cameron <jic23@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad5760", "adi,ad5780", "adi,ad5781", "adi,ad5790", "adi,ad5791"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
vss-supply — required here #
true — No constraints added by this property rule.
vcc-supply — required here #
Supply that powers the chip.
iovcc-supply — required here #
Supply for the digital interface.
vrefp-supply — required here #
Positive referance input voltage range. From 5v to (vdd - 2.5)
vrefn-supply — required here #
Negative referance input voltage range. From (vss + 2.5) to 0.
adi,rbuf-gain2-en — not listed as required here #
Specify to allow an external amplifier to be connected in a gain of two configuration.
Value type (type): "boolean"
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
clear-gpios — not listed as required here #
Maximum number of items (maxItems): 1
ldac-gpios — not listed as required here #
LDAC pin to be used as a hardware trigger to update the DAC channels.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "vdd-supply", "vss-supply", "vcc-supply", "iovcc-supply", "vrefp-supply", "vrefn-supply"
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) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
compatible = "adi,ad5791";
reg = <0>;
vss-supply = <&dac_vss>;
vdd-supply = <&dac_vdd>;
vcc-supply = <&dac_vcc>;
iovcc-supply = <&dac_iovcc>;
vrefp-supply = <&dac_vrefp>;
vrefn-supply = <&dac_vrefn>;
reset-gpios = <&gpio_bd 16 GPIO_ACTIVE_LOW>;
clear-gpios = <&gpio_bd 17 GPIO_ACTIVE_LOW>;
ldac-gpios = <&gpio_bd 18 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)