Re: [RFC PATCH 40/77] dtc: Introduce dti_get_node_by_path()
From: Herve Codina
Date: Mon Jan 19 2026 - 10:52:49 EST
Hi David,
On Thu, 15 Jan 2026 17:47:29 +1100
David Gibson <david@xxxxxxxxxxxxxxxxxxxxx> wrote:
> On Mon, Jan 12, 2026 at 03:19:30PM +0100, Herve Codina wrote:
> > The future introduction of orphan nodes for addons device-tree will lead
> > to more than one tree in the addons data. Those trees will be:
> > - the classical root tree starting at the root node
> > - trees related to orphan nodes
>
> This doesn't make sense to me. The new function still just takes a
> single path, nothing to specify which tree that path is looked up in.
>
> You can probably guarantee that labels and phandles are unique across
> all the trees. Not paths, though.
>
Paths can be unique across all trees. The tree needs to be indicated in the
path. Starting by '/' is the root tree.
For orphans, I proposed "$<orphan_name>/<path>" in patch 64 introducing
references by path for orphan nodes and so, for orphan trees.
Best regards,
Hervé