Analog Devices MAX22007 DAC

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

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

Maintainers (maintainers): "Janani Sunil <janani.sunil@analog.com>"

The MAX22007 is a quad-channel, 12-bit digital-to-analog converter (DAC) with integrated precision output amplifiers and current output capability. Each channel can be independently configured for voltage or current output. Datasheet available at https://www.analog.com/en/products/max22007.html

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "adi,max22007"

reg — required here #

Maximum number of items (maxItems): 1

spi-max-frequency — not listed as required here #

Maximum value (maximum): 500000

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

vdd-supply — required here #

Low-Voltage Power Supply from +2.7V to +5.5V.

hvdd-supply — required here #

Positive High-Voltage Power Supply from +8V to (HVSS +24V) for the Output Channels.

hvss-supply — not listed as required here #

Optional Negative High-Voltage Power Supply from -2V to 0V for the Output Channels. For most applications HVSS can be connected to GND (0V), but for applications requiring output down to true 0V or 0mA, connect to a -2V supply.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Active low GPIO.

Properties matching a name pattern (patternProperties) #

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

Shared schema rule ($ref): /schemas/iio/dac/dac.yaml#

Value type (type): "object"

Represents the external channels which are connected to the DAC.

Properties and child nodes (properties) #

reg — required here

Channel number

Array item rules (items)

Minimum value (minimum): 0

Maximum value (maximum): 3

adi,ch-func — required here

Channel output type. Use CH_FUNC_VOLTAGE_OUTPUT for voltage output or CH_FUNC_CURRENT_OUTPUT for current output.

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

Allowed values (enum): 1, 2

Required in this object (required): "reg", "adi,ch-func"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "vdd-supply", "hvdd-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/iio/addac/adi,ad74413r.h>

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    dac@0 {
        compatible = "adi,max22007";
        reg = <0>;
        spi-max-frequency = <500000>;
        reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
        vdd-supply = <&vdd_reg>;
        hvdd-supply = <&hvdd_reg>;
        #address-cells = <1>;
        #size-cells = <0>;

        channel@0 {
            reg = <0>;
            adi,ch-func = <CH_FUNC_VOLTAGE_OUTPUT>;
        };

        channel@1 {
            reg = <1>;
            adi,ch-func = <CH_FUNC_CURRENT_OUTPUT>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page