* [PATCH] dt-bindings: interrupt-controller: Convert snps,archs-idu-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 Interrupt Distribution Unit 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>
---
.../snps,archs-idu-intc.txt | 46 ------------------
.../snps,archs-idu-intc.yaml | 48 +++++++++++++++++++
2 files changed, 48 insertions(+), 46 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt
create mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.yaml
diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt
deleted file mode 100644
index a5c1db95b3ec..000000000000
--- a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt
+++ /dev/null
@@ -1,46 +0,0 @@
-* ARC-HS Interrupt Distribution Unit
-
- This optional 2nd level interrupt controller can be used in SMP configurations
- for dynamic IRQ routing, load balancing of common/external IRQs towards core
- intc.
-
-Properties:
-
-- compatible: "snps,archs-idu-intc"
-- interrupt-controller: This is an interrupt controller.
-- #interrupt-cells: Must be <1> or <2>.
-
- Value of the first cell specifies the "common" IRQ from peripheral to IDU.
- Number N of the particular interrupt line of IDU corresponds to the line N+24
- of the core interrupt controller.
-
- The (optional) second cell specifies any of the following flags:
- - bits[3:0] trigger type and level flags
- 1 = low-to-high edge triggered
- 2 = NOT SUPPORTED (high-to-low edge triggered)
- 4 = active high level-sensitive <<< DEFAULT
- 8 = NOT SUPPORTED (active low level-sensitive)
- When no second cell is specified, the interrupt is assumed to be level
- sensitive.
-
- The interrupt controller is accessed via the special ARC AUX register
- interface, hence "reg" property is not specified.
-
-Example:
- core_intc: core-interrupt-controller {
- compatible = "snps,archs-intc";
- interrupt-controller;
- #interrupt-cells = <1>;
- };
-
- idu_intc: idu-interrupt-controller {
- compatible = "snps,archs-idu-intc";
- interrupt-controller;
- interrupt-parent = <&core_intc>;
- #interrupt-cells = <1>;
- };
-
- some_device: serial@c0fc1000 {
- interrupt-parent = <&idu_intc>;
- interrupts = <0>; /* upstream idu IRQ #24 */
- };
diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.yaml
new file mode 100644
index 000000000000..286a964f23e1
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-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/snps,archs-idu-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARC-HS Interrupt Distribution Unit
+
+maintainers:
+ - Vineet Gupta <vgupta@kernel.org>
+
+description: >
+ ARC-HS Interrupt Distribution Unit is an optional 2nd level interrupt
+ controller which can be used in SMP configurations for dynamic IRQ routing,
+ load balancing of common/external IRQs towards core intc.
+
+ The interrupt controller is accessed via the special ARC AUX register
+ interface, hence "reg" property is not specified.
+
+properties:
+ compatible:
+ const: snps,archs-idu-intc
+
+ interrupt-controller: true
+
+ '#interrupt-cells':
+ description: |
+ Number of interrupt specifier cells:
+ - 1: only a common IRQ is specified.
+ - 2: a second cell encodes trigger type and level flags:
+ 1 = low-to-high edge triggered
+ 4 = active high level-sensitive (default)
+ enum: [1, 2]
+
+required:
+ - compatible
+ - interrupt-controller
+ - '#interrupt-cells'
+
+additionalProperties: false
+
+examples:
+ - |
+ interrupt-controller {
+ compatible = "snps,archs-idu-intc";
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ };
--
2.47.2
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: interrupt-controller: Convert snps,archs-idu-intc to DT schema
2025-05-05 14:48 [PATCH] dt-bindings: interrupt-controller: Convert snps,archs-idu-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 Interrupt Distribution Unit 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
> ---
> .../snps,archs-idu-intc.txt | 46 ------------------
> .../snps,archs-idu-intc.yaml | 48 +++++++++++++++++++
> 2 files changed, 48 insertions(+), 46 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt
> create mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.yaml
>
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt
> deleted file mode 100644
> index a5c1db95b3ec..000000000000
> --- a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt
> +++ /dev/null
> @@ -1,46 +0,0 @@
> -* ARC-HS Interrupt Distribution Unit
> -
> - This optional 2nd level interrupt controller can be used in SMP configurations
> - for dynamic IRQ routing, load balancing of common/external IRQs towards core
> - intc.
> -
> -Properties:
> -
> -- compatible: "snps,archs-idu-intc"
> -- interrupt-controller: This is an interrupt controller.
> -- #interrupt-cells: Must be <1> or <2>.
> -
> - Value of the first cell specifies the "common" IRQ from peripheral to IDU.
> - Number N of the particular interrupt line of IDU corresponds to the line N+24
> - of the core interrupt controller.
> -
> - The (optional) second cell specifies any of the following flags:
> - - bits[3:0] trigger type and level flags
> - 1 = low-to-high edge triggered
> - 2 = NOT SUPPORTED (high-to-low edge triggered)
> - 4 = active high level-sensitive <<< DEFAULT
> - 8 = NOT SUPPORTED (active low level-sensitive)
> - When no second cell is specified, the interrupt is assumed to be level
> - sensitive.
> -
> - The interrupt controller is accessed via the special ARC AUX register
> - interface, hence "reg" property is not specified.
> -
> -Example:
> - core_intc: core-interrupt-controller {
> - compatible = "snps,archs-intc";
> - interrupt-controller;
> - #interrupt-cells = <1>;
> - };
> -
> - idu_intc: idu-interrupt-controller {
> - compatible = "snps,archs-idu-intc";
> - interrupt-controller;
> - interrupt-parent = <&core_intc>;
> - #interrupt-cells = <1>;
> - };
> -
> - some_device: serial@c0fc1000 {
> - interrupt-parent = <&idu_intc>;
> - interrupts = <0>; /* upstream idu IRQ #24 */
> - };
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.yaml
> new file mode 100644
> index 000000000000..286a964f23e1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-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/snps,archs-idu-intc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ARC-HS Interrupt Distribution Unit
> +
> +maintainers:
> + - Vineet Gupta <vgupta@kernel.org>
> +
> +description: >
> + ARC-HS Interrupt Distribution Unit is an optional 2nd level interrupt
> + controller which can be used in SMP configurations for dynamic IRQ routing,
> + load balancing of common/external IRQs towards core intc.
> +
> + The interrupt controller is accessed via the special ARC AUX register
> + interface, hence "reg" property is not specified.
> +
> +properties:
> + compatible:
> + const: snps,archs-idu-intc
> +
> + interrupt-controller: true
> +
> + '#interrupt-cells':
> + description: |
> + Number of interrupt specifier cells:
> + - 1: only a common IRQ is specified.
> + - 2: a second cell encodes trigger type and level flags:
> + 1 = low-to-high edge triggered
> + 4 = active high level-sensitive (default)
> + enum: [1, 2]
> +
> +required:
> + - compatible
> + - interrupt-controller
> + - '#interrupt-cells'
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + interrupt-controller {
> + compatible = "snps,archs-idu-intc";
> + interrupt-controller;
> + #interrupt-cells = <1>;
> + };
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
^ 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-idu-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).