From: Herve Codina <herve.codina@bootlin.com>
To: Simon Glass <sjg@chromium.org>
Cc: Devicetree Compiler <devicetree-compiler@vger.kernel.org>,
David Gibson <david@gibson.dropbear.id.au>
Subject: Re: [PATCH v5 03/10] dtc: Add a struct for the source layers of a dts file
Date: Thu, 26 Nov 2026 21:42:47 +0100 [thread overview]
Message-ID: <20261126214247.58995869@bootlin.com> (raw)
In-Reply-To: <20261126184126.1472738-4-sjg@chromium.org>
Hi Simon, David,
On Thu, 26 Nov 2026 11:41:02 -0700
Simon Glass <sjg@chromium.org> wrote:
> A dts file is made up of source layers: the root node, later definitions
> of a node by label or path, and /delete-node/ or /omit-if-no-ref/ with a
> reference. We would like to deal with each source layer on its own
> before it is merged, for example to apply deletes consistently or to run
> some checks on each one, but that requires keeping the source layers
> apart. At present the parser merges each one into the tree as soon as it
> is parsed.
I already mention it previously but could the term "snippet" make sense
instead of "source layer" or "layer"?
>
> Add a struct source_layer to hold one which refers to a node, with a
> function to build each kind and one to free it.
>
> These are not used yet.
>
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> ---
>
> Changes in v5:
> - Use the term 'source layer' rather than 'fragment'
>
Best regards,
Hervé
next prev parent reply other threads:[~2026-11-26 20:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 18:40 [PATCH v5 00/10] dtc: Move the merging of source layers out of the grammar Simon Glass
2026-11-26 18:41 ` [PATCH v5 01/10] tests: Note that &{/} in a plugin is existing behaviour Simon Glass
2026-11-26 18:41 ` [PATCH v5 02/10] tests: Check a label on a node which is not in a plugin Simon Glass
2026-11-27 2:50 ` David Gibson
2026-11-26 18:41 ` [PATCH v5 03/10] dtc: Add a struct for the source layers of a dts file Simon Glass
2026-11-26 20:42 ` Herve Codina [this message]
2026-11-27 18:40 ` Simon Glass
2026-11-26 18:41 ` [PATCH v5 04/10] dtc: Move the /delete-node/ handling out of the grammar Simon Glass
2026-11-26 18:41 ` [PATCH v5 05/10] dtc: Move the /omit-if-no-ref/ " Simon Glass
2026-11-26 18:41 ` [PATCH v5 06/10] dtc: Move label-reference " Simon Glass
2026-11-26 18:41 ` [PATCH v5 07/10] dtc: Merge &{label} in a plugin as with &label Simon Glass
2026-11-26 18:41 ` [PATCH v5 08/10] dtc: Move path-reference handling out of the grammar Simon Glass
2026-11-27 3:34 ` David Gibson
2026-11-26 18:41 ` [PATCH v5 09/10] dtc: Move labelled-reference " Simon Glass
2026-11-27 3:43 ` David Gibson
2026-11-27 18:44 ` Simon Glass
2026-11-26 18:41 ` [PATCH v5 10/10] dtc: Move first-reference " Simon Glass
2026-11-27 3:49 ` David Gibson
2026-11-27 18:46 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261126214247.58995869@bootlin.com \
--to=herve.codina@bootlin.com \
--cc=david@gibson.dropbear.id.au \
--cc=devicetree-compiler@vger.kernel.org \
--cc=sjg@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.