# Analog Devices AD5758 DAC

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

> Device-tree binding reference for Analog Devices AD5758 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;ad5758&#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;Michael Hennerich &#60;Michael&#46;Hennerich&#64;analog&#46;com&#62;&#34;</code></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;ad5758&#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-0a35716b647e2a1e66ce"></a>

### <code>spi&#45;cpha</code> — required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-8cdfbdda1fe62309e590"></a>

### <code>adi&#44;dc&#45;dc&#45;mode</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-af7796e093cdbfe53db4">[<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-f55bbe60c3d728441fa0"></a> <span id="dt-8ee6203a9dfbcef035e9"><code>1</code></span>, <span id="dt-93ca5d5f51b22b64622e"><code>2</code></span>, <span id="dt-4fcb78465d20ca209736"><code>3</code></span>

<div id="dt-bffeaffa9fd615b4c39c">
<p style="white-space: pre-wrap">Mode of operation of the dc-to-dc converter
Dynamic Power Control (DPC)
In this mode, the AD5758 circuitry senses the output voltage and
dynamically regulates the supply voltage, VDPC+, to meet compliance
requirements plus an optimized headroom voltage for the output buffer.</p>
<p style="white-space: pre-wrap">Programmable Power Control (PPC)
In this mode, the VDPC+ voltage is user-programmable to a fixed level
that needs to accommodate the maximum output load required.</p>
<p style="white-space: pre-wrap">The output of the DAC core is either converted to a current or
voltage output at the VIOUT pin. Only one mode can be enabled at
any one time.</p>
<p style="white-space: pre-wrap">The following values are currently supported:
* 1: DPC current mode
* 2: DPC voltage mode
* 3: PPC current mode</p>
<p style="white-space: pre-wrap">Depending on the selected output mode (voltage or current) one of the
two properties must be present:</p>
</div>

<a id="dt-038077563e2c75591641"></a>

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

<div id="dt-a002d0c8ad78798891b7">
<p style="white-space: pre-wrap">Voltage output range specified as &lt;minimum, maximum&gt;</p>
</div>

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

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

<a id="dt-41788e75148d524fe7c4"></a>

**Rule 1**

> <a id="dt-0bc732f669d5db46c731"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-57a358b2bb9136abf9fa"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-693780c70e5562c3d93e"><code>0</code></span>
>
> <a id="dt-15fea07ff5967c379fa8"></a>
>
> **Item 2**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-311d3958efba2b4bbc8f"></a> <span id="dt-89a97ca0fb351f7d831a"><code>5000000</code></span>, <span id="dt-c170f89127ec53daeeed"><code>10000000</code></span>

<a id="dt-566baa7c00e884e5e229"></a>

**Rule 2**

> <a id="dt-f7407e1a73585dfe5f0c"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-c1df6417f0ea053df2b8"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-025922234cb50c192ad4"><code>&#45;5000000</code></span>
>
> <a id="dt-a44865da9c9ce912ad16"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-99fdc367015d44d5f971"><code>5000000</code></span>

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

**Rule 3**

> <a id="dt-4ee312dc57058199485a"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-20f2941f40b3fbcfda11"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-33433c00f829b88718ef"><code>&#45;10000000</code></span>
>
> <a id="dt-c0f5f3c7fa4178c92caf"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-f2f7405a0f10a953c435"><code>10000000</code></span>

<a id="dt-6f194f4a65c955f47a22"></a>

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

<div id="dt-299834ea4b5a57f825a8">
<p style="white-space: pre-wrap">Current output range specified as &lt;minimum, maximum&gt;</p>
</div>

<a id="dt-81438e05a6cfe98c3671"></a>

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

<a id="dt-81a086a0171ab9c0fafa"></a>

**Rule 1**

> <a id="dt-9d8716c46fe222307aff"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-1c8f2e126409b8ea6aae"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-b3a27d8e3ae4e844d9a9"><code>0</code></span>
>
> <a id="dt-abad5db9450e72a59531"></a>
>
> **Item 2**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-7a3ad1e4506762c377f5"></a> <span id="dt-e7835ec6712fc3839e27"><code>20000</code></span>, <span id="dt-5d75b301a5355ef97f2b"><code>24000</code></span>

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

**Rule 2**

> <a id="dt-50a50b664f63c18178c9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-a167b97d957cc5aec603"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-484735efa19d1ffc4b6b"><code>4</code></span>
>
> <a id="dt-41f6f0996fd0d00b1579"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-6f7a9fcf5aec2e2d2a68"><code>24000</code></span>

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

**Rule 3**

> <a id="dt-3347f81d44e02a5c079c"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-e60fc7d815f8e03c46d5"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-882a62a6b77fdacf77f6"><code>&#45;20000</code></span>
>
> <a id="dt-47c25817f904619469d4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-c6d446b0056878d408fe"><code>20000</code></span>

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

**Rule 4**

> <a id="dt-fa10490ab3c8b12652d3"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b472919a7fcc146708d0"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-b294624c584c7461813e"><code>&#45;24000</code></span>
>
> <a id="dt-60f8b9bdd66ccf908270"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-2755672c910f2a5a532c"><code>24000</code></span>

<a id="dt-58c23fd56ef59cda7d31"></a>

**Rule 5**

> <a id="dt-2ba9b9dc51fc939bd1a6"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-743768968f36b70dd92e"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-0a628322c073c7849a0e"><code>&#45;1000</code></span>
>
> <a id="dt-06553f53e24c4c71cbd3"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-4edb4114f873c451e441"><code>22000</code></span>

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-d4a52cc5cf3aca53ccdf"></a> <span id="dt-c306612fef45a06f7873"><code>150000</code></span>, <span id="dt-5c913600190ea0963d25"><code>200000</code></span>, <span id="dt-ca876ca32a4080568825"><code>250000</code></span>, <span id="dt-c53278c86f418f3003b7"><code>300000</code></span>, <span id="dt-ff62425b86d71505d510"><code>350000</code></span>, <span id="dt-bfb97edb8c47fb41aff6"><code>400000</code></span>

<div id="dt-6cbf9cfe67f682e7640a">
<p style="white-space: pre-wrap">The dc-to-dc converter current limit.</p>
</div>

<a id="dt-3866422797c7d6138146"></a>

### <code>adi&#44;slew&#45;time&#45;us</code> — not listed as required here

<div id="dt-da1593ec73524d6e178c">
<p style="white-space: pre-wrap">The time it takes for the output to reach the full scale [uS]</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-76b7cb36c0a878141ba4"><code>133</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-0be8962f6d07994e3d58"><code>1023984375</code></span>

**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;spi&#45;cpha&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;adi&#44;dc&#45;dc&#45;mode&#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-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-23f995cf238608c68919"></a>
> >
> > **<code>adi&#44;dc&#45;dc&#45;mode</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-e73b77bfa7c50c000df0"></a> <span id="dt-fce40af77bd50c4fdaf6"><code>1</code></span>, <span id="dt-c70294ae470c30ee70e4"><code>3</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-c11eae4c5f7a9f19a477"></a>
> >
> > **<code>adi&#44;range&#45;microvolt</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > **Required in this object (<code>required</code>):** <a id="dt-ee96a18d4bb2a9d39bd9"></a> <span id="dt-96ee7f71687cd234a9f8"><code>&#34;adi&#44;range&#45;microamp&#34;</code></span>
>
> <a id="dt-56ef1e95d4edd6e6f24c"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-f0255e6a88a00985d33b"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-6dc41875d2bb0afea680"></a>
> >
> > **<code>adi&#44;range&#45;microamp</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > **Required in this object (<code>required</code>):** <a id="dt-fa517e64e1a26bde5333"></a> <span id="dt-3f0dc1b361e0cd17ff53"><code>&#34;adi&#44;range&#45;microvolt&#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">spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    dac@0 {
        compatible = "adi,ad5758";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;1000000&gt;;
        spi-cpha;

        reset-gpios = &lt;&amp;gpio 22 0&gt;;

        adi,dc-dc-mode = &lt;2&gt;;
        adi,range-microvolt = &lt;0 10000000&gt;;
        adi,dc-dc-ilim-microamp = &lt;200000&gt;;
        adi,slew-time-us = &lt;125000&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>
