[PATCH 4/5] dt-bindings/perf: Add Arm CoreSight PMU
Robin Murphy
robin.murphy at arm.com
Tue Dec 5 08:51:57 PST 2023
Add a binding for implementations of the Arm CoreSight Performance
Monitoring Unit Architecture. Not to be confused with CoreSight debug
and trace, the PMU architecture defines a standard MMIO interface for
event counters similar to the CPU PMU architecture, where the
implementation and most of its features are discoverable through ID
registers.
CC: Rob Herring <robh+dt at kernel.org>
CC: Krzysztof Kozlowski <krzysztof.kozlowski+dt at linaro.org>
CC: Conor Dooley <conor+dt at kernel.org>
Signed-off-by: Robin Murphy <robin.murphy at arm.com>
---
.../bindings/perf/arm,coresight-pmu.yaml | 39 +++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 Documentation/devicetree/bindings/perf/arm,coresight-pmu.yaml
diff --git a/Documentation/devicetree/bindings/perf/arm,coresight-pmu.yaml b/Documentation/devicetree/bindings/perf/arm,coresight-pmu.yaml
new file mode 100644
index 000000000000..12c7b28eee35
--- /dev/null
+++ b/Documentation/devicetree/bindings/perf/arm,coresight-pmu.yaml
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/perf/arm,coresight-pmu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Arm Coresight Performance Monitoring Unit Architecture
+
+maintainers:
+ - Robin Murphy <robin.murphy at arm.com>
+
+properties:
+ compatible:
+ const: arm,coresight-pmu
+
+ reg:
+ items:
+ - description: Register page 0
+ - description: Register page 1 (if dual-page extension implemented)
+ minItems: 1
+
+ interrupts:
+ items:
+ - description: Overflow interrupt
+
+ cpus:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ minItems: 1
+ description: List of CPUs with which the PMU is associated, if applicable
+
+ arm,64-bit-atomic:
+ type: boolean
+ description: Register accesses are single-copy atomic at doubleword granularity
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
--
2.39.2.101.g768bb238c484.dirty
More information about the linux-arm-kernel
mailing list