# Charger Manager

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

> Device-tree binding reference for Charger Manager.

<!-- 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;charger&#45;manager&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Binding for the legacy charger manager driver.
Please do not use for new products.</p>
</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;charger&#45;manager&#34;</code></span>

<a id="dt-10800bb328bf57d09903"></a>

### <code>cm&#45;chargers</code> — required here

<div id="dt-aefd5c01c2b521f7c4ce">
<p style="white-space: pre-wrap">name of chargers</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-3eeb7cf9c3608b75d287">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;string&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-7360acce49da10397d42>)</span>

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

### <code>cm&#45;num&#45;chargers</code> — not listed as required here

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

**Deprecated (<code>deprecated</code>):** <span id="dt-4d2bb819cf13ead80f0a"><code>true</code></span>

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

### <code>cm&#45;fuel&#45;gauge</code> — required here

<div id="dt-f438ab4c052b8754cef2">
<p style="white-space: pre-wrap">name of battery fuel gauge</p>
</div>

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

<a id="dt-94bd55965b55b60ec489"></a>

### <code>cm&#45;name</code> — not listed as required here

<div id="dt-20b056ff5cd477dc64e7">
<p style="white-space: pre-wrap">name of the charger manager</p>
</div>

**Default value (<code>default</code>):** <span id="dt-aecfdcac73e4cb401ff4"><code>&#34;battery&#34;</code></span>

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

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

### <code>cm&#45;poll&#45;mode</code> — not listed as required here

<div id="dt-ec1278e184b36c4ec097">
<p style="white-space: pre-wrap">polling mode</p>
</div>

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

**Default value (<code>default</code>):** <span id="dt-ebc8e3b10320fede8d13"><code>0</code></span>

**Allowed values (<code>enum</code>):** <a id="dt-4defb377c132690328ce"></a> <span id="dt-88bad7642a4e31d3f33e"><code>0</code></span>, <span id="dt-b7a16ba00e849b9d526f"><code>1</code></span>, <span id="dt-6fe74c9a3be78c93a289"><code>2</code></span>, <span id="dt-5c9bd8dd80ac7924abc1"><code>3</code></span>

<a id="dt-58a4658b49728112a574"></a>

### <code>cm&#45;poll&#45;interval</code> — not listed as required here

<div id="dt-b4a025812059b458096a">
<p style="white-space: pre-wrap">polling interval (in ms)</p>
</div>

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

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

### <code>cm&#45;battery&#45;stat</code> — not listed as required here

<div id="dt-41d4aa834c5df5b865d5">
<p style="white-space: pre-wrap">battery status</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-9038f8ec99dc95108329"></a> <span id="dt-1d6cf9a43c1ecf596994"><code>0</code></span>, <span id="dt-cbc67bca20553eb9cd81"><code>1</code></span>, <span id="dt-19db3dc7dbc36943dbb5"><code>2</code></span>, <span id="dt-2ebc15854f5c463133be"><code>3</code></span>

<a id="dt-764b401c8be84243e5ad"></a>

### <code>cm&#45;fullbatt&#45;vchkdrop&#45;volt</code> — not listed as required here

<div id="dt-449dc099987155c3553b">
<p style="white-space: pre-wrap">voltage drop before restarting charging in uV</p>
</div>

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

<a id="dt-7988313ef84a4e2a0389"></a>

### <code>cm&#45;fullbatt&#45;vchkdrop&#45;ms</code> — not listed as required here

**Deprecated (<code>deprecated</code>):** <span id="dt-0eed38ad00e4c5ce69d6"><code>true</code></span>

<a id="dt-579a75a7722967c9084b"></a>

### <code>cm&#45;fullbatt&#45;voltage</code> — not listed as required here

<div id="dt-1a16b80e0e27ddabd696">
<p style="white-space: pre-wrap">voltage of full battery in uV</p>
</div>

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

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

### <code>cm&#45;fullbatt&#45;soc</code> — not listed as required here

<div id="dt-1536a1bb0c571953deac">
<p style="white-space: pre-wrap">state of charge to consider as full battery in %</p>
</div>

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

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

### <code>cm&#45;fullbatt&#45;capacity</code> — not listed as required here

<div id="dt-8b87392118651592f443">
<p style="white-space: pre-wrap">capcity to consider as full battery in uAh</p>
</div>

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

