# Qualcomm Technologies, Inc. (QTI) RPM Master Stats

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

> Device-tree binding reference for Qualcomm Technologies, Inc. (QTI) RPM Master Stats.

<!-- 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;soc&#47;qcom&#47;qcom&#44;rpm&#45;master&#45;stats&#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;Konrad Dybcio &#60;konradybcio&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Qualcomm RPM (Resource Power Manager) architecture includes a concept
of "RPM Masters". They can be thought of as "the local gang leaders", usually
spanning a single subsystem (e.g. APSS, ADSP, CDSP). All of the RPM decisions
(particularly around entering hardware-driven low power modes: XO shutdown
and total system-wide power collapse) are first made at Master-level, and
only then aggregated for the entire system.</p>
<p style="white-space: pre-wrap">The Master Stats provide a few useful bits that can be used to assess whether
our device has entered the desired low-power mode, how long it took to do so,
the duration of that residence, how long it took to come back online,
how many times a given sleep state was entered and which cores are actively
voting for staying awake.</p>
<p style="white-space: pre-wrap">This scheme has been used on various SoCs in the 2013-2023 era, with some
newer or higher-end designs providing this information through an SMEM query.</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;qcom&#44;rpm&#45;master&#45;stats&#34;</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&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-8f5710c4314b4caa4970>)</span>

<div id="dt-e9dddee57154514eedc6">
<p style="white-space: pre-wrap">Phandle to an RPM MSG RAM slice containing the master stats</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-3fc46689eb24ef573200"><code>1</code></span>

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

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

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

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

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

### <code>qcom&#44;master&#45;names</code> — required here

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

<div id="dt-233cdbb9fc0f855e287b">
<p style="white-space: pre-wrap">The name of the RPM Master which owns the MSG RAM slice where this instance of Master Stats resides</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-399e86fc6fad4de252bb"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-bb12a75b3abce147a001"><code>5</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;qcom&#44;rpm&#45;msg&#45;ram&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;qcom&#44;master&#45;names&#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">stats {
  compatible = "qcom,rpm-master-stats";
  qcom,rpm-msg-ram = &lt;&amp;apss_master_stats&gt;,
                     &lt;&amp;mpss_master_stats&gt;,
                     &lt;&amp;adsp_master_stats&gt;,
                     &lt;&amp;cdsp_master_stats&gt;,
                     &lt;&amp;tz_master_stats&gt;;
  qcom,master-names = "APSS",
                      "MPSS",
                      "ADSP",
                      "CDSP",
                      "TZ";
};
</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>
