2022-03-17 12:48:31

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH 16/18] dt-bindings: irqchip: renesas: include generic schema

Include generic interrupt-controller.yaml schema, which enforces node
naming and other generic properties.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
.../renesas,intc-irqpin.yaml | 28 ++++++++++---------
.../interrupt-controller/renesas,irqc.yaml | 5 +++-
2 files changed, 19 insertions(+), 14 deletions(-)

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 <[email protected]>

+allOf:
+ - $ref: /schemas/interrupt-controller.yaml#
+
properties:
compatible:
items:
@@ -70,7 +73,7 @@ required:
- interrupts
- clocks

-additionalProperties: false
+unevaluatedProperties: false

examples:
- |
--
2.32.0


2022-03-18 13:51:56

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [PATCH 16/18] dt-bindings: irqchip: renesas: include generic schema

On Thu, Mar 17, 2022 at 12:58 PM Krzysztof Kozlowski
<[email protected]> wrote:
> Include generic interrupt-controller.yaml schema, which enforces node
> naming and other generic properties.
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>

Reviewed-by: Geert Uytterhoeven <[email protected]>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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