From: Primoz Fiser <primoz.fiser@norik.com>
To: barebox@lists.infradead.org
Subject: [PATCH 0/1] of_property: resolve phandles against the booted device tree
Date: Fri, 13 Nov 2026 12:55:47 +0100 [thread overview]
Message-ID: <20261113115548.2224914-1-primoz.fiser@norik.com> (raw)
Hi,
I ran into this on a phyBOARD-Mira (i.MX6) secure boot setup. Two board
expansions configure a UART pin group via a fixup along these lines:
of_property -s -f -e $global.bootm.oftree /soc/.../serial@21ec000 \
pinctrl-0 </soc/.../pinctrl@20e0000/uart3grp>
The node path is resolved to a phandle immediately, against the
external dtb named by -e. With secure boot the kernel device tree is
part of the FIT image, so that file never exists on disk: of_property
fails, the fixup is never registered, and the UART keeps its default
pin group, which conflicts with other pins on the board (user LEDs,
in this case).
The patch defers phandle resolution to the point the fixup is applied,
against the tree that is actually being booted, so -e is no longer
needed for this and is now ignored (rather than required) when
combined with -f. Existing scripts that still pass -e keep working.
With this applied, setups like the one above can drop the
-e $global.bootm.oftree workaround entirely.
Primoz Fiser (1):
commands: of_property: resolve phandles of fixups in the booted tree
commands/of_property.c | 75 ++++++++++++++++++++++++++++--------------
1 file changed, 51 insertions(+), 24 deletions(-)
--
2.34.1
next reply other threads:[~2026-11-13 12:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 11:55 Primoz Fiser [this message]
2026-11-13 11:55 ` [PATCH 1/1] commands: of_property: resolve phandles of fixups in the booted tree Primoz Fiser
2026-11-17 8:23 ` Sascha Hauer
2026-11-17 8:44 ` [PATCH 0/1] of_property: resolve phandles against the booted device tree Sascha Hauer
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=20261113115548.2224914-1-primoz.fiser@norik.com \
--to=primoz.fiser@norik.com \
--cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox