# Analog Devices AD7768-1 ADC family

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

> Device-tree binding reference for Analog Devices AD7768-1 ADC family.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;adc&#47;adi&#44;ad7768&#45;1&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Analog Devices AD7768-1 24-Bit Single Channel Low Power sigma-delta ADC family</p>
<p style="white-space: pre-wrap">https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7767-1.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7768-1.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7769-1.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;ad7768&#45;1&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;adi&#44;adaq7767&#45;1&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;adi&#44;adaq7768&#45;1&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;adi&#44;adaq7769&#45;1&#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-4e9a371963ac013ad39d"></a>

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

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

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — required here

**Exact value (<code>const</code>):** <span id="dt-882f4571b4b135d59582"><code>&#34;mclk&#34;</code></span>

<a id="dt-2078f2eb7e7316143969"></a>

### <code>trigger&#45;sources</code> — not listed as required here

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-a662a670f348c9641ed6"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b5f4f5a1d5bca2cfc61a"><code>2</code></span>

<div id="dt-3862dc38adc5470cf473">
<p style="white-space: pre-wrap">A list of phandles referencing trigger source providers. Each entry
represents a trigger source for the ADC:</p>
<pre><code>  - First entry specifies the device responsible for driving the
    synchronization (SYNC_IN) pin, as an alternative to adi,sync-in-gpios.
    This can be a `gpio-trigger` or another `ad7768-1` device. If the
    device's own SYNC_OUT pin is internally connected to its SYNC_IN pin,
    reference the device itself or omit this property.
  - Second entry optionally defines a GPIO3 pin used as a START signal trigger.</code></pre>
<p style="white-space: pre-wrap">Use the accompanying trigger source cell to identify the type of each entry.</p>
</div>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">DRDY (Data Ready) pin, which signals conversion results are available.</p>
</div>

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

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

<div id="dt-f9c8a721f6889569bcad">
<p style="white-space: pre-wrap">ADC reference voltage supply</p>
</div>

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

### <code>adi&#44;aaf&#45;gain&#45;bp</code> — not listed as required here

<div id="dt-5d66b0c895388e53abe7">
<pre><code>Specifies the gain applied by the Analog Anti-Aliasing Filter (AAF)
to the ADC input in basis points (one hundredth of a percent).
The hardware gain is determined by which input pin(s) the signal goes
through into the AAF. The possible connections are:
* For the ADAQ7767-1: Input connected to IN1±, IN2± or IN3±.
* For the ADAQ7769-1: OUT_PGA pin connected to IN1_AAF+, IN2_AAF+,
  or IN3_AAF+.</code></pre>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-c575806540d1762f4e98"></a> <span id="dt-079c0a9ab8d7d2488849"><code>1430</code></span>, <span id="dt-4f979bdbdef22fd36c74"><code>3640</code></span>, <span id="dt-b6a87e6248808ecd5f1f"><code>10000</code></span>

**Default value (<code>default</code>):** <span id="dt-52a79d81ec509762d162"><code>10000</code></span>

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

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

<div id="dt-22fbe3ebae1b43d44cc7">
<p style="white-space: pre-wrap">GAIN 0, GAIN1 and GAIN2 pins for gain selection. For devices that have PGA configuration input pins, pga-gpios must be defined.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-b732bc59fe3c4060dd49"><code>3</code></span>

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

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

### <code>adi&#44;sync&#45;in&#45;gpios</code> — not listed as required here

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

<div id="dt-93fc8ad6638011e26882">
<p style="white-space: pre-wrap">Enables synchronization of multiple devices that require simultaneous sampling. A pulse is always required if the configuration is changed in any way, for example if the filter decimation rate changes. As the line is active low, it should be marked GPIO_ACTIVE_LOW.</p>
</div>

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

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

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

<div id="dt-21c242b401be5c67bade">
<p style="white-space: pre-wrap">list of regulators provided by this controller.</p>
</div>

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

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

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

**<code>vcm&#45;output</code> — not listed as required here**

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

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

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

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

<code>false</code>

Not allowed by this rule.

<a id="dt-8e4e67ed0dd0ed4ae33a"></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-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-27851c8ce8d41152ef35"></a>

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

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

<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-6971e222e0082656e9f5"></a>

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

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

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

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

