Message ID | 20220317115705.450427-15-krzysztof.kozlowski@canonical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | dt-bindings: irqchip: include generic schema | expand |
On Thu, Mar 17, 2022 at 12:58 PM Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> wrote: > Include generic interrupt-controller.yaml schema, which enforces node > naming and other generic properties. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
diff --git a/Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqpin.yaml b/Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqpin.yaml index f4aae56c6469..2a55581e0f4f 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqpin.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqpin.yaml @@ -65,19 +65,21 @@ required: - '#interrupt-cells' - interrupts -if: - properties: - compatible: - contains: - enum: - - renesas,intc-irqpin-r8a7740 - - renesas,intc-irqpin-sh73a0 -then: - required: - - clocks - - power-domains - -additionalProperties: false +allOf: + - $ref: /schemas/interrupt-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - renesas,intc-irqpin-r8a7740 + - renesas,intc-irqpin-sh73a0 + then: + required: + - clocks + - power-domains + +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.yaml b/Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.yaml index 620f01775e42..ab827bd8590f 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.yaml @@ -9,6 +9,9 @@ title: DT bindings for the R-Mobile/R-Car/RZ/G interrupt controller maintainers: - Geert Uytterhoeven <geert+renesas@glider.be> +allOf: + - $ref: /schemas/interrupt-controller.yaml# + properties: compatible: items: @@ -70,7 +73,7 @@ required: - interrupts - clocks -additionalProperties: false +unevaluatedProperties: false examples: - |
Include generic interrupt-controller.yaml schema, which enforces node naming and other generic properties. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> --- .../renesas,intc-irqpin.yaml | 28 ++++++++++--------- .../interrupt-controller/renesas,irqc.yaml | 5 +++- 2 files changed, 19 insertions(+), 14 deletions(-)