# RK816 Power Management Integrated Circuit

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

> Device-tree binding reference for RK816 Power Management Integrated Circuit.

<!-- 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;rockchip&#44;rk816&#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;Chris Zhong &#60;zyw&#64;rock&#45;chips&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Zhang Qing &#60;zhangqing&#64;rock&#45;chips&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Rockchip RK816 series PMIC. This device consists of an i2c controlled MFD that includes regulators, a RTC, a GPIO controller, a power button, and a battery charger manager with fuel gauge.</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;rockchip&#44;rk816&#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

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

<a id="dt-7471877b51a93881192b"></a>

### <code>&#35;clock&#45;cells</code> — required here

<div id="dt-6709a835409866cbd3af">
<p style="white-space: pre-wrap">See &lt;dt-bindings/clock/rockchip,rk808.h&gt; for clock IDs.</p>
</div>

**Exact value (<code>const</code>):** <span id="dt-0eebe37dd30ae3dd2a72"><code>1</code></span>

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

### <code>clock&#45;output&#45;names</code> — not listed as required here

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

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

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

<code>true</code> — No constraints added by this property rule.

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

### <code>&#35;gpio&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-8950f722147d2cd640b8"><code>2</code></span>

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

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

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

<div id="dt-e26a23579321fd1a8066">
<p style="white-space: pre-wrap">Telling whether or not this PMIC is controlling the system power.</p>
</div>

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

### <code>wakeup&#45;source</code> — not listed as required here

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

<a id="dt-07d69774f621693adb8b"></a>

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

<div id="dt-ddceb9def3b6afe0518d">
<p style="white-space: pre-wrap">The input supply for dcdc1.</p>
</div>

<a id="dt-5975660fb10c0d2aa0f7"></a>

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

<div id="dt-37843848c1c2ffd8ef98">
<p style="white-space: pre-wrap">The input supply for dcdc2.</p>
</div>

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

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

<div id="dt-a70dcb0bb545246db23d">
<p style="white-space: pre-wrap">The input supply for dcdc3.</p>
</div>

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

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

<div id="dt-82e7d78b9041607bf985">
<p style="white-space: pre-wrap">The input supply for dcdc4.</p>
</div>

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

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

<div id="dt-e384f2d00cb04a632c31">
<p style="white-space: pre-wrap">The input supply for ldo1, ldo2, and ldo3.</p>
</div>

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

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

<div id="dt-474c340c18a9050be35d">
<p style="white-space: pre-wrap">The input supply for ldo4, ldo5, and ldo6.</p>
</div>

<a id="dt-19858608569ca605e9b1"></a>

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

<div id="dt-c7f53bc973fdda3a167a">
<p style="white-space: pre-wrap">The input supply for boost.</p>
</div>

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

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

<div id="dt-365716cb475e04e68a3a">
<p style="white-space: pre-wrap">The input supply for otg-switch.</p>
</div>

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

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

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

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

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

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

**<code>&#94;&#40;boost&#124;dcdc&#91;1&#45;4&#93;&#124;ldo&#91;1&#45;6&#93;&#124;otg&#45;switch&#41;&#36;</code> — name matches this regular expression**

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

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

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

<code>false</code>

Not allowed by this rule.

<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-e92215bd3c2f5373b164"></a>

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

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

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

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

<a id="dt-9069dcc32114c9a4bdd9"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8c082b219690062f90c6">[<code>&#47;schemas&#47;pinctrl&#47;pinmux&#45;node&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-pinctrl/pinmux-node.md#dt-root>)</span>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-f150d7cb555e54280f5a"></a> <span id="dt-418c17df698d2c35b9a2"><code>&#34;gpio&#34;</code></span>, <span id="dt-872ddb5a8d0ec9f5b887"><code>&#34;thermistor&#34;</code></span>

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

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

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

