# Active-semi ACT8945a regulator

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Regulator bindings_

> Device-tree binding reference for Active-semi ACT8945a regulator.

<!-- SPDX-License-Identifier: (GPL-2.0-only 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;regulator&#47;active&#45;semi&#44;act8945a&#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;Paul Cercueil &#60;paul&#64;crapouillou&#46;net&#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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;active&#45;semi&#44;act8945a&#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-8e0bc5a8db57c6a9dff5"></a>

### <code>system&#45;power&#45;controller</code> — not listed as required here

<div id="dt-e26a23579321fd1a8066">
<p style="white-space: pre-wrap">Indicates that the ACT8945a is responsible for powering OFF the system.</p>
</div>

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

<a id="dt-08ec4398040dc0ff6339"></a>

### <code>active&#45;semi&#44;vsel&#45;high</code> — not listed as required here

<div id="dt-d61bf9797b36655a06fd">
<p style="white-space: pre-wrap">Indicates the VSEL pin is high. If this property is missing, the VSEL pin is assumed to be low.</p>
</div>

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

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

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

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

<a id="dt-8e4e67ed0dd0ed4ae33a"></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-6b7569181c1f9f065c34"></a>

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

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

**<code>REG&#95;DCDC1</code> — not listed as required here**

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

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

<a id="dt-416444e2fd1aface8dd1"></a>

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

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

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

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

**<code>vp1&#45;supply</code> — not listed as required here**

<div id="dt-dc03fb4e754cc610b0a8">
<p style="white-space: pre-wrap">Handle to the VP1 input supply</p>
</div>

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

**<code>REG&#95;DCDC2</code> — not listed as required here**

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

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

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

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

<a id="dt-0016f2d508eb8f828afb"></a>

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

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

**<code>vp2&#45;supply</code> — not listed as required here**

<div id="dt-d9948ca19c7c00ec4a04">
<p style="white-space: pre-wrap">Handle to the VP2 input supply</p>
</div>

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

**<code>REG&#95;DCDC3</code> — not listed as required here**

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

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

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

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

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

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

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

**<code>vp3&#45;supply</code> — not listed as required here**

<div id="dt-10f665551b2a2ed98321">
<p style="white-space: pre-wrap">Handle to the VP3 input supply</p>
</div>

<a id="dt-61f1ab18943e36a1a8bc"></a>

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

<a id="dt-93ed365de68a95be1dd2"></a>

**<code>&#94;REG&#95;LDO&#91;1&#45;2&#93;&#36;</code> — name matches this regular expression**

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

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

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

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

<a id="dt-976ddb8b3d81d73f3832"></a>

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

<a id="dt-485a3f73bd30729bb443"></a>

**<code>inl45&#45;supply</code> — not listed as required here**

<div id="dt-b4eb07bcb7adc43fd583">
<p style="white-space: pre-wrap">Handle to the INL45 input supply</p>
</div>

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

**<code>&#94;REG&#95;LDO&#91;3&#45;4&#93;&#36;</code> — name matches this regular expression**

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

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

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

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

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

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

<a id="dt-160a79527b625537a274"></a>

**<code>inl67&#45;supply</code> — not listed as required here**

<div id="dt-4189ed1c67076bd339db">
<p style="white-space: pre-wrap">Handle to the INL67 input supply</p>
</div>

<a id="dt-7d9bf12b5a4104b6f943"></a>

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

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

<a id="dt-89626831e733962c0982"></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-12ca0787de1edbf47bb0"></a>

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

<a id="dt-333ed0355a193bb196a6"></a>

**<code>compatible</code> — required here**

**Exact value (<code>const</code>):** <span id="dt-7be00c6d33293c989c56"><code>&#34;active&#45;semi&#44;act8945a&#45;charger&#34;</code></span>

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

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

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

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

**<code>active&#45;semi&#44;chglev&#45;gpios</code> — required here**

<div id="dt-4d632744627b810f84de">
<p style="white-space: pre-wrap">charge current level GPIO</p>
</div>

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

<a id="dt-436212a4da51d0730056"></a>

**<code>active&#45;semi&#44;lbo&#45;gpios</code> — required here**

<div id="dt-037a6f7b39b80f406805">
<p style="white-space: pre-wrap">low battery voltage detect GPIO</p>
</div>

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

<a id="dt-986297c8e0877a37c5cf"></a>

**<code>active&#45;semi&#44;input&#45;voltage&#45;threshold&#45;microvolt</code> — not listed as required here**

<div id="dt-d4f3d0b4f3aa3dc13a54">
<p style="white-space: pre-wrap">Specifies the charger's input over-voltage threshold value. Despite the name, specified values are in millivolt (mV).</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-3ae7690690c092b2d314"></a> <span id="dt-5f78c94713ef3a82f42d"><code>6600</code></span>, <span id="dt-7eea7cb17fecd476a01e"><code>7000</code></span>, <span id="dt-6ffd0a6cd33a60ce0b83"><code>7500</code></span>, <span id="dt-40dbe8961da14d6f40ac"><code>8000</code></span>

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

<a id="dt-9b662099079fe76d55c4"></a>

**<code>active&#45;semi&#44;precondition&#45;timeout</code> — not listed as required here**

<div id="dt-7dcdf6720d0b957a5672">
<p style="white-space: pre-wrap">Specifies the charger's PRECONDITION safety timer setting value in minutes. If 0, it means to disable this timer.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-2722bb2ee55047d986b2"></a> <span id="dt-933a43592b75fee61a45"><code>0</code></span>, <span id="dt-fc979d44df21dbd4e5c9"><code>40</code></span>, <span id="dt-35ef980738249f07877b"><code>60</code></span>, <span id="dt-2e1064edbef0dde64053"><code>80</code></span>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-999756e893fbe3ed5737">[<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-e659f2a75c9b01a44ccd"></a>

**<code>active&#45;semi&#44;total&#45;timeout</code> — not listed as required here**

<div id="dt-55a99fde49e810eb1e2a">
<p style="white-space: pre-wrap">Specifies the charger's total safety timer setting value in hours; If 0, it means to disable this timer;</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-238ef1477a97d853a48e"></a> <span id="dt-7dc9415ccf9e3f1dd085"><code>0</code></span>, <span id="dt-769e1419685fdac23d8e"><code>3</code></span>, <span id="dt-62c9ac0802b371eecbbb"><code>4</code></span>, <span id="dt-f8b725e5de37c568b69f"><code>5</code></span>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-dbae7b228ccb9dd37cf6">[<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-41c2284ce27f127e7876"></a> <span id="dt-5f2452407fe68e205bbb"><code>&#34;compatible&#34;</code></span>, <span id="dt-95dcdfc944132e616bfc"><code>&#34;interrupts&#34;</code></span>, <span id="dt-5db050104fd3afc42aeb"><code>&#34;active&#45;semi&#44;chglev&#45;gpios&#34;</code></span>, <span id="dt-5ad2fde0b9e065e1e1a5"><code>&#34;active&#45;semi&#44;lbo&#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.

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

<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;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
#include &lt;dt-bindings/mfd/atmel-flexcom.h&gt;
#include &lt;dt-bindings/regulator/active-semi,8945a-regulator.h&gt;

i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  pmic@5b {
    compatible = "active-semi,act8945a";
    reg = &lt;0x5b&gt;;
    active-semi,vsel-high;

    regulators {
      REG_DCDC1 {
        regulator-name = "VDD_1V35";
        regulator-min-microvolt = &lt;1350000&gt;;
        regulator-max-microvolt = &lt;1350000&gt;;
        regulator-allowed-modes = &lt;ACT8945A_REGULATOR_MODE_FIXED&gt;,
                                  &lt;ACT8945A_REGULATOR_MODE_LOWPOWER&gt;;
        regulator-initial-mode = &lt;ACT8945A_REGULATOR_MODE_FIXED&gt;;
        regulator-always-on;

        regulator-state-mem {
          regulator-on-in-suspend;
          regulator-suspend-min-microvolt = &lt;1400000&gt;;
          regulator-suspend-max-microvolt = &lt;1400000&gt;;
          regulator-changeable-in-suspend;
          regulator-mode = &lt;ACT8945A_REGULATOR_MODE_LOWPOWER&gt;;
        };
      };

      REG_DCDC2 {
        regulator-name = "VDD_1V2";
        regulator-min-microvolt = &lt;1100000&gt;;
        regulator-max-microvolt = &lt;1300000&gt;;
        regulator-allowed-modes = &lt;ACT8945A_REGULATOR_MODE_FIXED&gt;,
                                  &lt;ACT8945A_REGULATOR_MODE_LOWPOWER&gt;;
        regulator-initial-mode = &lt;ACT8945A_REGULATOR_MODE_FIXED&gt;;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };

      REG_DCDC3 {
        regulator-name = "VDD_3V3";
        regulator-min-microvolt = &lt;3300000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-allowed-modes = &lt;ACT8945A_REGULATOR_MODE_FIXED&gt;,
                                  &lt;ACT8945A_REGULATOR_MODE_LOWPOWER&gt;;
        regulator-initial-mode = &lt;ACT8945A_REGULATOR_MODE_FIXED&gt;;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };

      REG_LDO1 {
        regulator-name = "VDD_FUSE";
        regulator-min-microvolt = &lt;2500000&gt;;
        regulator-max-microvolt = &lt;2500000&gt;;
        regulator-allowed-modes = &lt;ACT8945A_REGULATOR_MODE_NORMAL&gt;,
                                  &lt;ACT8945A_REGULATOR_MODE_LOWPOWER&gt;;
        regulator-initial-mode = &lt;ACT8945A_REGULATOR_MODE_NORMAL&gt;;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };

      REG_LDO2 {
        regulator-name = "VDD_3V3_LP";
        regulator-min-microvolt = &lt;3300000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-allowed-modes = &lt;ACT8945A_REGULATOR_MODE_NORMAL&gt;,
                                  &lt;ACT8945A_REGULATOR_MODE_LOWPOWER&gt;;
        regulator-initial-mode = &lt;ACT8945A_REGULATOR_MODE_NORMAL&gt;;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };

      REG_LDO3 {
        regulator-name = "VDD_LED";
        regulator-min-microvolt = &lt;3300000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-allowed-modes = &lt;ACT8945A_REGULATOR_MODE_NORMAL&gt;,
                                  &lt;ACT8945A_REGULATOR_MODE_LOWPOWER&gt;;
        regulator-initial-mode = &lt;ACT8945A_REGULATOR_MODE_NORMAL&gt;;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };

      REG_LDO4 {
        regulator-name = "VDD_SDHC_1V8";
        regulator-min-microvolt = &lt;1800000&gt;;
        regulator-max-microvolt = &lt;1800000&gt;;
        regulator-allowed-modes = &lt;ACT8945A_REGULATOR_MODE_NORMAL&gt;,
                                  &lt;ACT8945A_REGULATOR_MODE_LOWPOWER&gt;;
        regulator-initial-mode = &lt;ACT8945A_REGULATOR_MODE_NORMAL&gt;;
        regulator-always-on;

        regulator-state-mem {
          regulator-off-in-suspend;
        };
      };
    };

    charger {
      compatible = "active-semi,act8945a-charger";
      pinctrl-names = "default";
      pinctrl-0 = &lt;&amp;pinctrl_charger_chglev &amp;pinctrl_charger_lbo &amp;pinctrl_charger_irq&gt;;
      interrupt-parent = &lt;&amp;pioA&gt;;
      interrupts = &lt;45 IRQ_TYPE_EDGE_RISING&gt;;

      active-semi,chglev-gpios = &lt;&amp;pioA 12 GPIO_ACTIVE_HIGH&gt;;
      active-semi,lbo-gpios = &lt;&amp;pioA 72 GPIO_ACTIVE_LOW&gt;;
      active-semi,input-voltage-threshold-microvolt = &lt;6600&gt;;
      active-semi,precondition-timeout = &lt;40&gt;;
      active-semi,total-timeout = &lt;3&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-only OR BSD-2-Clause)</span></p>

</details>
