# Qualcomm RPM regulator

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

> Device-tree binding reference for Qualcomm RPM regulator.

<!-- SPDX-License-Identifier: (GPL-2.0 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;regulator&#47;qcom&#44;rpm&#45;regulator&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Qualcomm RPM regulator is modelled as a subdevice of the RPM.
Please refer to Documentation/devicetree/bindings/soc/qcom/qcom,rpm.yaml for information regarding the RPM node.
The regulator node houses sub-nodes for each regulator within the device. Each sub-node is identified using the node's name, with valid values listed for each of the pmics below.
For pm8058 l0, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, s0, s1, s2, s3, s4, lvs0, lvs1, ncp
For pm8901 l0, l1, l2, l3, l4, l5, l6, s0, s1, s2, s3, s4, lvs0, lvs1, lvs2, lvs3, mvs
For pm8921 s1, s2, s3, s4, s7, s8, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l14, l15, l16, l17, l18, l21, l22, l23, l24, l25, l26, l27, l28, l29, lvs1, lvs2, lvs3, lvs4, lvs5, lvs6, lvs7, usb-switch, hdmi-switch, ncp
For pm8018 s1, s2, s3, s4, s5, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l14, lvs1
For smb208 s1a, s1b, s2a, s2b</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Bjorn Andersson &#60;andersson&#64;kernel&#46;org&#62;&#34;</code></span>

<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;qcom&#44;rpm&#45;pm8058&#45;regulators&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;qcom&#44;rpm&#45;pm8901&#45;regulators&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;qcom&#44;rpm&#45;pm8921&#45;regulators&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;qcom&#44;rpm&#45;pm8018&#45;regulators&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;qcom&#44;rpm&#45;smb208&#45;regulators&#34;</code></span>

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

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

<a id="dt-8967d55501074a03fbb4"></a>

### <code>&#46;&#42;&#45;supply&#36;</code> — name matches this regular expression

<div id="dt-295d154a415b645320f7">
<p style="white-space: pre-wrap">Input supply phandle(s) for this node</p>
</div>

<a id="dt-617484d964af26b5426c"></a>

### <code>&#94;&#40;&#40;s&#124;l&#124;lvs&#41;&#91;0&#45;9&#93;&#42;&#124;s&#91;1&#45;2&#93;&#91;a&#45;b&#93;&#124;ncp&#124;mvs&#124;usb&#45;switch&#124;hdmi&#45;switch&#41;&#36;</code> — name matches this regular expression

<div id="dt-589511447fe335290061">
<p style="white-space: pre-wrap">List of regulators and its properties</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c201be2a9c03fd3c3fce">[<code>regulator&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-regulator/regulator.md#dt-root>)</span>

<a id="dt-7453cbb2cb7ccb0095fd"></a>

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

<code>false</code>

Not allowed by this rule.

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

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

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

**<code>bias&#45;pull&#45;down</code> — not listed as required here**

<div id="dt-fb7dd8d09a1cf754900b">
<p style="white-space: pre-wrap">enable pull down of the regulator when inactive</p>
</div>

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

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

**<code>qcom&#44;switch&#45;mode&#45;frequency</code> — not listed as required here**

<div id="dt-114681fa107c001444d1">
<p style="white-space: pre-wrap">Frequency (Hz) of the switch-mode power supply</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4b4302004ab995618ea6">[<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-cf35e18da319363a338c"></a> <span id="dt-788a06db8e17d69ca921"><code>19200000</code></span>, <span id="dt-0698bce5949a09872e81"><code>9600000</code></span>, <span id="dt-92bd8ada409c39202b73"><code>6400000</code></span>, <span id="dt-f6d994581a9ae0715131"><code>4800000</code></span>, <span id="dt-47cd104a8a1f292f2b8c"><code>3840000</code></span>, <span id="dt-15c4ad9eca570094374c"><code>3200000</code></span>, <span id="dt-8d93f0e1e8287986f9be"><code>2740000</code></span>, <span id="dt-9ae7613c1b5cfc23a06b"><code>2400000</code></span>, <span id="dt-455f31c1c13f24ded222"><code>2130000</code></span>, <span id="dt-2c0e1338803d8143d41d"><code>1920000</code></span>, <span id="dt-2c7f61c85c1088ff7cb3"><code>1750000</code></span>, <span id="dt-de2745ae6dcd285059bc"><code>1600000</code></span>, <span id="dt-54a2cbfe19fbb638ce7d"><code>1480000</code></span>, <span id="dt-f392d7038e9f23791e85"><code>1370000</code></span>, <span id="dt-e4d7cd9f8a4adc349966"><code>1280000</code></span>, <span id="dt-86ca560df9ff26f3bb38"><code>1200000</code></span>

<a id="dt-072a07edf366c49cacb5"></a>

**<code>qcom&#44;force&#45;mode</code> — not listed as required here**

<div id="dt-303be814f78c6988e0d6">
<p style="white-space: pre-wrap">Indicates that the regulator should be forced to a particular mode</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-3c9ac4c8dd1dbb7c8600">[<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-b4c9f33b32b9b8e572e8"></a> <span id="dt-a5caf6509f4831c134af"><code>0</code></span>, <span id="dt-26b1c7aef79812418d7f"><code>1</code></span>, <span id="dt-bc2703c720aedd1d517b"><code>2</code></span>, <span id="dt-195db38134c004c94abd"><code>3</code></span>

<a id="dt-7218795c7d6d197e35cb"></a>

**<code>qcom&#44;power&#45;mode&#45;hysteretic</code> — not listed as required here**

<div id="dt-4d861d4543e967145d62">
<p style="white-space: pre-wrap">select that the power supply should operate in hysteretic mode, instead of the default pwm mode</p>
</div>

**Value type (<code>type</code>):** <span id="dt-83ce54dcf5d86bb4fccd"><code>&#34;boolean&#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.

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>

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

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/mfd/qcom-rpm.h&gt;
regulators {
  compatible = "qcom,rpm-pm8921-regulators";
  vdd_l1_l2_l12_l18-supply = &lt;&amp;pm8921_s4&gt;;

  s1 {
    regulator-min-microvolt = &lt;1225000&gt;;
    regulator-max-microvolt = &lt;1225000&gt;;

    bias-pull-down;

    qcom,switch-mode-frequency = &lt;3200000&gt;;
  };

  pm8921_s4: s4 {
    regulator-min-microvolt = &lt;1800000&gt;;
    regulator-max-microvolt = &lt;1800000&gt;;

    qcom,switch-mode-frequency = &lt;1600000&gt;;
    bias-pull-down;

    qcom,force-mode = &lt;QCOM_RPM_FORCE_MODE_AUTO&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 OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 86:</strong> <span> QCOM_RPM_FORCE_MODE_NONE do not force any mode</span></p>

<p id="dt-comment-2"><strong>Line 87:</strong> <span> QCOM_RPM_FORCE_MODE_LPM force into low power mode</span></p>

<p id="dt-comment-3"><strong>Line 88:</strong> <span> QCOM_RPM_FORCE_MODE_HPM force into high power mode</span></p>

<p id="dt-comment-4"><strong>Line 89:</strong> <span> QCOM_RPM_FORCE_MODE_AUTO allow regulator to automatically select its own mode</span></p>

<p id="dt-comment-5"><strong>Line 90:</strong> <span> based on realtime current draw, only for pm8921 smps and ftsmps</span></p>

</details>
