Analog Devices AD5755 Multi-Channel DAC

Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/adi,ad5755.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sean Nyekjaer <sean.nyekjaer@prevas.dk>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,ad5755", "adi,ad5755-1", "adi,ad5757", "adi,ad5735", "adi,ad5737"

reg — required here #

Maximum number of items (maxItems): 1

spi-cpha — not listed as required here #

Either this or spi-cpol but not both.

spi-cpol — not listed as required here #

true — No constraints added by this property rule.

adi,ext-dc-dc-compenstation-resistor — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Set if the hardware have an external resistor and thereby bypasses the internal compensation resistor.

adi,dc-dc-phase — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

Valid values for DC DC Phase control is:
0: All dc-to-dc converters clock on the same edge.
1: Channel A and Channel B clock on the same edge,
   Channel C and Channel D clock on opposite edges.
2: Channel A and Channel C clock on the same edge,
   Channel B and Channel D clock on opposite edges.
3: Channel A, Channel B, Channel C, and Channel D
   clock 90 degrees out of phase from each other.

adi,dc-dc-freq-hz — not listed as required here #

Allowed values (enum): 250000, 410000, 650000

adi,dc-dc-max-microvolt — not listed as required here #

Maximum allowed Vboost voltage supplied by the dc-to-dc converter.

Allowed values (enum): 23000000, 24500000, 27000000, 29500000

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

#io-channel-cells — not listed as required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg"

Properties matching a name pattern (patternProperties) #

^channel@[0-7]$ — name matches this regular expression #

Value type (type): "object"

Child node to describe a channel

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

adi,mode — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 6

Valid values for DAC modes is: 0: 0 V to 5 V voltage range. 1: 0 V to 10 V voltage range. 2: Plus minus 5 V voltage range. 3: Plus minus 10 V voltage range. 4: 4 mA to 20 mA current range. 5: 0 mA to 20 mA current range. 6: 0 mA to 24 mA current range.

adi,ext-current-sense-resistor — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Set if the hardware has an external current sense resistor

adi,enable-voltage-overrange — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Enable voltage overrange

adi,slew — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array of slewrate settings should contain 3 fields: 1: Should be either 0 or 1 in order to enable or disable slewrate. 2: Slew rate update frequency 3: Slew step size

Array item rules (items)

Item 1

Allowed values (enum): 0, 1

Item 2

Allowed values (enum): 64000, 32000, 16000, 8000, 4000, 2000, 1000, 500, 250, 125, 64, 32, 16, 8, 4, 0

Item 3

Allowed values (enum): 1, 2, 4, 16, 32, 64, 128, 256

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "spi-cpha"

Rule 2 #

Required in this object (required): "spi-cpol"

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>;

    dac@0 {
        #address-cells = <1>;
        #size-cells = <0>;
        compatible = "adi,ad5755";
        reg = <0>;
        spi-max-frequency = <1000000>;
        spi-cpha;
        adi,dc-dc-phase = <0>;
        adi,dc-dc-freq-hz = <410000>;
        adi,dc-dc-max-microvolt = <23000000>;
        channel@0 {
            reg = <0>;
            adi,mode = <4>;
            adi,ext-current-sense-resistor;
            adi,slew = <0 64000 1>;
        };
        channel@1 {
            reg = <1>;
            adi,mode = <4>;
            adi,ext-current-sense-resistor;
            adi,slew = <0 64000 1>;
        };
        channel@2 {
            reg = <2>;
            adi,mode = <4>;
            adi,ext-current-sense-resistor;
            adi,slew = <0 64000 1>;
        };
        channel@3 {
            reg = <3>;
            adi,mode = <4>;
            adi,ext-current-sense-resistor;
            adi,slew = <0 64000 1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page