Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+14 -12
+14 -12
Documentation/devicetree/bindings/riscv/cpus.yaml
··· 152 152 - | 153 153 // Example 2: Spike ISA Simulator with 1 Hart 154 154 cpus { 155 - cpu@0 { 156 - device_type = "cpu"; 157 - reg = <0>; 158 - compatible = "riscv"; 159 - riscv,isa = "rv64imafdc"; 160 - mmu-type = "riscv,sv48"; 161 - interrupt-controller { 162 - #interrupt-cells = <1>; 163 - interrupt-controller; 164 - compatible = "riscv,cpu-intc"; 165 - }; 166 - }; 155 + #address-cells = <1>; 156 + #size-cells = <0>; 157 + cpu@0 { 158 + device_type = "cpu"; 159 + reg = <0>; 160 + compatible = "riscv"; 161 + riscv,isa = "rv64imafdc"; 162 + mmu-type = "riscv,sv48"; 163 + interrupt-controller { 164 + #interrupt-cells = <1>; 165 + interrupt-controller; 166 + compatible = "riscv,cpu-intc"; 167 + }; 168 + }; 167 169 }; 168 170 ...