mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] of_property and phandles
@ 2013-08-14  8:11 Sascha Hauer
  2013-08-14  8:11 ` [PATCH 1/7] of: fix merge mode in of_unflatten_dtb Sascha Hauer
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Sascha Hauer @ 2013-08-14  8:11 UTC (permalink / raw)
  To: barebox

This adds the support for phandles to the of_property command.

The of_property command is able to manipulate devicetree properties,
but so far it hasn't been able to specify phandles. With this
series the following is possible:

of_property -s /soc/somenode propname </soc/someothernode 0xdeadbeef>

The /soc/someothernode is inserted into the property as phandle.

The projected usecase currently is to chose a display out of several
possible during runtime.

Sascha

----------------------------------------------------------------
Sascha Hauer (7):
      of: fix merge mode in of_unflatten_dtb
      of: parse phandles during unflatten
      of: default to internal tree in of_find_node_by_path_from
      of: introduce some new helpers
      of_property command: allow to specify a node by alias
      of_property command: allow to set phandles
      oftree command: Allow to specify node by alias

 commands/of_property.c |  36 ++++++++++++--
 commands/oftree.c      |   2 +-
 drivers/of/base.c      | 126 ++++++++++++++++++++++++++++++++++++++++++-------
 drivers/of/fdt.c       |   5 +-
 include/of.h           |  14 ++++++
 5 files changed, 160 insertions(+), 23 deletions(-)

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

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

end of thread, other threads:[~2013-08-14  9:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-14  8:11 [PATCH] of_property and phandles Sascha Hauer
2013-08-14  8:11 ` [PATCH 1/7] of: fix merge mode in of_unflatten_dtb Sascha Hauer
2013-08-14  8:11 ` [PATCH 2/7] of: parse phandles during unflatten Sascha Hauer
2013-08-14  8:11 ` [PATCH 3/7] of: default to internal tree in of_find_node_by_path_from Sascha Hauer
2013-08-14  8:11 ` [PATCH 4/7] of: introduce some new helpers Sascha Hauer
2013-08-14  8:11 ` [PATCH 5/7] of_property command: allow to specify a node by alias Sascha Hauer
2013-08-14  8:11 ` [PATCH 6/7] of_property command: allow to set phandles Sascha Hauer
2013-08-14  8:11 ` [PATCH 7/7] oftree command: Allow to specify node by alias Sascha Hauer
2013-08-14  9:06 ` [PATCH] of_property and phandles Jan Lübbe

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