* [PATCH] [POWERPC] [v2] Improved documentation of device tree 'ranges'.
@ 2007-12-04 1:08 Stephen Neuendorffer
2007-12-04 2:40 ` David Gibson
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Neuendorffer @ 2007-12-04 1:08 UTC (permalink / raw)
To: grant.likely, david, linuxppc-dev
I was misled by the prior language. I've attempted to clarify how
'ranges' are used, in particular, how to get an identity mapping.
Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
---
Documentation/powerpc/booting-without-of.txt | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/Documentation/powerpc/booting-without-of.txt b/Documentation/powerpc/booting-without-of.txt
index e9a3cb1..7327f37 100644
--- a/Documentation/powerpc/booting-without-of.txt
+++ b/Documentation/powerpc/booting-without-of.txt
@@ -711,13 +711,14 @@ define a bus type with a more complex address format, including things
like address space bits, you'll have to add a bus translator to the
prom_parse.c file of the recent kernels for your bus type.
-The "reg" property only defines addresses and sizes (if #size-cells
-is non-0) within a given bus. In order to translate addresses upward
+The "reg" property only defines addresses and sizes (if #size-cells is
+non-0) within a given bus. In order to translate addresses upward
(that is into parent bus addresses, and possibly into CPU physical
addresses), all busses must contain a "ranges" property. If the
"ranges" property is missing at a given level, it's assumed that
-translation isn't possible. The format of the "ranges" property for a
-bus is a list of:
+translation isn't possible, i.e., the registers are not visible on the
+parent bus. The format of the "ranges" property for a bus is a list
+of:
bus address, parent bus address, size
@@ -735,6 +736,10 @@ fit in a single 32-bit word. New 32-bit powerpc boards should use a
1/1 format, unless the processor supports physical addresses greater
than 32-bits, in which case a 2/1 format is recommended.
+Alternatively, the "ranges" property may be empty, indicating that the
+registers are visible on the parent bus using an identity mapping
+translation. In other words, the parent bus address space is the same
+as the child bus address space.
2) Note about "compatible" properties
-------------------------------------
--
1.5.3.4-dirty
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] [POWERPC] [v2] Improved documentation of device tree 'ranges'.
2007-12-04 1:08 [PATCH] [POWERPC] [v2] Improved documentation of device tree 'ranges' Stephen Neuendorffer
@ 2007-12-04 2:40 ` David Gibson
2007-12-04 3:22 ` Grant Likely
2007-12-04 5:27 ` [PATCH] [POWERPC] [v2] Improved documentation of device tree'ranges' Stephen Neuendorffer
0 siblings, 2 replies; 4+ messages in thread
From: David Gibson @ 2007-12-04 2:40 UTC (permalink / raw)
To: Stephen Neuendorffer; +Cc: linuxppc-dev
On Mon, Dec 03, 2007 at 05:08:57PM -0800, Stephen Neuendorffer wrote:
> I was misled by the prior language. I've attempted to clarify how
> 'ranges' are used, in particular, how to get an identity mapping.
>
> Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Thanks for the update. I particularly dislike the "1:1" terminology,
because in maths-speak *any* ranges translation is 1:1, unless it
includes overlapping ranges.
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] [POWERPC] [v2] Improved documentation of device tree 'ranges'.
2007-12-04 2:40 ` David Gibson
@ 2007-12-04 3:22 ` Grant Likely
2007-12-04 5:27 ` [PATCH] [POWERPC] [v2] Improved documentation of device tree'ranges' Stephen Neuendorffer
1 sibling, 0 replies; 4+ messages in thread
From: Grant Likely @ 2007-12-04 3:22 UTC (permalink / raw)
To: Stephen Neuendorffer, grant.likely, linuxppc-dev
On 12/3/07, David Gibson <david@gibson.dropbear.id.au> wrote:
>
> On Mon, Dec 03, 2007 at 05:08:57PM -0800, Stephen Neuendorffer wrote:
> > I was misled by the prior language. I've attempted to clarify how
> > 'ranges' are used, in particular, how to get an identity mapping.
> >
> > Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
>
> Acked-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
>
> Thanks for the update. I particularly dislike the "1:1" terminology,
> because in maths-speak *any* ranges translation is 1:1, unless it
> includes overlapping ranges.
>
> --
> 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
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] [POWERPC] [v2] Improved documentation of device tree'ranges'.
2007-12-04 2:40 ` David Gibson
2007-12-04 3:22 ` Grant Likely
@ 2007-12-04 5:27 ` Stephen Neuendorffer
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Neuendorffer @ 2007-12-04 5:27 UTC (permalink / raw)
To: David Gibson; +Cc: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]
I'm actually a little embarrassed that I didn't pick that nit myself.. :)
-----Original Message-----
From: David Gibson [mailto:david@gibson.dropbear.id.au]
Sent: Mon 12/3/2007 6:40 PM
To: Stephen Neuendorffer
Cc: grant.likely@secretlab.ca; linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] [POWERPC] [v2] Improved documentation of device tree'ranges'.
On Mon, Dec 03, 2007 at 05:08:57PM -0800, Stephen Neuendorffer wrote:
> I was misled by the prior language. I've attempted to clarify how
> 'ranges' are used, in particular, how to get an identity mapping.
>
> Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Thanks for the update. I particularly dislike the "1:1" terminology,
because in maths-speak *any* ranges translation is 1:1, unless it
includes overlapping ranges.
--
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
[-- Attachment #2: Type: text/html, Size: 2029 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-04 5:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-04 1:08 [PATCH] [POWERPC] [v2] Improved documentation of device tree 'ranges' Stephen Neuendorffer
2007-12-04 2:40 ` David Gibson
2007-12-04 3:22 ` Grant Likely
2007-12-04 5:27 ` [PATCH] [POWERPC] [v2] Improved documentation of device tree'ranges' Stephen Neuendorffer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.