[PATCH] dt-bindings: pct: Convert to dtschema

Dorine Tipo dorine.a.tipo at gmail.com
Thu Mar 7 18:18:42 PST 2024


convert the PCT Arc Performance Counter bindings to DT schema

Signed-off-by: Dorine Tipo <dorine.a.tipo at gmail.com>
---
 .../devicetree/bindings/arc/pct.yaml          | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arc/pct.yaml

diff --git a/Documentation/devicetree/bindings/arc/pct.yaml b/Documentation/devicetree/bindings/arc/pct.yaml
new file mode 100644
index 000000000000..1f97a7c21b77
--- /dev/null
+++ b/Documentation/devicetree/bindings/arc/pct.yaml
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pct.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARC Performance Counters
+
+maintainers:
+  - Vineet Gupta <vgupta at kernel.org>
+  - Rob Herring <robh+dt at kernel.org>
+  - Krzysztof Kozlowski <krzysztof.kozlowski+dt at linaro.org>
+
+description: |
+  The ARC700 can be configured with a pipeline performance monitor for counting
+  CPU and cache events like cache misses and hits. Like conventional PCT there
+  are 100+ hardware conditions dynamically mapped to up to 32 counters
+
+properties:
+  compatible:
+    const: "snps,arc700-pct"
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    pmu {
+        compatible = "snps,arc700-pct";
+    };
--
2.25.1




More information about the linux-snps-arc mailing list