# Analog Devices LTC2688 DAC

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

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

<!-- SPDX-License-Identifier: (GPL-2.0-only 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;ltc2688&#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;Nuno Sá &#60;nuno&#46;sa&#64;analog&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Analog Devices LTC2688 16 channel, 16 bit, +-15V DAC
https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2688.pdf</p>
</div>

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

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

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

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

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

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

<div id="dt-304923183fea32e69a40">
<p style="white-space: pre-wrap">Analog Supply Voltage Input.</p>
</div>

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

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

<div id="dt-e79b863db30d6be881ec">
<p style="white-space: pre-wrap">Digital Input/Output Supply Voltage.</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">Reference Input/Output. The voltage at the REF pin sets the full-scale range of all channels. If not provided the internal reference is used and also provided on the VREF pin".</p>
</div>

<a id="dt-464172dbe9659031f214"></a>

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

<div id="dt-994b9ae7cf8d0b6d7304">
<p style="white-space: pre-wrap">If specified, it will be asserted during driver probe. As the line is active low, it should be marked GPIO_ACTIVE_LOW.</p>
</div>

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

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

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

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

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

<a id="dt-570a3ff75ff57c6791cb"></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-20b45ab7f50bd1a96215"></a>

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

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

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

<div id="dt-8bb8d24a83365aaef566">
<p style="white-space: pre-wrap">The channel number representing the DAC output channel.</p>
</div>

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

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

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

<div id="dt-9e828dfb349bc97864bd">
<p style="white-space: pre-wrap">Set the channel as a toggle enabled channel. Toggle operation enables fast switching of a DAC output between two different DAC codes without any SPI transaction.</p>
</div>

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

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

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

<div id="dt-cf90e81a78a218a877a8">
<p style="white-space: pre-wrap">Specify the channel output full scale range.</p>
</div>

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

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

<a id="dt-3fe0705352d79d14fbb0"></a>

**Rule 1**

> <a id="dt-73cd0f3c9d3dec549603"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-22ca874db98158c813eb"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-c7aa443c865f3023896e"><code>0</code></span>
>
> <a id="dt-8dba421e318228dd154b"></a>
>
> **Item 2**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-e40061c2a101611c96cc"></a> <span id="dt-fcee63aca00cce0060c1"><code>5000000</code></span>, <span id="dt-27e25166be82ad199d42"><code>10000000</code></span>

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

**Rule 2**

> <a id="dt-ab6b6fc0b467a0c18c92"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-7e19071664735426c984"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-5a2c7a6f273490860c9e"><code>&#45;5000000</code></span>
>
> <a id="dt-8dd6c0277c7e9f8eeda4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-f78b79e5680c8aa68d46"><code>5000000</code></span>

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

**Rule 3**

> <a id="dt-00dcbc6597db90421e0b"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-fb1c2ed87da167409960"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-75c350c3671d9c412d27"><code>&#45;10000000</code></span>
>
> <a id="dt-da6a488bfca7508a7b55"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-9fcf15d412ecfda9607c"><code>10000000</code></span>

<a id="dt-5273069037159c922a0d"></a>

**Rule 4**

> <a id="dt-ce49430be7704d133c67"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-bfd6d25d50798f8b5dcd"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-bd1023d7eb6cc6091afb"><code>&#45;15000000</code></span>
>
> <a id="dt-ccbddd3aa00dd7a226b2"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-5054972245e81e2ae4e8"><code>15000000</code></span>

<a id="dt-08a18a9ee48600f5d9f6"></a>

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

<div id="dt-99ea949cd9b2da76e03b">
<p style="white-space: pre-wrap">Enable 5% overrange over the selected full scale range.</p>
</div>

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

<a id="dt-50766ebad475e04e2f40"></a>

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

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

<a id="dt-983496f876a01faa2880"></a>

**<code>adi&#44;toggle&#45;dither&#45;input</code> — not listed as required here**

<div id="dt-2791ae86a18ab51701d2">
<p style="white-space: pre-wrap">Selects the TGPx pin to be associated with this channel. This setting only makes sense for toggle or dither enabled channels. If @adi,toggle-mode is not set and this property is given, the channel is assumed to be a dither capable channel. Note that multiple channels can be mapped to the same pin. If this setting is given, the respective @clock must also be provided. Mappings between this and input pins 0 - TGP1 1 - TGP2 2 - TGP3</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fc77b82aef2a673b843a">[<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-49218c7ac7bd36c58a17"></a> <span id="dt-b7ddae553d337bcccaad"><code>0</code></span>, <span id="dt-fcf4860b95c324e4d080"><code>1</code></span>, <span id="dt-1a18db198c5d4ae8af76"><code>2</code></span>

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

#### Property dependencies (<code>dependencies</code>)

<a id="dt-641efa342d9685963cba"></a>

**<code>adi&#44;toggle&#45;dither&#45;input</code> — applies when this property is present**

Also requires: <span id="dt-28a3c320a7999414d218"><code>&#34;clocks&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-dea278d5fb5254c3f1ca"></a> <span id="dt-b186d2154f49611f8132"><code>&#34;reg&#34;</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>

<a id="dt-738c4b4f9e483441138b"></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-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;;
    ltc2688: ltc2688@0 {
        compatible = "adi,ltc2688";
        reg = &lt;0&gt;;

        vcc-supply = &lt;&amp;vcc&gt;;
        iovcc-supply = &lt;&amp;vcc&gt;;
        vref-supply = &lt;&amp;vref&gt;;

        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;
        channel@0 {
            reg = &lt;0&gt;;
            adi,toggle-mode;
            adi,overrange;
        };

        channel@1 {
            reg = &lt;1&gt;;
            adi,output-range-microvolt = &lt;0 10000000&gt;;

            clocks = &lt;&amp;clock_tgp3&gt;;
            adi,toggle-dither-input = &lt;2&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-only OR BSD-2-Clause)</span></p>

</details>
