# Analog Devices AD4170-4 and similar 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 AD4170-4 and similar Analog to Digital Converters.

<!-- 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;adc&#47;adi&#44;ad4170&#45;4&#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;Marcelo Schmitt &#60;marcelo&#46;schmitt&#64;analog&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>Analog Devices AD4170-4 series of Sigma-delta Analog to Digital Converters.
Specifications can be found at:
  https://www.analog.com/media/en/technical-documentation/data-sheets/ad4170-4.pdf
  https://www.analog.com/media/en/technical-documentation/data-sheets/ad4190-4.pdf
  https://www.analog.com/media/en/technical-documentation/data-sheets/ad4195-4.pdf</code></pre>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d5c57c22d966a033492b">[<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-7fcd144dee0d1b44122a"></a>

## Reusable definitions (<code>&#36;defs</code>)

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

### <code>reference&#45;buffer</code>

<div id="dt-add3fc7a03a603f5005a">
<p style="white-space: pre-wrap">Enable precharge buffer, full buffer, or skip reference buffering of
the positive/negative voltage reference. Because the output impedance
of the source driving the voltage reference inputs may be dynamic,
resistive/capacitive combinations of those inputs can cause DC gain
errors if the reference inputs go unbuffered into the ADC. Enable
reference buffering if the provided reference source has dynamic high
impedance output. Note the absolute voltage allowed on REFINn+ and REFINn-
inputs is from AVSS - 50 mV to AVDD + 50 mV when the reference buffers are
disabled but narrows to AVSS to AVDD when reference buffering is enabled
or in precharge mode.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-2105d8fa8998c275c87f">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;string</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2c695d502852c3a1e1b7>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-6289834e030e9acc7b62"></a> <span id="dt-6e0fa8457c22a0c1ce62"><code>&#34;precharge&#34;</code></span>, <span id="dt-f34b1faa67ccde859b6e"><code>&#34;full&#34;</code></span>, <span id="dt-d20d706aca59b5f347d1"><code>&#34;disabled&#34;</code></span>

**Default value (<code>default</code>):** <span id="dt-0f76e3f51e2ee3ffcdd4"><code>&#34;full&#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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;adi&#44;ad4170&#45;4&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;adi&#44;ad4190&#45;4&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;adi&#44;ad4195&#45;4&#34;</code></span>

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

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

<div id="dt-3fa4af8cb3fa1e47de1d">
<p style="white-space: pre-wrap">Reference voltage supply for AVSS. A −2.625V minimum and 0V maximum supply that powers the chip. If not provided, AVSS is assumed to be at system ground (0V).</p>
</div>

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

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

<div id="dt-c928412db05126ef65e3">
<p style="white-space: pre-wrap">A supply of 4.75V to 5.25V relative to AVSS that powers the chip (AVDD).</p>
</div>

<a id="dt-79d466fdcccc88d28b5b"></a>

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

<div id="dt-2944c46a7e888b63a216">
<p style="white-space: pre-wrap">1.7V to 5.25V reference supply to the serial interface (IOVDD).</p>
</div>

<a id="dt-716d4dca9b236fe3b480"></a>

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

<div id="dt-eae4f9c5a437666ae0bb">
<p style="white-space: pre-wrap">REFIN+ supply that can be used as reference for conversion.</p>
</div>

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

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

<div id="dt-cc21a7582db30779e146">
<p style="white-space: pre-wrap">REFIN- supply that can be used as reference for conversion.</p>
</div>

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

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

<div id="dt-a07fff93039d875df405">
<p style="white-space: pre-wrap">REFIN2+ supply that can be used as reference for conversion.</p>
</div>

<a id="dt-4335d8229127cd18dd4b"></a>

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

<div id="dt-50987f040c1340d8464d">
<p style="white-space: pre-wrap">REFIN2- supply that can be used as reference for conversion.</p>
</div>

<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-c2de09e7f7fd211b679d"></a>

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">Interrupt for signaling the completion of conversion results. The data ready signal (RDY) used as interrupt is by default provided on the SDO pin. Alternatively, it can be provided on the DIG_AUX1 pin in which case the chip disables the RDY function on SDO. Thus, there can be only one data ready interrupt enabled at a time.</p>
</div>

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

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

