This permits implementation of a simple templating system, where a node
can be reused as a base for others.

For now this adds new subnodes after any existing ones.

Signed-off-by: Simon Glass <[email protected]>
---

(no changes since v4)

Changes in v4:
- Avoid copying phandle nodes

Changes in v3:
- Add a new devicetree file especially for node copying
- Correct logic for merging nodes in order
- Tidy up some comments

 tools/dtoc/fdt.py                  | 119 ++++++++++++++++++++++++++++-
 tools/dtoc/test/dtoc_test_copy.dts |  76 ++++++++++++++++++
 tools/dtoc/test_fdt.py             |  74 ++++++++++++++++++
 3 files changed, 266 insertions(+), 3 deletions(-)
 create mode 100644 tools/dtoc/test/dtoc_test_copy.dts

Applied to u-boot-dm, thanks!

Reply via email to