Skip to contentSkip to conversation

Add Cortex-A7 PMU node for SAMA7D65 MPU

PATCH New Mihai Sain 1 participant 2 messages Mar 24

Subsystems (2)
lore
Share & tools
lore

Mihai Sain

author
#0 lore raw

v2 cover Add Cortex-A7 PMU node for SAMA7D65 MPU

This patch adds the Performance Monitoring Unit (PMU) node for SAMA7D65 MPU.

Changelog:

v1 -> v2:
- Remove the interrupt-affinity property

Mihai Sain (1):
ARM: dts: microchip: sama7d65: add Cortex-A7 PMU node

 arch/arm/boot/dts/microchip/sama7d65.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

base-commit: c369299895a591d96745d6492d4888259b004a9e

Signature · 1 line
2.53.0
author
#1 lore raw

PATCH v2 1/1 ARM: dts: microchip: sama7d65: add Cortex-A7 PMU node

Add the Performance Monitoring Unit (PMU) node with the appropriate compatible string and interrupt line so that perf and other PMU-based tooling can function correctly on this SoC.

[root@SAMA7D65 ~]$ dmesg | grep -i pmu

[    1.487869] hw-perfevents: enabled with armv7_cortex_a7 PMU driver, 5 (8000000f) counters available

[root@SAMA7D65 ~]$ perf list hw
List of pre-defined events (to be used in -e or -M):

branch-instructions OR branches                    [Hardware event]
branch-misses                                      [Hardware event]
bus-cycles                                         [Hardware event]
cache-misses                                       [Hardware event]
cache-references                                   [Hardware event]
cpu-cycles OR cycles                               [Hardware event]
instructions                                       [Hardware event]
---
 arch/arm/boot/dts/microchip/sama7d65.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/microchip/sama7d65.dtsi +5 -0
index e21556f46384..ed1ec952531c 100644
@@ -45,6 +45,11 @@ L2: l2-cache {
 		};
 	};
 
+	pmu {
+		compatible = "arm,cortex-a7-pmu";
+		interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
+	};
+
 	clocks {
 		main_xtal: clock-mainxtal {
 			compatible = "fixed-clock";
Signature · 1 line
2.53.0