<div id="dt-3c9c5232b17bbf88febb">
<p style="white-space: pre-wrap">Specify which pin should be configured as Data Ready interrupt.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-117b3512a266e679d287"></a> <span id="dt-11513a7cf205a9d86f9f"><code>&#34;sdo&#34;</code></span>, <span id="dt-2de9a08a27aaaa705d26"><code>&#34;dig&#95;aux1&#34;</code></span>

<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">Optional external clock source. Can specify either an external clock or external crystal.</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;ext&#45;clk&#34;</code></span>, <span id="dt-33bb158b0dfde511ea76"><code>&#34;xtal&#34;</code></span>

**Default value (<code>default</code>):** <span id="dt-f804d186b574dcfd8b50"><code>&#34;ext&#45;clk&#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>

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

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

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

<a id="dt-4857b45d82101543c42b"></a>

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

<div id="dt-8cded6e8b7d6fe6f65ac">
<p style="white-space: pre-wrap">GPIO connected to DIG_AUX2 pin to be used as LDAC toggle to control the transfer of data from the DAC_INPUT_A register to the DAC.</p>
</div>

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

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

<div id="dt-2990b5b3555de0a955ff">
<p style="white-space: pre-wrap">Analog inputs to apply a voltage bias of (AVDD − AVSS) / 2 to.</p>
</div>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-1095e30b5e705804f54d"><code>9</code></span>

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

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

> **Minimum value (<code>minimum</code>):** <span id="dt-16faa186799ca691fc8f"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-c030935b5ad0da0b9ff7"><code>8</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-b5c9dbe70762f9ad7bb5"></a> <span id="dt-d017b1b1b5a0bb01c549"><code>&#34;adi&#44;ad4190&#45;4&#34;</code></span>, <span id="dt-b1891799a94ae03bda89"><code>&#34;adi&#44;ad4195&#45;4&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-fcdb9b21da5ec7197ed0"></a>
> >
> > **<code>ldac&#45;gpios</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-5f135e3db8ef1aa53700"></a> <span id="dt-0164887f025a095456fa"><code>&#34;interrupts&#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;interrupt&#45;names&#34;</code></span>

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

### Rule 3

> <a id="dt-70065204cf620e28f82d"></a>
>
> #### Exactly one of these rules must match (<code>oneOf</code>)
>
> <a id="dt-172383068b55b1314704"></a>
>
> **Rule 1**
>
> > **Required in this object (<code>required</code>):** <a id="dt-6e8e452662e3dd6702a5"></a> <span id="dt-d405d06478f1de2e57e8"><code>&#34;clocks&#34;</code></span>
> >
> > <a id="dt-111110f588cb249e582a"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-44c84abd29cb4f9d7786"></a>
> >
> > **<code>&#35;clock&#45;cells</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
>
> <a id="dt-192bafcdc6fefabcf572"></a>
>
> **Rule 2**
>
> > **Required in this object (<code>required</code>):** <a id="dt-9adac220c4ad7f6e4632"></a> <span id="dt-a2f08d196e42049f8966"><code>&#34;&#35;clock&#45;cells&#34;</code></span>
> >
> > <a id="dt-3cdf817fd3f419b64038"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-b75a8054bb546b6debcd"></a>
> >
> > **<code>clocks</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-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;avdd&#45;supply&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;iovdd&#45;supply&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;spi&#45;cpol&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;spi&#45;cpha&#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-e92215bd3c2f5373b164"></a>

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

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

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

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

<a id="dt-32e0cd360bb661224f88"></a>

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

<code>false</code>

Not allowed by this rule.

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

<a id="dt-79d96182bf8928214577"></a>

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

<a id="dt-98ff2d5ed519ef7de84d"></a>

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

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

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

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

<a id="dt-10eac8102d8788258df8"></a>

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

<div id="dt-ba37c2f22caa2a686971">
<p style="white-space: pre-wrap">This property is used for defining the inputs of a differential
voltage channel. The first value is the positive input and the second
value is the negative input of the channel.</p>
<p style="white-space: pre-wrap">Besides the analog input pins AIN0 to AIN8, there are special inputs
that can be selected with the following values:
17: Internal temperature sensor
18: (AVDD-AVSS)/5
19: (IOVDD-DGND)/5
20: DAC output
21: ALDO
22: DLDO
23: AVSS
24: DGND
25: REFIN+
26: REFIN-
27: REFIN2+
28: REFIN2-
29: REFOUT
For the internal temperature sensor, use the input number for both
inputs (i.e. diff-channels = &lt;17 17&gt;).</p>
</div>

<a id="dt-1727bf0c0ae25490b6c0"></a>

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

