From: David Gibson <david@gibson.dropbear.id.au>
To: Remi Machet <rmachet@slac.stanford.edu>,
Paul Mackerras <paulus@samba.org>,
Linux PPC <linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH 1/5 v2] powerpc: DTS file for the C2K
Date: Mon, 19 May 2008 10:57:58 +1000 [thread overview]
Message-ID: <20080519005758.GC24125@yookeroo.seuss> (raw)
In-Reply-To: <20080519005342.GB24125@yookeroo.seuss>
On Mon, May 19, 2008 at 10:53:42AM +1000, David Gibson wrote:
> On Fri, May 16, 2008 at 12:28:48PM -0700, Remi Machet wrote:
> > Support for the C2K cPCI Single Board Computer from GEFanuc
[snip]
> [snip]
> > + /* Devices attached to the device controller */
> > + devicebus {
> > + compatible = "marvell,mv64306-devctrl";
> > + #address-cells = <1>;
> > + #size-cells = <1>;
>
> This looks like it needs either a "reg" or a "ranges" property. If
> the address space of this "devicebus" is the same as the parent bus
> you need an empty "ranges" property. *No* ranges property means the
> subordinate devices can't be directly accessed at all from the parent
> bus.
Oh, one other comment here. Is this another of these random
peripheral busses with a bunch of registers controlling which chip
selects appear at which address offsets and so forth (like ebc on 4xx
or localbus on freescale)? If so, the normal convention to describe
such busses is *not* to have a 1:1 address mapping, but actually
encode the addresses of the subordinate devices as <chipselect
offset>, then have an appropriate "ranges" property to map those into
the addresses on the parent bus (the ranges property can be filled in
by the bootwrapper from the actual bridge configuration registers, if
necessary). The rationale is again to have the device tree describe
hardware, not configuration as much as possible.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2008-05-19 0:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-16 19:28 [PATCH 1/5 v2] powerpc: DTS file for the C2K Remi Machet
2008-05-19 0:53 ` David Gibson
2008-05-19 0:57 ` David Gibson [this message]
2008-05-19 17:53 ` Remi Machet
2008-05-20 0:17 ` David Gibson
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=20080519005758.GC24125@yookeroo.seuss \
--to=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
--cc=rmachet@slac.stanford.edu \
/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;
as well as URLs for NNTP newsgroup(s).