devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: interrupt-controller: Convert snps,archs-intc to DT schema
@ 2025-05-05 14:48 Rob Herring (Arm)
  2025-05-25  2:45 ` Vineet Gupta
  0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring (Arm) @ 2025-05-05 14:48 UTC (permalink / raw)
  To: Vineet Gupta, Thomas Gleixner, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-snps-arc, linux-kernel, devicetree

Convert the ARC-HS incore interrupt controller binding to schema format.
It's a straight-forward conversion of the typical interrupt controller.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 .../interrupt-controller/snps,archs-intc.txt  | 22 ---------
 .../interrupt-controller/snps,archs-intc.yaml | 48 +++++++++++++++++++
 2 files changed, 48 insertions(+), 22 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.yaml

diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.txt
deleted file mode 100644
index 69f326d6a5ad..000000000000
--- a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-* ARC-HS incore Interrupt Controller (Provided by cores implementing ARCv2 ISA)
-
-Properties:
-
-- compatible: "snps,archs-intc"
-- interrupt-controller: This is an interrupt controller.
-- #interrupt-cells: Must be <1>.
-
-  Single Cell "interrupts" property of a device specifies the IRQ number
-  between 16 to 256
-
-  intc accessed via the special ARC AUX register interface, hence "reg" property
-  is not specified.
-
-Example:
-
-	intc: interrupt-controller {
-		compatible = "snps,archs-intc";
-		interrupt-controller;
-		#interrupt-cells = <1>;
-		interrupts = <16 17 18 19 20 21 22 23 24 25>;
-	};
diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.yaml
new file mode 100644
index 000000000000..9d248ef7fe3d
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.yaml
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/snps,archs-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARC-HS incore Interrupt Controller
+
+maintainers:
+  - Vineet Gupta <vgupta@kernel.org>
+
+description:
+  ARC-HS incore Interrupt Controller provided by cores implementing ARCv2 ISA.
+  intc accessed via the special ARC AUX register interface, hence "reg" property
+  is not specified.
+
+properties:
+  compatible:
+    const: snps,archs-intc
+
+  interrupt-controller: true
+
+  '#interrupt-cells':
+    const: 1
+
+  interrupts:
+    description: List of IRQ numbers between 16 and 256
+    items:
+      items:
+        - minimum: 16
+          maximum: 256
+
+required:
+  - compatible
+  - interrupt-controller
+  - '#interrupt-cells'
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    interrupt-controller {
+        compatible = "snps,archs-intc";
+        interrupt-controller;
+        #interrupt-cells = <1>;
+        interrupts = <16>, <17>, <18>, <19>, <20>, <21>, <22>, <23>, <24>, <25>;
+    };
-- 
2.47.2


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

* Re: [PATCH] dt-bindings: interrupt-controller: Convert snps,archs-intc to DT schema
  2025-05-05 14:48 [PATCH] dt-bindings: interrupt-controller: Convert snps,archs-intc to DT schema Rob Herring (Arm)
@ 2025-05-25  2:45 ` Vineet Gupta
  0 siblings, 0 replies; 2+ messages in thread
From: Vineet Gupta @ 2025-05-25  2:45 UTC (permalink / raw)
  To: Rob Herring (Arm), Vineet Gupta, Thomas Gleixner,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-snps-arc, linux-kernel, devicetree



On 5/5/25 07:48, Rob Herring (Arm) wrote:
> Convert the ARC-HS incore interrupt controller binding to schema format.
> It's a straight-forward conversion of the typical interrupt controller.
>
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>



Acked-by: Vineet Gupta <vgupta@kernel.org>

Thx,
-Vineet

> ---
>  .../interrupt-controller/snps,archs-intc.txt  | 22 ---------
>  .../interrupt-controller/snps,archs-intc.yaml | 48 +++++++++++++++++++
>  2 files changed, 48 insertions(+), 22 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.txt
>  create mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.yaml
>
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.txt
> deleted file mode 100644
> index 69f326d6a5ad..000000000000
> --- a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.txt
> +++ /dev/null
> @@ -1,22 +0,0 @@
> -* ARC-HS incore Interrupt Controller (Provided by cores implementing ARCv2 ISA)
> -
> -Properties:
> -
> -- compatible: "snps,archs-intc"
> -- interrupt-controller: This is an interrupt controller.
> -- #interrupt-cells: Must be <1>.
> -
> -  Single Cell "interrupts" property of a device specifies the IRQ number
> -  between 16 to 256
> -
> -  intc accessed via the special ARC AUX register interface, hence "reg" property
> -  is not specified.
> -
> -Example:
> -
> -	intc: interrupt-controller {
> -		compatible = "snps,archs-intc";
> -		interrupt-controller;
> -		#interrupt-cells = <1>;
> -		interrupts = <16 17 18 19 20 21 22 23 24 25>;
> -	};
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.yaml
> new file mode 100644
> index 000000000000..9d248ef7fe3d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-intc.yaml
> @@ -0,0 +1,48 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/interrupt-controller/snps,archs-intc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ARC-HS incore Interrupt Controller
> +
> +maintainers:
> +  - Vineet Gupta <vgupta@kernel.org>
> +
> +description:
> +  ARC-HS incore Interrupt Controller provided by cores implementing ARCv2 ISA.
> +  intc accessed via the special ARC AUX register interface, hence "reg" property
> +  is not specified.
> +
> +properties:
> +  compatible:
> +    const: snps,archs-intc
> +
> +  interrupt-controller: true
> +
> +  '#interrupt-cells':
> +    const: 1
> +
> +  interrupts:
> +    description: List of IRQ numbers between 16 and 256
> +    items:
> +      items:
> +        - minimum: 16
> +          maximum: 256
> +
> +required:
> +  - compatible
> +  - interrupt-controller
> +  - '#interrupt-cells'
> +  - interrupts
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    interrupt-controller {
> +        compatible = "snps,archs-intc";
> +        interrupt-controller;
> +        #interrupt-cells = <1>;
> +        interrupts = <16>, <17>, <18>, <19>, <20>, <21>, <22>, <23>, <24>, <25>;
> +    };


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

end of thread, other threads:[~2025-05-25  2:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-05 14:48 [PATCH] dt-bindings: interrupt-controller: Convert snps,archs-intc to DT schema Rob Herring (Arm)
2025-05-25  2:45 ` Vineet Gupta

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).