# Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs

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

> Device-tree binding reference for Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs.

<!-- 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;ti&#44;ads131e08&#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;Jonathan Cameron &#60;jic23&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The ADS131E0x are a family of multichannel, simultaneous sampling,
24-bit, delta-sigma, analog-to-digital converters (ADCs) with a
built-in programmable gain amplifier (PGA), internal reference
and an onboard oscillator.
The communication with ADC chip is via the SPI bus (mode 1).</p>
<p style="white-space: pre-wrap">https://www.ti.com/lit/ds/symlink/ads131e08.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;ti&#44;ads131e04&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;ads131e06&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;ads131e08&#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-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> — required here

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Device tree identifier to the clock source (2.048 MHz).
Note: clock source is selected using CLKSEL pin.</p>
</div>

**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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;adc&#45;clk&#34;</code></span>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">IRQ line for the ADC data ready.</p>
</div>

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

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

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

<div id="dt-f9c8a721f6889569bcad">
<p style="white-space: pre-wrap">Optional external voltage reference. If not supplied, internal voltage
reference is used.</p>
</div>

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

### <code>ti&#44;vref&#45;internal</code> — not listed as required here

<div id="dt-e2a40db484d9d53bff6d">
<p style="white-space: pre-wrap">Select the internal voltage reference value.
0: 2.4V
1: 4.0V
If this field is left empty, 2.4V is selected.
Note: internal voltage reference is used only if vref-supply is not supplied.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-74c08257558225a4dff1">[<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-a02b04fcd61c392e551f"></a> <span id="dt-450a3828074847da6f57"><code>0</code></span>, <span id="dt-2b7315d320a3b438057d"><code>1</code></span>

**Default value (<code>default</code>):** <span id="dt-d688c218eef89b95e164"><code>0</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>

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

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

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

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

### <code>&#94;channel&#64;&#40;&#91;0&#45;7&#93;&#41;&#36;</code> — name matches this regular expression

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

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

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

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

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

<a id="dt-58e264cd3cabc26b36e6"></a>

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

<div id="dt-dc5618a4e3e257cbf07e">
<p style="white-space: pre-wrap">The channel number.
Up to 4 channels, numbered from 0 to 3 for ti,ads131e04.
Up to 6 channels, numbered from 0 to 5 for ti,ads131e06.
Up to 8 channels, numbered from 0 to 7 for ti,ads131e08.</p>
</div>

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

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

> **Minimum value (<code>minimum</code>):** <span id="dt-baf8d4db628897b72584"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-6b00df198f8de3c550e9"><code>7</code></span>

<a id="dt-1418082b92dc9f0c50de"></a>

**<code>ti&#44;gain</code> — not listed as required here**

<div id="dt-8b8ab98757ee2de3ce95">
<p style="white-space: pre-wrap">The PGA gain value for the channel.
If this field is left empty, PGA gain 1 is used.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-514b4f035639260aca98">[<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-8e6f4faf4dfbda4d5a15"></a> <span id="dt-15a8b5e46ae89d6e022e"><code>1</code></span>, <span id="dt-b4c80de43baef370a510"><code>2</code></span>, <span id="dt-22da35a44afb13d87de0"><code>4</code></span>, <span id="dt-74130476fcef0db67f05"><code>8</code></span>, <span id="dt-7a81f09876909d8b4750"><code>12</code></span>

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

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

**<code>ti&#44;mux</code> — not listed as required here**

<div id="dt-b5d5eea5eee7b33bb6e5">
<p style="white-space: pre-wrap">Channel input selection(muliplexer).
0: Normal input.
1: Input shorted to (VREFP + VREFN) / 2 (for offset or noise measurements).
3: MVDD (for supply measurement)
4: Temperature sensor
If this field is left empty, normal input is selected.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-211ed30f8f691d8bafbb">[<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-dcc938b803b52f51557d"></a> <span id="dt-86080da2d7b67f2fd73b"><code>0</code></span>, <span id="dt-fbbc6b9400d69424bd60"><code>1</code></span>, <span id="dt-268e559d667326331795"><code>3</code></span>, <span id="dt-cbe4fc9caff3d977e766"><code>4</code></span>

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

**Required in this object (<code>required</code>):** <a id="dt-d7dec15cb45b6d21f57f"></a> <span id="dt-d38fddff7b66690d8e78"><code>&#34;reg&#34;</code></span>

<a id="dt-62530b77a2079190e0e8"></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-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;

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

  adc@0 {
    compatible = "ti,ads131e08";
    reg = &lt;0&gt;;
    spi-max-frequency = &lt;1000000&gt;;
    spi-cpha;
    clocks = &lt;&amp;clk2048k&gt;;
    clock-names = "adc-clk";
    interrupt-parent = &lt;&amp;gpio5&gt;;
    interrupts = &lt;28 IRQ_TYPE_EDGE_FALLING&gt;;
    vref-supply = &lt;&amp;adc_vref&gt;;

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

    channel@0 {
      reg = &lt;0&gt;;
    };

    channel@1 {
      reg = &lt;1&gt;;
    };

    channel@2 {
      reg = &lt;2&gt;;
      ti,gain = &lt;2&gt;;
    };

    channel@3 {
      reg = &lt;3&gt;;
    };

    channel@4 {
      reg = &lt;4&gt;;
    };

    channel@5 {
      reg = &lt;5&gt;;
    };

    channel@6 {
      reg = &lt;6&gt;;
    };

    channel@7 {
      reg = &lt;7&gt;;
      ti,mux = &lt;4&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>

</details>