> **Allowed values (<code>enum</code>):** <a id="dt-ee3881674a78d2fa47ca"></a> <span id="dt-b0647551fab9a9db5062"><code>0</code></span>, <span id="dt-0342ee87cbc94e42a92b"><code>1</code></span>, <span id="dt-aa927fd82b5e287d4ed8"><code>2</code></span>, <span id="dt-2c81851039ae57842369"><code>3</code></span>, <span id="dt-c49685b742b17c5bb3cc"><code>4</code></span>, <span id="dt-a97d05c64994861ff52e"><code>5</code></span>, <span id="dt-c2b1d2de21006a2ff06e"><code>6</code></span>, <span id="dt-e9ceafea3e9a46c2c8c7"><code>7</code></span>, <span id="dt-28c9d8f1ab9485dae482"><code>8</code></span>, <span id="dt-5c1558c4dbbabbb86fe1"><code>17</code></span>, <span id="dt-b6e1bbba8775c1dfcc71"><code>18</code></span>, <span id="dt-307017724c65176a9b36"><code>19</code></span>, <span id="dt-acbcc641e1b5db9fec15"><code>20</code></span>, <span id="dt-69496d53f625367f1ed0"><code>21</code></span>, <span id="dt-cb78fea6298ad8b40328"><code>22</code></span>, <span id="dt-1f4a5716ca1ec0f7ab61"><code>23</code></span>, <span id="dt-9472604e739d8f5ffd99"><code>24</code></span>, <span id="dt-ad5f1d39333cdb1b72a7"><code>25</code></span>, <span id="dt-3cfce97a5b5c5606f24d"><code>26</code></span>, <span id="dt-25e93b82559136d75dd1"><code>27</code></span>, <span id="dt-62a560ef135e9aad3e0e"><code>28</code></span>, <span id="dt-85d4641f94c704d45229"><code>29</code></span>

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

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

<div id="dt-409dc8f185b793b8f727">
<p style="white-space: pre-wrap">Select the reference source to use when converting on the
specific channel. Valid values are:
0: REFIN+/REFIN-
1: REFIN2+/REFIN2−
2: REFOUT/AVSS (internal reference)
3: AVDD/AVSS
If not specified, REFOUT/AVSS is used.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-943ce9455a0c48c75222">[<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-dd7b98b10e7df6e05725"></a> <span id="dt-24ab367595e4e6b9d2d4"><code>0</code></span>, <span id="dt-a54f6f952483e437cc27"><code>1</code></span>, <span id="dt-99903a41d0c6e0a6302c"><code>2</code></span>, <span id="dt-e1f9cde80b96d3282cd9"><code>3</code></span>

**Default value (<code>default</code>):** <span id="dt-acc316396f29645af354"><code>1</code></span>

<a id="dt-9926672d336921a52ad7"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1932a1e1fd4871868409">[<code>&#35;&#47;&#36;defs&#47;reference&#45;buffer</code>](<#dt-11dfd6e125cb40e45056>)</span>

<a id="dt-695dd446edf6ef8093f0"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7055edbbffc86a587480">[<code>&#35;&#47;&#36;defs&#47;reference&#45;buffer</code>](<#dt-11dfd6e125cb40e45056>)</span>

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

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

<div id="dt-7a2743f671c094730e0e">
<p style="white-space: pre-wrap">The AD4170-4 and similar designs have features to aid interfacing with load cell weigh scale, RTD, and thermocouple sensors. Each of those sensor types requires either distinct wiring configuration or external circuitry for proper sensor operation and can use different ADC chip functionality on their setups. A key characteristic of those external sensors is that they must be excited either by voltage supply or by ADC chip excitation signals. The sensor can then be read through a pair of analog inputs. This property specifies which particular sensor type is connected to the ADC so it can be properly setup and handled. Omit this property for conventional (not weigh scale, RTD, or thermocouple) ADC channel setups.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-554932ee9a9f49721c63">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;string</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2c695d502852c3a1e1b7>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-8a2f74ea8b2f0abcb7cb"></a> <span id="dt-2da31bc72dec43f42b5e"><code>&#34;weighscale&#34;</code></span>, <span id="dt-de13cc836d02e1b662c9"><code>&#34;rtd&#34;</code></span>, <span id="dt-d56062f996574148265a"><code>&#34;thermocouple&#34;</code></span>

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

**<code>adi&#44;excitation&#45;pin&#45;0</code> — not listed as required here**

