# Analog Devices AD7170/AD7171/AD7780/AD7781 analog to digital converters

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

> Device-tree binding reference for Analog Devices AD7170/AD7171/AD7780/AD7781 analog to digital converters.

<!-- 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;ad7780&#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">The ad7780 is a sigma-delta analog to digital converter. This driver provides
reading voltage values and status bits from both the ad778x and ad717x series.
Its interface also allows writing on the FILTER and GAIN GPIO pins on the
ad778x.</p>
<pre><code>Specifications on the converters can be found at:
  AD7170:
    https://www.analog.com/media/en/technical-documentation/data-sheets/AD7170.pdf
  AD7171:
    https://www.analog.com/media/en/technical-documentation/data-sheets/AD7171.pdf
  AD7780:
    https://www.analog.com/media/en/technical-documentation/data-sheets/ad7780.pdf
  AD7781:
    https://www.analog.com/media/en/technical-documentation/data-sheets/AD7781.pdf</code></pre>
</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;ad7170&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;adi&#44;ad7171&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;adi&#44;ad7780&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;adi&#44;ad7781&#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">The regulator supply for the ADC reference voltage.</p>
</div>

<a id="dt-18291f1487c1b45c6138"></a>

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

<div id="dt-2e6eeac1c3055c8550d6">
<p style="white-space: pre-wrap">Must be the device tree identifier of the PDRST pin. If specified, it will be asserted during driver probe. As the line is active high, it should be marked GPIO_ACTIVE_HIGH.</p>
</div>

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

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

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

<div id="dt-45cd713bffe94bf695fa">
<p style="white-space: pre-wrap">Must be the device tree identifier of the GAIN pin. Only for the ad778x chips. 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-ce160c4140d60911bee4"><code>1</code></span>

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

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

<div id="dt-d4a6d879c07ad7d3b567">
<p style="white-space: pre-wrap">Must be the device tree identifier of the FILTER pin. Only for the ad778x chips. 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-b8e87ac4b09d6f1b1151"><code>1</code></span>

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

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

<div id="dt-295a48021a1bd8398484">
<p style="white-space: pre-wrap">GPIO reading the R̅D̅Y̅ line. Having such a GPIO is technically optional but highly recommended because DOUT/R̅D̅Y̅ toggles during SPI transfers (in its DOUT aka MISO role) and so usually triggers a spurious interrupt. The distinction between such a spurious event and a real one can only be done by reading such a GPIO. (There is a register telling the same information, but accessing that one needs a SPI transfer which then triggers another interrupt event.)</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-61e1f1a3fc0ad0a9f460"><code>1</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">#include &lt;dt-bindings/gpio/gpio.h&gt;
spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    adc@0 {
        compatible = "adi,ad7780";
        reg = &lt;0&gt;;

        avdd-supply = &lt;&amp;vdd_supply&gt;;
        powerdown-gpios = &lt;&amp;gpio0 12 GPIO_ACTIVE_HIGH&gt;;
        adi,gain-gpios = &lt;&amp;gpio1  5 GPIO_ACTIVE_LOW&gt;;
        adi,filter-gpios = &lt;&amp;gpio2 15 GPIO_ACTIVE_LOW&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</span></p>

</details>
