mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Device Tree Overlay Support
@ 2019-09-06 13:20 Michael Tretter
  2019-09-06 13:20 ` [PATCH v2 1/7] dtc: add -@ option to enable __symbols__ Michael Tretter
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Michael Tretter @ 2019-09-06 13:20 UTC (permalink / raw)
  To: barebox; +Cc: Michael Tretter

Hello,

This is the v2 for adding device tree overlay support to barebox.

The biggest change is the new function of_overlay_apply_tree() which accepts a
devicetree and the root node of an overlay and applies the overlay to the
devicetree.

Apart from that, I fixed various issues like memory leaks, useless includes,
missing documentation, formatting of output messages, and a missing "static
inline".

Michael

Changelog:

v1 -> v2:
 - export function for applying a device tree overlay
 - define pr_fmt for overlay and resolver
 - remove useless notifier.h
 - fix error handling/memory leak in blspec handling
 - document ownership of overlay memory

rfc -> v1:
 - new of_overlay command
 - no more notifiers for device tree overlays

Michael Tretter (7):
  dtc: add -@ option to enable __symbols__
  of: add support for devicetree overlays
  blspec: add support for devicetree overlays
  of: add iterator for overlays
  firmware: add support to load firmware from dt overlay
  blspec: load firmware if specified in dt overlay
  commands: add of_overlay command for device tree overlays

 Documentation/user/booting-linux.rst |   4 +
 commands/Kconfig                     |  12 ++
 commands/Makefile                    |   1 +
 commands/of_overlay.c                |  89 +++++++++
 common/blspec.c                      |  77 ++++++++
 common/firmware.c                    |  77 ++++++++
 drivers/of/Kconfig                   |   9 +
 drivers/of/Makefile                  |   1 +
 drivers/of/overlay.c                 | 254 ++++++++++++++++++++++++
 drivers/of/resolver.c                | 279 +++++++++++++++++++++++++++
 include/firmware.h                   |   3 +
 include/of.h                         |  40 ++++
 scripts/Makefile.lib                 |   2 +-
 13 files changed, 847 insertions(+), 1 deletion(-)
 create mode 100644 commands/of_overlay.c
 create mode 100644 drivers/of/overlay.c
 create mode 100644 drivers/of/resolver.c

-- 
2.20.1


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

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

end of thread, other threads:[~2019-09-12  6:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-06 13:20 [PATCH v2 0/7] Device Tree Overlay Support Michael Tretter
2019-09-06 13:20 ` [PATCH v2 1/7] dtc: add -@ option to enable __symbols__ Michael Tretter
2019-09-06 13:20 ` [PATCH v2 2/7] of: add support for devicetree overlays Michael Tretter
2019-09-06 13:20 ` [PATCH v2 3/7] blspec: " Michael Tretter
2019-09-06 13:20 ` [PATCH v2 4/7] of: add iterator for overlays Michael Tretter
2019-09-06 13:20 ` [PATCH v2 5/7] firmware: add support to load firmware from dt overlay Michael Tretter
2019-09-06 13:20 ` [PATCH v2 6/7] blspec: load firmware if specified in " Michael Tretter
2019-09-11  7:53   ` Ahmad Fatoum
2019-09-06 13:20 ` [PATCH v2 7/7] commands: add of_overlay command for device tree overlays Michael Tretter
2019-09-11  7:55   ` Ahmad Fatoum
2019-09-11  8:00     ` Ahmad Fatoum
2019-09-11  9:28     ` Michael Tretter
2019-09-11  9:33       ` Ahmad Fatoum
2019-09-09  8:57 ` [PATCH v2 0/7] Device Tree Overlay Support Sascha Hauer
2019-09-12  6:57   ` Sascha Hauer

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