From: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: "David VomLehn (dvomlehn)"
<dvomlehn-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
Cc: prasun.kapoor-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org,
linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
David Daney
<ddaney-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org>
Subject: Re: Device Tree questions WRT MIPS/Octeon SOCs.
Date: Fri, 15 Oct 2010 21:45:48 -0600 [thread overview]
Message-ID: <20101016034548.GB21170@angua.secretlab.ca> (raw)
In-Reply-To: <7A9214B0DEB2074FBCA688B30B04400D01B50924-2KNrN6/GZtCQwNoRDPPJJaBKnGwkPULj@public.gmane.org>
[reorganized quoting]
On Fri, Oct 15, 2010 at 12:48:55PM -0500, David VomLehn (dvomlehn) wrote:
>
> 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.
If it touches firmware, then you'll need to be careful about getting
painted into a corner with an over-complex boot firmware design, but
yet this sounds like an appropriate approach.
> We're in much the same situation. Almost all of the device tree is
> static, but we add on/overwrite little bits. I'm not the device tree
> expert, but if I understand correctly, you can even have dtc emit labels
> that you can reference to make the fix-up simpler.
The labels are not available at runtime, but properties in the
'aliases' node can (and should) be used to avoid having to depend on
the full path to a device node. It has been on my to-do list for a
while to add automatic parsing of aliases when finding a node by full
path.
g.
next prev parent reply other threads:[~2010-10-16 3:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-15 0:17 Device Tree questions WRT MIPS/Octeon SOCs David Daney
[not found] ` <4CB79D93.6090500-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org>
2010-10-15 0:32 ` Grant Likely
[not found] ` <AANLkTi=UM2p26JJMqv-cNh8xACS_KPf_dCst5cgmh5VR-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-15 1:13 ` Warner Losh
[not found] ` <20101014.191309.515504596.imp-uzTCJ5RojNnQT0dZR+AlfA@public.gmane.org>
2010-10-15 1:29 ` Grant Likely
2010-10-15 17:30 ` David VomLehn (dvomlehn)
[not found] ` <7A9214B0DEB2074FBCA688B30B04400D01B50901-2KNrN6/GZtCQwNoRDPPJJaBKnGwkPULj@public.gmane.org>
2010-10-15 17:42 ` David Daney
2010-10-15 17:48 ` David VomLehn (dvomlehn)
[not found] ` <7A9214B0DEB2074FBCA688B30B04400D01B50924-2KNrN6/GZtCQwNoRDPPJJaBKnGwkPULj@public.gmane.org>
2010-10-16 3:45 ` Grant Likely [this message]
[not found] ` <20101016034548.GB21170-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2010-10-16 6:24 ` David Gibson
[not found] ` <4CB89275.8020502-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org>
2010-10-16 6:20 ` David Gibson
2010-10-16 3:48 ` 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=20101016034548.GB21170@angua.secretlab.ca \
--to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
--cc=ddaney-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=dvomlehn-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
--cc=linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org \
--cc=prasun.kapoor-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.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