RE: Virtex device tree generator proof of concept

From: Stephen Neuendorffer <hidden>
Date: 2006-12-07 01:39:39

Yes please, send me your patches.
done.
quoted
I'm curious if you've heard of anyone using device trees=20
other than at=20
quoted
boot time: for instance, using an incomplete device tree blob to=20
represent components discovered at runtime?  It looks like=20
it should=20
quoted
be possible to rip out alot of the code from=20
kernel/powerpc/prom.c in=20
quoted
recent kernels to parse incomplete device trees, too... =20
Any thoughts?
=20
Possible, but there are probably better ways do deal with=20
those; like just allocating and registering a platform=20
device; or adding nodes to the existing tree.  If you're able=20
to probe a device, then do you need to describe it with a=20
device tree fragment?
=20
What scenario are you thinking about?
In an FPGA, even platform-bus devices don't necessarily exist at
processor boot time, and
they might change during the life of a system.
As you suggest, I plan to simply add the correct devices to the platform
bus at the correct time,
and I'm also trying to abstract the code that creates the platform
devices (which probably
should be part of a basic kernel device) from the information about
which devices actually exist.
There are probably other ways of doing this (for instance, automatically
generating the code for
a kernel module which adds devices to the platform bus), but a device
tree fragment=20
doesn't seem like too bad a way of doing it.

Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help