# Qualcom MPM Interrupt Controller

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

> Device-tree binding reference for Qualcom MPM Interrupt Controller.

<!-- 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;interrupt&#45;controller&#47;qcom&#44;mpm&#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;Shawn Guo &#60;shawn&#46;guo&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Qualcomm Technologies Inc. SoCs based on the RPM architecture have a MSM Power Manager (MPM) that is in always-on domain. In addition to managing resources during sleep, the hardware also has an interrupt controller that monitors the interrupts when the system is asleep, wakes up the APSS when one of these interrupts occur and replays it to GIC interrupt controller after GIC becomes operational.</p>
</div>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>&#47;schemas&#47;interrupt&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-shared/interrupt-controller.md#dt-root>)</span>

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

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

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

**Item 1**

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

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

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Specifies the base address and size of vMPM registers in RPM MSG RAM.</p>
</div>

**Deprecated (<code>deprecated</code>):** <span id="dt-5b2d10e4f7843a7e9a3e"><code>true</code></span>

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

### <code>qcom&#44;rpm&#45;msg&#45;ram</code> — required here

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

<div id="dt-e9dddee57154514eedc6">
<p style="white-space: pre-wrap">Phandle to the APSS MPM slice of the RPM Message RAM</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>

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">Specify the IRQ used by RPM to wakeup APSS.</p>
</div>

<a id="dt-574e031ceefcc9ce5f61"></a>

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

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

<div id="dt-35048c35d9f2ceeeab93">
<p style="white-space: pre-wrap">Specify the mailbox used to notify RPM for writing vMPM registers.</p>
</div>

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

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

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

<a id="dt-8586fac2d9a71adf4795"></a>

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

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

<div id="dt-0cc2c51365b6879fba3b">
<p style="white-space: pre-wrap">The first cell is the MPM pin number for the interrupt, and the second is the trigger type.</p>
</div>

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

### <code>qcom&#44;mpm&#45;pin&#45;count</code> — required here

<div id="dt-e31581628b98227ef4a9">
<p style="white-space: pre-wrap">Specify the total MPM pin count that a SoC supports.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7c28ef9edbca86e5cc02">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

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

### <code>qcom&#44;mpm&#45;pin&#45;map</code> — required here

<div id="dt-8b090033c07f648600cb">
<p style="white-space: pre-wrap">A set of MPM pin numbers and the corresponding GIC SPIs.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1bd5a8dbb9a8d5e773db">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32&#45;matrix</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d948f2945b497d9aa3c7>)</span>

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

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

> <a id="dt-bca0988410ed3ca304bf"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-ff44a8cd8d9020874748"></a>
>
> **Item 1**
>
> > <div id="dt-f598ba6970c4c0600b5c">
> > <p style="white-space: pre-wrap">MPM pin number</p>
> > </div>
>
> <a id="dt-4dc92915c8618ea34e38"></a>
>
> **Item 2**
>
> > <div id="dt-02d27abc0eb8d8e1d791">
> > <p style="white-space: pre-wrap">GIC SPI number for the MPM pin</p>
> > </div>

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

### <code>&#35;power&#45;domain&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-987f18ca91dd6cac0089"><code>0</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;interrupts&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;mboxes&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupt&#45;controller&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;interrupt&#45;cells&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;qcom&#44;mpm&#45;pin&#45;count&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;qcom&#44;mpm&#45;pin&#45;map&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;qcom&#44;rpm&#45;msg&#45;ram&#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;

remoteproc-rpm {
    compatible = "qcom,msm8998-rpm-proc", "qcom,rpm-proc";

    glink-edge {
        compatible = "qcom,glink-rpm";

        interrupts = &lt;GIC_SPI 168 IRQ_TYPE_EDGE_RISING&gt;;
        qcom,rpm-msg-ram = &lt;&amp;rpm_msg_ram&gt;;
        mboxes = &lt;&amp;apcs_glb 0&gt;;
    };

    mpm: interrupt-controller {
        compatible = "qcom,mpm";
        qcom,rpm-msg-ram = &lt;&amp;apss_mpm&gt;;
        interrupts = &lt;GIC_SPI 197 IRQ_TYPE_EDGE_RISING&gt;;
        mboxes = &lt;&amp;apcs_glb 1&gt;;
        interrupt-controller;
        #interrupt-cells = &lt;2&gt;;
        interrupt-parent = &lt;&amp;intc&gt;;
        qcom,mpm-pin-count = &lt;96&gt;;
        qcom,mpm-pin-map = &lt;2 275&gt;,
                           &lt;5 296&gt;,
                           &lt;12 422&gt;,
                           &lt;24 79&gt;,
                           &lt;86 183&gt;,
                           &lt;91 260&gt;;
        #power-domain-cells = &lt;0&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>
