[Top] [All Lists]

Re: Device Tree questions WRT MIPS/Octeon SOCs.

To: David Daney <>
Subject: Re: Device Tree questions WRT MIPS/Octeon SOCs.
From: David Gibson <>
Date: Sat, 16 Oct 2010 17:20:46 +1100
Cc: "David VomLehn (dvomlehn)" <>,,,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <> <> <>
User-agent: Mutt/1.5.20 (2009-06-14)
On Fri, Oct 15, 2010 at 10:42:13AM -0700, David Daney wrote:
> On 10/15/2010 10:30 AM, David VomLehn (dvomlehn) wrote:
> >If this is really a question of needing to dynamically generate the
> >device tree, then you have no choice. It's worth mentioning, though,
> >that the device tree compiler (dtc) does have the ability to include
> >files, making it easier to create and maintain device trees that are
> >static but which share devices.
> Some experimentation will be necessary.  We will have to patch in some
> properties like the Ethernet MAC address as that is stored in a
> separate eeprom.  Also some boards have pluggable I/O modules, so we
> may not know at dtb generation time what is there.

For pluggable modules, rather than patching them in, I'd suggest
including them all and pruning out the ones that aren't present.
That's simpler in the boot up code doing the manipulation.

David Gibson                    | I'll have my music baroque, and my code
david AT  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!

<Prev in Thread] Current Thread [Next in Thread>