dt-bindings: riscv: resolve 'make dt_binding_check' warnings

Rob pointed out that one of the examples in the RISC-V 'cpus' YAML
schema results in warnings from 'make dt_binding_check'.  Fix these.

While here, make the whitespace in the second example consistent
with the first example.

Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Rob Herring <robh@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org> # for fixing the dtc warnings
This commit is contained in:
Paul Walmsley 2019-06-26 08:19:29 -07:00
parent 45b03df286
commit 3cdb015788

View File

@ -152,17 +152,19 @@ examples:
- | - |
// Example 2: Spike ISA Simulator with 1 Hart // Example 2: Spike ISA Simulator with 1 Hart
cpus { cpus {
cpu@0 { #address-cells = <1>;
device_type = "cpu"; #size-cells = <0>;
reg = <0>; cpu@0 {
compatible = "riscv"; device_type = "cpu";
riscv,isa = "rv64imafdc"; reg = <0>;
mmu-type = "riscv,sv48"; compatible = "riscv";
interrupt-controller { riscv,isa = "rv64imafdc";
#interrupt-cells = <1>; mmu-type = "riscv,sv48";
interrupt-controller; interrupt-controller {
compatible = "riscv,cpu-intc"; #interrupt-cells = <1>;
}; interrupt-controller;
}; compatible = "riscv,cpu-intc";
};
};
}; };
... ...