# Qualcomm Switch-Mode Battery Charger and Boost

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

> Device-tree binding reference for Qualcomm Switch-Mode Battery Charger and Boost.

<!-- 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;qcom&#44;pm8941&#45;charger&#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-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;qcom&#44;pm8226&#45;charger&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;qcom&#44;pm8941&#45;charger&#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-c2de09e7f7fd211b679d"></a>

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

<a id="dt-985aed94c3a5de8e946a"></a>

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

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

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">charge done</p>
> </div>

<a id="dt-14fdf3275cf454d3c593"></a>

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">charge fast mode</p>
> </div>

<a id="dt-6825e597892563d56556"></a>

**Item 3**

> <div id="dt-2c85367ad575dfda8b35">
> <p style="white-space: pre-wrap">charge trickle mode</p>
> </div>

<a id="dt-0e24ebf428e547e00816"></a>

**Item 4**

> <div id="dt-aa4f93a6c04967e709f9">
> <p style="white-space: pre-wrap">battery temperature ok</p>
> </div>

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

**Item 5**

> <div id="dt-69853563c80e815c6939">
> <p style="white-space: pre-wrap">battery present</p>
> </div>

<a id="dt-15718b5dec69bc52428d"></a>

**Item 6**

> <div id="dt-920611eed93e73d017a3">
> <p style="white-space: pre-wrap">charger disconnected</p>
> </div>

<a id="dt-94298e6976f5850d80c1"></a>

**Item 7**

> <div id="dt-7b2ecc1799e8158d6a05">
> <p style="white-space: pre-wrap">USB-in valid</p>
> </div>

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

**Item 8**

> <div id="dt-eda38108022550d2d36c">
> <p style="white-space: pre-wrap">DC-in valid</p>
> </div>

<a id="dt-8aa4fd7705c68de75d2b"></a>

### <code>interrupt&#45;names</code> — required here

<a id="dt-77e94e63ca0b20bb5ef1"></a>

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

<a id="dt-1198ecbdbe49337cf73e"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-7f7686a533ef09dda0b1"><code>&#34;chg&#45;done&#34;</code></span>

<a id="dt-0d40baae5346e6957f8a"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-5af1964d23a153c89b8a"><code>&#34;chg&#45;fast&#34;</code></span>

<a id="dt-01a6f91e38388cdf0f5a"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-25e85adf3e7caf29cd92"><code>&#34;chg&#45;trkl&#34;</code></span>

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

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-bb507334c2bd56c85638"><code>&#34;bat&#45;temp&#45;ok&#34;</code></span>

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

**Item 5**

> **Exact value (<code>const</code>):** <span id="dt-24e24ae9c744f6d3404a"><code>&#34;bat&#45;present&#34;</code></span>

<a id="dt-78538ebdcee0e6b3ee29"></a>

**Item 6**

> **Exact value (<code>const</code>):** <span id="dt-7cc2c08134dc2e073aa6"><code>&#34;chg&#45;gone&#34;</code></span>

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

**Item 7**

> **Exact value (<code>const</code>):** <span id="dt-08fa51b24e80029ccaa4"><code>&#34;usb&#45;valid&#34;</code></span>

<a id="dt-01720d94ef8e36f0fe37"></a>

**Item 8**

> **Exact value (<code>const</code>):** <span id="dt-b69442fc9d7cffb6c650"><code>&#34;dc&#45;valid&#34;</code></span>

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

### <code>qcom&#44;fast&#45;charge&#45;current&#45;limit</code> — not listed as required here

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-7a38fb8230967e5afab8"><code>3000000</code></span>

<div id="dt-b08c84c416845769cd54">
<p style="white-space: pre-wrap">Maximum charge current in uA; May be clamped to safety limits; Defaults to 1A</p>
</div>

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

### <code>qcom&#44;fast&#45;charge&#45;low&#45;threshold&#45;voltage</code> — not listed as required here

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

**Minimum value (<code>minimum</code>):** <span id="dt-4e6cba875f31892e784f"><code>2100000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-2ff4fbc82b0fe3c4a44a"><code>3600000</code></span>

<div id="dt-e4126b413e0eef155275">
<p style="white-space: pre-wrap">Battery voltage limit in uV above which fast charging may operate; Defaults to 3.2V
Below this value linear or switch-mode auto-trickle-charging will operate.</p>
</div>

<a id="dt-74f3dba4c79795d0e158"></a>

### <code>qcom&#44;fast&#45;charge&#45;high&#45;threshold&#45;voltage</code> — not listed as required here

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

**Minimum value (<code>minimum</code>):** <span id="dt-9454d5ca69260807257f"><code>3240000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-0004906f4b1a561d71c9"><code>5000000</code></span>

<div id="dt-1aa2cc18e62adfacacb2">
<p style="white-space: pre-wrap">Battery voltage limit in uV below which fast charging may operate; Defaults to 4.2V
The fast charger will attempt to charge the battery to this voltage.
May be clamped to safety limits.</p>
</div>

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

### <code>qcom&#44;fast&#45;charge&#45;safe&#45;voltage</code> — not listed as required here

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-129b993567798b865086"><code>5000000</code></span>

