# Analog Devices AD5770R DAC device driver

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

> Device-tree binding reference for Analog Devices AD5770R DAC device driver.

<!-- 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;ad5770r&#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;Marcelo Schmitt &#60;marcelo&#46;schmitt&#64;analog&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Nuno Sá &#60;nuno&#46;sa&#64;analog&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>Bindings for the Analog Devices AD5770R current DAC device. Datasheet can be
found here:
  https://www.analog.com/media/en/technical-documentation/data-sheets/AD5770R.pdf</code></pre>
</div>

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

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

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

### <code>compatible</code> — not listed as required here

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;adi&#44;ad5770r&#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-14397a69ba55f41119c5"></a>

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

<div id="dt-c928412db05126ef65e3">
<p style="white-space: pre-wrap">AVdd voltage supply. Represents two different supplies in the datasheet that are in fact the same.</p>
</div>

<a id="dt-79d466fdcccc88d28b5b"></a>

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

<div id="dt-2944c46a7e888b63a216">
<p style="white-space: pre-wrap">Voltage supply for the chip interface.</p>
</div>

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

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

<div id="dt-f9c8a721f6889569bcad">
<p style="white-space: pre-wrap">Specify the voltage of the external reference used. Available reference options are 1.25 V or 2.5 V. If no external reference declared then the device will use the internal reference of 1.25 V.</p>
</div>

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

### <code>adi&#44;external&#45;resistor</code> — not listed as required here

<div id="dt-c49e31024798581c7363">
<p style="white-space: pre-wrap">Specify if an external 2.5k ohm resistor is used. If not specified the device will use an internal 2.5k ohm resistor. The precision resistor is used for reference current generation.</p>
</div>

**Value type (<code>type</code>):** <span id="dt-3abc89bef337cb1428f8"><code>&#34;boolean&#34;</code></span>

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

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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">GPIO spec for the RESET pin. If specified, it will be asserted during driver probe.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-140c9736042c6903f7ff"><code>1</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-e9552d165b31fa132ef1"></a>

### <code>channel&#64;0</code> — required here

<div id="dt-55a489c4109664b65b7b">
<p style="white-space: pre-wrap">Represents an external channel which are connected to the DAC. Channel 0 can act both as a current source and sink.</p>
</div>

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

<a id="dt-4c25d17686db580ddf21"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

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

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

<a id="dt-0182778f48d45e1a7740"></a>

**<code>reg</code> — not listed as required here**

<div id="dt-e6f14ccddaf4b2f4cd9a">
<p style="white-space: pre-wrap">This represents the channel number.</p>
</div>

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

<a id="dt-89b205fb732ad017adc5"></a>

**<code>adi&#44;range&#45;microamp</code> — not listed as required here**

<div id="dt-fb59e537369ef6f9913e">
<p style="white-space: pre-wrap">Output range of the channel.</p>
</div>

<a id="dt-476556ecb36b62c7208e"></a>

**Exactly one of these rules must match (<code>oneOf</code>)**

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

**Rule 1**

> <a id="dt-d0703471e69f2650f167"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-a57d95f0c0fd7c37fc8d"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-0965e2e5c66f7f1d06c7"><code>0</code></span>
>
> <a id="dt-9870554c3f7103f1f72a"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-a01abbd179853d816f96"><code>300000</code></span>

<a id="dt-7d639fef9814a8eacd05"></a>

**Rule 2**

> <a id="dt-d4094b6b0778e2e186ef"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-e8fd48b43b0729400c05"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-cce5eeed615a4806fcc9"><code>&#45;60000</code></span>
>
> <a id="dt-bb960e3d243f2147d5c6"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-967359b672d47fcf3890"><code>0</code></span>

<a id="dt-64156d39fc62be6472d8"></a>

**Rule 3**

> <a id="dt-07a2505423c5c7cef02b"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-c053ec184c8b4573a6a4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-391e25b3945de0636730"><code>&#45;60000</code></span>
>
> <a id="dt-8f3d92c6dc93167595e4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-a0581c2140fa73f3ee62"><code>300000</code></span>

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

### <code>channel&#64;1</code> — required here

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

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

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

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-79a723eae8a3b99e160e"></a>

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

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

**<code>reg</code> — not listed as required here**

