Commit 3cdb0157 authored by Paul Walmsley's avatar Paul Walmsley

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: default avatarPaul Walmsley <paul.walmsley@sifive.com>
Cc: Rob Herring <robh@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org> # for fixing the dtc warnings
parent 45b03df2
...@@ -152,17 +152,19 @@ examples: ...@@ -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";
};
};
}; };
... ...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment