# Maxim MAX8998, National/TI LP3974 Power Management IC

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

> Device-tree binding reference for Maxim MAX8998, National/TI LP3974 Power Management IC.

<!-- 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;mfd&#47;maxim&#44;max8998&#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;Krzysztof Kozlowski &#60;krzk&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Maxim MAX8998 is a Power Management IC which includes voltage/current regulators, real time clock, battery charging controller and several other sub-blocks. It is interfaced using an I2C interface. Each sub-block is addressed by the host system using different i2c slave address.</p>
</div>

<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;maxim&#44;max8998&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;national&#44;lp3974&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;lp3974&#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> — not listed as required here

**Minimum number of items (<code>minItems</code>):** <span id="dt-1691b9edf145244244a0"><code>1</code></span>

<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">Main interrupt</p>
> </div>

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

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">Power-on/-off interrupt</p>
> </div>

<a id="dt-22815326996e2980f287"></a>

### <code>max8998&#44;pmic&#45;buck1&#45;dvs&#45;gpios</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-9722932b87b3e36a03b0"><code>2</code></span>

<div id="dt-03787518b7c052a5f186">
<p style="white-space: pre-wrap">Two host gpios used for buck1 DVS.</p>
</div>

<a id="dt-02fa175042a394e74054"></a>

### <code>max8998&#44;pmic&#45;buck2&#45;dvs&#45;gpio</code> — not listed as required here

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

<div id="dt-af22ba264e009d95ed2b">
<p style="white-space: pre-wrap">Host gpio used for buck2 DVS.</p>
</div>

<a id="dt-675ce6fccbdeee7d862b"></a>

### <code>max8998&#44;pmic&#45;buck1&#45;default&#45;dvs&#45;idx</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ae0ed5fe707020e5daf3">[<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-fe424e5a0090fa573a3d"></a> <span id="dt-3193df28e5f853bda70e"><code>0</code></span>, <span id="dt-c959043fada0ab21ccc9"><code>1</code></span>, <span id="dt-2c9a828e9924996b4c5d"><code>2</code></span>, <span id="dt-38e52748f0f246aa2588"><code>3</code></span>

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

<div id="dt-90839954a140a44ea357">
<p style="white-space: pre-wrap">Default voltage setting selected from the possible 4 options selectable by the DVS gpios.</p>
</div>

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

### <code>max8998&#44;pmic&#45;buck2&#45;default&#45;dvs&#45;idx</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b380e617155018ad751c">[<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-232f5d7dba26bef4012b"></a> <span id="dt-0643c2ec06da34c49ae9"><code>0</code></span>, <span id="dt-abde9a48a44cc6fcbed5"><code>1</code></span>

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

<div id="dt-40233b4bc68b559c73c5">
<p style="white-space: pre-wrap">Default voltage setting selected from the possible 2 options selectable by the DVS GPIOs.</p>
</div>

<a id="dt-02419f55caa0be0267f4"></a>

### <code>max8998&#44;pmic&#45;buck&#45;voltage&#45;lock</code> — not listed as required here

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

<div id="dt-5cdc9871613415695c8d">
<p style="white-space: pre-wrap">If present, disallows changing of preprogrammed buck DVS voltages.</p>
</div>

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

### <code>max8998&#44;pmic&#45;buck1&#45;dvs&#45;voltage</code> — not listed as required here

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

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

<div id="dt-05afb989b08c2491bd1a">
<p style="white-space: pre-wrap">Four voltage values in microvolts for buck1 regulator that can be selected using DVS GPIO.</p>
</div>

<a id="dt-225bbaef4192f0d20caf"></a>

### <code>max8998&#44;pmic&#45;buck2&#45;dvs&#45;voltage</code> — not listed as required here

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-545bed682e0267c2a719"><code>2</code></span>

<div id="dt-f2275e79181e93570a4a">
<p style="white-space: pre-wrap">Two voltage values in microvolts for buck2 regulator that can be selected using DVS GPIO.</p>
</div>

<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-18e4f52c164ffecb7669"></a>

**<code>CHARGER</code> — not listed as required here**

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

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

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

<code>false</code>

Not allowed by this rule.

<div id="dt-804bd5bb8b46a045cd28">
<p style="white-space: pre-wrap">CHARGER is main battery charger current control, wrongly represented as regulator.</p>
</div>

<a id="dt-915da42f00cf6422eae5"></a>

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

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

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

**Minimum value (<code>minimum</code>):** <span id="dt-3a9f267938ce1541b71f"><code>90000</code></span>

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

