2024-06-12 15:18:19

by Andrew Davis

[permalink] [raw]
Subject: [PATCH] dt-bindings: interrupt-controller: lsi,zevio-intc: convert to YAML

Convert Zevio interrupt controller bindings to DT schema.

Signed-off-by: Andrew Davis <[email protected]>
---
.../interrupt-controller/lsi,zevio-intc.txt | 18 --------
.../interrupt-controller/lsi,zevio-intc.yaml | 42 +++++++++++++++++++
2 files changed, 42 insertions(+), 18 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/lsi,zevio-intc.txt
create mode 100644 Documentation/devicetree/bindings/interrupt-controller/lsi,zevio-intc.yaml

diff --git a/Documentation/devicetree/bindings/interrupt-controller/lsi,zevio-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/lsi,zevio-intc.txt
deleted file mode 100644
index aee38e7c13e7d..0000000000000
--- a/Documentation/devicetree/bindings/interrupt-controller/lsi,zevio-intc.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-TI-NSPIRE interrupt controller
-
-Required properties:
-- compatible: Compatible property value should be "lsi,zevio-intc".
-
-- reg: Physical base address of the controller and length of memory mapped
- region.
-
-- interrupt-controller : Identifies the node as an interrupt controller
-
-Example:
-
-interrupt-controller {
- compatible = "lsi,zevio-intc";
- interrupt-controller;
- reg = <0xDC000000 0x1000>;
- #interrupt-cells = <1>;
-};
diff --git a/Documentation/devicetree/bindings/interrupt-controller/lsi,zevio-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/lsi,zevio-intc.yaml
new file mode 100644
index 0000000000000..2b77d84ddae17
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/lsi,zevio-intc.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/lsi,zevio-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI NSPIRE interrupt controller
+
+maintainers:
+ - Andrew Davis <[email protected]>
+
+allOf:
+ - $ref: /schemas/interrupt-controller.yaml#
+
+properties:
+ compatible:
+ const: lsi,zevio-intc
+
+ reg:
+ maxItems: 1
+
+ interrupt-controller: true
+
+ "#interrupt-cells":
+ const: 1
+
+required:
+ - compatible
+ - reg
+ - "#interrupt-cells"
+ - interrupt-controller
+
+additionalProperties: false
+
+examples:
+ - |
+ interrupt-controller@dc000000 {
+ compatible = "lsi,zevio-intc";
+ reg = <0xdc000000 0x1000>;
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ };
--
2.39.2



2024-06-12 16:28:29

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: interrupt-controller: lsi,zevio-intc: convert to YAML

On Wed, Jun 12, 2024 at 10:10:23AM -0500, Andrew Davis wrote:
> Convert Zevio interrupt controller bindings to DT schema.
>
> Signed-off-by: Andrew Davis <[email protected]>

Reviewed-by: Conor Dooley <[email protected]>

Thanks,
Conor.


Attachments:
(No filename) (249.00 B)
signature.asc (235.00 B)
Download all attachments