* dtc: Empty ranges property: #cells-size warning
@ 2009-10-21 15:13 Stefan Roese
[not found] ` <200910211713.12503.sr-ynQEQJNshbs@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Roese @ 2009-10-21 15:13 UTC (permalink / raw)
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
Hi,
when changing #cells-size from 1 to 2 in the root node (to support >= 4GB of
RAM in katmai.dts) I get the following warning:
Warning (ranges_format): /plb has empty "ranges" property but its #size-cells
(1) differs from / (2)
I could change #cells-size to 2 in the plb node as well. But this not really
what I want, because of it's child nodes.
So my questions is: How can I solve this problem? Perhaps this warning should
be removed from dtc?
Thanks.
Cheers,
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <200910211713.12503.sr-ynQEQJNshbs@public.gmane.org>]
* Re: dtc: Empty ranges property: #cells-size warning [not found] ` <200910211713.12503.sr-ynQEQJNshbs@public.gmane.org> @ 2009-10-21 16:41 ` Segher Boessenkool [not found] ` <54889.84.105.60.153.1256143282.squirrel-JorI+TVEvZrY24RiXHRV3ti2O/JbrIOy@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Segher Boessenkool @ 2009-10-21 16:41 UTC (permalink / raw) To: Stefan Roese; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ > when changing #cells-size from 1 to 2 in the root node (to support >= 4GB > of You mean "#size-cells". > RAM in katmai.dts) I get the following warning: > > Warning (ranges_format): /plb has empty "ranges" property but its > #size-cells > (1) differs from / (2) > > I could change #cells-size to 2 in the plb node as well. But this not > really > what I want, because of it's child nodes. > > So my questions is: How can I solve this problem? Perhaps this warning > should > be removed from dtc? No, the warning is correct, and your device tree is in error. An empty "ranges" property means that the child address space is identical to the parent address space, which isn't the case here. You should resolve this by using a non-empty "ranges" property, instead. If e.g. the address space is 1GB, and located at 0, you would do < 0 0 0 0x40000000 > (child) (parent) (size) Segher ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <54889.84.105.60.153.1256143282.squirrel-JorI+TVEvZrY24RiXHRV3ti2O/JbrIOy@public.gmane.org>]
* Re: dtc: Empty ranges property: #cells-size warning [not found] ` <54889.84.105.60.153.1256143282.squirrel-JorI+TVEvZrY24RiXHRV3ti2O/JbrIOy@public.gmane.org> @ 2009-10-21 22:04 ` David Gibson [not found] ` <20091021220413.GA12560-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: David Gibson @ 2009-10-21 22:04 UTC (permalink / raw) To: Segher Boessenkool Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Stefan Roese On Wed, Oct 21, 2009 at 06:41:22PM +0200, Segher Boessenkool wrote: > > when changing #cells-size from 1 to 2 in the root node (to support >= 4GB > > of > > You mean "#size-cells". > > > RAM in katmai.dts) I get the following warning: > > > > Warning (ranges_format): /plb has empty "ranges" property but its > > #size-cells > > (1) differs from / (2) > > > > I could change #cells-size to 2 in the plb node as well. But this not > > really > > what I want, because of it's child nodes. > > > > So my questions is: How can I solve this problem? Perhaps this warning > > should > > be removed from dtc? > > No, the warning is correct, and your device tree is in error. > > An empty "ranges" property means that the child address space is > identical to the parent address space, which isn't the case here. > > You should resolve this by using a non-empty "ranges" property, > instead. If e.g. the address space is 1GB, and located at 0, you > would do > > < 0 0 0 0x40000000 > > (child) (parent) (size) Exactly. An empty ranges property makes no sense if the parent and child address spaces aren't identical. You need an explicit ranges property to show how the child address space is embedded in the parent's. -- 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
[parent not found: <20091021220413.GA12560-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>]
* Re: dtc: Empty ranges property: #cells-size warning [not found] ` <20091021220413.GA12560-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org> @ 2009-10-22 9:56 ` Stefan Roese 0 siblings, 0 replies; 4+ messages in thread From: Stefan Roese @ 2009-10-22 9:56 UTC (permalink / raw) To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ On Thursday 22 October 2009 00:04:13 David Gibson wrote: > > No, the warning is correct, and your device tree is in error. > > > > An empty "ranges" property means that the child address space is > > identical to the parent address space, which isn't the case here. > > > > You should resolve this by using a non-empty "ranges" property, > > instead. If e.g. the address space is 1GB, and located at 0, you > > would do > > > > < 0 0 0 0x40000000 > > > (child) (parent) (size) > > Exactly. An empty ranges property makes no sense if the parent and > child address spaces aren't identical. You need an explicit ranges > property to show how the child address space is embedded in the > parent's. OK, thanks for making this clear. Cheers, Stefan ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-22 9:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-21 15:13 dtc: Empty ranges property: #cells-size warning Stefan Roese
[not found] ` <200910211713.12503.sr-ynQEQJNshbs@public.gmane.org>
2009-10-21 16:41 ` Segher Boessenkool
[not found] ` <54889.84.105.60.153.1256143282.squirrel-JorI+TVEvZrY24RiXHRV3ti2O/JbrIOy@public.gmane.org>
2009-10-21 22:04 ` David Gibson
[not found] ` <20091021220413.GA12560-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>
2009-10-22 9:56 ` Stefan Roese
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.