aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2019-05-21 14:09:26 -0400
committerRob Herring <robh@kernel.org>2019-05-22 10:06:11 -0400
commit8d665693c28c88d38e4b7e015d3135c1875c89f6 (patch)
tree0e0935a9f107ac9074bb3e6dfaea1c7491114d16
parent31910f4476ce8b231164e7c0c17a87a8654bb5f2 (diff)
dt-bindings: interrupt-controller: arm,gic: Fix schema errors in example
Validating the examples against the schema have a few errors: arm,gic.example.dt.yaml: 'ranges' does not match any of the regexes: '^v2m@[0-9a-f]+$', 'pinctrl-[0-9]+' arm,gic.example.dt.yaml: #address-cells:0:0: 2 is not one of [0, 1] arm,gic.example.dt.yaml: #size-cells:0:0: 1 was expected 'ranges' is valid, but missing from the schema, so add it. The reg addresses and sizes don't match the schema requirements and the example template. We could just override the example template to use 64-bit addresses, but there's not really any value showing that in the example. Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml24
1 files changed, 13 insertions, 11 deletions
diff --git a/Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml b/Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml
index 54838d4ea44c..9a47820ef346 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml
@@ -92,6 +92,8 @@ properties:
92 minItems: 2 92 minItems: 2
93 maxItems: 4 93 maxItems: 4
94 94
95 ranges: true
96
95 interrupts: 97 interrupts:
96 description: Interrupt source of the parent interrupt controller on 98 description: Interrupt source of the parent interrupt controller on
97 secondary GICs, or VGIC maintenance interrupt on primary GIC (see 99 secondary GICs, or VGIC maintenance interrupt on primary GIC (see
@@ -197,28 +199,28 @@ examples:
197 interrupt-controller@e1101000 { 199 interrupt-controller@e1101000 {
198 compatible = "arm,gic-400"; 200 compatible = "arm,gic-400";
199 #interrupt-cells = <3>; 201 #interrupt-cells = <3>;
200 #address-cells = <2>; 202 #address-cells = <1>;
201 #size-cells = <2>; 203 #size-cells = <1>;
202 interrupt-controller; 204 interrupt-controller;
203 interrupts = <1 8 0xf04>; 205 interrupts = <1 8 0xf04>;
204 ranges = <0 0 0 0xe1100000 0 0x100000>; 206 ranges = <0 0xe1100000 0x100000>;
205 reg = <0x0 0xe1110000 0 0x01000>, 207 reg = <0xe1110000 0x01000>,
206 <0x0 0xe112f000 0 0x02000>, 208 <0xe112f000 0x02000>,
207 <0x0 0xe1140000 0 0x10000>, 209 <0xe1140000 0x10000>,
208 <0x0 0xe1160000 0 0x10000>; 210 <0xe1160000 0x10000>;
209 211
210 v2m0: v2m@8000 { 212 v2m0: v2m@80000 {
211 compatible = "arm,gic-v2m-frame"; 213 compatible = "arm,gic-v2m-frame";
212 msi-controller; 214 msi-controller;
213 reg = <0x0 0x80000 0 0x1000>; 215 reg = <0x80000 0x1000>;
214 }; 216 };
215 217
216 //... 218 //...
217 219
218 v2mN: v2m@9000 { 220 v2mN: v2m@90000 {
219 compatible = "arm,gic-v2m-frame"; 221 compatible = "arm,gic-v2m-frame";
220 msi-controller; 222 msi-controller;
221 reg = <0x0 0x90000 0 0x1000>; 223 reg = <0x90000 0x1000>;
222 }; 224 };
223 }; 225 };
224... 226...