linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* DTS for PowerPC 440 based board
@ 2009-11-21 18:46 Vinayak Kale
  2009-11-21 21:20 ` David Gibson
  0 siblings, 1 reply; 3+ messages in thread
From: Vinayak Kale @ 2009-11-21 18:46 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

Hi,
I am porting 2.6.31 for a PowerPC 440 core based board. I have couple of
queries. I would really appreciate if someone could answer since i couldn't
find info from other places.

1) Is it mandatory to create a DTS file?
2) If uboot passes BDInfo struct to kernel instead of DT blob, then in this
case does kernel creates FDT at run time?
3) I believe in case of DTS, the kernel picks up the h/w info from DTS blob
so we need not hardcode any register addresses etc inside kernel other than
in dts file. What happens in case of uboot passing just BDInfo struct. How
do we specify the register addresses etc?

Thanks
Vinayak

[-- Attachment #2: Type: text/html, Size: 670 bytes --]

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

* Re: DTS for PowerPC 440 based board
  2009-11-21 18:46 DTS for PowerPC 440 based board Vinayak Kale
@ 2009-11-21 21:20 ` David Gibson
  2009-11-23  3:32   ` Grant Likely
  0 siblings, 1 reply; 3+ messages in thread
From: David Gibson @ 2009-11-21 21:20 UTC (permalink / raw)
  To: Vinayak Kale; +Cc: linuxppc-dev

On Sun, Nov 22, 2009 at 12:16:59AM +0530, Vinayak Kale wrote:
> Hi,
> I am porting 2.6.31 for a PowerPC 440 core based board. I have couple of
> queries. I would really appreciate if someone could answer since i couldn't
> find info from other places.
> 
> 1) Is it mandatory to create a DTS file?

Roughly speaking, yes.  You have to supply a device tree to the
kernel somehow, so if the firmware doesn't supply one itself, you will
need to create a DTS.

> 2) If uboot passes BDInfo struct to kernel instead of DT blob, then in this
> case does kernel creates FDT at run time?

Not exactly.  In this case the bootwrapper will be built with an FDT
(compiled from a dts) built in.  It will however tweak the FDT with
information from the BDInfo before booting the kernel proper.

> 3) I believe in case of DTS, the kernel picks up the h/w info from DTS blob
> so we need not hardcode any register addresses etc inside kernel other than
> in dts file. What happens in case of uboot passing just BDInfo struct. How
> do we specify the register addresses etc?

There's always a device tree which specifies register addresses.  If
the firmware only supplies a BDInfo, then the kernel wrapper must have
a device tree built in.  In practice that will always be built from a
dts, though it doesn't have to be in theory.

-- 
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] 3+ messages in thread

* Re: DTS for PowerPC 440 based board
  2009-11-21 21:20 ` David Gibson
@ 2009-11-23  3:32   ` Grant Likely
  0 siblings, 0 replies; 3+ messages in thread
From: Grant Likely @ 2009-11-23  3:32 UTC (permalink / raw)
  To: David Gibson; +Cc: linuxppc-dev, Vinayak Kale

On Sat, Nov 21, 2009 at 2:20 PM, David Gibson
<david@gibson.dropbear.id.au> wrote:
> On Sun, Nov 22, 2009 at 12:16:59AM +0530, Vinayak Kale wrote:
>> 2) If uboot passes BDInfo struct to kernel instead of DT blob, then in t=
his
>> case does kernel creates FDT at run time?
>
> Not exactly. =A0In this case the bootwrapper will be built with an FDT
> (compiled from a dts) built in. =A0It will however tweak the FDT with
> information from the BDInfo before booting the kernel proper.

...but if you have any sort of choice, save yourself some trouble and
enable FDT support in u-boot.  Then you don't need to muck about with
problematic bd_info structures.

g.

--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

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

end of thread, other threads:[~2009-11-23  3:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-21 18:46 DTS for PowerPC 440 based board Vinayak Kale
2009-11-21 21:20 ` David Gibson
2009-11-23  3:32   ` Grant Likely

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