Analog Devices AD5064 and similar DACs
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5064.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>", "Jonathan Cameron <jic23@kernel.org>"
A range of similar DAC devices with between 1 and 12 channels. Some parts have internal references, others require a single shared external reference and the remainder have a separate reference pin for each DAC.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
I2C devics
Allowed values (
enum):"adi,ad5024","adi,ad5025","adi,ad5044","adi,ad5045","adi,ad5064","adi,ad5064-1","adi,ad5065","adi,ad5628-1","adi,ad5628-2","adi,ad5648-1","adi,ad5648-2","adi,ad5666-1","adi,ad5666-2","adi,ad5668-1","adi,ad5668-2","adi,ad5668-3"
Rule 2
SPI devices
Allowed values (
enum):"adi,ad5625","adi,ad5625r-1v25","adi,ad5625r-2v5","adi,ad5627","adi,ad5627r-1v25","adi,ad5627r-2v5","adi,ad5629-1","adi,ad5629-2","adi,ad5629-3","adi,ad5645r-1v25","adi,ad5645r-2v5","adi,ad5665","adi,ad5665r-1v25","adi,ad5665r-2v5","adi,ad5667","adi,ad5667r-1v25","adi,ad5667r-2v5","adi,ad5669-1","adi,ad5669-2","adi,ad5669-3","lltc,ltc2606","lltc,ltc2607","lltc,ltc2609","lltc,ltc2616","lltc,ltc2617","lltc,ltc2619","lltc,ltc2626","lltc,ltc2627","lltc,ltc2629","lltc,ltc2631-l12","lltc,ltc2631-h12","lltc,ltc2631-l10","lltc,ltc2631-h10","lltc,ltc2631-l8","lltc,ltc2631-h8","lltc,ltc2633-l12","lltc,ltc2633-h12","lltc,ltc2633-l10","lltc,ltc2633-h10","lltc,ltc2633-l8","lltc,ltc2633-h8","lltc,ltc2635-l12","lltc,ltc2635-h12","lltc,ltc2635-l10","lltc,ltc2635-h10","lltc,ltc2635-l8","lltc,ltc2635-h8"
reg — required here #
Maximum number of items (maxItems): 1
vrefA-supply — not listed as required here #
true — No constraints added by this property rule.
vrefB-supply — not listed as required here #
true — No constraints added by this property rule.
vrefC-supply — not listed as required here #
true — No constraints added by this property rule.
vrefD-supply — not listed as required here #
true — No constraints added by this property rule.
vref-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
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)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5064-1","adi,ad5625","adi,ad5627","adi,ad5665","adi,ad5667","lltc,ltc2606","lltc,ltc2607","lltc,ltc2616","lltc,ltc2617","lltc,ltc2626","lltc,ltc2627"When the condition matches (
then) #Properties and child nodes (
properties)
vref-supply— required here
true— No constraints added by this property rule.
vrefA-supply— not listed as required here
false— Not permitted by this property rule.
vrefB-supply— not listed as required here
false— Not permitted by this property rule.
vrefC-supply— not listed as required here
false— Not permitted by this property rule.
vrefD-supply— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5625r-1v25","adi,ad5625r-2v5","adi,ad5627r-1v25","adi,ad5627r-2v5","adi,ad5628-1","adi,ad5628-2","adi,ad5629-1","adi,ad5629-2","adi,ad5629-3","adi,ad5645r-1v25","adi,ad5645r-2v5","adi,ad5647r-1v25","adi,ad5647r-2v5","adi,ad5648-1","adi,ad5648-2","adi,ad5665r-1v25","adi,ad5665r-2v5","adi,ad5666-1","adi,ad5666-2","adi,ad5667r-1v25","adi,ad5667r-2v5","adi,ad5668-1","adi,ad5668-2","adi,ad5668-3","adi,ad5669-1","adi,ad5669-2","adi,ad5669-3","lltc,ltc2631-l12","lltc,ltc2631-h12","lltc,ltc2631-l10","lltc,ltc2631-h10","lltc,ltc2631-l8","lltc,ltc2631-h8","lltc,ltc2633-l12","lltc,ltc2633-h12","lltc,ltc2633-l10","lltc,ltc2633-h10","lltc,ltc2633-l8","lltc,ltc2633-h8","lltc,ltc2635-l12","lltc,ltc2635-h12","lltc,ltc2635-l10","lltc,ltc2635-h10","lltc,ltc2635-l8","lltc,ltc2635-h8"When the condition matches (
then) #Properties and child nodes (
properties)
vref-supply— not listed as required here
true— No constraints added by this property rule.
vrefA-supply— not listed as required here
false— Not permitted by this property rule.
vrefB-supply— not listed as required here
false— Not permitted by this property rule.
vrefC-supply— not listed as required here
false— Not permitted by this property rule.
vrefD-supply— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5024","adi,ad5044","adi,ad5064","lltc,ltc2609","lltc,ltc2619","lltc,ltc2629"When the condition matches (
then) #Properties and child nodes (
properties)
vrefA-supply— required here
true— No constraints added by this property rule.
vrefB-supply— required here
true— No constraints added by this property rule.
vrefC-supply— required here
true— No constraints added by this property rule.
vrefD-supply— required here
true— No constraints added by this property rule.
vref-supply— not listed as required here
false— Not permitted by this property rule.Required in this object (
required):"vrefA-supply","vrefB-supply","vrefC-supply","vrefD-supply"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"adi,ad5025","adi,ad5045","adi,ad5065"When the condition matches (
then) #Properties and child nodes (
properties)
vrefA-supply— required here
true— No constraints added by this property rule.
vrefB-supply— required here
true— No constraints added by this property rule.
vrefC-supply— not listed as required here
false— Not permitted by this property rule.
vrefD-supply— not listed as required here
false— Not permitted by this property rule.
vref-supply— not listed as required here
false— Not permitted by this property rule.Required in this object (
required):"vrefA-supply","vrefB-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
reg = <0>;
compatible = "adi,ad5625";
vref-supply = <&dac_vref>;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
dac@0 {
reg = <0>;
compatible = "adi,ad5625r-1v25";
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
dac@42 {
reg = <0x42>;
compatible = "adi,ad5024";
vrefA-supply = <&dac_vref>;
vrefB-supply = <&dac_vref>;
vrefC-supply = <&dac_vref2>;
vrefD-supply = <&dac_vref2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 104: Shared external vref, no internal reference
Line 130: Shared external vref, internal reference available
Line 188: 4 input devices, separate vrefs, no internal reference
Line 212: 2 input devices, separate vrefs, no internal reference