<a id="dt-309ee9a41a31dd6794b2"></a>

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

**Minimum value (<code>minimum</code>):** <span id="dt-401074756abd86baac29"><code>90000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-4617edba5072e6cd411c"><code>800000</code></span>

<a id="dt-8239a9a1e89c1a66bc97"></a>

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

<code>false</code> — Not permitted by this property rule.

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

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

<code>false</code> — Not permitted by this property rule.

**Required in this object (<code>required</code>):** <a id="dt-585c42e4c36f7f892f58"></a> <span id="dt-47c2bc155701ed0cc24f"><code>&#34;regulator&#45;name&#34;</code></span>

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

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

<a id="dt-63450bf7b401d5289035"></a>

**<code>&#94;&#40;LDO&#40;&#91;2&#45;9&#93;&#124;1&#91;0&#45;7&#93;&#41;&#124;BUCK&#91;1&#45;4&#93;&#41;&#36;</code> — name matches this regular expression**

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

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

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

<code>false</code>

Not allowed by this rule.

**Required in this object (<code>required</code>):** <a id="dt-992553904de2cf63900b"></a> <span id="dt-180e40e48f3c85699e7e"><code>&#34;regulator&#45;name&#34;</code></span>

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

**<code>&#94;&#40;EN32KHz&#45;AP&#124;EN32KHz&#45;CP&#124;ENVICHG&#124;ESAFEOUT&#91;12&#93;&#41;&#36;</code> — name matches this regular expression**

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

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

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

<code>false</code>

Not allowed by this rule.

<div id="dt-0fa350868228cdf88113">
<p style="white-space: pre-wrap">EN32KHz-AP and EN32KHz-CP are 32768 Hz clocks, wrongly represented as
regulators.
ENVICHG is a Battery Charging Current Monitor Output.</p>
</div>

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

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

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

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

<code>false</code> — Not permitted by this property rule.

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

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

<code>false</code> — Not permitted by this property rule.

**Required in this object (<code>required</code>):** <a id="dt-694618e188ceb74da881"></a> <span id="dt-34d57b88afe408be2cbf"><code>&#34;regulator&#45;name&#34;</code></span>

<a id="dt-3d235861b18e278e9c09"></a>

## Property dependencies (<code>dependencies</code>)

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

### <code>max8998&#44;pmic&#45;buck1&#45;dvs&#45;gpios</code> — applies when this property is present

Also requires: <span id="dt-4dec3f797de6b638a677"><code>&#34;max8998&#44;pmic&#45;buck1&#45;dvs&#45;voltage&#34;</code></span>

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

### <code>max8998&#44;pmic&#45;buck2&#45;dvs&#45;gpio</code> — applies when this property is present

Also requires: <span id="dt-d980fa50775eede8eb40"><code>&#34;max8998&#44;pmic&#45;buck2&#45;dvs&#45;voltage&#34;</code></span>

