# ARM Performance Monitor Units

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

> Device-tree binding reference for ARM Performance Monitor Units.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;arm&#47;pmu&#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;Mark Rutland &#60;mark&#46;rutland&#64;arm&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Will Deacon &#60;will&#46;deacon&#64;arm&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">ARM cores often have a PMU for counting cpu and cache events like cache misses
and hits. The interface to the PMU is part of the ARM ARM. The ARM PMU
representation in the device tree should be done as under:-</p>
</div>

<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**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;apm&#44;potenza&#45;pmu&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;apple&#44;avalanche&#45;pmu&#34;</code></span>, <span id="dt-9802844ed4869452d348"><code>&#34;apple&#44;blizzard&#45;pmu&#34;</code></span>, <span id="dt-24a1253e29125294194d"><code>&#34;apple&#44;firestorm&#45;pmu&#34;</code></span>, <span id="dt-6eb9cf2b3f55b257fde4"><code>&#34;apple&#44;icestorm&#45;pmu&#34;</code></span>, <span id="dt-50ce8af78a6d0f3b7b82"><code>&#34;arm&#44;armv8&#45;pmuv3&#34;</code></span>, <span id="dt-8be3d578ae616ce6273c"><code>&#34;arm&#44;arm1136&#45;pmu&#34;</code></span>, <span id="dt-348801aa97cc32ed4b8e"><code>&#34;arm&#44;arm1176&#45;pmu&#34;</code></span>, <span id="dt-08e250be67bbdba4113e"><code>&#34;arm&#44;arm11mpcore&#45;pmu&#34;</code></span>, <span id="dt-b384a2e268c424bd4737"><code>&#34;arm&#44;c1&#45;nano&#45;pmu&#34;</code></span>, <span id="dt-00645d7276e48dce88cf"><code>&#34;arm&#44;c1&#45;premium&#45;pmu&#34;</code></span>, <span id="dt-e5bb0b4c6f96135591dc"><code>&#34;arm&#44;c1&#45;pro&#45;pmu&#34;</code></span>, <span id="dt-4bde956a8cf6f215f70e"><code>&#34;arm&#44;c1&#45;ultra&#45;pmu&#34;</code></span>, <span id="dt-10b35ef19b737dbb8601"><code>&#34;arm&#44;cortex&#45;a5&#45;pmu&#34;</code></span>, <span id="dt-04e607d0cca73ecd9a42"><code>&#34;arm&#44;cortex&#45;a7&#45;pmu&#34;</code></span>, <span id="dt-e2db6a6268b84a260286"><code>&#34;arm&#44;cortex&#45;a8&#45;pmu&#34;</code></span>, <span id="dt-2a8ead1a46a814445402"><code>&#34;arm&#44;cortex&#45;a9&#45;pmu&#34;</code></span>, <span id="dt-98beb3234fc95a98556f"><code>&#34;arm&#44;cortex&#45;a12&#45;pmu&#34;</code></span>, <span id="dt-61d982f22a36aee0de44"><code>&#34;arm&#44;cortex&#45;a15&#45;pmu&#34;</code></span>, <span id="dt-63fb3a62361de7665053"><code>&#34;arm&#44;cortex&#45;a17&#45;pmu&#34;</code></span>, <span id="dt-23f0e4ae5b4acf387488"><code>&#34;arm&#44;cortex&#45;a32&#45;pmu&#34;</code></span>, <span id="dt-8d96638a2d82b213c4d7"><code>&#34;arm&#44;cortex&#45;a34&#45;pmu&#34;</code></span>, <span id="dt-26223eff0b57f7707c8d"><code>&#34;arm&#44;cortex&#45;a35&#45;pmu&#34;</code></span>, <span id="dt-8375a7389d2eb1d54522"><code>&#34;arm&#44;cortex&#45;a53&#45;pmu&#34;</code></span>, <span id="dt-5a09c261fed2ffb1eff2"><code>&#34;arm&#44;cortex&#45;a55&#45;pmu&#34;</code></span>, <span id="dt-5878ba21cebce591162b"><code>&#34;arm&#44;cortex&#45;a57&#45;pmu&#34;</code></span>, <span id="dt-f369db9e646fae1f05e1"><code>&#34;arm&#44;cortex&#45;a65&#45;pmu&#34;</code></span>, <span id="dt-f925e48a2e9815f87700"><code>&#34;arm&#44;cortex&#45;a72&#45;pmu&#34;</code></span>, <span id="dt-dc910176a5f9b6a6f504"><code>&#34;arm&#44;cortex&#45;a73&#45;pmu&#34;</code></span>, <span id="dt-69b3a898223f95798ab6"><code>&#34;arm&#44;cortex&#45;a75&#45;pmu&#34;</code></span>, <span id="dt-fceb723303f85ca375c9"><code>&#34;arm&#44;cortex&#45;a76&#45;pmu&#34;</code></span>, <span id="dt-8baee1b9f5004c8c5702"><code>&#34;arm&#44;cortex&#45;a77&#45;pmu&#34;</code></span>, <span id="dt-2ef61f5975f6dfeec5be"><code>&#34;arm&#44;cortex&#45;a78&#45;pmu&#34;</code></span>, <span id="dt-4840e64fd5688777a2ee"><code>&#34;arm&#44;cortex&#45;a320&#45;pmu&#34;</code></span>, <span id="dt-f4af07f66d5cef016301"><code>&#34;arm&#44;cortex&#45;a510&#45;pmu&#34;</code></span>, <span id="dt-c5e000c5fb7533034cae"><code>&#34;arm&#44;cortex&#45;a520&#45;pmu&#34;</code></span>, <span id="dt-8096c3352e3d0fe3e691"><code>&#34;arm&#44;cortex&#45;a520ae&#45;pmu&#34;</code></span>, <span id="dt-7c94b0f1f1d6678be44c"><code>&#34;arm&#44;cortex&#45;a710&#45;pmu&#34;</code></span>, <span id="dt-4c9f912db36beb47980a"><code>&#34;arm&#44;cortex&#45;a715&#45;pmu&#34;</code></span>, <span id="dt-9c99f23b3284d7ebe0a2"><code>&#34;arm&#44;cortex&#45;a720&#45;pmu&#34;</code></span>, <span id="dt-001c9c710ce2be443a2c"><code>&#34;arm&#44;cortex&#45;a720ae&#45;pmu&#34;</code></span>, <span id="dt-a8378bcd74ed6bf728c0"><code>&#34;arm&#44;cortex&#45;a725&#45;pmu&#34;</code></span>, <span id="dt-b0ff570e0bf0d99b5b97"><code>&#34;arm&#44;cortex&#45;x1&#45;pmu&#34;</code></span>, <span id="dt-fa91017878bdfd930b8e"><code>&#34;arm&#44;cortex&#45;x2&#45;pmu&#34;</code></span>, <span id="dt-9dfe6d82a85a137375b5"><code>&#34;arm&#44;cortex&#45;x3&#45;pmu&#34;</code></span>, <span id="dt-bfbf77721ce18e2055aa"><code>&#34;arm&#44;cortex&#45;x4&#45;pmu&#34;</code></span>, <span id="dt-6a7567e6230464d1b286"><code>&#34;arm&#44;cortex&#45;x925&#45;pmu&#34;</code></span>, <span id="dt-b2a74b3cf379736624f9"><code>&#34;arm&#44;neoverse&#45;e1&#45;pmu&#34;</code></span>, <span id="dt-5ca01989f5c625f021e9"><code>&#34;arm&#44;neoverse&#45;n1&#45;pmu&#34;</code></span>, <span id="dt-dd895d74215ec41c28be"><code>&#34;arm&#44;neoverse&#45;n2&#45;pmu&#34;</code></span>, <span id="dt-958fea9d577c607781af"><code>&#34;arm&#44;neoverse&#45;n3&#45;pmu&#34;</code></span>, <span id="dt-f482cb362618056da9cd"><code>&#34;arm&#44;neoverse&#45;v1&#45;pmu&#34;</code></span>, <span id="dt-7f2018affab20ebdcd08"><code>&#34;arm&#44;neoverse&#45;v2&#45;pmu&#34;</code></span>, <span id="dt-0510372b79a801521297"><code>&#34;arm&#44;neoverse&#45;v3&#45;pmu&#34;</code></span>, <span id="dt-1d9fb90a38ef90050d01"><code>&#34;arm&#44;neoverse&#45;v3ae&#45;pmu&#34;</code></span>, <span id="dt-afe69f1f53d42e3517ea"><code>&#34;arm&#44;rainier&#45;pmu&#34;</code></span>, <span id="dt-0086afc54ee113b5b88b"><code>&#34;brcm&#44;vulcan&#45;pmu&#34;</code></span>, <span id="dt-cb48bd6c18c725311a69"><code>&#34;cavium&#44;thunder&#45;pmu&#34;</code></span>, <span id="dt-5f4002b438ecf84ba130"><code>&#34;nvidia&#44;denver&#45;pmu&#34;</code></span>, <span id="dt-a8cc4f8709e821b167d4"><code>&#34;nvidia&#44;carmel&#45;pmu&#34;</code></span>, <span id="dt-f469e115b7cab705288d"><code>&#34;qcom&#44;krait&#45;pmu&#34;</code></span>, <span id="dt-f20871e7b573099c01d6"><code>&#34;qcom&#44;scorpion&#45;pmu&#34;</code></span>, <span id="dt-65445c5123a508ffa395"><code>&#34;qcom&#44;scorpion&#45;mp&#45;pmu&#34;</code></span>, <span id="dt-eebd1c7982b246272f4c"><code>&#34;samsung&#44;mongoose&#45;pmu&#34;</code></span>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">1 per-cpu interrupt (PPI) or 1 interrupt per core.</p>
</div>

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

