# ROHM BD71815 Power Management Integrated Circuit

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

> Device-tree binding reference for ROHM BD71815 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;rohm&#44;bd71815&#45;pmic&#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;Matti Vaittinen &#60;mazziesaccount&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">BD71815AGW is a single-chip power management ICs for battery-powered
portable devices. It integrates 5 buck converters, 8 LDOs, a boost driver
for LED and a 500 mA single-cell linear charger. Also included is a Coulomb
counter, a real-time clock (RTC), and a 32.768 kHz clock gate and two GPOs.</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;rohm&#44;bd71815&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">I2C slave address.</p>
</div>

**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-f5d51cae76398cdb9d95"></a>

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

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

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

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

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

<div id="dt-70b20397c3c73794f833">
<p style="white-space: pre-wrap">The first cell is the pin number and the second cell is used to specify
flags. See ../gpio/gpio.txt for more information.</p>
</div>

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

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

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

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

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-ec886847af661a542167"><code>&#34;bd71815&#45;32k&#45;out&#34;</code></span>

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

### <code>rohm&#44;clkout&#45;open&#45;drain</code> — not listed as required here

<div id="dt-bcdf9f37b43941e130ac">
<p style="white-space: pre-wrap">clk32kout mode. Set to 1 for "open-drain" or 0 for "cmos".</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-35d853f6b9468fe6ba2c">[<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-68bdd18a2097f99b18e4"><code>0</code></span>

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

<a id="dt-766ddb55c6103b385919"></a>

### <code>rohm&#44;charger&#45;sense&#45;resistor&#45;micro&#45;ohms</code> — not listed as required here

**Minimum value (<code>minimum</code>):** <span id="dt-5660bd287cb1244d2f8e"><code>10000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-58f68c57af0aef6bc1fd"><code>50000</code></span>

<div id="dt-56c1ee00af918bcc5ae8">
<p style="white-space: pre-wrap">BD71815 has SAR ADC for measuring charging currents. External sense
resistor (RSENSE in data sheet) should be used. If something other
but a 30 mOhm resistor is used the resistance value should be given
here in micro Ohms.</p>
</div>

**Default value (<code>default</code>):** <span id="dt-91ddc45f594981487046"><code>30000</code></span>

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

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

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

<div id="dt-21c242b401be5c67bade">
<p style="white-space: pre-wrap">List of child nodes that specify the regulators.</p>
</div>

<a id="dt-85503ea01c9afc607077"></a>

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

<div id="dt-c6194f0b86c280a8efcd">
<p style="white-space: pre-wrap">Usage of BD71815 GPIO pins can be changed via OTP. This property can be
used to mark the pins which should not be configured for GPIO. Please see
the ../gpio/gpio.txt for more information.</p>
</div>

<a id="dt-99ab1cddb31a2d693390"></a>

### <code>rohm&#44;enable&#45;hidden&#45;gpo</code> — not listed as required here

<div id="dt-6113401fe1c83ff53945">
<p style="white-space: pre-wrap">The BD71815 has undocumented GPO at pin E5. Pin is marked as GND at the
data-sheet as its location in the middle of GND pins makes it hard to
use on PCB. If your board has managed to use this pin you can enable the
second GPO by defining this property. Dont enable this if you are unsure
about how the E5 pin is connected on your board.</p>
</div>

**Value type (<code>type</code>):** <span id="dt-c225df2d68228600efe2"><code>&#34;boolean&#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;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;clock&#45;cells&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;regulators&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;gpio&#45;controller&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;&#35;gpio&#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/interrupt-controller/irq.h&gt;
#include &lt;dt-bindings/leds/common.h&gt;
i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    pmic: pmic@4b {
        compatible = "rohm,bd71815";
        reg = &lt;0x4b&gt;;

        interrupt-parent = &lt;&amp;gpio1&gt;;
        interrupts = &lt;29 IRQ_TYPE_LEVEL_LOW&gt;;

        clocks = &lt;&amp;osc 0&gt;;
        #clock-cells = &lt;0&gt;;
        clock-output-names = "bd71815-32k-out";

        gpio-controller;
        #gpio-cells = &lt;2&gt;;

        rohm,charger-sense-resistor-micro-ohms = &lt;10000&gt;;

        regulators {
            buck1: buck1 {
                regulator-name = "buck1";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;2000000&gt;;
                regulator-always-on;
                regulator-ramp-delay = &lt;1250&gt;;
                rohm,dvs-run-voltage = &lt;1150000&gt;;
                rohm,dvs-suspend-voltage = &lt;950000&gt;;
            };
            buck2: buck2 {
                regulator-name = "buck2";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;2000000&gt;;
                regulator-always-on;
                regulator-ramp-delay = &lt;1250&gt;;
                rohm,dvs-run-voltage = &lt;1150000&gt;;
                rohm,dvs-suspend-voltage = &lt;950000&gt;;
            };
            buck3: buck3 {
                regulator-name = "buck3";
                regulator-min-microvolt = &lt;1200000&gt;;
                regulator-max-microvolt = &lt;2700000&gt;;
                regulator-always-on;
            };
            buck4: buck4 {
                regulator-name = "buck4";
                regulator-min-microvolt = &lt;1100000&gt;;
                regulator-max-microvolt = &lt;1850000&gt;;
                regulator-always-on;
            };
            buck5: buck5 {
                regulator-name = "buck5";
                regulator-min-microvolt = &lt;1800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
                regulator-always-on;
            };
            ldo1: ldo1 {
                regulator-name = "ldo1";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
                regulator-always-on;
            };
            ldo2: ldo2 {
                regulator-name = "ldo2";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
                regulator-always-on;
            };
            ldo3: ldo3 {
                regulator-name = "ldo3";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
                regulator-always-on;
            };
            ldo4: ldo4 {
                regulator-name = "ldo4";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
                regulator-always-on;
            };
            ldo5: ldo5 {
                regulator-name = "ldo5";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
                regulator-always-on;
            };
            ldo6: ldodvref {
                regulator-name = "ldodvref";
                regulator-always-on;
            };
            ldo7: ldolpsr {
                regulator-name = "ldolpsr";
                regulator-always-on;
            };

            boost: wled {
                regulator-name = "wled";
                regulator-min-microamp = &lt;10&gt;;
                regulator-max-microamp = &lt;25000&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>