<div id="dt-14b57717d43f3f8aa6c3">
<p style="white-space: pre-wrap">This represents the channel number.</p>
</div>

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

<a id="dt-911feb5f1aa9bfb94f87"></a>

**<code>adi&#44;range&#45;microamp</code> — not listed as required here**

<div id="dt-76f4855455e5fd171154">
<p style="white-space: pre-wrap">Output range of the channel.</p>
</div>

<a id="dt-0d7a8934eef9931a2f22"></a>

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

<a id="dt-87492e1f9f6a883875d1"></a>

**Item 1**

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

<a id="dt-4e3d9db9c75e320f9c57"></a>

**Item 2**

> **Allowed values (<code>enum</code>):** <a id="dt-096ed0ce9095cccee2a1"></a> <span id="dt-f4ca723e4df707f3d59a"><code>140000</code></span>, <span id="dt-84d0f19efde6568634e9"><code>250000</code></span>

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

### <code>channel&#64;2</code> — required here

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

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

<a id="dt-3469d2bb9886d7297afc"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-50f26c4a439362eae3ac"></a>

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

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

**<code>reg</code> — not listed as required here**

<div id="dt-fe31c54e659ec24eca32">
<p style="white-space: pre-wrap">This represents the channel number.</p>
</div>

**Exact value (<code>const</code>):** <span id="dt-9751cdf12e7577bc2b27"><code>2</code></span>

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

**<code>adi&#44;range&#45;microamp</code> — not listed as required here**

<div id="dt-c13d2f06c7d3f49f26d3">
<p style="white-space: pre-wrap">Output range of the channel.</p>
</div>

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

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

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

**Item 1**

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

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

**Item 2**

> **Allowed values (<code>enum</code>):** <a id="dt-43dc6e0d36f5c04cc16c"></a> <span id="dt-01dca4425aa18eedfaf3"><code>55000</code></span>, <span id="dt-87a4ad9b5936916d74f8"><code>150000</code></span>

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

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

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

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

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

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

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

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

<a id="dt-5725dd3d327d59387bd6"></a>

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

<a id="dt-358f50009553d42c31e6"></a>

**<code>reg</code> — not listed as required here**

<div id="dt-9fc0c3e92fc248aa799b">
<p style="white-space: pre-wrap">This represents the channel number.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-6b46c80c1cf61fdb7c4b"><code>3</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-15de4390aafc02aed3bf"><code>5</code></span>

<a id="dt-2949adb1ec0503507f50"></a>

**<code>adi&#44;range&#45;microamp</code> — not listed as required here**

<div id="dt-971eec791b7370efa511">
<p style="white-space: pre-wrap">Output range of the channel.</p>
</div>

<a id="dt-091cc77ba42afe049ed4"></a>

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

<a id="dt-100d0bcf9fa3c9081f53"></a>

**Item 1**

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

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

**Item 2**

> **Allowed values (<code>enum</code>):** <a id="dt-f213617eefafef92cf8d"></a> <span id="dt-460f2af82f52e7b1784f"><code>45000</code></span>, <span id="dt-185d3123a08409a6798b"><code>100000</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;reg&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;channel&#64;0&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;channel&#64;1&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;channel&#64;2&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;channel&#64;3&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;channel&#64;4&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;channel&#64;5&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<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-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">spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    ad5770r@0 {
        compatible = "adi,ad5770r";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;1000000&gt;;
        vref-supply = &lt;&amp;vref&gt;;
        adi,external-resistor;
        reset-gpios = &lt;&amp;gpio 22 0&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        channel@0 {
            reg = &lt;0&gt;;
            adi,range-microamp = &lt;0 300000&gt;;
        };

        channel@1 {
            reg = &lt;1&gt;;
            adi,range-microamp = &lt;0 140000&gt;;
        };

        channel@2 {
            reg = &lt;2&gt;;
            adi,range-microamp = &lt;0 55000&gt;;
        };

        channel@3 {
            reg = &lt;3&gt;;
            adi,range-microamp = &lt;0 45000&gt;;
        };

        channel@4 {
            reg = &lt;4&gt;;
            adi,range-microamp = &lt;0 45000&gt;;
        };

        channel@5 {
            reg = &lt;5&gt;;
            adi,range-microamp = &lt;0 45000&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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright 2020 Analog Devices Inc.</span></p>

</details>
