Skip to contentSkip to conversation

dt-bindings: perf: Convert Arm CCN to DT schema

PATCH Applied Rob Herring 2 participants 3 messages Jun 13, 2022 – Jun 17, 2022

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: perf: Convert Arm CCN to DT schema

Convert the Arm CCN performance monitors binding to DT schema format.

---
 .../devicetree/bindings/perf/arm,ccn.yaml     | 40 +++++++++++++++++++
 .../devicetree/bindings/perf/arm-ccn.txt      | 23 -----------
 2 files changed, 40 insertions(+), 23 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/perf/arm,ccn.yaml
 delete mode 100644 Documentation/devicetree/bindings/perf/arm-ccn.txt
Documentation/devicetree/bindings/perf/arm,ccn.yaml new file +40 -0
new file mode 100644
index 000000000000..0b0bb2091016
@@ -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 <[email protected]>
+
+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>;
+    };
+...
Documentation/devicetree/bindings/perf/arm-ccn.txt deleted +0 -23
deleted file mode 100644
index 1c53b5aa3317..000000000000
@@ -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>;
-	};
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Acked-by on v1 1/1
#1 lore raw
Quoted 16 lines · Rob Herring

Convert the Arm CCN performance monitors binding to DT schema format.

---
  .../devicetree/bindings/perf/arm,ccn.yaml     | 40 +++++++++++++++++++
  .../devicetree/bindings/perf/arm-ccn.txt      | 23 -----------
  2 files changed, 40 insertions(+), 23 deletions(-)

create mode 100644 Documentation/devicetree/bindings/perf/arm,ccn.yaml delete mode 100644 Documentation/devicetree/bindings/perf/arm-ccn.txt

Documentation/devicetree/bindings/perf/arm,ccn.yaml new file +0 -0
new file mode 100644
index 000000000000..0b0bb2091016

Documentation/devicetree/bindings/perf/arm,ccn.yaml line 10

Quoted 10 lines
Documentation/devicetree/bindings/perf/arm,ccn.yaml new file +10 -0
@@ -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 <[email protected]>

Oh go on then, why not...

Quoted 49 lines
Documentation/devicetree/bindings/perf/arm,ccn.yaml new file +30 -0
+
+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>;
+    };
+...
Documentation/devicetree/bindings/perf/arm-ccn.txt deleted +0 -13
deleted file mode 100644
index 1c53b5aa3317..000000000000
@@ -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
-

Documentation/devicetree/bindings/perf/arm-ccn.txt line 23

Quoted 10 lines
Documentation/devicetree/bindings/perf/arm-ccn.txt deleted +0 -10
-- 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>;
-	};

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

author maintainer Applied
#2 lore raw
In reply to Rob Herring
Quoted 10 lines · Rob Herring

Convert the Arm CCN performance monitors binding to DT schema format.

---
 .../devicetree/bindings/perf/arm,ccn.yaml     | 40 +++++++++++++++++++
 .../devicetree/bindings/perf/arm-ccn.txt      | 23 -----------
 2 files changed, 40 insertions(+), 23 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/perf/arm,ccn.yaml
 delete mode 100644 Documentation/devicetree/bindings/perf/arm-ccn.txt

Applied, thanks!