mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] Make finding fixup nodes more robust
@ 2018-01-26 19:26 Sascha Hauer
  2018-01-26 19:26 ` [PATCH 1/2] of: Add function to find the same node in another tree Sascha Hauer
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Sascha Hauer @ 2018-01-26 19:26 UTC (permalink / raw)
  To: Barebox List

Recently the node names in i.MX6 device tree files have changed. The
leading zeroes were removed from the addresses. With this a newer
barebox doesn't find the nodes to fixup in an old device tree and
an older barebox doesn't find the nodes in a new device tree. To
fix this we create new names of the nodes based on things that hopefully
don't change: We iterate up to a node which is MMIO space mappable
and get a name that starts with "[adr]". For the remaining parts of
a node we add "<reg>" when the hierarchy level has a "reg" property
and only as last fallback we add "{nodename}" in curly brackets.
This name is safe against node name changes and also against adding
a new hierarchy level in the device tree (when for example a bus level
is added).

This series aims for v2018.01.1

Sascha Hauer (2):
  of: Add function to find the same node in another tree
  of: mtd: partition: Use reproducible node names for fixup

 drivers/of/base.c      | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/of/partition.c |  5 +++-
 include/of.h           |  5 +++-
 3 files changed, 71 insertions(+), 2 deletions(-)

-- 
2.15.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-26 21:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-26 19:26 [PATCH 0/2] Make finding fixup nodes more robust Sascha Hauer
2018-01-26 19:26 ` [PATCH 1/2] of: Add function to find the same node in another tree Sascha Hauer
2018-01-26 19:26 ` [PATCH 2/2] of: mtd: partition: Use reproducible node names for fixup Sascha Hauer
2018-01-26 20:46 ` [PATCH 0/2] Make finding fixup nodes more robust Sam Ravnborg
2018-01-26 21:36   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox