# Maxim Semiconductor MAX8903 Battery Charger

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

> Device-tree binding reference for Maxim Semiconductor MAX8903 Battery Charger.

<!-- 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;maxim&#44;max8903&#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;Sebastian Reichel &#60;sre&#64;kernel&#46;org&#62;&#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-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;maxim&#44;max8903&#34;</code></span>

<a id="dt-63021fe19068d5169800"></a>

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

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

<div id="dt-9e4f85c63621473e56db">
<p style="white-space: pre-wrap">Valid DC power has been detected (active low, input)</p>
</div>

<a id="dt-6be9db4d027074a7c0f9"></a>

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

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

<div id="dt-fbcee40cbb5346f7c671">
<p style="white-space: pre-wrap">Valid USB power has been detected (active low, input)</p>
</div>

<a id="dt-9113ffae095db152932e"></a>

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

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

<div id="dt-19713e270808a174c161">
<p style="white-space: pre-wrap">Charge enable pin (active low, output)</p>
</div>

<a id="dt-3903bfeb12d977c69b53"></a>

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

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

<div id="dt-76e4dfbedee3bae4c62b">
<p style="white-space: pre-wrap">Charger status pin (active low, input)</p>
</div>

<a id="dt-364c453efd571a2a1d98"></a>

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

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

<div id="dt-349694c08a12127c908f">
<p style="white-space: pre-wrap">Fault pin (active low, input)</p>
</div>

<a id="dt-154df299f4a903f89154"></a>

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

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

<div id="dt-03dc77daf525b3b2c733">
<p style="white-space: pre-wrap">Current limit mode setting (DC=1 or USB=0, output)</p>
</div>

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

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

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

<div id="dt-5d027efe0664b71fd541">
<p style="white-space: pre-wrap">USB suspend pin (active high, output)</p>
</div>

**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-413065af65ac6af8f24e"></a>

## At least one of these rules must match (<code>anyOf</code>)

<a id="dt-96eb361b08260472facb"></a>

### Rule 1

> **Required in this object (<code>required</code>):** <a id="dt-a3ce052275bac2469e04"></a> <span id="dt-396aa8b3d1b1aeeb2c7a"><code>&#34;dok&#45;gpios&#34;</code></span>

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

### Rule 2

> **Required in this object (<code>required</code>):** <a id="dt-bb61b4b3827abc4e9b85"></a> <span id="dt-cffc196e945e46f91e3a"><code>&#34;uok&#45;gpios&#34;</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">#include &lt;dt-bindings/gpio/gpio.h&gt;
charger {
  compatible = "maxim,max8903";
  dok-gpios = &lt;&amp;gpio2 3 GPIO_ACTIVE_LOW&gt;;
  flt-gpios = &lt;&amp;gpio2 2 GPIO_ACTIVE_LOW&gt;;
  chg-gpios = &lt;&amp;gpio3 15 GPIO_ACTIVE_LOW&gt;;
  cen-gpios = &lt;&amp;gpio2 5 GPIO_ACTIVE_LOW&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</span></p>

</details>
