linux-mips
[Top] [All Lists]

RE: Device Tree questions WRT MIPS/Octeon SOCs.

To: "Grant Likely" <grant.likely@secretlab.ca>, "Warner Losh" <imp@bsdimp.com>
Subject: RE: Device Tree questions WRT MIPS/Octeon SOCs.
From: "David VomLehn (dvomlehn)" <dvomlehn@cisco.com>
Date: Fri, 15 Oct 2010 12:30:48 -0500
Authentication-results: rtp-iport-1.cisco.com; dkim=neutral (message not signed) header.i=none
Cc: <ddaney@caviumnetworks.com>, <prasun.kapoor@caviumnetworks.com>, <linux-mips@linux-mips.org>, <devicetree-discuss@lists.ozlabs.org>
In-reply-to: <AANLkTi=dqMHa04=-+RjnxuPGL3ZsqNCiaxUPT0VpV6kC@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4CB79D93.6090500@caviumnetworks.com> <AANLkTi=UM2p26JJMqv-cNh8xACS_KPf_dCst5cgmh5VR@mail.gmail.com> <20101014.191309.515504596.imp@bsdimp.com> <AANLkTi=dqMHa04=-+RjnxuPGL3ZsqNCiaxUPT0VpV6kC@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
Thread-index: ActsCHyzufODr76eQ+uEjV45kXfTVAAhOMUA
Thread-topic: Device Tree questions WRT MIPS/Octeon SOCs.
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.

> -----Original Message-----
> From: linux-mips-bounce@linux-mips.org [mailto:linux-mips-bounce@linux-
> mips.org] On Behalf Of Grant Likely
> Sent: Thursday, October 14, 2010 6:29 PM
> To: Warner Losh
> Cc: ddaney@caviumnetworks.com; prasun.kapoor@caviumnetworks.com; linux-
> mips@linux-mips.org; devicetree-discuss@lists.ozlabs.org
> Subject: Re: Device Tree questions WRT MIPS/Octeon SOCs.
> 
> On Thu, Oct 14, 2010 at 7:13 PM, Warner Losh <imp@bsdimp.com> wrote:
> > In message: <AANLkTi=UM2p26JJMqv-
> cNh8xACS_KPf_dCst5cgmh5VR@mail.gmail.com>
> >            Grant Likely <grant.likely@secretlab.ca> writes:
> > : Overall the plan makes sense, however I would suggest the
> following.
> > : instead of 'live' modifying the tree, another option is to carry a
> set
> > : of 'stock' device trees in the kernel; one per board.  Of course
> this
> > : assumes that your current ad-hoc code is keying on the specific
> board.
> > :  If it is interpreting data provided by the firmware, then your
> > : suggestion of modifying a single stock tree probably makes more
> sense,
> > : or possibly a combination of the too.  In general you should avoid
> > : live modification as much as possible.
> >
> > The one draw back on this is that there's lots of different "stock"
> > boards that the Cavium Octeon SDK supports.  These will be difficult
> > to drag along for every kernel.  And they'd be mostly the same to,
> > which is why I think that David is suggesting the live modification
> > thing...
> 
> Okay.  Do what makes the most sense for your platform.
> 
> g.


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