u-boot/tools/dtoc
Simon Glass 634eba4be0 dtoc: Support properties containing multiple phandle values
At present dtoc has a very simplistic view of phandles. It assumes that
a property has only a single phandle with a single argument (i.e. two
cells per property).

This is not true in many cases. Enhance the implementation to scan all
phandles in a property and to use the correct number of arguments (which
can be 0, 1, 2 or more) when generating the C code. For the struct
definitions, use a struct which can hold the maximum number of arguments
used by the property.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
2017-09-15 05:27:48 -06:00
..
.gitignore dm: Add a library to provide simple device-tree access 2016-07-14 20:40:24 -06:00
dtb_platdata.py dtoc: Support properties containing multiple phandle values 2017-09-15 05:27:48 -06:00
dtoc dm: Add a tool to generate C code from a device tree 2016-07-14 20:40:24 -06:00
dtoc.py dtoc: Add tests 2017-07-11 10:08:20 -06:00
dtoc_test.dts dtoc: Add tests 2017-07-11 10:08:20 -06:00
dtoc_test_addr32.dts dtoc: Add support for 32 or 64-bit addresses 2017-09-15 05:27:38 -06:00
dtoc_test_addr32_64.dts dtoc: Add support for 32 or 64-bit addresses 2017-09-15 05:27:38 -06:00
dtoc_test_addr64.dts dtoc: Add support for 32 or 64-bit addresses 2017-09-15 05:27:38 -06:00
dtoc_test_addr64_32.dts dtoc: Add support for 32 or 64-bit addresses 2017-09-15 05:27:38 -06:00
dtoc_test_aliases.dts dtoc: Add tests 2017-07-11 10:08:20 -06:00
dtoc_test_empty.dts dtoc: Add tests 2017-07-11 10:08:20 -06:00
dtoc_test_phandle.dts dtoc: Support properties containing multiple phandle values 2017-09-15 05:27:48 -06:00
dtoc_test_simple.dts dtoc: Handle 'reg' properties with unusual sizes 2017-09-15 05:27:47 -06:00
fdt.py dtoc: Update the Fdt class to record phandles 2017-09-15 05:27:47 -06:00
fdt_util.py dtoc: Add support for 32 or 64-bit addresses 2017-09-15 05:27:38 -06:00
test_dtoc.py dtoc: Support properties containing multiple phandle values 2017-09-15 05:27:48 -06:00