
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@chromium.org Reported-by: Tom Rini trini@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!