# AXP20x USB power-supply

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Power bindings / supply_

> Device-tree binding reference for AXP20x USB power-supply.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;power&#47;supply&#47;x&#45;powers&#44;axp20x&#45;usb&#45;power&#45;supply&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The AXP223 PMIC shares most of its behaviour with the AXP221 but has slight
variations such as the former being able to set the VBUS power supply max
current to 100mA, unlike the latter.</p>
</div>

**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>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Sebastian Reichel &#60;sre&#64;kernel&#46;org&#62;&#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

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

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

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;x&#45;powers&#44;axp192&#45;usb&#45;power&#45;supply&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;x&#45;powers&#44;axp202&#45;usb&#45;power&#45;supply&#34;</code></span>, <span id="dt-f03e1478792ca587ff5c"><code>&#34;x&#45;powers&#44;axp221&#45;usb&#45;power&#45;supply&#34;</code></span>, <span id="dt-34cab0afbb7f2b55efc5"><code>&#34;x&#45;powers&#44;axp223&#45;usb&#45;power&#45;supply&#34;</code></span>, <span id="dt-d29c3f554eb9a606c63a"><code>&#34;x&#45;powers&#44;axp717&#45;usb&#45;power&#45;supply&#34;</code></span>, <span id="dt-6abdfa16ccd722b794e6"><code>&#34;x&#45;powers&#44;axp813&#45;usb&#45;power&#45;supply&#34;</code></span>

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

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;x&#45;powers&#44;axp803&#45;usb&#45;power&#45;supply&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;x&#45;powers&#44;axp813&#45;usb&#45;power&#45;supply&#34;</code></span>

<a id="dt-02883d899156c23dd5e5"></a>

### <code>input&#45;current&#45;limit&#45;microamp</code> — not listed as required here

<div id="dt-cbc0114df361ee8389ed">
<p style="white-space: pre-wrap">Optional value to clamp the maximum input current limit to for the device. If omitted, the programmed value from the EFUSE will be used.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-aa7b0dd7eb0c47fe79cd"><code>100000</code></span>

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

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>

<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>power&#45;supply&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-power/supply/power-supply.md#dt-root>)</span>

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

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-61039da0155527cc02ba"></a> <span id="dt-20f8a813aab744ff239a"><code>&#34;x&#45;powers&#44;axp192&#45;usb&#45;power&#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-ccc171be514a928056b1"></a>
> >
> > **<code>input&#45;current&#45;limit&#45;microamp</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-8fa5eaa087ea92f4eec1"></a> <span id="dt-ca014258fdfc674f8bdb"><code>100000</code></span>, <span id="dt-62852c2c9ebe2cb0f494"><code>500000</code></span>

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

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-7838023cb1ac8ba1fc13"></a> <span id="dt-2698b34438b1aced3e06"><code>&#34;x&#45;powers&#44;axp202&#45;usb&#45;power&#45;supply&#34;</code></span>, <span id="dt-dde728fd212bd16cfbc3"><code>&#34;x&#45;powers&#44;axp223&#45;usb&#45;power&#45;supply&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-b0b350c0faa993196a37"></a>
> >
> > **<code>input&#45;current&#45;limit&#45;microamp</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-45c555f9894d9f7d1e0d"></a> <span id="dt-b3ec388042e32819ce43"><code>100000</code></span>, <span id="dt-e3128398a1b098a7005c"><code>500000</code></span>, <span id="dt-b9eee183e65c639a0c8a"><code>900000</code></span>

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

### Rule 4

> <a id="dt-5d622c5a2672c1e49b35"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-8d84f7bba76b4e26221f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-11dc65c5cf7abc0317bb"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-3de4a4db25c09109abf4"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-2f146490cc52d0a82c19"></a> <span id="dt-b1038ed41acf3cc462f9"><code>&#34;x&#45;powers&#44;axp221&#45;usb&#45;power&#45;supply&#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-102c31310e531af4c13c"></a>
> >
> > **<code>input&#45;current&#45;limit&#45;microamp</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-51cffc2aec3fce2e111e"></a> <span id="dt-8dda528cbec20ecc2e69"><code>500000</code></span>, <span id="dt-d4e145da3ce4022e7412"><code>900000</code></span>

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

### Rule 5

> <a id="dt-30dd43480a02ff52099e"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-815e247e2e39708faa21"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-95159efb137dae08a1e1"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-2bc9a23172c2091be559"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-f6f7348eb6a3f6a0c1d3"></a> <span id="dt-e23119600ac866295534"><code>&#34;x&#45;powers&#44;axp717&#45;usb&#45;power&#45;supply&#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-84c35bf0994d3afa3a4d"></a>
> >
> > **<code>input&#45;current&#45;limit&#45;microamp</code> — not listed as required here**
> >
> > <div id="dt-e8d0f84973708d67af6c">
> > <p style="white-space: pre-wrap">Maximum input current in increments of 50000 uA.</p>
> > </div>
> >
> > **Minimum value (<code>minimum</code>):** <span id="dt-cf57fa74f77aa1ce6a1e"><code>100000</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-9563b969c3bd48a0c92c"><code>3250000</code></span>

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

### Rule 6

> <a id="dt-29f1a7d11303016de0fb"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-31db8c2b34419cd49333"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-049791ad441d801be5c0"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-b015f3429cf037cca578"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-7fd3859f97987911f131"></a> <span id="dt-c7b90595f82e2304d5f1"><code>&#34;x&#45;powers&#44;axp813&#45;usb&#45;power&#45;supply&#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-7154e4ff746e404f4dc6"></a>
> >
> > **<code>input&#45;current&#45;limit&#45;microamp</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-4560640bbbdf01acaef6"></a> <span id="dt-05530f85f27e5ffd863c"><code>100000</code></span>, <span id="dt-de46ebe87994e970d855"><code>500000</code></span>, <span id="dt-085040ff43acef9dfd83"><code>900000</code></span>, <span id="dt-c3bfccd4c60a7a73e358"><code>1500000</code></span>, <span id="dt-dc195167e63db5451a31"><code>2000000</code></span>, <span id="dt-f1eb404a0c11bae4c817"><code>2500000</code></span>, <span id="dt-c3f92752913b4deb38bc"><code>3000000</code></span>, <span id="dt-25c80aba42b2f4561e1c"><code>3500000</code></span>, <span id="dt-0f0ac068bf8b086a5923"><code>4000000</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.

## 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</span></p>

</details>
