dt-bindings: interrupt-controller: Convert rda,8810pl-intc to YAML
authorStanislav Jakubek <stano.jakubek@gmail.com>
Sat, 11 Jun 2022 18:07:03 +0000 (20:07 +0200)
committerRob Herring <robh@kernel.org>
Thu, 16 Jun 2022 18:01:14 +0000 (12:01 -0600)
Convert RDA Micro interrupt controller bindings to DT schema format.

Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220611180703.GA24988@standask-GA-A55M-S2HP
Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt [deleted file]
Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.yaml [new file with mode: 0644]
MAINTAINERS

diff --git a/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt
deleted file mode 100644 (file)
index e0062ae..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-RDA Micro RDA8810PL Interrupt Controller
-
-The interrupt controller in RDA8810PL SoC is a custom interrupt controller
-which supports up to 32 interrupts.
-
-Required properties:
-
-- compatible: Should be "rda,8810pl-intc".
-- reg: Specifies base physical address of the registers set.
-- 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 2.
-
-The interrupt sources are as follows:
-
-ID     Name
-------------
-0:     PULSE_DUMMY
-1:     I2C
-2:     NAND_NFSC
-3:     SDMMC1
-4:     SDMMC2
-5:     SDMMC3
-6:     SPI1
-7:     SPI2
-8:     SPI3
-9:     UART1
-10:    UART2
-11:    UART3
-12:    GPIO1
-13:    GPIO2
-14:    GPIO3
-15:    KEYPAD
-16:    TIMER
-17:    TIMEROS
-18:    COMREG0
-19:    COMREG1
-20:    USB
-21:    DMC
-22:    DMA
-23:    CAMERA
-24:    GOUDA
-25:    GPU
-26:    VPU_JPG
-27:    VPU_HOST
-28:    VOC
-29:    AUIFC0
-30:    AUIFC1
-31:    L2CC
-
-Example:
-               apb@20800000 {
-                       compatible = "simple-bus";
-                       ...
-                       intc: interrupt-controller@0 {
-                               compatible = "rda,8810pl-intc";
-                               reg = <0x0 0x1000>;
-                               interrupt-controller;
-                               #interrupt-cells = <2>;
-                       };
-               };
diff --git a/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.yaml
new file mode 100644 (file)
index 0000000..96d6285
--- /dev/null
@@ -0,0 +1,43 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/rda,8810pl-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: RDA Micro RDA8810PL interrupt controller
+
+maintainers:
+  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
+
+allOf:
+  - $ref: /schemas/interrupt-controller.yaml#
+
+properties:
+  compatible:
+    const: rda,8810pl-intc
+
+  reg:
+    maxItems: 1
+
+  interrupt-controller: true
+
+  '#interrupt-cells':
+    const: 2
+
+required:
+  - compatible
+  - reg
+  - interrupt-controller
+  - '#interrupt-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    intc: interrupt-controller@0 {
+      compatible = "rda,8810pl-intc";
+      reg = <0x0 0x1000>;
+      interrupt-controller;
+      #interrupt-cells = <2>;
+    };
+...
index a6d3bd9..adc518f 100644 (file)
@@ -2587,7 +2587,7 @@ L:        linux-unisoc@lists.infradead.org (moderated for non-subscribers)
 S:     Maintained
 F:     Documentation/devicetree/bindings/arm/rda.yaml
 F:     Documentation/devicetree/bindings/gpio/gpio-rda.yaml
-F:     Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt
+F:     Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.yaml
 F:     Documentation/devicetree/bindings/serial/rda,8810pl-uart.yaml
 F:     Documentation/devicetree/bindings/timer/rda,8810pl-timer.yaml
 F:     arch/arm/boot/dts/rda8810pl-*