Re: [RFC PATCH 40/77] dtc: Introduce dti_get_node_by_path()
Herve Codina <[email protected]> Mon, 19 Jan 2026 16:52:44 +0100
| Newsgroups | org.kernel.vger.devicetree-spec,org.kernel.vger.devicetree-compiler,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Organization | Bootlin |
| Message-ID | <[email protected]> |
Hi David, On Thu, 15 Jan 2026 17:47:29 +1100 David Gibson <[email protected]> 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é