### <code>interrupt&#45;affinity</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-bbad56c065f29b453056">[<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-15a37140392594332f75"></a>

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

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

<div id="dt-ea1626950e52cfc31a87">
<p style="white-space: pre-wrap">When using SPIs, specifies a list of phandles to CPU nodes corresponding directly to the affinity of the SPIs listed in the interrupts property.
When using a PPI, specifies a list of phandles to CPU nodes corresponding to the set of CPUs which have a PMU of this type signalling the PPI listed in the interrupts property, unless this is already specified by the PPI interrupt specifier itself (in which case the interrupt-affinity property shouldn't be present).
This property should be present when there is more than a single SPI.</p>
</div>

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

### <code>qcom&#44;no&#45;pc&#45;write</code> — not listed as required here

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

<div id="dt-10297999b74ff92cf522">
<p style="white-space: pre-wrap">Indicates that this PMU doesn't support the 0xc and 0xd events.</p>
</div>

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

### <code>secure&#45;reg&#45;access</code> — not listed as required here

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

<div id="dt-159dc7d3ec42ef66634a">
<p style="white-space: pre-wrap">Indicates that the ARMv7 Secure Debug Enable Register (SDER) is accessible. This will cause the driver to do any setup required that is only possible in ARMv7 secure state. If not present the ARMv7 SDER will not be touched, which means the PMU may fail to operate unless external code (bootloader or security monitor) has performed the appropriate initialisation. Note that this property is not valid for non-ARMv7 CPUs or ARMv7 CPUs booting Linux in Non-secure state.</p>
</div>

**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-738c4b4f9e483441138b"></a>

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

<code>false</code>

Not allowed by this rule.

## 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</span></p>

<p id="dt-comment-1"><strong>Line 27:</strong> <span> Only for s/w models</span></p>

<p id="dt-comment-2"><strong>Line 88:</strong> <span> Don't know how many CPUs, so no constraints to specify</span></p>

</details>
