Skip to contentSkip to conversation

dt-bindings: interrupt-controller: Convert ezchip,nps400-ic to DT schema

PATCH New Rob Herring (Arm) 1 participant 1 message May 5, 2025

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: interrupt-controller: Convert ezchip,nps400-ic to DT schema

Convert the EZchip NPS interrupt controller binding to schema format. It's a straight-forward conversion of the typical interrupt controller.

---
 .../interrupt-controller/ezchip,nps400-ic.txt | 17 ----------
 .../ezchip,nps400-ic.yaml                     | 34 +++++++++++++++++++
 2 files changed, 34 insertions(+), 17 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/ezchip,nps400-ic.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ezchip,nps400-ic.yaml
Documentation/devicetree/bindings/interrupt-controller/ezchip,nps400-ic.txt deleted +0 -17
deleted file mode 100644
index 888b2b9f7064..000000000000
@@ -1,17 +0,0 @@
-EZchip NPS Interrupt Controller
-
-Required properties:
-
-- compatible : should be "ezchip,nps400-ic"
-- interrupt-controller : Identifies the node as an interrupt controller
-- #interrupt-cells : Specifies the number of cells needed to encode an
-  interrupt source. The value shall be 1.
-
-
-Example:
-
-intc: interrupt-controller {
-	compatible = "ezchip,nps400-ic";
-	interrupt-controller;
-	#interrupt-cells = <1>;
-};
Documentation/devicetree/bindings/interrupt-controller/ezchip,nps400-ic.yaml new file +34 -0
new file mode 100644
index 000000000000..589c6ebf6c1a
@@ -0,0 +1,34 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/ezchip,nps400-ic.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: EZchip NPS Interrupt Controller
+
+maintainers:
+  - Noam Camus <[email protected]>
+
+properties:
+  compatible:
+    const: ezchip,nps400-ic
+
+  interrupt-controller: true
+
+  '#interrupt-cells':
+    const: 1
+
+required:
+  - compatible
+  - interrupt-controller
+  - '#interrupt-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    interrupt-controller {
+        compatible = "ezchip,nps400-ic";
+        interrupt-controller;
+        #interrupt-cells = <1>;
+    };
Signature · 1 line
2.47.2