**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;regulators&#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;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

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

    pmic@66 {
        compatible = "national,lp3974";
        reg = &lt;0x66&gt;;
        interrupts-extended = &lt;&amp;gpx0 7 IRQ_TYPE_LEVEL_LOW&gt;,
                              &lt;&amp;gpx2 7 IRQ_TYPE_LEVEL_LOW&gt;;
        pinctrl-names = "default";
        pinctrl-0 = &lt;&amp;lp3974_irq&gt;;

        max8998,pmic-buck1-default-dvs-idx = &lt;0&gt;;
        max8998,pmic-buck1-dvs-gpios = &lt;&amp;gpx0 5 GPIO_ACTIVE_HIGH&gt;,
                                       &lt;&amp;gpx0 6 GPIO_ACTIVE_HIGH&gt;;
        max8998,pmic-buck1-dvs-voltage = &lt;1100000&gt;, &lt;1000000&gt;,
                                         &lt;1100000&gt;, &lt;1000000&gt;;
        max8998,pmic-buck2-default-dvs-idx = &lt;0&gt;;
        max8998,pmic-buck2-dvs-gpio = &lt;&amp;gpe2 0 GPIO_ACTIVE_HIGH&gt;;
        max8998,pmic-buck2-dvs-voltage = &lt;1200000&gt;, &lt;1100000&gt;;

        regulators {
            LDO2 {
                regulator-name = "VALIVE_1.2V";
                regulator-min-microvolt = &lt;1200000&gt;;
                regulator-max-microvolt = &lt;1200000&gt;;
                regulator-always-on;
            };

            LDO3 {
                regulator-name = "VUSB+MIPI_1.1V";
                regulator-min-microvolt = &lt;1100000&gt;;
                regulator-max-microvolt = &lt;1100000&gt;;
                regulator-always-on;
            };

            LDO4 {
                regulator-name = "VADC_3.3V";
                regulator-min-microvolt = &lt;3300000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
            };

            LDO5 {
                regulator-name = "VTF_2.8V";
                regulator-min-microvolt = &lt;2800000&gt;;
                regulator-max-microvolt = &lt;2800000&gt;;
            };

            LDO6 {
                regulator-name = "LDO6";
                regulator-min-microvolt = &lt;2000000&gt;;
                regulator-max-microvolt = &lt;2000000&gt;;
            };

            LDO7 {
                regulator-name = "VLCD+VMIPI_1.8V";
                regulator-min-microvolt = &lt;1800000&gt;;
                regulator-max-microvolt = &lt;1800000&gt;;
            };

            LDO8 {
                regulator-name = "VUSB+VDAC_3.3V";
                regulator-min-microvolt = &lt;3300000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
                regulator-always-on;
            };

            LDO9 {
                regulator-name = "VCC_2.8V";
                regulator-min-microvolt = &lt;2800000&gt;;
                regulator-max-microvolt = &lt;2800000&gt;;
                regulator-always-on;
            };

            LDO10 {
                regulator-name = "VPLL_1.1V";
                regulator-min-microvolt = &lt;1100000&gt;;
                regulator-max-microvolt = &lt;1100000&gt;;
                regulator-boot-on;
                regulator-always-on;
            };

            LDO11 {
                regulator-name = "CAM_AF_3.3V";
                regulator-min-microvolt = &lt;3300000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
            };

            LDO12 {
                regulator-name = "PS_2.8V";
                regulator-min-microvolt = &lt;2800000&gt;;
                regulator-max-microvolt = &lt;2800000&gt;;
            };

            LDO13 {
                regulator-name = "VHIC_1.2V";
                regulator-min-microvolt = &lt;1200000&gt;;
                regulator-max-microvolt = &lt;1200000&gt;;
            };

            LDO14 {
                regulator-name = "CAM_I_HOST_1.8V";
                regulator-min-microvolt = &lt;1800000&gt;;
                regulator-max-microvolt = &lt;1800000&gt;;
            };

            LDO15 {
                regulator-name = "CAM_S_DIG+FM33_CORE_1.2V";
                regulator-min-microvolt = &lt;1200000&gt;;
                regulator-max-microvolt = &lt;1200000&gt;;
            };

            LDO16 {
                regulator-name = "CAM_S_ANA_2.8V";
                regulator-min-microvolt = &lt;2800000&gt;;
                regulator-max-microvolt = &lt;2800000&gt;;
            };

            LDO17 {
                regulator-name = "VCC_3.0V_LCD";
                regulator-min-microvolt = &lt;3000000&gt;;
                regulator-max-microvolt = &lt;3000000&gt;;
            };

            BUCK1 {
                regulator-name = "VINT_1.1V";
                regulator-min-microvolt = &lt;750000&gt;;
                regulator-max-microvolt = &lt;1500000&gt;;
                regulator-boot-on;
                regulator-always-on;
            };

            BUCK2 {
                regulator-name = "VG3D_1.1V";
                regulator-min-microvolt = &lt;750000&gt;;
                regulator-max-microvolt = &lt;1500000&gt;;
                regulator-boot-on;
            };

            BUCK3 {
                regulator-name = "VCC_1.8V";
                regulator-min-microvolt = &lt;1800000&gt;;
                regulator-max-microvolt = &lt;1800000&gt;;
                regulator-always-on;
            };

            BUCK4 {
                regulator-name = "VMEM_1.2V";
                regulator-min-microvolt = &lt;1200000&gt;;
                regulator-max-microvolt = &lt;1200000&gt;;
                regulator-always-on;
            };

            EN32KHz-AP {
                regulator-name = "32KHz AP";
                regulator-always-on;
            };

            EN32KHz-CP {
                regulator-name = "32KHz CP";
            };

            ENVICHG {
                regulator-name = "VICHG";
            };

            ESAFEOUT1 {
                regulator-name = "SAFEOUT1";
            };

            ESAFEOUT2 {
                regulator-name = "SAFEOUT2";
                regulator-boot-on;
            };
        };
    };
};
</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>
