# Samsung S2MPG10 Power Management IC

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

> Device-tree binding reference for Samsung S2MPG10 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;samsung&#44;s2mpg10&#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;André Draszik &#60;andre&#46;draszik&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This is part of the device tree bindings for the S2MPG10 Power Management IC
(PMIC).</p>
<p style="white-space: pre-wrap">The Samsung S2MPG10 is a Power Management IC for mobile applications with buck
converters, various LDOs, power meters, RTC, clock outputs, and additional
GPIO interfaces and is typically complemented by S2MPG10 PMIC in a main/sub
configuration as the main PMIC.</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;samsung&#44;s2mpg10&#45;pmic&#34;</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-643939fb37b64dda22fe">[<code>&#47;schemas&#47;clock&#47;samsung&#44;s2mps11&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-clock/samsung-s2mps11.md#dt-root>)</span>

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Child node describing clock provider.</p>
</div>

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5819bc1c9841bc927ec5">[<code>&#47;schemas&#47;regulator&#47;samsung&#44;s2mpg10&#45;regulator&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-regulator/samsung-s2mpg10-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-8e0bc5a8db57c6a9dff5"></a>

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

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

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

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

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

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

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

<a id="dt-78bc88d22ecb24ade413"></a>

### <code>&#94;vinb&#40;&#91;1&#45;9&#93;&#124;10&#41;m&#45;supply&#36;</code> — name matches this regular expression

<div id="dt-b448b7341de7cc666d5e">
<p style="white-space: pre-wrap">Phandle to the power supply for each buck rail of this PMIC. There is a 1:1 mapping of supply to rail, e.g. vinb1m-supply supplies buck1m.</p>
</div>

<a id="dt-40229492ee958011a067"></a>

### <code>&#94;vinl&#40;&#91;1&#45;9&#93;&#124;1&#91;0&#45;5&#93;&#41;m&#45;supply&#36;</code> — name matches this regular expression

<div id="dt-a1c7aa72f99db33d76da">
<pre><code>Phandle to the power supply for one or multiple LDO rails of this PMIC.
The mapping of supply to rail(s) is as follows:
  vinl1m - ldo13m
  vinl2m - ldo15m
  vinl3m - ldo1m, ldo5m, ldo7m
  vinl4m - ldo3m, ldo8m
  vinl5m - ldo16m
  vinl6m - ldo17m
  vinl7m - ldo6m, ldo11m, ldo24m, ldo28m
  vinl8m - ldo12m
  vinl9m - ldo2m, ldo4m
  vinl10m - ldo9m, ldo14m, ldo18m, 19m, ldo20m, ldo25m
  vinl11m - ldo23m, ldo31m
  vinl12m - ldo29m
  vinl13m - ldo30m
  vinl14m - ldo21m
  vinl15m - ldo10m, ldo22m, ldo26m, ldo27m</code></pre>
</div>

**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;interrupts&#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;
#include &lt;dt-bindings/regulator/samsung,s2mpg10-regulator.h&gt;

pmic {
    compatible = "samsung,s2mpg10-pmic";
    interrupts-extended = &lt;&amp;gpa0 6 IRQ_TYPE_LEVEL_LOW&gt;;
    pinctrl-names = "default";
    pinctrl-0 = &lt;&amp;pmic_int&gt;;
    system-power-controller;
    wakeup-source;

    vinl3m-supply = &lt;&amp;buck8m&gt;;

    clocks {
        compatible = "samsung,s2mpg10-clk";
        #clock-cells = &lt;1&gt;;
        clock-output-names = "rtc32k_ap", "peri32k1", "peri32k2";
    };

    regulators {
        buck8m {
            regulator-name = "vdd_mif";
            regulator-min-microvolt = &lt;450000&gt;;
            regulator-max-microvolt = &lt;1300000&gt;;
            regulator-ramp-delay = &lt;6250&gt;;
        };

        ldo1m {
            regulator-name = "vdd_ldo1";
            regulator-min-microvolt = &lt;700000&gt;;
            regulator-max-microvolt = &lt;1300000&gt;;
        };

        ldo20m {
            regulator-name = "vdd_dmics";
            regulator-min-microvolt = &lt;700000&gt;;
            regulator-max-microvolt = &lt;1300000&gt;;
            regulator-always-on;
            samsung,ext-control = &lt;S2MPG10_EXTCTRL_LDO20M_EN2&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>