<div id="dt-d3e55122941545c59869">
<p style="white-space: pre-wrap">Cell indicates the trigger output signal: 0 = SYNC_OUT, 1 = GPIO3,
2 = DRDY.</p>
<p style="white-space: pre-wrap">For better readability, macros for these values are available in
dt-bindings/iio/adc/adi,ad7768-1.h.</p>
</div>

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

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

### <code>gpio&#45;controller</code> — not listed as required here

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

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

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

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

<div id="dt-70b20397c3c73794f833">
<p style="white-space: pre-wrap">The first cell is for the GPIO number: 0 to 3.
The second cell takes standard GPIO flags.</p>
</div>

**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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;vref&#45;supply&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;spi&#45;cpol&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;spi&#45;cpha&#34;</code></span>

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

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

<a id="dt-62f066366e6e90b860ba"></a>

### <code>adi&#44;sync&#45;in&#45;gpios</code> — applies when this property is present

<a id="dt-27ce2677f976a8997b05"></a>

#### This rule must not match (<code>not</code>)

> **Required in this object (<code>required</code>):** <a id="dt-cd971f941b804a4d7c9e"></a> <span id="dt-aec0ea5a0fc3cbe70222"><code>&#34;trigger&#45;sources&#34;</code></span>

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

### <code>trigger&#45;sources</code> — applies when this property is present

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

#### This rule must not match (<code>not</code>)

> **Required in this object (<code>required</code>):** <a id="dt-765308cc826ecba5ee85"></a> <span id="dt-9d88ed9424ffb19a768b"><code>&#34;adi&#44;sync&#45;in&#45;gpios&#34;</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>

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

<a id="dt-20b45ab7f50bd1a96215"></a>

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

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

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

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

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

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

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

<div id="dt-cebcce1d826e05abdd09">
<p style="white-space: pre-wrap">Unique name to identify which channel this is.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-dea278d5fb5254c3f1ca"></a> <span id="dt-b186d2154f49611f8132"><code>&#34;reg&#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-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-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-61039da0155527cc02ba"></a> <span id="dt-20f8a813aab744ff239a"><code>&#34;adi&#44;adaq7767&#45;1&#34;</code></span>, <span id="dt-97636aa7a2139f7622b5"><code>&#34;adi&#44;adaq7769&#45;1&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-ee96a18d4bb2a9d39bd9"></a> <span id="dt-96ee7f71687cd234a9f8"><code>&#34;adi&#44;aaf&#45;gain&#45;bp&#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-2400c1a28c129d02e8c2"></a>
> >
> > **<code>adi&#44;aaf&#45;gain&#45;bp</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-7838023cb1ac8ba1fc13"></a> <span id="dt-2698b34438b1aced3e06"><code>&#34;adi&#44;adaq7768&#45;1&#34;</code></span>, <span id="dt-dde728fd212bd16cfbc3"><code>&#34;adi&#44;adaq7769&#45;1&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-caec4da91c2837148d80"></a> <span id="dt-aa785038ee05bfb1e067"><code>&#34;pga&#45;gpios&#34;</code></span>
>
> <a id="dt-a27f5f4fc91750ae210f"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-10a581729d134f7b8a73"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-3e9b741b0bf337b82adc"></a>
> >
> > **<code>pga&#45;gpios</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<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/interrupt-controller/irq.h&gt;
#include &lt;dt-bindings/gpio/gpio.h&gt;
spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    adc@0 {
        compatible = "adi,ad7768-1";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;2000000&gt;;
        spi-cpol;
        spi-cpha;
        gpio-controller;
        #gpio-cells = &lt;2&gt;;
        vref-supply = &lt;&amp;adc_vref&gt;;
        interrupts = &lt;25 IRQ_TYPE_EDGE_RISING&gt;;
        interrupt-parent = &lt;&amp;gpio&gt;;
        adi,sync-in-gpios = &lt;&amp;gpio 22 GPIO_ACTIVE_LOW&gt;;
        reset-gpios = &lt;&amp;gpio 27 GPIO_ACTIVE_LOW&gt;;
        clocks = &lt;&amp;ad7768_mclk&gt;;
        clock-names = "mclk";

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

        channel@0 {
            reg = &lt;0&gt;;
            label = "channel_0";
        };

        regulators {
          vcm_reg: vcm-output {
            regulator-name = "ad7768-1-vcm";
          };
        };
    };
};
</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</span></p>

<p id="dt-comment-1"><strong>Line 177:</strong> <span> AAF Gain property only applies to ADAQ7767-1 and ADAQ7769-1 devices</span></p>

</details>
