[U-Boot] [PATCH 2/2] sandbox: Rename 'num-gpios' property to avoid dtc warning

Simon Glass sjg at chromium.org
Wed May 16 15:39:53 UTC 2018


On 4 February 2018 at 04:36, Simon Glass <sjg at chromium.org> wrote:
> At present dtc produces these warnings when compiling sandbox:
>
> arch/sandbox/dts/test.dtb: Warning (gpios_property):
>         Could not get phandle node for /base-gpios:num-gpios(cell 0)
> arch/sandbox/dts/test.dtb: Warning (gpios_property):
>         Missing property '#gpio-cells' in node /reset-ctl or bad phandle
>         (referred from /extra-gpios:num-gpios[0])
>
> Both are due to it assuming that the 'num-gpios' property holds a phandle
> pointing to a GPIO node.
>
> To avoid these warnings, rename the sandbox property so that it does not
> include the string 'gpios'.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  arch/sandbox/dts/test.dts | 4 ++--
>  drivers/gpio/sandbox.c    | 3 ++-
>  2 files changed, 4 insertions(+), 3 deletions(-)
>

This was applied to u-boot-dm and is now in mainline.


More information about the U-Boot mailing list