<div id="dt-31bce1f69b2b721cc5b0">
<p style="white-space: pre-wrap">Analog input to apply excitation current to while the channel is active.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-2aacd1b2369995c64ef4">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

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

**Maximum value (<code>maximum</code>):** <span id="dt-4287328985f14ed0701b"><code>20</code></span>

**Default value (<code>default</code>):** <span id="dt-a548892e18ae36c4fbca"><code>0</code></span>

<a id="dt-299503136f02a7bdc9f7"></a>

**<code>adi&#44;excitation&#45;pin&#45;1</code> — not listed as required here**

<div id="dt-c21ed82359960d94cee8">
<p style="white-space: pre-wrap">Analog input to apply excitation current to while the channel is active.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5673620ccb7da5669c23">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

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

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

**Default value (<code>default</code>):** <span id="dt-8e6b55feaac94527acba"><code>0</code></span>

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

**<code>adi&#44;excitation&#45;pin&#45;2</code> — not listed as required here**

<div id="dt-d5a924bc533d20060394">
<p style="white-space: pre-wrap">Analog input to apply excitation current to while the channel is active.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-58f804eef87f51011cb4">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

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

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

**Default value (<code>default</code>):** <span id="dt-ca96ab2ca2878a39c3f5"><code>0</code></span>

<a id="dt-51717ae6b27ef40a8b0b"></a>

**<code>adi&#44;excitation&#45;pin&#45;3</code> — not listed as required here**

<div id="dt-6076749941318a02e76e">
<p style="white-space: pre-wrap">Analog input to apply excitation current to while the channel is active.</p>
</div>

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-1115e959934b8d795b1e"><code>20</code></span>

**Default value (<code>default</code>):** <span id="dt-72d06d1248d3511b5c3c"><code>0</code></span>

<a id="dt-8332050c130fe39c8bc2"></a>

**<code>adi&#44;excitation&#45;current&#45;0&#45;microamp</code> — not listed as required here**

<div id="dt-e1d25d5ec42f800e0d09">
<p style="white-space: pre-wrap">Excitation current in microamperes to be applied to pin specified in adi,excitation-pin-0 while this channel is active.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-f178bc7e79b795f9972a"></a> <span id="dt-cf3f1b8a062fe5a8f7ff"><code>0</code></span>, <span id="dt-b974c80223846f1fa588"><code>10</code></span>, <span id="dt-933cf07b9f7686829872"><code>50</code></span>, <span id="dt-ba30ad246b56d193f876"><code>100</code></span>, <span id="dt-d31e73f27d91793efdb9"><code>250</code></span>, <span id="dt-376147279ec99834c38f"><code>500</code></span>, <span id="dt-af11a969c828b2dd5b87"><code>1000</code></span>, <span id="dt-58e5c2a00eaadf77f2c3"><code>1500</code></span>

**Default value (<code>default</code>):** <span id="dt-d2e33a62dbb5f40431b3"><code>0</code></span>

<a id="dt-1479ea09446a1a4d4a48"></a>

**<code>adi&#44;excitation&#45;current&#45;1&#45;microamp</code> — not listed as required here**

<div id="dt-e6ff1a8d6f72b634c89f">
<p style="white-space: pre-wrap">Excitation current in microamperes to be applied to pin specified in adi,excitation-pin-1 while this channel is active.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-77c05e784e279ab175db"></a> <span id="dt-a5e1f6ed48589d93b2f2"><code>0</code></span>, <span id="dt-cd4c2114f2bb7d7af439"><code>10</code></span>, <span id="dt-adbe6987e0868ba40674"><code>50</code></span>, <span id="dt-e2dfac71e17b145ce25b"><code>100</code></span>, <span id="dt-87cea4ac7e743172c7e5"><code>250</code></span>, <span id="dt-9dc17871543890f37f52"><code>500</code></span>, <span id="dt-142c919afb34da4489e8"><code>1000</code></span>, <span id="dt-b12d3331c3a8ca68a798"><code>1500</code></span>

**Default value (<code>default</code>):** <span id="dt-cd53a2935e96cf1e67e8"><code>0</code></span>

<a id="dt-16fa3ef5f51e2cdc59f0"></a>

**<code>adi&#44;excitation&#45;current&#45;2&#45;microamp</code> — not listed as required here**

<div id="dt-a7434a62440d4e6004d0">
<p style="white-space: pre-wrap">Excitation current in microamperes to be applied to pin specified in adi,excitation-pin-2 while this channel is active.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-2fdd9e116db9c0ec52d3"></a> <span id="dt-ba58e0624d32e7effc18"><code>0</code></span>, <span id="dt-781814e09f7e89246e4f"><code>10</code></span>, <span id="dt-42a3b2c4e004a3dc09aa"><code>50</code></span>, <span id="dt-7d4faf93e48431ba40de"><code>100</code></span>, <span id="dt-84b4e25721f2d988df38"><code>250</code></span>, <span id="dt-ada8fd816e9b9ed95894"><code>500</code></span>, <span id="dt-db8253145975450a704f"><code>1000</code></span>, <span id="dt-8ce8f724b212be8bf1d4"><code>1500</code></span>

**Default value (<code>default</code>):** <span id="dt-ccbe1c7541b9e37f11eb"><code>0</code></span>

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

**<code>adi&#44;excitation&#45;current&#45;3&#45;microamp</code> — not listed as required here**

<div id="dt-8c15995efe07df1543d2">
<p style="white-space: pre-wrap">Excitation current in microamperes to be applied to pin specified in adi,excitation-pin-3 while this channel is active.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-3f637882cf7bb10663c8"></a> <span id="dt-4c20e99c6b0cf0be282b"><code>0</code></span>, <span id="dt-640f760d07aba87e3a69"><code>10</code></span>, <span id="dt-0f4aba22db662ecedc19"><code>50</code></span>, <span id="dt-043199a9841d317b5770"><code>100</code></span>, <span id="dt-f17acbe836fc7a665628"><code>250</code></span>, <span id="dt-300f650b3ecfacdda6cd"><code>500</code></span>, <span id="dt-23de3e40fadd816d0763"><code>1000</code></span>, <span id="dt-41a6ff8c69c13c92dc19"><code>1500</code></span>

**Default value (<code>default</code>):** <span id="dt-e976d9050c4793348612"><code>0</code></span>

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

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

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

<div id="dt-e278d96fe35559bbd98b">
<p style="white-space: pre-wrap">Whether the external sensor has to be AC or DC excited. When omitted, it is DC excited.</p>
</div>

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

#### All of these rules must match (<code>allOf</code>)

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

**Rule 1**

> <a id="dt-5bfd99c767ae49c185b3"></a>
>
> **Exactly one of these rules must match (<code>oneOf</code>)**
>
> <a id="dt-c2bd59e61e77459dd11f"></a>
>
> **Rule 1**
>
> > **Required in this object (<code>required</code>):** <a id="dt-db871a49f1b2da72dec6"></a> <span id="dt-b9ab8cfad50c8acb6506"><code>&#34;single&#45;channel&#34;</code></span>, <span id="dt-f0262e12b267974f7125"><code>&#34;common&#45;mode&#45;channel&#34;</code></span>
> >
> > <a id="dt-f000000cef17114ac1e0"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e15b2b7fc9851797a7bc"></a>
> >
> > **<code>diff&#45;channels</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
>
> <a id="dt-f65a1065ce748dd8444f"></a>
>
> **Rule 2**
>
> > **Required in this object (<code>required</code>):** <a id="dt-3e68463b85478010b4e9"></a> <span id="dt-e6b956b01b6bf0c54baf"><code>&#34;diff&#45;channels&#34;</code></span>
> >
> > <a id="dt-5dd444a0c623faf66dda"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-685b9cbd02a30ad36f9f"></a>
> >
> > **<code>single&#45;channel</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-b70a770af707999ec51c"></a>
> >
> > **<code>common&#45;mode&#45;channel</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

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

**Rule 2**

> <a id="dt-a7fbd68500d0ec3292d5"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-9fc31ef1e76e2c83f660"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-d5c8f8c3e646d707bd19"></a> <span id="dt-f1ab03cd82b2a978b97a"><code>&#34;adi&#44;sensor&#45;type&#34;</code></span>
>
> <a id="dt-28a408f61c4b95278a8f"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-d78ea1baa962044cdf9d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-53285662a0ef909024e0"></a>
> >
> > **<code>adi&#44;excitation&#45;pin&#45;0</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-201768b63212ddf5f0f5"></a>
> >
> > **<code>adi&#44;excitation&#45;pin&#45;1</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-face972c2e45e74e2e4c"></a>
> >
> > **<code>adi&#44;excitation&#45;pin&#45;2</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-d914d146c3c7b76dbb7c"></a>
> >
> > **<code>adi&#44;excitation&#45;pin&#45;3</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-54925799e4e3de55a166"></a>
> >
> > **<code>adi&#44;excitation&#45;current&#45;0&#45;microamp</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-1650151f41d14c329c08"></a>
> >
> > **<code>adi&#44;excitation&#45;current&#45;1&#45;microamp</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-1dd2c1ed0b4bb75e4573"></a>
> >
> > **<code>adi&#44;excitation&#45;current&#45;2&#45;microamp</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-817832cc59873ee9c8d7"></a>
> >
> > **<code>adi&#44;excitation&#45;current&#45;3&#45;microamp</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-e271a06131b0f7a00669"></a>
> >
> > **<code>adi&#44;excitation&#45;ac</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<a id="dt-34b663c6e4845bba7ecb"></a>

**Rule 3**

> <a id="dt-9b93bc4d1d15a02b765e"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-736599076ba20efedda7"></a>
> >
> > **All of these rules must match (<code>allOf</code>)**
> >
> > <a id="dt-7e73cb71b396c2a1a6c5"></a>
> >
> > **Rule 1**
> >
> > > <a id="dt-8ffe76886f229155ddee"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-b243eec338aac42cb936"></a>
> > >
> > > **<code>adi&#44;sensor&#45;type</code> — not listed as required here**
> > >
> > > <a id="dt-2e76bb59cea813e7713f"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Exact value (<code>const</code>):** <span id="dt-538e65fef8076522734b"><code>&#34;weighscale&#34;</code></span>
> >
> > <a id="dt-dd75397d117650de842d"></a>
> >
> > **Rule 2**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-f4cdfbe1be8a77fb81ac"></a> <span id="dt-1dc4492e06032970a4d2"><code>&#34;adi&#44;excitation&#45;ac&#34;</code></span>, <span id="dt-cfec5c8bfe8981377f82"><code>&#34;adi&#44;excitation&#45;pin&#45;2&#34;</code></span>, <span id="dt-a9bd50c0bdeb01c0dee6"><code>&#34;adi&#44;excitation&#45;pin&#45;3&#34;</code></span>
> >
> > <a id="dt-b963944b6dc453b7d1d6"></a>
> >
> > **Rule 3**
> >
> > > <a id="dt-6f760eb9abcdbb7d4ed8"></a>
> > >
> > > **This rule must not match (<code>not</code>)**
> > >
> > > > **Required in this object (<code>required</code>):** <a id="dt-1943d17dabadf69685a7"></a> <span id="dt-42151e8f296112d3d87b"><code>&#34;adi&#44;excitation&#45;current&#45;2&#45;microamp&#34;</code></span>, <span id="dt-691d0ba8f820cecd95b5"><code>&#34;adi&#44;excitation&#45;current&#45;3&#45;microamp&#34;</code></span>
>
> <a id="dt-22afcbafd7af5c991b94"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-8a9f213e79d05d5fc395"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-7e63becb1049a2861750"></a>
> >
> > **<code>adi&#44;excitation&#45;pin&#45;2</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-efa803bf149c5dc48cba"><code>19</code></span>
> >
> > <a id="dt-638f4b0281cb768aa69d"></a>
> >
> > **<code>adi&#44;excitation&#45;pin&#45;3</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-d6d805e075b8a519394d"><code>20</code></span>

<a id="dt-5159839258ed3d3f5f5a"></a>

**Rule 4**

