From mboxrd@z Thu Jan 1 00:00:00 1970 From: kevans-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org Subject: [PATCHv2 0/2] overlays: auto allocate phandles for nodes in base fdt Date: Mon, 1 Jan 2018 00:59:43 -0600 Message-ID: <20180101065945.65451-1-kevans@FreeBSD.org> Return-path: Sender: devicetree-compiler-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: David Gibson , Jon Loeliger Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org 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 | 83 +++++++++++++++++++--- tests/overlay_base_manual_symbols_auto_phandle.dts | 24 +++++++ tests/run_tests.sh | 6 ++ 3 files changed, 104 insertions(+), 9 deletions(-) create mode 100644 tests/overlay_base_manual_symbols_auto_phandle.dts -- 2.15.1