[PATCH] dt-bindings: interrupt-controller: Convert cnxt,cx92755-ic to DT schema

Rob Herring (Arm) posted 1 patch 9 months, 1 week ago
.../interrupt-controller/cnxt,cx92755-ic.yaml | 47 +++++++++++++++++++
.../interrupt-controller/digicolor-ic.txt     | 21 ---------
2 files changed, 47 insertions(+), 21 deletions(-)
create mode 100644 Documentation/devicetree/bindings/interrupt-controller/cnxt,cx92755-ic.yaml
delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/digicolor-ic.txt
[PATCH] dt-bindings: interrupt-controller: Convert cnxt,cx92755-ic to DT schema
Posted by Rob Herring (Arm) 9 months, 1 week ago
Convert the Conexant Digicolor 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/cnxt,cx92755-ic.yaml | 47 +++++++++++++++++++
 .../interrupt-controller/digicolor-ic.txt     | 21 ---------
 2 files changed, 47 insertions(+), 21 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/cnxt,cx92755-ic.yaml
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/digicolor-ic.txt

diff --git a/Documentation/devicetree/bindings/interrupt-controller/cnxt,cx92755-ic.yaml b/Documentation/devicetree/bindings/interrupt-controller/cnxt,cx92755-ic.yaml
new file mode 100644
index 000000000000..3f016cf47812
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/cnxt,cx92755-ic.yaml
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/cnxt,cx92755-ic.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Conexant Digicolor Interrupt Controller
+
+maintainers:
+  - Baruch Siach <baruch@tkos.co.il>
+
+description: Conexant Digicolor Interrupt Controller
+
+properties:
+  compatible:
+    const: cnxt,cx92755-ic
+
+  reg:
+    maxItems: 1
+
+  interrupt-controller: true
+
+  '#interrupt-cells':
+    const: 1
+
+  syscon:
+    description: A phandle to the syscon node describing UC registers
+    $ref: /schemas/types.yaml#/definitions/phandle
+
+required:
+  - compatible
+  - reg
+  - interrupt-controller
+  - '#interrupt-cells'
+  - syscon
+
+additionalProperties: false
+
+examples:
+  - |
+    interrupt-controller@f0000040 {
+        compatible = "cnxt,cx92755-ic";
+        interrupt-controller;
+        #interrupt-cells = <1>;
+        reg = <0xf0000040 0x40>;
+        syscon = <&uc_regs>;
+    };
diff --git a/Documentation/devicetree/bindings/interrupt-controller/digicolor-ic.txt b/Documentation/devicetree/bindings/interrupt-controller/digicolor-ic.txt
deleted file mode 100644
index 42d41ec84c7b..000000000000
--- a/Documentation/devicetree/bindings/interrupt-controller/digicolor-ic.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-Conexant Digicolor Interrupt Controller
-
-Required properties:
-
-- compatible : should be "cnxt,cx92755-ic"
-- reg : Specifies base physical address and size of the interrupt controller
-  registers (IC) area
-- 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.
-- syscon: A phandle to the syscon node describing UC registers
-
-Example:
-
-	intc: interrupt-controller@f0000040 {
-		compatible = "cnxt,cx92755-ic";
-		interrupt-controller;
-		#interrupt-cells = <1>;
-		reg = <0xf0000040 0x40>;
-		syscon = <&uc_regs>;
-	};
-- 
2.47.2
Re: [PATCH] dt-bindings: interrupt-controller: Convert cnxt,cx92755-ic to DT schema
Posted by Baruch Siach 9 months, 1 week ago
Hi Rob,

On Mon, May 05 2025, Rob Herring (Arm) wrote:

> Convert the Conexant Digicolor 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: Baruch Siach <baruch@tkos.co.il>

Thanks,
baruch

> ---
>  .../interrupt-controller/cnxt,cx92755-ic.yaml | 47 +++++++++++++++++++
>  .../interrupt-controller/digicolor-ic.txt     | 21 ---------
>  2 files changed, 47 insertions(+), 21 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/interrupt-controller/cnxt,cx92755-ic.yaml
>  delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/digicolor-ic.txt
>
> diff --git
> a/Documentation/devicetree/bindings/interrupt-controller/cnxt,cx92755-ic.yaml
> b/Documentation/devicetree/bindings/interrupt-controller/cnxt,cx92755-ic.yaml
> new file mode 100644
> index 000000000000..3f016cf47812
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/interrupt-controller/cnxt,cx92755-ic.yaml
> @@ -0,0 +1,47 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/interrupt-controller/cnxt,cx92755-ic.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Conexant Digicolor Interrupt Controller
> +
> +maintainers:
> +  - Baruch Siach <baruch@tkos.co.il>
> +
> +description: Conexant Digicolor Interrupt Controller
> +
> +properties:
> +  compatible:
> +    const: cnxt,cx92755-ic
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupt-controller: true
> +
> +  '#interrupt-cells':
> +    const: 1
> +
> +  syscon:
> +    description: A phandle to the syscon node describing UC registers
> +    $ref: /schemas/types.yaml#/definitions/phandle
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupt-controller
> +  - '#interrupt-cells'
> +  - syscon
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    interrupt-controller@f0000040 {
> +        compatible = "cnxt,cx92755-ic";
> +        interrupt-controller;
> +        #interrupt-cells = <1>;
> +        reg = <0xf0000040 0x40>;
> +        syscon = <&uc_regs>;
> +    };
> diff --git
> a/Documentation/devicetree/bindings/interrupt-controller/digicolor-ic.txt
> b/Documentation/devicetree/bindings/interrupt-controller/digicolor-ic.txt
> deleted file mode 100644
> index 42d41ec84c7b..000000000000
> --- a/Documentation/devicetree/bindings/interrupt-controller/digicolor-ic.txt
> +++ /dev/null
> @@ -1,21 +0,0 @@
> -Conexant Digicolor Interrupt Controller
> -
> -Required properties:
> -
> -- compatible : should be "cnxt,cx92755-ic"
> -- reg : Specifies base physical address and size of the interrupt controller
> -  registers (IC) area
> -- 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.
> -- syscon: A phandle to the syscon node describing UC registers
> -
> -Example:
> -
> -	intc: interrupt-controller@f0000040 {
> -		compatible = "cnxt,cx92755-ic";
> -		interrupt-controller;
> -		#interrupt-cells = <1>;
> -		reg = <0xf0000040 0x40>;
> -		syscon = <&uc_regs>;
> -	};

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -