[PATCH 0/1] of_property: resolve phandles against the booted device tree
Primoz Fiser
primoz.fiser at norik.com
Fri Nov 13 03:55:47 PST 2026
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 at 21ec000 \
pinctrl-0 </soc/.../pinctrl at 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
More information about the barebox
mailing list