]> www.infradead.org Git - users/hch/misc.git/commitdiff
dt-bindings: arm: gic: Allow combining arm,gic-400 compatible strings
authorAndre Przywara <andre.przywara@arm.com>
Wed, 13 May 2020 10:29:57 +0000 (11:29 +0100)
committerRob Herring <robh@kernel.org>
Fri, 15 May 2020 03:16:08 +0000 (22:16 -0500)
The arm,gic-400 compatible is probably the best matching string for the
GIC in most modern SoCs, but was only introduced later into the kernel.
For historic reasons and to keep compatibility, some SoC DTs were thus
using a combination of this name and one of the older strings, which
currently the binding denies.

Add a stanza to the DT binding to allow "arm,gic-400", followed by
either "arm,cortex-a15-gic" or "arm,cortex-a7-gic". This fixes binding
compliance for quite some SoC .dtsi files in the kernel tree.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml

index 9a47820ef34649dd17fcfbdf262808e1e2ea99d4..3ab258c82930ae9b4c1abd5283731587a830d7b3 100644 (file)
@@ -39,6 +39,12 @@ properties:
               - qcom,msm-8660-qgic
               - qcom,msm-qgic2
 
+      - items:
+          - const: arm,gic-400
+          - enum:
+             - arm,cortex-a15-gic
+             - arm,cortex-a7-gic
+
       - items:
           - const: arm,arm1176jzf-devchip-gic
           - const: arm,arm11mp-gic