devicetree-compiler.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] overlays: auto allocate phandles for nodes in base fdt
@ 2018-01-03 17:12 kevans-HZy0K5TPuP5AfugRpC6u6w
       [not found] ` <20180103171234.86105-1-kevans-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: kevans-HZy0K5TPuP5AfugRpC6u6w @ 2018-01-03 17:12 UTC (permalink / raw)
  To: David Gibson, Jon Loeliger; +Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA

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

-- 
2.15.1

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [PATCH v3 0/2] overlays: auto allocate phandles for nodes in base fdt
@ 2018-01-03 17:25 Kyle Evans
  0 siblings, 0 replies; 4+ messages in thread
From: Kyle Evans @ 2018-01-03 17:25 UTC (permalink / raw)
  To: David Gibson, Jon Loeliger; +Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA

On Wed, Jan 3, 2018 at 11:12 AM,  <kevans-h+KGxgPPiopAfugRpC6u6w@public.gmane.org> wrote:
> 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
>
> --
> 2.15.1

It seems I also goofed the Signed-off-by lines this series; I've been
changing them manually for dtc/libfdt patches as I'm doing these in a
FreeBSD capacity. Apologies.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-03 17:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-03 17:12 [PATCH v3 0/2] overlays: auto allocate phandles for nodes in base fdt kevans-HZy0K5TPuP5AfugRpC6u6w
     [not found] ` <20180103171234.86105-1-kevans-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org>
2018-01-03 17:12   ` [PATCH v3 1/2] fdt_overlay: Allocate phandles as needed for nodes referenced " kevans-HZy0K5TPuP5AfugRpC6u6w
2018-01-03 17:12   ` [PATCH v3 2/2] fdt_overlay: Basic regression tests for automatically allocated phandles kevans-HZy0K5TPuP5AfugRpC6u6w
  -- strict thread matches above, loose matches on Subject: below --
2018-01-03 17:25 [PATCH v3 0/2] overlays: auto allocate phandles for nodes in base fdt Kyle Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).