]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
dt-bindings: riscv: cpus: add ref to interrupt-controller
authorKanak Shilledar <kanakshilledar@gmail.com>
Sat, 15 Jun 2024 02:15:04 +0000 (07:45 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 24 Jun 2024 20:26:56 +0000 (13:26 -0700)
removed the redundant properties for interrupt-controller
and provide reference to the riscv,cpu-intc.yaml which defines
the interrupt-controller. making the properties for riscv
interrupt-controller at a central place.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Kanak Shilledar <kanakshilledar@gmail.com>
Link: https://lore.kernel.org/r/20240615021507.122035-3-kanakshilledar@gmail.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Documentation/devicetree/bindings/riscv/cpus.yaml

index d87dd50f1a4b577f525353660cb5fe82493b52f4..f1241e5e8753b600d9958ab9467042638766fce3 100644 (file)
@@ -102,26 +102,7 @@ properties:
 
   interrupt-controller:
     type: object
-    additionalProperties: false
-    description: Describes the CPU's local interrupt controller
-
-    properties:
-      '#interrupt-cells':
-        const: 1
-
-      compatible:
-        oneOf:
-          - items:
-              - const: andestech,cpu-intc
-              - const: riscv,cpu-intc
-          - const: riscv,cpu-intc
-
-      interrupt-controller: true
-
-    required:
-      - '#interrupt-cells'
-      - compatible
-      - interrupt-controller
+    $ref: /schemas/interrupt-controller/riscv,cpu-intc.yaml#
 
   cpu-idle-states:
     $ref: /schemas/types.yaml#/definitions/phandle-array