<div id="dt-d89ac2383af401bf4106">
<p style="white-space: pre-wrap">Maximum safe battery voltage in uV; May be pre-set by bootloader, in which case,
setting this will harmlessly fail. The property 'fast-charge-high-watermark' will
be clamped by this value. Defaults to 4.2V.</p>
</div>

<a id="dt-409fa6b64344163bfe82"></a>

### <code>qcom&#44;fast&#45;charge&#45;safe&#45;current</code> — not listed as required here

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

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

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

<div id="dt-9e19cd9eb7f245419665">
<p style="white-space: pre-wrap">Maximum safe battery charge current in uA; May pre-set by bootloader, in which case,
setting this will harmlessly fail. The property 'qcom,fast-charge-current-limit'
will be clamped by this value. Defaults to 1A.</p>
</div>

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

### <code>qcom&#44;auto&#45;recharge&#45;threshold&#45;voltage</code> — not listed as required here

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

**Minimum value (<code>minimum</code>):** <span id="dt-5e55c7b60eb99c3b5517"><code>3240000</code></span>

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

<div id="dt-4fee5216c6f1f9294035">
<p style="white-space: pre-wrap">Battery voltage limit in uV below which auto-recharge functionality will restart charging
after end-of-charge; The high cutoff limit for auto-recharge is 5% above this value.
Defaults to 4.1V.</p>
</div>

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

### <code>qcom&#44;minimum&#45;input&#45;voltage</code> — not listed as required here

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

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

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

<div id="dt-e42b6753ae2fb5a6644b">
<p style="white-space: pre-wrap">Input voltage level in uV above which charging may operate. Defaults to 4.3V.</p>
</div>

<a id="dt-693b729e126e64220982"></a>

### <code>qcom&#44;dc&#45;current&#45;limit</code> — not listed as required here

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-0c7016e5aaa065600cc5"><code>2500000</code></span>

<div id="dt-7804fbb77f063a2561b8">
<p style="white-space: pre-wrap">Default DC charge current limit in uA. Defaults to 100mA.</p>
</div>

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

### <code>qcom&#44;disable&#45;dc</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-2da97306d632183806b7"><code>&#34;boolean&#34;</code></span>

<div id="dt-c4c78877cd37cce71969">
<p style="white-space: pre-wrap">Disable DC charger</p>
</div>

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

### <code>qcom&#44;jeita&#45;extended&#45;temp&#45;range</code> — not listed as required here

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

<div id="dt-ff7baf093e5e172765b9">
<p style="white-space: pre-wrap">Enable JEITA extended temperature range;  This does *not* adjust the maximum charge
voltage or current in the extended temperature range. It only allows charging when
the battery is in the extended temperature range. Voltage/current regulation must
be done externally to fully comply with the JEITA safety guidelines if this flag
is set.</p>
</div>

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

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

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-1d331c3b513ebf3aadb9"><code>2500000</code></span>

<div id="dt-623d231a8d77a9966ada">
<p style="white-space: pre-wrap">Default USB charge current limit in uA.</p>
</div>

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

### <code>usb&#45;otg&#45;in&#45;supply</code> — not listed as required here

<div id="dt-21b3377f543e34163442">
<p style="white-space: pre-wrap">Reference to the regulator supplying power to the USB_OTG_IN pin.</p>
</div>

<a id="dt-739458e1f08b4410a067"></a>

### <code>otg&#45;vbus</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-cb6c23eca4e604f8475a">[<code>&#47;schemas&#47;regulator&#47;regulator&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-regulator/regulator.md#dt-root>)</span>

<div id="dt-0ea79f4705cd2450dd75">
<p style="white-space: pre-wrap">This node defines a regulator used to control the direction of VBUS voltage.
Specifically whether to supply voltage to VBUS for host mode operation of the OTG port,
or allow input voltage from external VBUS for charging. In the hardware, the supply for
this regulator comes from usb_otg_in-supply.</p>
</div>

**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;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupt&#45;names&#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/interrupt-controller/irq.h&gt;
pmic {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  charger@1000 {
    compatible = "qcom,pm8941-charger";
    reg = &lt;0x1000&gt;;
    interrupts = &lt;0x0 0x10 7 IRQ_TYPE_EDGE_BOTH&gt;,
                 &lt;0x0 0x10 5 IRQ_TYPE_EDGE_BOTH&gt;,
                 &lt;0x0 0x10 4 IRQ_TYPE_EDGE_BOTH&gt;,
                 &lt;0x0 0x12 1 IRQ_TYPE_EDGE_BOTH&gt;,
                 &lt;0x0 0x12 0 IRQ_TYPE_EDGE_BOTH&gt;,
                 &lt;0x0 0x13 2 IRQ_TYPE_EDGE_BOTH&gt;,
                 &lt;0x0 0x13 1 IRQ_TYPE_EDGE_BOTH&gt;,
                 &lt;0x0 0x14 1 IRQ_TYPE_EDGE_BOTH&gt;;
    interrupt-names = "chg-done",
                      "chg-fast",
                      "chg-trkl",
                      "bat-temp-ok",
                      "bat-present",
                      "chg-gone",
                      "usb-valid",
                      "dc-valid";
    qcom,fast-charge-current-limit = &lt;1000000&gt;;
    qcom,dc-current-limit = &lt;1000000&gt;;
    usb-otg-in-supply = &lt;&amp;pm8941_5vs1&gt;;

    otg-vbus {};
  };
};
</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>
