# Analog Devices AD7192 ADC device driver

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

> Device-tree binding reference for Analog Devices AD7192 ADC 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;adc&#47;adi&#44;ad7192&#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">Bindings for the Analog Devices AD7192 ADC device. Datasheet can be
found here:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7192.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;ad7190&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;adi&#44;ad7192&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;adi&#44;ad7193&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;adi&#44;ad7194&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;adi&#44;ad7195&#34;</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-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-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-4e9a371963ac013ad39d"></a>

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Optionally, either a crystal can be attached externally between MCLK1 and MCLK2 pins, or an external CMOS-compatible clock can drive the MCLK2 pin. If absent, internal 4.92MHz clock is used, which can be made available on MCLK2 pin.</p>
</div>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-1867ab15174af1c2753f"></a> <span id="dt-b867c4484db0762649fe"><code>&#34;xtal&#34;</code></span>, <span id="dt-33bb158b0dfde511ea76"><code>&#34;mclk&#34;</code></span>

<a id="dt-7471877b51a93881192b"></a>

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

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

<div id="dt-6709a835409866cbd3af">
<p style="white-space: pre-wrap">If present when internal clock is used, configured as clock provider.</p>
</div>

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

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

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

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

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

<div id="dt-9d50f0921d4915ea81c8">
<p style="white-space: pre-wrap">AINCOM voltage supply. Analog inputs AINx are referenced to this input
when configured for pseudo-differential operation.</p>
</div>

<a id="dt-84a2bc358063a1a7c956"></a>

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

<div id="dt-593261d208e8b7fb5f26">
<p style="white-space: pre-wrap">DVdd voltage supply</p>
</div>

<a id="dt-14397a69ba55f41119c5"></a>

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

<div id="dt-c928412db05126ef65e3">
<p style="white-space: pre-wrap">AVdd voltage supply</p>
</div>

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

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

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

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

### <code>adi&#44;rejection&#45;60&#45;Hz&#45;enable</code> — not listed as required here

<div id="dt-29d9668d46613f6e401e">
<p style="white-space: pre-wrap">This bit enables a notch at 60 Hz when the first notch of the sinc
filter is at 50 Hz. When REJ60 is set, a filter notch is placed at
60 Hz when the sinc filter first notch is at 50 Hz. This allows
simultaneous 50 Hz/ 60 Hz rejection.</p>
</div>

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

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

### <code>adi&#44;refin2&#45;pins&#45;enable</code> — not listed as required here

<div id="dt-adc2c0da842887302956">
<p style="white-space: pre-wrap">External reference applied between the P1/REFIN2(+) and P0/REFIN2(−) pins.</p>
</div>

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

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

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

<div id="dt-a742ec2c509f87bfe615">
<p style="white-space: pre-wrap">Enables the buffer on the analog inputs. If cleared, the analog inputs
are unbuffered, lowering the power consumption of the device. If this
bit is set, the analog inputs are buffered, allowing the user to place
source impedances on the front end without contributing gain errors to
the system.</p>
</div>

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

<a id="dt-11f3dad2db62686a88b5"></a>

### <code>adi&#44;burnout&#45;currents&#45;enable</code> — not listed as required here

<div id="dt-b48981a25913e982946d">
<p style="white-space: pre-wrap">When this bit is set to 1, the 500 nA current sources in the signal
path are enabled. When BURN = 0, the burnout currents are disabled.
The burnout currents can be enabled only when the buffer is active
and when chop is disabled.</p>
</div>

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

<a id="dt-73325937d0e0ce67ffcf"></a>

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

<div id="dt-0939a49807a363b4598c">
<p style="white-space: pre-wrap">see Documentation/devicetree/bindings/iio/adc/adc.yaml</p>
</div>

**Value type (<code>type</code>):** <span id="dt-7e4b89059cd7304bfd10"><code>&#34;boolean&#34;</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>

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

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

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

### <code>&#94;channel&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-01ed2d380ca8b2f41e8c">[<code>adc&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-iio/adc/adc.md#dt-root>)</span>

<a id="dt-210eb18b714e9030d89c"></a>

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

<code>false</code>

Not allowed by this rule.

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

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

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

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

<div id="dt-046267addf722b1bb5bc">
<p style="white-space: pre-wrap">The channel index.</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-a809a2563890878c10e2"><code>271</code></span>

<a id="dt-439af92699ec15932757"></a>

**<code>diff&#45;channels</code> — not listed as required here**

<div id="dt-3e415e5b90c6eacc07e8">
<p style="white-space: pre-wrap">Both inputs can be connected to pins AIN1 to AIN16 by choosing the appropriate value from 1 to 16.</p>
</div>

<a id="dt-82b5b5a417e8239e381a"></a>

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

> **Minimum value (<code>minimum</code>):** <span id="dt-ef250a3773151ed95971"><code>1</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-9a5829e77ee0ce15e0f2"><code>16</code></span>

