# Qualcomm Resource Power Manager (RPM)

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Soc bindings / qcom_

> Device-tree binding reference for Qualcomm Resource Power Manager (RPM).

<!-- 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;soc&#47;qcom&#47;qcom&#44;rpm&#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">This driver is used to interface with the Resource Power Manager (RPM) found in various Qualcomm platforms. The RPM allows each component in the system to vote for state of the system resources, such as clocks, regulators and bus frequencies.</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;apq8064&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;qcom&#44;rpm&#45;msm8660&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;qcom&#44;rpm&#45;msm8960&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;qcom&#44;rpm&#45;ipq8064&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;qcom&#44;rpm&#45;mdm9615&#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>3</code></span>

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

### <code>interrupt&#45;names</code> — required here

<a id="dt-77e94e63ca0b20bb5ef1"></a>

#### Array item rules (<code>items</code>)

<a id="dt-1198ecbdbe49337cf73e"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-7f7686a533ef09dda0b1"><code>&#34;ack&#34;</code></span>

<a id="dt-0d40baae5346e6957f8a"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-5af1964d23a153c89b8a"><code>&#34;err&#34;</code></span>

<a id="dt-01a6f91e38388cdf0f5a"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-25e85adf3e7caf29cd92"><code>&#34;wakeup&#34;</code></span>

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

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

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

<a id="dt-041d7cd76b652a5de06a"></a>

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

<a id="dt-3d1de59bdfddccf00eed"></a>

#### Array item rules (<code>items</code>)

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;ram&#34;</code></span>

<a id="dt-90be48a5a2d1e5fd1d97"></a>

### <code>qcom&#44;ipc</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b4d03213f2aa5b0c81ca">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-8f5710c4314b4caa4970>)</span>

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

#### Array item rules (<code>items</code>)

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

**Item 1**

> <a id="dt-e156dfe8f50f31443c18"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-f9fef7ee3554a3291e09"></a>
>
> **Item 1**
>
> > <div id="dt-1b8e2e69c4853e518788">
> > <p style="white-space: pre-wrap">phandle to a syscon node representing the APCS registers</p>
> > </div>
>
> <a id="dt-36df8e569d7f097be581"></a>
>
> **Item 2**
>
> > <div id="dt-1695278cffe4be017bc2">
> > <p style="white-space: pre-wrap">u32 representing offset to the register within the syscon</p>
> > </div>
>
> <a id="dt-b9a698c60ac6e2dd8cdd"></a>
>
> **Item 3**
>
> > <div id="dt-6714f2e43cc1da72b7b8">
> > <p style="white-space: pre-wrap">u32 representing the ipc bit within the register</p>
> > </div>

<div id="dt-46a46c9a2afe52eb2941">
<p style="white-space: pre-wrap">Three entries specifying the outgoing ipc bit used for signaling the RPM.</p>
</div>

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

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

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

<a id="dt-971c68ae8d4c3c3427b5"></a>

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

<code>true</code>

Allowed by this rule.

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

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

<a id="dt-65b78010201c62c54472"></a>

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

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

**Rule for matching array elements (<code>contains</code>)**

> **Exact value (<code>const</code>):** <span id="dt-9bd3e11c33ae0edc6825"><code>&#34;qcom&#44;rpmcc&#34;</code></span>

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

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

<a id="dt-86b1128c390db3bdb06e"></a>

### <code>&#94;regulators&#40;&#45;&#91;01&#93;&#41;&#63;&#36;</code> — name matches this regular expression

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

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

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

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</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>, <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;interrupt&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;qcom&#44;ipc&#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/arm-gic.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
#include &lt;dt-bindings/mfd/qcom-rpm.h&gt;

rpm@108000 {
  compatible = "qcom,rpm-msm8960";
  reg = &lt;0x108000 0x1000&gt;;
  qcom,ipc = &lt;&amp;apcs 0x8 2&gt;;

  interrupts = &lt;GIC_SPI 19 IRQ_TYPE_NONE&gt;, &lt;GIC_SPI 21 IRQ_TYPE_NONE&gt;, &lt;GIC_SPI 22 IRQ_TYPE_NONE&gt;;
  interrupt-names = "ack", "err", "wakeup";

  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>

</details>
