# ROHM BD71828 Power Management Integrated Circuit

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

> Device-tree binding reference for ROHM BD71828 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;bd71828&#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">BD71828GW is a single-chip power management IC for battery-powered portable
devices. The IC integrates 7 buck converters, 7 LDOs, and a 1500 mA
single-cell linear charger. Also included is a Coulomb counter, a real-time
clock (RTC), and a 32.768 kHz clock gate.</p>
</div>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;rohm&#44;bd71828&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;rohm&#44;bd71879&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;rohm&#44;bd71828&#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;bd71828&#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>

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

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

<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;bd71828&#45;regulator&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-regulator/rohm-bd71828-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-85c9b34b55b27f5ea876"></a>

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

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

<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 BD71828 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-8e0bc5a8db57c6a9dff5"></a>

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

<code>true</code> — No constraints added by this property 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;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,bd71828";
        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 = "bd71828-32k-out";

        gpio-controller;
        #gpio-cells = &lt;2&gt;;
        gpio-reserved-ranges = &lt;0 1&gt;, &lt;2 1&gt;;

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

        regulators {
            buck1: BUCK1 {
                regulator-name = "buck1";
                regulator-min-microvolt = &lt;500000&gt;;
                regulator-max-microvolt = &lt;2000000&gt;;
                regulator-ramp-delay = &lt;2500&gt;;
            };
            buck2: BUCK2 {
                regulator-name = "buck2";
                regulator-min-microvolt = &lt;500000&gt;;
                regulator-max-microvolt = &lt;2000000&gt;;
                regulator-ramp-delay = &lt;2500&gt;;
            };
            buck3: BUCK3 {
                regulator-name = "buck3";
                regulator-min-microvolt = &lt;1200000&gt;;
                regulator-max-microvolt = &lt;2000000&gt;;
            };
            buck4: BUCK4 {
                regulator-name = "buck4";
                regulator-min-microvolt = &lt;1000000&gt;;
                regulator-max-microvolt = &lt;1800000&gt;;
            };
            buck5: BUCK5 {
                regulator-name = "buck5";
                regulator-min-microvolt = &lt;2500000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
            };
            buck6: BUCK6 {
                regulator-name = "buck6";
                regulator-min-microvolt = &lt;500000&gt;;
                regulator-max-microvolt = &lt;2000000&gt;;
                regulator-ramp-delay = &lt;2500&gt;;
            };
            buck7: BUCK7 {
                regulator-name = "buck7";
                regulator-min-microvolt = &lt;500000&gt;;
                regulator-max-microvolt = &lt;2000000&gt;;
                regulator-ramp-delay = &lt;2500&gt;;
            };
            ldo1: LDO1 {
                regulator-name = "ldo1";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
            };
            ldo2: LDO2 {
                regulator-name = "ldo2";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
            };
            ldo3: LDO3 {
                regulator-name = "ldo3";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
            };
            ldo4: LDO4 {
                regulator-name = "ldo4";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
            };
            ldo5: LDO5 {
                regulator-name = "ldo5";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
            };
            ldo6: LDO6 {
                regulator-name = "ldo6";
                regulator-min-microvolt = &lt;1800000&gt;;
                regulator-max-microvolt = &lt;1800000&gt;;
            };
            ldo7_reg: LDO7 {
                regulator-name = "ldo7";
                regulator-min-microvolt = &lt;800000&gt;;
                regulator-max-microvolt = &lt;3300000&gt;;
            };
        };

        leds {
            compatible = "rohm,bd71828-leds";

            led-1 {
                rohm,led-compatible = "bd71828-grnled";
                function = LED_FUNCTION_INDICATOR;
                color = &lt;LED_COLOR_ID_GREEN&gt;;
            };
            led-2 {
                rohm,led-compatible = "bd71828-ambled";
                function = LED_FUNCTION_CHARGING;
                color = &lt;LED_COLOR_ID_AMBER&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>
