From: grant.likely@secretlab.ca (Grant Likely)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/7] Add basic ARM device tree support
Date: Fri, 19 Feb 2010 12:26:40 -0700 [thread overview]
Message-ID: <20100219185953.15318.4850.stgit@angua> (raw)
Hi everyone. It's been a long time coming, but I thing Jeremy and I have
things to a point where the basic patches needs to add flattened device
tree support to ARM are pretty stable. This series doesn't really do
much other than making CONFIG_OF selectable, allowing a device tree to
be passed in at boot via an ATAG, and unpacking the tree into the
struct device_node* tree used by drivers/of/*. No platforms actually
use any of the data yet, but the tree can be browsed in /proc/device-tree
Patches 1-5 are the important ones. As you can see, the impact is
pretty low. Biggest change is some refactoring of
arch/arm/mm/init.c so that the memory region occupied by the
device tree blob (dtb) gets reserved in the same way as for an initrd.
Patches 6 is RFC only, and it doesn't fully work yet because it isn't
able to handle relocating the .dtb if it overlaps the final kernel
location. I'm still working on it, but I'm not even convinced that it
is the best approach yet. I include it here so that people can build
a kernel image that embeds the dtb and so give the device tree code a
spin without having to modify firmware. Patch 7 is a complete hack to
work around the problem in patch 6.
These patches depend on the merge of PowerPC and Microblaze device tree
code. The merge work is in linux-next and I'll be asking Linus to pull
it when he opens the window. It also depends on the earlier patch
posted by Jeremy Kerr to use generic infrastructure for early_params.
These patches are available in the test-devicetree branch of my
linux-2.6 git tree:
git://git.secretlab.ca/git/linux-2.6 test-devicetree
>From here, there are 2 things being worked on. Jeremy is working on
the early init code to make device tree data available earlier in the
boot process so that device tree data can be used for machine probing
and memory setup. I'm focusing on parsing the device tree data for
registering platform, i2c and spi devices. Each of those tasks are
mostly independent and can be posted/reviewed when they are working.
Thanks
g.
---
Grant Likely (3):
arm/boot/hack: set uImage load address to 0x81000000
arm/devicetree: Allow .dtb to be carried in the zImage payload
arm/devicetree: Reserve memory used by dtb blob
Jeremy Kerr (4):
arm-dt: unflatten device tree
arm-dt: add devictree node reference to dev_archdata
arm-dt: Allow CONFIG_OF on ARM
arm-dt: Add ATAG_DEVTREE tag
arch/arm/Kconfig | 27 ++++++++
arch/arm/boot/Makefile | 2 -
arch/arm/boot/compressed/Makefile | 23 ++++++-
arch/arm/boot/compressed/head.S | 10 +++
arch/arm/boot/compressed/misc.c | 30 +++++++++
arch/arm/boot/compressed/piggy.dtb.S | 6 ++
arch/arm/boot/compressed/vmlinux.lds.in | 2 +
arch/arm/include/asm/device.h | 3 +
arch/arm/include/asm/prom.h | 19 ++++++
arch/arm/include/asm/setup.h | 9 +++
arch/arm/kernel/Makefile | 1
arch/arm/kernel/devtree.c | 34 ++++++++++
arch/arm/kernel/setup.c | 3 +
arch/arm/mm/init.c | 102 +++++++++++++++++++++++++------
14 files changed, 248 insertions(+), 23 deletions(-)
create mode 100644 arch/arm/boot/compressed/piggy.dtb.S
create mode 100644 arch/arm/include/asm/prom.h
create mode 100644 arch/arm/kernel/devtree.c
--
Signature
next reply other threads:[~2010-02-19 19:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-19 19:26 Grant Likely [this message]
2010-02-19 19:27 ` [PATCH 1/7] arm-dt: Add ATAG_DEVTREE tag Grant Likely
2010-02-19 19:27 ` [PATCH 2/7] arm-dt: Allow CONFIG_OF on ARM Grant Likely
2010-02-19 19:27 ` [PATCH 3/7] arm-dt: add devictree node reference to dev_archdata Grant Likely
2010-02-19 19:27 ` [PATCH 4/7] arm/devicetree: Reserve memory used by dtb blob Grant Likely
2010-02-19 19:28 ` [PATCH 5/7] arm-dt: unflatten device tree Grant Likely
2010-02-19 19:29 ` [RFC/PATCH 6/7] arm/devicetree: Allow .dtb to be carried in the zImage payload Grant Likely
2010-02-19 19:29 ` [PATCH 7/7] arm/boot/hack: set uImage load address to 0x81000000 Grant Likely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100219185953.15318.4850.stgit@angua \
--to=grant.likely@secretlab.ca \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox