# Analog Devices PulSAR LFCSP 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 PulSAR LFCSP 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;ad7944&#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>, <span id="dt-0f999bb9185dbf6b58d8"><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">A family of pin-compatible single channel differential analog to digital
converters with SPI support in a LFCSP package.</p>
<p style="white-space: pre-wrap">* https://www.analog.com/en/products/ad7944.html
* https://www.analog.com/en/products/ad7985.html
* https://www.analog.com/en/products/ad7986.html</p>
</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-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;ad7944&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;adi&#44;ad7985&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;adi&#44;ad7986&#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-03a3b4f56bf191dde680"></a>

### <code>spi&#45;max&#45;frequency</code> — not listed as required here

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

<a id="dt-27851c8ce8d41152ef35"></a>

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

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

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

### <code>spi&#45;cpha</code> — not listed as required here

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-f7b3b1c3f3a751fd5d98">[<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-48c01c984483adb76900"></a> <span id="dt-81e55afbb32ae079e0a9"><code>&#34;single&#34;</code></span>, <span id="dt-6b0ed49d67fa2781af1e"><code>&#34;chain&#34;</code></span>

<div id="dt-b88a7f025bb9cc70be0b">
<p style="white-space: pre-wrap">This property indicates the SPI wiring configuration.</p>
<p style="white-space: pre-wrap">When this property is omitted, it is assumed that the device is using what
the datasheet calls "4-wire mode". This is the conventional SPI mode used
when there are multiple devices on the same bus. In this mode, the CNV
line is used to initiate the conversion and the SDI line is connected to
CS on the SPI controller.</p>
<p style="white-space: pre-wrap">When this property is present, it indicates that the device is using one
of the following alternative wiring configurations:</p>
<pre><code>* single: The datasheet calls this "3-wire mode". (NOTE: The datasheet's
  definition of 3-wire mode is NOT at all related to the standard
  spi-3wire property!) This mode is often used when the ADC is the only
  device on the bus. In this mode, SDI is tied to VIO, and the CNV line
  can be connected to the CS line of the SPI controller or to a GPIO, in
  which case the CS line of the controller is unused.
* chain: The datasheet calls this "chain mode". This mode is used to save
  on wiring when multiple ADCs are used. In this mode, the SDI line of
  one chip is tied to the SDO of the next chip in the chain and the SDI of
  the last chip in the chain is tied to GND. Only the first chip in the
  chain is connected to the SPI bus. The CNV line of all chips are tied
  together. The CS line of the SPI controller can be used as the CNV line
  only if it is active high.</code></pre>
</div>

<a id="dt-7e102ae12fd0561141f2"></a>

### <code>&#35;daisy&#45;chained&#45;devices</code> — not listed as required here

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

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

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

<div id="dt-c928412db05126ef65e3">
<p style="white-space: pre-wrap">A 2.5V supply that powers the analog circuitry.</p>
</div>

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

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

<div id="dt-593261d208e8b7fb5f26">
<p style="white-space: pre-wrap">A 2.5V supply that powers the digital circuitry.</p>
</div>

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

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

<div id="dt-13f51f213fdf6c69a1ce">
<p style="white-space: pre-wrap">A 1.8V to 2.7V supply for the digital inputs and outputs.</p>
</div>

<a id="dt-90422f981431ed8175d2"></a>

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

<div id="dt-9d34e6a3ff91cb55ff85">
<p style="white-space: pre-wrap">A voltage supply for the buffered power. When using an external reference without an internal buffer (PDREF high, REFIN low), this should be connected to the same supply as ref-supply. Otherwise, when using an internal reference or an external reference with an internal buffer, this is connected to a 5V supply.</p>
</div>

<a id="dt-4faf4b7f743573e07a30"></a>

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

<div id="dt-c7c35e0a020d29083f1f">
<p style="white-space: pre-wrap">Voltage regulator for the external reference voltage (REF). This property is omitted when using an internal reference.</p>
</div>

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

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

<div id="dt-b738ecee2d7603dfe032">
<p style="white-space: pre-wrap">Voltage regulator for the reference buffer input (REFIN). When using an external buffer with internal reference, this should be connected to a 1.2V external reference voltage supply. Otherwise, this property is omitted.</p>
</div>

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

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

<div id="dt-3d434b40d06088644a48">
<p style="white-space: pre-wrap">The Convert Input (CNV). This input has multiple functions. It initiates the conversions and selects the SPI mode of the device (chain or CS). In 'single' mode, this property is omitted if the CNV pin is connected to the CS line of the SPI controller.</p>
</div>

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

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

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

<div id="dt-9de802ac50c14084c081">
<p style="white-space: pre-wrap">GPIO connected to the TURBO line. If omitted, it is assumed that the TURBO line is hard-wired and the state is determined by the adi,always-turbo property.</p>
</div>

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

<a id="dt-80b8d4825644f5f4df69"></a>

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

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

<div id="dt-fbee5061c8411f125ec8">
<p style="white-space: pre-wrap">When present, this property indicates that the TURBO line is hard-wired and the state is always high. If neither this property nor turbo-gpios is present, the TURBO line is assumed to be hard-wired and the state is always low.</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">The SDO pin can also function as a busy indicator. This node should be connected to an interrupt that is triggered when the SDO line goes low while the SDI line is high and the CNV line is low ('single' mode) or the SDI line is low and the CNV line is high ('multi' mode); or when the SDO line goes high while the SDI and CNV lines are high (chain mode),</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b7823fb65b2f27642d26"><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>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;avdd&#45;supply&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;dvdd&#45;supply&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;vio&#45;supply&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;bvdd&#45;supply&#34;</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>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-8562362a36ebdbb1ff2a"></a> <span id="dt-31d648f7705dc578c2d6"><code>&#34;ref&#45;supply&#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-92145748c76cdea4aa11"></a>
> >
> > **<code>refin&#45;supply</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;refin&#45;supply&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-a209ff45b8546b22a9e4"></a>
> >
> > **<code>ref&#45;supply</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-ef222142ff9d3190ed20"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-c9311f1c6e7c99fda2e4"></a> <span id="dt-e173432619bfdcd838a7"><code>&#34;adi&#44;spi&#45;mode&#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;cnv&#45;gpios&#34;</code></span>

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

### Rule 4

> <a id="dt-5d622c5a2672c1e49b35"></a>
>
> #### Condition (<code>if</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-4399324f563aa66c836f"></a> <span id="dt-1a90164f53ca2e054a90"><code>&#34;adi&#44;spi&#45;mode&#34;</code></span>
> >
> > <a id="dt-8d84f7bba76b4e26221f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-dc9a9e1e616219046b86"></a>
> >
> > **<code>adi&#44;spi&#45;mode</code> — required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-49ed784b2b84c95e736d"><code>&#34;chain&#34;</code></span>
>
> <a id="dt-889ceb40bc531bf0dc1d"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-7cd597a6bb6b91730c25"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-519e44def65e11238745"></a>
> >
> > **<code>spi&#45;max&#45;frequency</code> — not listed as required here**
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-d3e4998324334a197ee0"><code>90909090</code></span>
> >
> > <a id="dt-2d618d1c00dd2b03d556"></a>
> >
> > **<code>adi&#44;always&#45;turbo</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-e8e2f7d7ecdebb81c712"></a> <span id="dt-1a51fa9eec7d4fe91130"><code>&#34;&#35;daisy&#45;chained&#45;devices&#34;</code></span>
>
> <a id="dt-1b6193699b46ee209acb"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-b46fd54c3fb20513db03"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-349e9127e19517ad503d"></a>
> >
> > **<code>&#35;daisy&#45;chained&#45;devices</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

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

### Rule 5

> <a id="dt-30dd43480a02ff52099e"></a>
>
> #### Condition (<code>if</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-4fc8d2ad4b7a3dfb5411"></a> <span id="dt-dd24be0d6a853b5a83e7"><code>&#34;turbo&#45;gpios&#34;</code></span>
>
> <a id="dt-b13bdf6bf01ba2db1729"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-61105cb355bf27434ff1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-69c80b2275250e3f4eaf"></a>
> >
> > **<code>adi&#44;always&#45;turbo</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<a id="dt-51879ae9be030b28e888"></a>

### Rule 6

> <a id="dt-29f1a7d11303016de0fb"></a>
>
> #### Condition (<code>if</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-fea86d379259838a0837"></a> <span id="dt-c87424b403a88539b8a3"><code>&#34;adi&#44;always&#45;turbo&#34;</code></span>
>
> <a id="dt-5d3814a6fa606b79b9a6"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-bc42d1cd066384e1f6fa"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-70f38c9f9a78cdce3b56"></a>
> >
> > **<code>turbo&#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/gpio/gpio.h&gt;
spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    adc@0 {
        compatible = "adi,ad7944";
        reg = &lt;0&gt;;
        spi-cpha;
        spi-max-frequency = &lt;111111111&gt;;
        avdd-supply = &lt;&amp;supply_2_5V&gt;;
        dvdd-supply = &lt;&amp;supply_2_5V&gt;;
        vio-supply = &lt;&amp;supply_1_8V&gt;;
        bvdd-supply = &lt;&amp;supply_5V&gt;;
        cnv-gpios = &lt;&amp;gpio 0 GPIO_ACTIVE_HIGH&gt;;
        turbo-gpios = &lt;&amp;gpio 1 GPIO_ACTIVE_HIGH&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>

<p id="dt-comment-1"><strong>Line 141:</strong> <span> ref-supply and refin-supply are mutually exclusive (neither is also valid)</span></p>

<p id="dt-comment-2"><strong>Line 154:</strong> <span> in '4-wire' mode, cnv-gpios is required, for other modes it is optional</span></p>

<p id="dt-comment-3"><strong>Line 162:</strong> <span> chain mode has lower SCLK max rate and doesn't work when TURBO is enabled</span></p>

<p id="dt-comment-4"><strong>Line 179:</strong> <span> turbo-gpios and adi,always-turbo are mutually exclusive</span></p>

</details>
