lkml.org 
[lkml]   [2013]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/3] Introducing Device Tree Overlays
Date
The following patchset introduces Device Tree overlays, a method
of dynamically altering the kernel's live Device Tree, along with
a generic interface to use it in a board agnostic manner.

It is against mainline as of today, Nov 5 2013:
be408cd3e1fef73e9408b196a79b9934697fe3b1
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net

It relies on the following previously submitted patches/patchsets:

The DTC compiler patch required to get symbol resolution working

"dtc: Dynamic symbols & fixup support (v2)"

The I2C device registration patch

"of: i2c: Export single device registration method"

And finally a patchset exporting various OF fixes

"OF: Fixes in preperation of DT overlays"

Note that although this patchset allows DT overlay removal
on my preferred platform (omap), platform device registration
fails; another patchset that deals with this issue has been posted:

"omap_device removal fixups"

I should also note that the /proc interface is an anachronism, but
it is the place where /proc/device-tree is also located, so it makes
sense to group /proc/device-tree & /proc/device-tree-overlay* together.
I am open to suggestions about where the generic interface should reside.
A suggestion has been made about configfs but I'd like to get this out
as a basis of discussion.

This low level interface should be used as a starting point for platforms
with discoverable hardware on the daughtercard level since they should use the
facilities provided to implement their own policy, dealing with things like
conflicts, high level resource allocation and so on.

Changes in V3:
* Fixed of_free_overlay_info() missing static inline
* Punting when handling PCI devices
* Missing EXPORTs()
all by Guenter Roeck <groeck@juniper.net>

Changes in V2:
* Removal of any bits related to a specific board (beaglebone).
* Introduced a platform agnostic interface using /proc/device-tree-overlay
* Various bug fixes related to i2c device handling have been squashed in.

Pantelis Antoniou (3):
OF: Introduce Device Tree resolve support.
OF: Introduce DT overlay support.
DT: proc: Add runtime overlay interface in /proc

.../devicetree/dynamic-resolution-notes.txt | 25 +
Documentation/devicetree/overlay-notes.txt | 179 +++++
drivers/of/Kconfig | 19 +
drivers/of/Makefile | 2 +
drivers/of/overlay.c | 886 +++++++++++++++++++++
drivers/of/resolver.c | 396 +++++++++
fs/proc/proc_devtree.c | 278 +++++++
include/linux/of.h | 130 +++
8 files changed, 1915 insertions(+)
create mode 100644 Documentation/devicetree/dynamic-resolution-notes.txt
create mode 100644 Documentation/devicetree/overlay-notes.txt
create mode 100644 drivers/of/overlay.c
create mode 100644 drivers/of/resolver.c

--
1.7.12



\
 
 \ /
  Last update: 2013-11-08 17:41    [W:3.153 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site