[PATCH 3/3] dtoc: Support widening a bool value

Simon Glass sjg at chromium.org
Sun Aug 1 01:03:34 CEST 2021


At present if we see 'ranges' property (with no value) we assume it is a
boolean, as per the devicetree spec.

But another node may define 'ranges' with a value, forcing us to widen it
to an int array. At present this is not supported and causes an error.

Fix this and add some test cases.

Signed-off-by: Simon Glass <sjg at chromium.org>
Reported-by: Tom Rini <trini at konsulko.com>
---

 arch/sandbox/dts/sandbox.dtsi        |  2 ++
 test/dm/of_platdata.c                |  3 +++
 tools/dtoc/fdt.py                    | 12 ++++++++++++
 tools/dtoc/test/dtoc_test_simple.dts |  2 ++
 tools/dtoc/test_dtoc.py              |  3 +++
 tools/dtoc/test_fdt.py               | 18 ++++++++++++++++--
 6 files changed, 38 insertions(+), 2 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list