> <a id="dt-cfefced346881b07e4d0"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-6e45df897998dc68d0e2"></a>
> >
> > **All of these rules must match (<code>allOf</code>)**
> >
> > <a id="dt-d7456986efeffb5be6f3"></a>
> >
> > **Rule 1**
> >
> > > <a id="dt-e49a63f93493114a3905"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-db471aecb1d75a9f350c"></a>
> > >
> > > **<code>adi&#44;sensor&#45;type</code> — not listed as required here**
> > >
> > > <a id="dt-cf749fd9d802c3aa15eb"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Exact value (<code>const</code>):** <span id="dt-0f1984ac90e14b8ffde8"><code>&#34;weighscale&#34;</code></span>
> >
> > <a id="dt-2d7099aff2e6efdc776c"></a>
> >
> > **Rule 2**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-db0cbc29f83d7eeae0c8"></a> <span id="dt-6f65e5dddb019bf7483c"><code>&#34;adi&#44;excitation&#45;ac&#34;</code></span>, <span id="dt-f786cfa8f6848e4d60eb"><code>&#34;adi&#44;excitation&#45;pin&#45;0&#34;</code></span>, <span id="dt-d70997b703444114138d"><code>&#34;adi&#44;excitation&#45;pin&#45;1&#34;</code></span>, <span id="dt-00fc8d8b7ec513914206"><code>&#34;adi&#44;excitation&#45;pin&#45;2&#34;</code></span>, <span id="dt-57e741724ea2482d2194"><code>&#34;adi&#44;excitation&#45;pin&#45;3&#34;</code></span>
> >
> > <a id="dt-4fc2d69eb64405298171"></a>
> >
> > **Rule 3**
> >
> > > <a id="dt-74d25f3c8eff35e20bd3"></a>
> > >
> > > **This rule must not match (<code>not</code>)**
> > >
> > > > **Required in this object (<code>required</code>):** <a id="dt-79d2c50fc88652adc9e6"></a> <span id="dt-aeb57678c5d1243bf4fb"><code>&#34;adi&#44;excitation&#45;current&#45;0&#45;microamp&#34;</code></span>, <span id="dt-6cced46bfd76d6253154"><code>&#34;adi&#44;excitation&#45;current&#45;1&#45;microamp&#34;</code></span>, <span id="dt-62d8798e877692126edc"><code>&#34;adi&#44;excitation&#45;current&#45;2&#45;microamp&#34;</code></span>, <span id="dt-74425776b47830adab6c"><code>&#34;adi&#44;excitation&#45;current&#45;3&#45;microamp&#34;</code></span>
>
> <a id="dt-1181a7ece3e391e6db50"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-eb2dd7ff2c26d960fd19"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e5f9496aa2c259814868"></a>
> >
> > **<code>adi&#44;excitation&#45;pin&#45;0</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-5d3519f873eaf4901b4f"><code>17</code></span>
> >
> > <a id="dt-c8f76babec1a5544e1e9"></a>
> >
> > **<code>adi&#44;excitation&#45;pin&#45;1</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-9801d0ebec755b0a27a0"><code>18</code></span>
> >
> > <a id="dt-1dceb2eb91e5c9d9bb40"></a>
> >
> > **<code>adi&#44;excitation&#45;pin&#45;2</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-611180cb5d026889d549"><code>19</code></span>
> >
> > <a id="dt-2ef09bdaf952251e345d"></a>
> >
> > **<code>adi&#44;excitation&#45;pin&#45;3</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-1dbe522d83ac6e9e5bea"><code>20</code></span>

