devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: perf: Convert Arm CCN to DT schema
@ 2022-06-13 14:55 Rob Herring
  2022-06-13 15:01 ` Robin Murphy
  2022-06-17 19:14 ` Rob Herring
  0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring @ 2022-06-13 14:55 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland, Krzysztof Kozlowski, Robin Murphy
  Cc: linux-arm-kernel, devicetree, linux-kernel

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

Signed-off-by: Rob Herring <robh@kernel.org>
---
 .../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

diff --git a/Documentation/devicetree/bindings/perf/arm,ccn.yaml b/Documentation/devicetree/bindings/perf/arm,ccn.yaml
new file mode 100644
index 000000000000..0b0bb2091016
--- /dev/null
+++ b/Documentation/devicetree/bindings/perf/arm,ccn.yaml
@@ -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
index 1c53b5aa3317..000000000000
--- a/Documentation/devicetree/bindings/perf/arm-ccn.txt
+++ /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>;
-	};
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: perf: Convert Arm CCN to DT schema
  2022-06-13 14:55 [PATCH] dt-bindings: perf: Convert Arm CCN to DT schema Rob Herring
@ 2022-06-13 15:01 ` Robin Murphy
  2022-06-17 19:14 ` Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Robin Murphy @ 2022-06-13 15:01 UTC (permalink / raw)
  To: Rob Herring, Will Deacon, Mark Rutland, Krzysztof Kozlowski
  Cc: linux-arm-kernel, devicetree, linux-kernel

On 2022-06-13 15:55, Rob Herring wrote:
> Convert the Arm CCN performance monitors binding to DT schema format.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>   .../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
> 
> diff --git a/Documentation/devicetree/bindings/perf/arm,ccn.yaml b/Documentation/devicetree/bindings/perf/arm,ccn.yaml
> new file mode 100644
> index 000000000000..0b0bb2091016
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/perf/arm,ccn.yaml
> @@ -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>

Oh go on then, why not...

Acked-by: 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
> index 1c53b5aa3317..000000000000
> --- a/Documentation/devicetree/bindings/perf/arm-ccn.txt
> +++ /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>;
> -	};

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: perf: Convert Arm CCN to DT schema
  2022-06-13 14:55 [PATCH] dt-bindings: perf: Convert Arm CCN to DT schema Rob Herring
  2022-06-13 15:01 ` Robin Murphy
@ 2022-06-17 19:14 ` Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2022-06-17 19:14 UTC (permalink / raw)
  To: Rob Herring
  Cc: linux-kernel, linux-arm-kernel, Robin Murphy, Will Deacon,
	devicetree, Krzysztof Kozlowski, Mark Rutland

On Mon, 13 Jun 2022 08:55:54 -0600, Rob Herring wrote:
> Convert the Arm CCN performance monitors binding to DT schema format.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  .../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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-17 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-13 14:55 [PATCH] dt-bindings: perf: Convert Arm CCN to DT schema Rob Herring
2022-06-13 15:01 ` Robin Murphy
2022-06-17 19:14 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).