# Analog Devices MAX22007 DAC

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / dac_

> Device-tree binding reference for Analog Devices MAX22007 DAC.

<!-- SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;iio&#47;dac&#47;adi&#44;max22007&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Janani Sunil &#60;janani&#46;sunil&#64;analog&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">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</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d5c57c22d966a033492b">[<code>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</span>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;adi&#44;max22007&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</code></span>

<a id="dt-03a3b4f56bf191dde680"></a>

### <code>spi&#45;max&#45;frequency</code> — not listed as required here

**Maximum value (<code>maximum</code>):** <span id="dt-f17e1c3bb71259096275"><code>500000</code></span>

<a id="dt-2efe70314a961a652abe"></a>

### <code>&#35;address&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-e6e6af09ab617572731b"><code>1</code></span>

<a id="dt-ee0e5bf71366d312f1dc"></a>

### <code>&#35;size&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-793e842f88ef513a8f93"><code>0</code></span>

<a id="dt-236855bde9eebcc9d904"></a>

### <code>vdd&#45;supply</code> — required here

<div id="dt-bc3e69b335e23d461899">
<p style="white-space: pre-wrap">Low-Voltage Power Supply from +2.7V to +5.5V.</p>
</div>

<a id="dt-43433119eabf8ca710a6"></a>

### <code>hvdd&#45;supply</code> — required here

<div id="dt-a5a25a4169539c3f9913">
<p style="white-space: pre-wrap">Positive High-Voltage Power Supply from +8V to (HVSS +24V) for the Output Channels.</p>
</div>

<a id="dt-de0a1f0cea43c48d3e2c"></a>

### <code>hvss&#45;supply</code> — not listed as required here

<div id="dt-9d116d45ad64b3da436f">
<p style="white-space: pre-wrap">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.</p>
</div>

<a id="dt-fdf18029f1f43a541a62"></a>

### <code>reset&#45;gpios</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-140c9736042c6903f7ff"><code>1</code></span>

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">Active low GPIO.</p>
</div>

<a id="dt-e92215bd3c2f5373b164"></a>

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-851beb48e74b776e2b4b"></a>

### <code>&#94;channel&#64;&#91;0&#45;3&#93;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-18a2ccaf45a0cc940a13">[<code>&#47;schemas&#47;iio&#47;dac&#47;dac&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-iio/dac/dac.md#dt-root>)</span>

**Value type (<code>type</code>):** <span id="dt-28ae12fb925f8b12222a"><code>&#34;object&#34;</code></span>

<div id="dt-dd8e1d4a3870cf8fd802">
<p style="white-space: pre-wrap">Represents the external channels which are connected to the DAC.</p>
</div>

<a id="dt-5c59eaa07153383ce9f8"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-f1b49981a1388e74c630"></a>

**<code>reg</code> — required here**

<div id="dt-37064238cfe14c8d59ca">
<p style="white-space: pre-wrap">Channel number</p>
</div>

<a id="dt-38b9123087dc6abd2a9a"></a>

**Array item rules (<code>items</code>)**

> **Minimum value (<code>minimum</code>):** <span id="dt-76ea11aa7da5d8c2cc68"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-dccf5136998bdac76174"><code>3</code></span>

<a id="dt-5893a381d597ec914395"></a>

**<code>adi&#44;ch&#45;func</code> — required here**

<div id="dt-cb5740367eef795056f0">
<p style="white-space: pre-wrap">Channel output type. Use CH_FUNC_VOLTAGE_OUTPUT for voltage output or CH_FUNC_CURRENT_OUTPUT for current output.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-cec1dc78c9045b5c3f94">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-c18ed2a75534dbdae205"></a> <span id="dt-f85d2a3ff32bd9c14eac"><code>1</code></span>, <span id="dt-2d780917e4f27d1a3447"><code>2</code></span>

**Required in this object (<code>required</code>):** <a id="dt-ed8c88f28db5f41ceea0"></a> <span id="dt-2369497c99afd9cc977c"><code>&#34;reg&#34;</code></span>, <span id="dt-84e3d84edad52a123be1"><code>&#34;adi&#44;ch&#45;func&#34;</code></span>

<a id="dt-b42fc54dc57308b4c5e5"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;vdd&#45;supply&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;hvdd&#45;supply&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/gpio/gpio.h&gt;
#include &lt;dt-bindings/iio/addac/adi,ad74413r.h&gt;

spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

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

        channel@0 {
            reg = &lt;0&gt;;
            adi,ch-func = &lt;CH_FUNC_VOLTAGE_OUTPUT&gt;;
        };

        channel@1 {
            reg = &lt;1&gt;;
            adi,ch-func = &lt;CH_FUNC_CURRENT_OUTPUT&gt;;
        };
    };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)</span></p>

</details>
