* unit name for /soc in device tree
@ 2008-10-03 20:13 Mike Ditto
2008-10-03 20:25 ` Scott Wood
0 siblings, 1 reply; 3+ messages in thread
From: Mike Ditto @ 2008-10-03 20:13 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
I'm starting a scratch port of Linux 2.6 to an MPC8272 board that currently
runs 2.4 (MontaVista).
Documentation/powerpc/booting-without-of.txt says:
The name of an soc
node should start with "soc", and the remainder of the name should
represent the part number for the soc. For example, the MPC8540's
soc node would be called "soc8540".
So I used the unit name "soc8272@f0000000" in my .dts file.
But arch/powerpc/boot/cpm-serial.c does:
muram = finddevice("/soc/cpm/muram/data");
And that doesn't work if I follow the naming convention suggested.
I changed the .dts file to use the name "soc" instead of "soc8272" and
now the boot serial driver works. Is that the right way to go? Or
will this lead to problems in the kernel later (I'm not that far yet)?
-=] Mike [=-
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unit name for /soc in device tree
2008-10-03 20:13 unit name for /soc in device tree Mike Ditto
@ 2008-10-03 20:25 ` Scott Wood
2008-10-03 20:41 ` Mike Ditto
0 siblings, 1 reply; 3+ messages in thread
From: Scott Wood @ 2008-10-03 20:25 UTC (permalink / raw)
To: Mike Ditto; +Cc: linuxppc-embedded
Mike Ditto wrote:
> I'm starting a scratch port of Linux 2.6 to an MPC8272 board that currently
> runs 2.4 (MontaVista).
>
> Documentation/powerpc/booting-without-of.txt says:
> The name of an soc
> node should start with "soc", and the remainder of the name should
> represent the part number for the soc. For example, the MPC8540's
> soc node would be called "soc8540".
Gah, what's that still doing in there? Ignore it.
It's a bad idea, for exactly this reason.
-Scott
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unit name for /soc in device tree
2008-10-03 20:25 ` Scott Wood
@ 2008-10-03 20:41 ` Mike Ditto
0 siblings, 0 replies; 3+ messages in thread
From: Mike Ditto @ 2008-10-03 20:41 UTC (permalink / raw)
To: Scott Wood; +Cc: linuxppc-embedded
Scott Wood wrote:
> Gah, what's that still doing in there? Ignore it.
> It's a bad idea, for exactly this reason.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-03 20:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-03 20:13 unit name for /soc in device tree Mike Ditto
2008-10-03 20:25 ` Scott Wood
2008-10-03 20:41 ` Mike Ditto
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).