[PATCH 2/6] dt-bindings: perf: marvell: Add YAML schemas for Marvell PEM pmu

From: Gowthami Thiagarajan
Date: Fri Jun 30 2023 - 08:04:28 EST


Add device tree bindings for Marvell PEM performance monitor unit

Signed-off-by: Gowthami Thiagarajan <gthiagarajan@xxxxxxxxxxx>
Signed-off-by: Linu Cherian <lcherian@xxxxxxxxxxx>
---
.../bindings/perf/marvell-odyssey-pem.yaml | 38 +++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 Documentation/devicetree/bindings/perf/marvell-odyssey-pem.yaml

diff --git a/Documentation/devicetree/bindings/perf/marvell-odyssey-pem.yaml b/Documentation/devicetree/bindings/perf/marvell-odyssey-pem.yaml
new file mode 100644
index 000000000000..6af201fbccd8
--- /dev/null
+++ b/Documentation/devicetree/bindings/perf/marvell-odyssey-pem.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/perf/marvell-odyssey-pem.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell Odyssey PCIe interface performance monitor
+
+maintainers:
+ - Linu Cherian <lcherian@xxxxxxxxxxx>
+ - Gowthami Thiagarajan <gthiagarajan@xxxxxxxxxxx>
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - marvell,pem-pmu
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ bus {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ pmu@8e0000005000 {
+ compatible = "marvell,pem-pmu";
+ reg = <0x8E00 0x00005000 0x0 0x3000>;
+ };
+ };
--
2.25.1