dt-bindings: perf: Convert Arm CCN to DT schema
authorRob Herring <robh@kernel.org>
Mon, 13 Jun 2022 14:55:54 +0000 (08:55 -0600)
committerRob Herring <robh@kernel.org>
Fri, 17 Jun 2022 19:13:57 +0000 (13:13 -0600)
Convert the Arm CCN performance monitors binding to DT schema format.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20220613145554.3727354-1-robh@kernel.org
Documentation/devicetree/bindings/perf/arm,ccn.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/perf/arm-ccn.txt [deleted file]

diff --git a/Documentation/devicetree/bindings/perf/arm,ccn.yaml b/Documentation/devicetree/bindings/perf/arm,ccn.yaml
new file mode 100644 (file)
index 0000000..0b0bb20
--- /dev/null
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/perf/arm,ccn.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARM CCN (Cache Coherent Network) Performance Monitors
+
+maintainers:
+  - Robin Murphy <robin.murphy@arm.com>
+
+properties:
+  compatible:
+    enum:
+      - arm,ccn-502
+      - arm,ccn-504
+      - arm,ccn-508
+      - arm,ccn-512
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    ccn@20000000 {
+        compatible = "arm,ccn-504";
+        reg = <0x20000000 0x1000000>;
+        interrupts = <0 181 4>;
+    };
+...
diff --git a/Documentation/devicetree/bindings/perf/arm-ccn.txt b/Documentation/devicetree/bindings/perf/arm-ccn.txt
deleted file mode 100644 (file)
index 1c53b5a..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-* ARM CCN (Cache Coherent Network)
-
-Required properties:
-
-- compatible: (standard compatible string) should be one of:
-       "arm,ccn-502"
-       "arm,ccn-504"
-       "arm,ccn-508"
-       "arm,ccn-512"
-
-- reg: (standard registers property) physical address and size
-       (16MB) of the configuration registers block
-
-- interrupts: (standard interrupt property) single interrupt
-       generated by the control block
-
-Example:
-
-       ccn@2000000000 {
-               compatible = "arm,ccn-504";
-               reg = <0x20 0x00000000 0 0x1000000>;
-               interrupts = <0 181 4>;
-       };