<a id="dt-9064e28ebb7a1a444b4b"></a>

### <code>cm&#45;thermal&#45;zone</code> — not listed as required here

<div id="dt-afb2e9d4ef6306db2712">
<p style="white-space: pre-wrap">name of external thermometer's thermal zone</p>
</div>

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

<a id="dt-494386ed66233e7dfa66"></a>

### <code>cm&#45;discharging&#45;max</code> — not listed as required here

<div id="dt-2ffe05f3e87f64ee1d93">
<p style="white-space: pre-wrap">limits of discharging duration in ms</p>
</div>

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

<a id="dt-4f476c3ac32b6abb16df"></a>

### <code>cm&#45;charging&#45;max</code> — not listed as required here

<div id="dt-b37a661788d200686b3f">
<p style="white-space: pre-wrap">limits of charging duration in ms</p>
</div>

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

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

### <code>cm&#45;battery&#45;cold</code> — not listed as required here

<div id="dt-28b0da91d9beb07a586b">
<p style="white-space: pre-wrap">critical cold temperature of battery for charging in deci-degree celsius</p>
</div>

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

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

### <code>cm&#45;battery&#45;cold&#45;in&#45;minus</code> — not listed as required here

<div id="dt-41c1bd61a5d91da891b9">
<p style="white-space: pre-wrap">if set cm-battery-cold temperature is in minus degrees</p>
</div>

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

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

### <code>cm&#45;battery&#45;hot</code> — not listed as required here

<div id="dt-7de9e0e9be0a0dba293b">
<p style="white-space: pre-wrap">critical hot temperature of battery for charging in deci-degree celsius</p>
</div>

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

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

### <code>cm&#45;battery&#45;temp&#45;diff</code> — not listed as required here

<div id="dt-798d135819431116954e">
<p style="white-space: pre-wrap">temperature difference to allow recharging in deci-degree celsius</p>
</div>

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

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

## Properties matching a name pattern (<code>patternProperties</code>)

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

### <code>&#45;supply&#36;</code> — name matches this regular expression

<div id="dt-d860b991a55254df545f">
<p style="white-space: pre-wrap">regulator consumer, named according to cm-regulator-name</p>
</div>

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

<a id="dt-850eda202d00e534196f"></a>

### <code>&#94;regulator&#91;&#64;&#45;&#93;&#91;0&#45;9&#93;&#36;</code> — name matches this regular expression

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

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

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

<a id="dt-80afa63e01793c5895ec"></a>

**<code>cm&#45;regulator&#45;name</code> — required here**

<div id="dt-e1783175af0f70b8e905">
<p style="white-space: pre-wrap">name of charger regulator</p>
</div>

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

**Required in this object (<code>required</code>):** <a id="dt-3dab7ddca17ad04ca5b5"></a> <span id="dt-c3360a3f648e8a7e18d0"><code>&#34;cm&#45;regulator&#45;name&#34;</code></span>

<a id="dt-aff07fb0f0599d7bdb83"></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-a39ea2baaaa22664e5be"></a>

#### Properties matching a name pattern (<code>patternProperties</code>)

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

**<code>&#94;cable&#91;&#64;&#45;&#93;&#91;0&#45;9&#93;&#36;</code> — name matches this regular expression**

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

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

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

<a id="dt-30cf53dc8c12061a869f"></a>

**<code>cm&#45;cable&#45;name</code> — required here**

<div id="dt-e48636027fa83244ff00">
<p style="white-space: pre-wrap">name of charger cable</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-b4be826f977923826bce"></a> <span id="dt-91850f5a4e6df82a4063"><code>&#34;USB&#34;</code></span>, <span id="dt-831f03f7297b6b3bd528"><code>&#34;USB&#45;HOST&#34;</code></span>, <span id="dt-efaa9f1ec28856721a9b"><code>&#34;SDP&#34;</code></span>, <span id="dt-3ed910ea798de2063628"><code>&#34;DCP&#34;</code></span>, <span id="dt-b4f793e74d887e87486b"><code>&#34;CDP&#34;</code></span>, <span id="dt-e70453feea79e471dde4"><code>&#34;ACA&#34;</code></span>, <span id="dt-62ca15f647ba154f3045"><code>&#34;FAST&#45;CHARGER&#34;</code></span>, <span id="dt-522f21ecae9ba8293a48"><code>&#34;SLOW&#45;CHARGER&#34;</code></span>, <span id="dt-a3b2505bd4bc882a7d7f"><code>&#34;WPT&#34;</code></span>, <span id="dt-da28a91dd3b32c3ade16"><code>&#34;PD&#34;</code></span>, <span id="dt-389227e54d666f5b47f0"><code>&#34;DOCK&#34;</code></span>, <span id="dt-a0191af1f4d13ce03c64"><code>&#34;JIG&#34;</code></span>, <span id="dt-23d8e05416c649dea0b8"><code>&#34;MECHANICAL&#34;</code></span>

