linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [query] how to use "ranges" in device tree
@ 2015-04-16 13:59 Jisheng Zhang
  2015-04-16 22:59 ` Jaehoon Chung
  0 siblings, 1 reply; 9+ messages in thread
From: Jisheng Zhang @ 2015-04-16 13:59 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

I didn't fully understand the "ranges" usage, here is one situation which I dunno
how to handle.

In arch/arm/boot/dts/berlin2q.dtsi, we describe the /soc ranges as

ranges = <0 0xf7000000 0x1000000>;

That's fine. Now there's a pci device based on pcie-designware.c which prefer
put "config" space in reg. But the config space starts at 0xe0000000, due to
the /soc ranges, the "config" space following pcie node is not correct in fact.

soc {
	ranges = <0 0xf7000000 0x1000000>;
	...
	pcie: pcie at e40000 {
		compatible = "...";
		reg = <0xe40000 0x10000>, <0xe0000000 0x8000000>;
		reg-names = "dbi", "pad", "config";
		...
	};
	...
};

How to define the "config" space in this situation? Did we need to change
the /soc ranges as the following?

soc {
	ranges;
}

Thanks in advance,
Jisheng

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-04-17  9:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-16 13:59 [query] how to use "ranges" in device tree Jisheng Zhang
2015-04-16 22:59 ` Jaehoon Chung
2015-04-17  2:24   ` Jisheng Zhang
2015-04-17  3:50     ` Jisheng Zhang
2015-04-17  8:32       ` Arnd Bergmann
2015-04-17  8:45         ` Jisheng Zhang
2015-04-17  9:38           ` Arnd Bergmann
2015-04-17  8:38       ` Sebastian Hesselbarth
2015-04-17  8:51         ` Jisheng Zhang

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).