]> git.sur5r.net Git - u-boot/commitdiff
sandbox: Correct dtc warning in /chosen node
authorSimon Glass <sjg@chromium.org>
Sat, 3 Feb 2018 17:36:58 +0000 (10:36 -0700)
committerSimon Glass <sjg@chromium.org>
Sun, 18 Feb 2018 19:53:38 +0000 (12:53 -0700)
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)
arch/sandbox/dts/test.dts

index 3f9e788e6c36022129383e994ce2224eade16a95..c38e3691628f586c965b157ad2d5a80af0a7f627 100644 (file)
        };
 
        chosen {
+               #address-cells = <1>;
+               #size-cells = <1>;
                chosen-test {
                        compatible = "denx,u-boot-fdt-test";
                        reg = <9 1>;