Message ID | 20220317115542.450032-1-krzysztof.kozlowski@canonical.com |
---|---|
Headers | show |
Series | dt-bindings: irqchip: include generic schema | expand |
On Thu, Mar 17, 2022 at 12:57:01PM +0100, Krzysztof Kozlowski 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: Jonathan Neuschäfer <j.neuschaefer@gmx.net> > .../bindings/interrupt-controller/nuvoton,wpcm450-aic.yaml | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/nuvoton,wpcm450-aic.yaml b/Documentation/devicetree/bindings/interrupt-controller/nuvoton,wpcm450-aic.yaml > index 9ce6804bdb99..285c20de0962 100644 > --- a/Documentation/devicetree/bindings/interrupt-controller/nuvoton,wpcm450-aic.yaml > +++ b/Documentation/devicetree/bindings/interrupt-controller/nuvoton,wpcm450-aic.yaml > @@ -9,6 +9,9 @@ title: Nuvoton WPCM450 Advanced Interrupt Controller bindings > maintainers: > - Jonathan Neuschäfer <j.neuschaefer@gmx.net> > > +allOf: > + - $ref: /schemas/interrupt-controller.yaml# > + > properties: > '#interrupt-cells': > const: 2 > @@ -21,14 +24,14 @@ properties: > reg: > maxItems: 1 > > -additionalProperties: false > - > required: > - '#interrupt-cells' > - compatible > - reg > - interrupt-controller > > +unevaluatedProperties: false > + > examples: > - | > aic: interrupt-controller@b8002000 { > -- > 2.32.0 >
On 3/17/22 06:56, Krzysztof Kozlowski wrote: > Fixes dtbs_check warnings like: > > $nodename:0: 'intc@fffed000' does not match '^interrupt-controller(@[0-9a-f,]+)*$' > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> > --- > arch/arm/boot/dts/socfpga.dtsi | 2 +- > arch/arm/boot/dts/socfpga_arria10.dtsi | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi > index 7c1d6423d7f8..b8c5dd7860cb 100644 > --- a/arch/arm/boot/dts/socfpga.dtsi > +++ b/arch/arm/boot/dts/socfpga.dtsi > @@ -46,7 +46,7 @@ pmu: pmu@ff111000 { > <0xff113000 0x1000>; > }; > > - intc: intc@fffed000 { > + intc: interrupt-controller@fffed000 { > compatible = "arm,cortex-a9-gic"; > #interrupt-cells = <3>; > interrupt-controller; > diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch/arm/boot/dts/socfpga_arria10.dtsi > index 3ba431dfa8c9..f1e50d2e623a 100644 > --- a/arch/arm/boot/dts/socfpga_arria10.dtsi > +++ b/arch/arm/boot/dts/socfpga_arria10.dtsi > @@ -38,7 +38,7 @@ pmu: pmu@ff111000 { > <0xff113000 0x1000>; > }; > > - intc: intc@ffffd000 { > + intc: interrupt-controller@ffffd000 { > compatible = "arm,cortex-a9-gic"; > #interrupt-cells = <3>; > interrupt-controller; Acked-by: Dinh Nguyen <dinguyen@kernel.org>
On 17.03.2022 13:56, Krzysztof Kozlowski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > Include generic interrupt-controller.yaml schema, which enforces node > naming and other generic properties. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Acked-by: Claudiu Beznea <claudiu.beznea@microchip.com> > --- > .../bindings/interrupt-controller/microchip,eic.yaml | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/microchip,eic.yaml b/Documentation/devicetree/bindings/interrupt-controller/microchip,eic.yaml > index 50003880ee6f..6ef8632b3f5e 100644 > --- a/Documentation/devicetree/bindings/interrupt-controller/microchip,eic.yaml > +++ b/Documentation/devicetree/bindings/interrupt-controller/microchip,eic.yaml > @@ -13,6 +13,9 @@ description: > This interrupt controller is found in Microchip SoCs (SAMA7G5) and provides > support for handling up to 2 external interrupt lines. > > +allOf: > + - $ref: /schemas/interrupt-controller.yaml# > + > properties: > compatible: > enum: > @@ -51,7 +54,7 @@ required: > - clocks > - clock-names > > -additionalProperties: false > +unevaluatedProperties: false > > examples: > - | > -- > 2.32.0 >