<a id="dt-083accc7fb779fd811fc"></a>

**<code>single&#45;channel</code> — not listed as required here**

<div id="dt-bbb6cdcae546c035170b">
<p style="white-space: pre-wrap">Positive input can be connected to pins AIN1 to AIN16 by choosing the appropriate value from 1 to 16. Negative input is connected to AINCOM.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-c7bf80c3ccdadb73a5c7"><code>1</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-0242599722e54939f370"><code>16</code></span>

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

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

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

**Rule 1**

> **Required in this object (<code>required</code>):** <a id="dt-22ee4a2b90bcd37764bd"></a> <span id="dt-db22b7b57137fc5a15f4"><code>&#34;reg&#34;</code></span>, <span id="dt-14580676217b7ba8db14"><code>&#34;diff&#45;channels&#34;</code></span>

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

**Rule 2**

> **Required in this object (<code>required</code>):** <a id="dt-daf8b5e8cbd3bc139992"></a> <span id="dt-14d110a036595ffd195c"><code>&#34;reg&#34;</code></span>, <span id="dt-b517e15489780943c0dd"><code>&#34;single&#45;channel&#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>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;dvdd&#45;supply&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;avdd&#45;supply&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;vref&#45;supply&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;spi&#45;cpol&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;spi&#45;cpha&#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-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-c0ab484bd71d0671c6ab"></a> <span id="dt-4eb87bb951292ac8d56d"><code>&#34;adi&#44;ad7190&#34;</code></span>, <span id="dt-68ac103663508bfae0ff"><code>&#34;adi&#44;ad7192&#34;</code></span>, <span id="dt-7e71a4327a0b7f6bd804"><code>&#34;adi&#44;ad7193&#34;</code></span>, <span id="dt-9c8361ad3495c3fa251c"><code>&#34;adi&#44;ad7195&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-8b91e530d80f7cc46df3"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-61b8b798ec5a36617557"></a>
> >
> > **<code>&#94;channel&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression**
> >
> > <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-a94fc660a9b470814838"></a>
> >
> > **At least one of these rules must match (<code>anyOf</code>)**
> >
> > <a id="dt-12372861b7fb82a257a6"></a>
> >
> > **Rule 1**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-aa81db00eaf08ff8a42c"></a> <span id="dt-421176a3331bd41eaea5"><code>&#34;clocks&#34;</code></span>
> >
> > <a id="dt-db793a0c2f556cd761e7"></a>
> >
> > **Rule 2**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-eb1065a2e8550dcc1dbc"></a> <span id="dt-584249da3765464f8166"><code>&#34;clock&#45;names&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-245f587c5a3501f1181c"></a>
> >
> > **<code>&#35;clock&#45;cells</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-caec4da91c2837148d80"></a> <span id="dt-aa785038ee05bfb1e067"><code>&#34;clocks&#34;</code></span>, <span id="dt-ec639a3f525fd28f920c"><code>&#34;clock&#45;names&#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">#include &lt;dt-bindings/gpio/gpio.h&gt;
spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    adc@0 {
        compatible = "adi,ad7192";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;1000000&gt;;
        spi-cpol;
        spi-cpha;
        clocks = &lt;&amp;ad7192_mclk&gt;;
        clock-names = "mclk";
        interrupts = &lt;25 0x2&gt;;
        interrupt-parent = &lt;&amp;gpio&gt;;
        rdy-gpios = &lt;&amp;gpio 25 GPIO_ACTIVE_LOW&gt;;
        aincom-supply = &lt;&amp;aincom&gt;;
        dvdd-supply = &lt;&amp;dvdd&gt;;
        avdd-supply = &lt;&amp;avdd&gt;;
        vref-supply = &lt;&amp;vref&gt;;

        adi,refin2-pins-enable;
        adi,rejection-60-Hz-enable;
        adi,buffer-enable;
        adi,burnout-currents-enable;
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><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,ad7194";
        reg = &lt;0&gt;;

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

        spi-max-frequency = &lt;1000000&gt;;
        spi-cpol;
        spi-cpha;
        #clock-cells = &lt;0&gt;;
        interrupts = &lt;25 0x2&gt;;
        interrupt-parent = &lt;&amp;gpio&gt;;
        rdy-gpios = &lt;&amp;gpio 25 GPIO_ACTIVE_LOW&gt;;
        aincom-supply = &lt;&amp;aincom&gt;;
        dvdd-supply = &lt;&amp;dvdd&gt;;
        avdd-supply = &lt;&amp;avdd&gt;;
        vref-supply = &lt;&amp;vref&gt;;

        channel@0 {
            reg = &lt;0&gt;;
            diff-channels = &lt;1 6&gt;;
        };

        channel@1 {
            reg = &lt;1&gt;;
            single-channel = &lt;1&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 2019 Analog Devices Inc.</span></p>

</details>
