# X-Powers AXP ADC

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

> Device-tree binding reference for X-Powers AXP ADC.

<!-- 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;x&#45;powers&#44;axp209&#45;adc&#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;Chen&#45;Yu Tsai &#60;wens&#64;csie&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">ADC is frequently used as a provider to consumers of the ADC channels.
Device is a child of an axp209 multifunction device
ADC channels and their indexes per variant:</p>
<p style="white-space: pre-wrap">AXP209
------
 0 | acin_v
 1 | acin_i
 2 | vbus_v
 3 | vbus_i
 4 | pmic_temp
 5 | gpio0_v
 6 | gpio1_v
 7 | ipsout_v
 8 | batt_v
 9 | batt_chrg_i
10 | batt_dischrg_i
11 | ts_v</p>
<p style="white-space: pre-wrap">AXP22x
------
 0 | pmic_temp
 1 | batt_v
 2 | batt_chrg_i
 3 | batt_dischrg_i
 4 | ts_v</p>
<p style="white-space: pre-wrap">AXP717
------
 0 | batt_v
 1 | ts_v
 2 | vbus_v
 3 | vsys_v
 4 | pmic_temp
 5 | batt_chrg_i
 6 | vmid_v
 7 | bkup_batt_v</p>
<p style="white-space: pre-wrap">AXP813
------
 0 | pmic_temp
 1 | gpio0_v
 2 | batt_v
 3 | batt_chrg_i
 4 | batt_dischrg_i
 5 | ts_v</p>
</div>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

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

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;x&#45;powers&#44;axp209&#45;adc&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;x&#45;powers&#44;axp221&#45;adc&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> **Exact value (<code>const</code>):** <span id="dt-710bc579d54b8b6b1f6c"><code>&#34;x&#45;powers&#44;axp717&#45;adc&#34;</code></span>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> **Exact value (<code>const</code>):** <span id="dt-bb8aa9a35453860e510c"><code>&#34;x&#45;powers&#44;axp813&#45;adc&#34;</code></span>

<a id="dt-6932ba24e194ea67730d"></a>

**Rule 5**

> <a id="dt-196210d7e8a5e94e1226"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4b7c967de45ba4ead27f"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-3f49949a764b6257a77a"><code>&#34;x&#45;powers&#44;axp803&#45;adc&#34;</code></span>
>
> <a id="dt-caf6ce7d7f34e1e8d173"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-4a97b7e5e83d59103118"><code>&#34;x&#45;powers&#44;axp813&#45;adc&#34;</code></span>

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

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

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

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

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

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">axp221 {
    adc {
        compatible = "x-powers,axp221-adc";
        #io-channel-cells = &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>

</details>
