[PATCH v5 13/20] dtoc: Support copying the contents of a node into another

Simon Glass sjg at chromium.org
Sun Jul 23 15:23:34 CEST 2023


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 <sjg at chromium.org>
---

(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!


More information about the U-Boot mailing list