**Exact value (<code>const</code>):** <span id="dt-f4729453fb93d4a687e5"><code>&#34;gpio0&#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;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;clock&#45;cells&#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/pinctrl/rockchip.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
#include &lt;dt-bindings/gpio/gpio.h&gt;

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

    rk816: pmic@1a {
        compatible = "rockchip,rk816";
        reg = &lt;0x1a&gt;;
        interrupt-parent = &lt;&amp;gpio0&gt;;
        interrupts = &lt;RK_PA2 IRQ_TYPE_LEVEL_LOW&gt;;
        clock-output-names = "xin32k", "rk816-clkout2";
        pinctrl-names = "default";
        pinctrl-0 = &lt;&amp;pmic_int_l&gt;;
        gpio-controller;
        system-power-controller;
        wakeup-source;
        #clock-cells = &lt;1&gt;;
        #gpio-cells = &lt;2&gt;;

        vcc1-supply = &lt;&amp;vcc_sys&gt;;
        vcc2-supply = &lt;&amp;vcc_sys&gt;;
        vcc3-supply = &lt;&amp;vcc_sys&gt;;
        vcc4-supply = &lt;&amp;vcc_sys&gt;;
        vcc5-supply = &lt;&amp;vcc33_io&gt;;
        vcc6-supply = &lt;&amp;vcc_sys&gt;;

        regulators {
            vdd_cpu: dcdc1 {
                regulator-name = "vdd_cpu";
                regulator-min-microvolt = &lt;750000&gt;;
                regulator-max-microvolt = &lt;1450000&gt;;
                regulator-ramp-delay = &lt;6001&gt;;
                regulator-initial-mode = &lt;1&gt;;
                regulator-always-on;
                regulator-boot-on;

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

            vdd_logic: dcdc2 {
                regulator-name = "vdd_logic";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;1250000&gt;;
                regulator-ramp-delay = &lt;6001&gt;;
                regulator-initial-mode = &lt;1&gt;;
                regulator-always-on;
                regulator-boot-on;

                regulator-state-mem {
                    regulator-on-in-suspend;
                    regulator-suspend-microvolt = &lt;1000000&gt;;
                };
            };

            vcc_ddr: dcdc3 {
                regulator-name = "vcc_ddr";
                regulator-initial-mode = &lt;1&gt;;
                regulator-always-on;
                regulator-boot-on;

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

            vcc33_io: dcdc4 {
                regulator-min-microvolt = &lt;3300000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
                regulator-name = "vcc33_io";
                regulator-initial-mode = &lt;1&gt;;
                regulator-always-on;
                regulator-boot-on;

                regulator-state-mem {
                    regulator-on-in-suspend;
                    regulator-suspend-microvolt = &lt;3300000&gt;;
                };
            };

            vccio_pmu: ldo1 {
                regulator-min-microvolt = &lt;3300000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
                regulator-name = "vccio_pmu";
                regulator-always-on;
                regulator-boot-on;

                regulator-state-mem {
                    regulator-on-in-suspend;
                    regulator-suspend-microvolt = &lt;3300000&gt;;
                };
            };

            vcc_tp: ldo2 {
                regulator-min-microvolt = &lt;3300000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
                regulator-name = "vcc_tp";

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

            vdd_10: ldo3 {
                regulator-min-microvolt = &lt;1000000&gt;;
                regulator-max-microvolt = &lt;1000000&gt;;
                regulator-name = "vdd_10";
                regulator-always-on;
                regulator-boot-on;

                regulator-state-mem {
                    regulator-on-in-suspend;
                    regulator-suspend-microvolt = &lt;1000000&gt;;
                };
            };

            vcc18_lcd: ldo4 {
                regulator-min-microvolt = &lt;1800000&gt;;
                regulator-max-microvolt = &lt;1800000&gt;;
                regulator-name = "vcc18_lcd";

                regulator-state-mem {
                    regulator-on-in-suspend;
                    regulator-suspend-microvolt = &lt;1800000&gt;;
                };
            };

            vccio_sd: ldo5 {
                regulator-min-microvolt = &lt;1800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
                regulator-name = "vccio_sd";

                regulator-state-mem {
                    regulator-on-in-suspend;
                    regulator-suspend-microvolt = &lt;3300000&gt;;
                };
            };

            vdd10_lcd: ldo6 {
                regulator-min-microvolt = &lt;1000000&gt;;
                regulator-max-microvolt = &lt;1000000&gt;;
                regulator-name = "vdd10_lcd";

                regulator-state-mem {
                    regulator-on-in-suspend;
                    regulator-suspend-microvolt = &lt;1000000&gt;;
                };
            };
        };

        rk816_gpio_pins: gpio-pins {
            function = "gpio";
            pins = "gpio0";
        };
    };
};
</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>
