Skip to content

overlays: auto allocate phandles for nodes in base fdt

[email protected] devicetree-compiler 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 6 repliesSuperseded
  3. v12 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fdt_overlay: Allocate phandles as needed for nodes referenced in base fdtlibfdt/fdt_overlay.c+51 -130 replies
2/2fdt_overlay: Basic regression tests for automatically allocated phandlestests/overlay_base_manual_symbols_auto_phandle.dts tests/run_tests.sh+30 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] overlays: auto allocate phandles for nodes in base fdt

Nodes in the base fdt that do not have phandles cannot currently be referenced in overlays; we can target them for an overlay, but we cannot use them as a reference in another property if needed. This is quite limiting for some use-cases where you're needing cross-references that don't currently exist in the base.

Kyle Evans (2):
fdt_overlay: Allocate phandles as needed for nodes referenced in base
fdt
fdt_overlay: Basic regression tests for automatically allocated
phandles

 libfdt/fdt_overlay.c                               | 64 +++++++++++++++++-----
 tests/overlay_base_manual_symbols_auto_phandle.dts | 24 ++++++++
 tests/run_tests.sh                                 |  6 ++
 3 files changed, 81 insertions(+), 13 deletions(-)
 create mode 100644 tests/overlay_base_manual_symbols_auto_phandle.dts
Signature · 1 line
2.15.1