<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;
spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    adc@0 {
        compatible = "adi,ad4170-4";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;20000000&gt;;
        spi-cpol;
        spi-cpha;
        avdd-supply = &lt;&amp;avdd&gt;;
        iovdd-supply = &lt;&amp;iovdd&gt;;
        clocks = &lt;&amp;clk&gt;;
        clock-names = "xtal";
        interrupts = &lt;0 IRQ_TYPE_EDGE_FALLING&gt;;
        interrupt-names = "dig_aux1";
        adi,vbias-pins = &lt;8&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        // Sample AIN0 with respect to DGND throughout AVDD/DGND input range
        // Pseudo-differential unipolar
        channel@0 {
            reg = &lt;0&gt;;
            single-channel = &lt;0&gt;;
            common-mode-channel = &lt;24&gt;;
            adi,reference-select = &lt;3&gt;;
        };
        // Weigh scale sensor
        channel@1 {
            reg = &lt;1&gt;;
            bipolar;
            diff-channels = &lt;1 2&gt;;
            adi,reference-select = &lt;0&gt;;
            adi,positive-reference-buffer = "precharge";
            adi,negative-reference-buffer = "precharge";
            adi,sensor-type = "weighscale";
            adi,excitation-pin-2 = &lt;19&gt;;
            adi,excitation-pin-3 = &lt;20&gt;;
            adi,excitation-ac;
        };
        // RTD sensor
        channel@2 {
            reg = &lt;2&gt;;
            bipolar;
            diff-channels = &lt;3 4&gt;;
            adi,reference-select = &lt;0&gt;;
            adi,sensor-type = "rtd";
            adi,excitation-pin-0 = &lt;5&gt;;
            adi,excitation-pin-1 = &lt;6&gt;;
            adi,excitation-current-0-microamp = &lt;500&gt;;
            adi,excitation-current-1-microamp = &lt;500&gt;;
            adi,excitation-ac;
        };
        // Thermocouple sensor
        channel@3 {
            reg = &lt;3&gt;;
            bipolar;
            diff-channels = &lt;7 8&gt;;
            adi,reference-select = &lt;0&gt;;
            adi,sensor-type = "thermocouple";
            adi,excitation-pin-0 = &lt;18&gt;;
            adi,excitation-current-0-microamp = &lt;500&gt;;
        };
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    adc@0 {
        compatible = "adi,ad4170-4";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;20000000&gt;;
        spi-cpol;
        spi-cpha;
        avdd-supply = &lt;&amp;avdd&gt;;
        iovdd-supply = &lt;&amp;iovdd&gt;;
        #clock-cells = &lt;0&gt;;
        clock-output-names = "ad4170-clk16mhz";
        interrupts = &lt;0 IRQ_TYPE_EDGE_FALLING&gt;;
        interrupt-names = "dig_aux1";
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        // Sample AIN0 with respect to AIN1 throughout AVDD/AVSS input range
        // Differential bipolar. If AVSS &lt; 0V, differential true bipolar
        channel@0 {
            reg = &lt;0&gt;;
            bipolar;
            diff-channels = &lt;0 1&gt;;
            adi,reference-select = &lt;3&gt;;
        };
        // Sample AIN2 with respect to DGND throughout AVDD/DGND input range
        // Pseudo-differential unipolar
        channel@1 {
            reg = &lt;1&gt;;
            single-channel = &lt;2&gt;;
            common-mode-channel = &lt;24&gt;;
            adi,reference-select = &lt;3&gt;;
        };
        // Sample AIN3 with respect to 2.5V throughout AVDD/AVSS input range
        // Pseudo-differential bipolar
        channel@2 {
            reg = &lt;2&gt;;
            bipolar;
            single-channel = &lt;3&gt;;
            common-mode-channel = &lt;29&gt;;
            adi,reference-select = &lt;3&gt;;
        };
        // Sample AIN4 with respect to DGND throughout AVDD/AVSS input range
        // Pseudo-differential bipolar
        channel@3 {
            reg = &lt;3&gt;;
            bipolar;
            single-channel = &lt;4&gt;;
            common-mode-channel = &lt;24&gt;;
            adi,reference-select = &lt;3&gt;;
        };
        // Sample AIN5 with respect to 2.5V throughout AVDD/AVSS input range
        // Pseudo-differential unipolar (AD4170-4 datasheet page 46 example)
        channel@4 {
            reg = &lt;4&gt;;
            single-channel = &lt;5&gt;;
            common-mode-channel = &lt;29&gt;;
            adi,reference-select = &lt;3&gt;;
        };
        // Sample AIN6 with respect to 2.5V throughout REFIN+/REFIN- input range
        // Pseudo-differential bipolar
        channel@5 {
            reg = &lt;5&gt;;
            bipolar;
            single-channel = &lt;6&gt;;
            common-mode-channel = &lt;29&gt;;
            adi,reference-select = &lt;0&gt;;
        };
        // Weigh scale sensor
        channel@6 {
            reg = &lt;6&gt;;
            bipolar;
            diff-channels = &lt;7 8&gt;;
            adi,reference-select = &lt;0&gt;;
            adi,sensor-type = "weighscale";
            adi,excitation-pin-0 = &lt;17&gt;;
            adi,excitation-pin-1 = &lt;18&gt;;
            adi,excitation-pin-2 = &lt;19&gt;;
            adi,excitation-pin-3 = &lt;20&gt;;
            adi,excitation-ac;
        };
    };
};
</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>

<p id="dt-comment-1"><strong>Line 137:</strong> <span> Some devices don't have integrated DAC</span></p>

<p id="dt-comment-2"><strong>Line 149:</strong> <span> Require to specify the interrupt pin when using interrupts</span></p>

<p id="dt-comment-3"><strong>Line 157:</strong> <span> If an external clock is set, the internal clock cannot go out and vice versa</span></p>

<p id="dt-comment-4"><strong>Line 331:</strong> <span> Usual ADC channels don't need external circuitry excitation.</span></p>

<p id="dt-comment-5"><strong>Line 347:</strong> <span> Weigh scale bridge AC excited with one pair of predefined signals.</span></p>

<p id="dt-comment-6"><strong>Line 368:</strong> <span> Weigh scale bridge AC excited with two pairs of predefined signals.</span></p>

</details>