<a id="dt-8008ee2ef5683b51f565"></a>

**<code>cm&#45;cable&#45;extcon</code> — required here**

<div id="dt-e6188309b6f6e9fa7aa1">
<p style="white-space: pre-wrap">name of extcon dev</p>
</div>

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

<a id="dt-4155511684c79bc5a258"></a>

**<code>cm&#45;cable&#45;min</code> — not listed as required here**

<div id="dt-cb6a4c0697286d135b38">
<p style="white-space: pre-wrap">minimum current of cable in uA</p>
</div>

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

<a id="dt-3582947d2e50d7b51f65"></a>

**<code>cm&#45;cable&#45;max</code> — not listed as required here**

<div id="dt-d68b72c9a72074a517f8">
<p style="white-space: pre-wrap">maximum current of cable in uA</p>
</div>

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

**Required in this object (<code>required</code>):** <a id="dt-1defc9a21c79c88c419d"></a> <span id="dt-02c6df85bafe4cf6a411"><code>&#34;cm&#45;cable&#45;name&#34;</code></span>, <span id="dt-a92b4a4bb1e8adc0b12f"><code>&#34;cm&#45;cable&#45;extcon&#34;</code></span>

<a id="dt-757d6793d6fb926d1889"></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;cm&#45;chargers&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;cm&#45;fuel&#45;gauge&#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">charger-manager {
    compatible = "charger-manager";
    chg-reg-supply = &lt;&amp;charger_regulator&gt;;

    cm-name = "battery";
    /* Always polling ON : 30s */
    cm-poll-mode = &lt;1&gt;;
    cm-poll-interval = &lt;30000&gt;;

    cm-fullbatt-vchkdrop-volt = &lt;150000&gt;;
    cm-fullbatt-soc = &lt;100&gt;;

    cm-battery-stat = &lt;3&gt;;

    cm-chargers = "charger0", "charger1", "charger2";

    cm-fuel-gauge = "fuelgauge0";

    cm-thermal-zone = "thermal_zone.1";
    /* in deci centigrade */
    cm-battery-cold = &lt;50&gt;;
    cm-battery-cold-in-minus;
    cm-battery-hot = &lt;800&gt;;
    cm-battery-temp-diff = &lt;100&gt;;

    /* Allow charging for 5hr */
    cm-charging-max = &lt;18000000&gt;;
    /* Allow discharging for 2hr */
    cm-discharging-max = &lt;7200000&gt;;

    regulator-0 {
        cm-regulator-name = "chg-reg";
        cable-0 {
            cm-cable-name = "USB";
            cm-cable-extcon = "extcon-dev.0";
            cm-cable-min = &lt;475000&gt;;
            cm-cable-max = &lt;500000&gt;;
        };
        cable-1 {
            cm-cable-name = "SDP";
            cm-cable-extcon = "extcon-dev.0";
            cm-cable-min = &lt;650000&gt;;
            cm-cable-max = &lt;675000&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>

<p id="dt-comment-1"><strong>Line 42:</strong> <span> disabled</span></p>

<p id="dt-comment-2"><strong>Line 43:</strong> <span> always</span></p>

<p id="dt-comment-3"><strong>Line 44:</strong> <span> when external power is connected</span></p>

<p id="dt-comment-4"><strong>Line 45:</strong> <span> when charging</span></p>

<p id="dt-comment-5"><strong>Line 55:</strong> <span> battery always present</span></p>

<p id="dt-comment-6"><strong>Line 56:</strong> <span> no battery</span></p>

<p id="dt-comment-7"><strong>Line 57:</strong> <span> check presence via fuel gauge</span></p>

<p id="dt-comment-8"><strong>Line 58:</strong> <span> check presence via charger</span></p>

</details>
