u-boot/tools/dtoc
Simon Glass da39341223 dtoc: Improve handling of reg properties
This existing code assumes that a reg property is larger than one cell,
but this is not always the case. Fix this assumption.

Also if a node's parent is missing the #address-cells and #size-cells
properties we use 2 as a default for each. But this should not happen in
practice. More likely the properties were removed for SPL due to there
being no 'u-boot,dm-pre-reloc' property, or similar. Add a warning for
this as the failure can be very confusing.

Signed-off-by: Simon Glass <sjg@chromium.org>
2021-04-06 16:33:19 +12:00
..
test dtoc: Improve handling of reg properties 2021-04-06 16:33:19 +12:00
.gitignore dm: Add a library to provide simple device-tree access 2016-07-14 20:40:24 -06:00
dtb_platdata.py dtoc: Improve handling of reg properties 2021-04-06 16:33:19 +12:00
dtoc dtoc: Rename the main module 2020-04-26 14:25:21 -06:00
fdt.py dtoc: Add new check that offsets are correct 2021-03-27 16:26:48 +13:00
fdt_util.py binman: Use target-specific tools when cross-compiling 2020-09-22 12:54:13 -06:00
main.py dtoc: Add an option for device instantiation 2021-03-22 19:23:27 +13:00
setup.py dtoc: Add a setup script for Python 2020-08-22 08:53:38 -06:00
src_scan.py dtoc: Show driver warnings once at the end 2021-04-06 16:33:19 +12:00
test_dtoc.py dtoc: Improve handling of reg properties 2021-04-06 16:33:19 +12:00
test_fdt dtoc: Add some tests for the fdt module 2018-07-09 09:11:00 -06:00
test_fdt.py dtoc: Add new check that offsets are correct 2021-03-27 16:26:48 +13:00
test_src_scan.py dtoc: Show driver warnings once at the end 2021-04-06 16:33:19 +12:00