From: Jochen Friedrich <jochen@scram.de>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: Scott Wood <scottwood@freescale.com>, linuxppc-dev@ozlabs.org
Subject: Re: [PATCH/RFC] powerpc: DBox2 Board Support
Date: Mon, 24 Dec 2007 12:01:35 +0100 [thread overview]
Message-ID: <476F918F.4050909@scram.de> (raw)
In-Reply-To: <20071223230342.GA20636@localhost.localdomain>
Hi David,
>> + localbus@8000000 {
>> + compatible = "betaresearch,dbox2-localbus";
>
> Is this bus interface really board specific? I would have thought the
> localbus bridge would have been part of the SoC in which case the
> compatible string should mention the 823 rather than the dbox.
>
>> + #address-cells = <1>;
>
> It's also usual for these localbus things, to have #address-cells of
> 2, with the chipselect explicitly present as the first cell.
The setup of the localbus is already done in the boot loader. However, i'll
recode this to reflect the mapping of addresses to chipselects.
>> + #size-cells = <1>;
>> + reg = <8000000 18000000>;
>> +
>> + ranges = <0 8000000 18000000>;
>> +
>> + enx@0 {
>> + compatible = "c-cube,enx";
>
> What are these mysterious enx, gtx, etc. devices? Some comments might
> be nice.
Those are mostly devices for video processing (MPEG demux, on screen display, MPEG decoder, etc).
Drivers (for ARCH=ppc) are available on cvs.tuxbox.org with GPL license. A work in progress port
to ARCH=powerpc is at git://git.bocc.de/dbox2.git.
>> + // Port D is LCD exclusive. Don't export as GPIO
>> + CPM1_PIO: pio@970 {
>> + compatible = "fsl,cpm1-pario";
>> + reg = <970 180>;
>> + num-ports = <3>;
>> + #gpio-cells = <2>;
>> + };
>> +
>> + lcd@970 {
>> + reg = <970 10>;
>> + compatible = "samsung,ks0713";
>
> Is this representing an LCD controller, or the display itself. Either
> way I'm surprised there's something here in the SoC that has a
> compatible string that's not "fsl,something"
It's a LCD controller wired to PortD. PortD is used for four 1bit lines
and one 8bit bus.
Would something like this be better?
CPM1_PIO: pio@970 {
compatible = "fsl,cpm1-pario";
reg = <970 180>;
num-ports = <4>;
#gpio-cells = <2>;
};
lcd@0 {
compatible = "samsung,ks0713";
gpio-parent = <&CPM1_PIO>;
gpio-port = 3;
}
And then run gpio_request() for all lines on this port in the driver?
Thanks,
Jochen
next prev parent reply other threads:[~2007-12-24 11:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-22 19:13 [PATCH/RFC] powerpc: DBox2 Board Support Jochen Friedrich
2007-12-23 8:18 ` Stephen Rothwell
2007-12-23 23:03 ` David Gibson
2007-12-24 11:01 ` Jochen Friedrich [this message]
2007-12-25 1:04 ` David Gibson
2007-12-26 15:12 ` Jochen Friedrich
2007-12-24 16:53 ` Kumar Gala
2008-01-02 18:06 ` Scott Wood
2008-01-02 20:29 ` Jochen Friedrich
2008-01-02 21:22 ` Scott Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=476F918F.4050909@scram.de \
--to=jochen@scram.de \
--cc=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@ozlabs.org \
--cc=scottwood@freescale.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).