Explorar o código

sandbox: Correct dtc warning in /chosen node

At present dtc produces these warnings when compiling sandbox:

arch/sandbox/dts/test.dtb: Warning (reg_format): "reg" property in /chosen/chosen-test has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
arch/sandbox/dts/test.dtb: Warning (avoid_default_addr_size): Relying on default #address-cells value for /chosen/chosen-test
arch/sandbox/dts/test.dtb: Warning (avoid_default_addr_size): Relying on default #size-cells value for /chosen/chosen-test

Add the missing properties to avoid this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: f200680 (dm: core: parse chosen node)
Simon Glass %!s(int64=7) %!d(string=hai) anos
pai
achega
7e87816caa
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      arch/sandbox/dts/test.dts

+ 2 - 0
arch/sandbox/dts/test.dts

@@ -480,6 +480,8 @@
 	};
 	};
 
 
 	chosen {
 	chosen {
+		#address-cells = <1>;
+		#size-cells = <1>;
 		chosen-test {
 		chosen-test {
 			compatible = "denx,u-boot-fdt-test";
 			compatible = "denx,u-boot-fdt-test";
 			reg = <9 1>;
 			reg = <9 1>;