# Palmas general purpose ADC IP block

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

> Device-tree binding reference for Palmas general purpose ADC IP block.

<!-- 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;ti&#44;palmas&#45;gpadc&#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;Tony Lindgren &#60;tony&#64;atomide&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>This ADC is often used to provide channels via the io-channels
consumer framework.
Channels list:
  0 battery type
  1 battery temp NTC (optional current source)
  2 GP
  3 temp (with ext. diode, optional current source)
  4 GP
  5 GP
  6 VBAT_SENSE
  7 VCC_SENSE
  8 Backup Battery voltage
  9 external charger (VCHG)
  10 VBUS
  11 DC-DC current probe (how does this work?)
  12 internal die temp
  13 internal die temp
  14 USB ID pin voltage
  15 test network</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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;ti&#44;palmas&#45;gpadc&#34;</code></span>

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

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

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

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

<a id="dt-6971e222e0082656e9f5"></a>

### <code>&#35;io&#45;channel&#45;cells</code> — required here

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

<a id="dt-2e15b81d2bc6ff7e98a2"></a>

### <code>ti&#44;channel0&#45;current&#45;microamp</code> — not listed as required here

<div id="dt-5422af2d561037d56dd8">
<p style="white-space: pre-wrap">Channel 0 current in uA.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-9f2949a2823400ef0611"></a> <span id="dt-fdace67b3b9f10f9012c"><code>0</code></span>, <span id="dt-63a063978600c9435fc2"><code>5</code></span>, <span id="dt-2b9ec5f2e3959203cc9d"><code>15</code></span>, <span id="dt-e3419d817e221a2bf65e"><code>20</code></span>

<a id="dt-20278f1c64c120f6c80a"></a>

### <code>ti&#44;channel3&#45;current&#45;microamp</code> — not listed as required here

<div id="dt-11c6fe2bf49f96a4f3e5">
<p style="white-space: pre-wrap">Channel 3 current in uA.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-d85f605fa2854c465c84"></a> <span id="dt-fbc7c35ac084a110cbef"><code>0</code></span>, <span id="dt-e4e8164b809d38d50e06"><code>10</code></span>, <span id="dt-c88f13b137be8a8152d1"><code>400</code></span>, <span id="dt-87de488bf587395a278e"><code>800</code></span>

<a id="dt-55a45b122807551b78e3"></a>

### <code>ti&#44;enable&#45;extended&#45;delay</code> — not listed as required here

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

<div id="dt-4fb67e725627545d8da2">
<p style="white-space: pre-wrap">Enable extended delay.</p>
</div>

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

**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;&#35;io&#45;channel&#45;cells&#34;</code></span>

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

</details>
