From: Scott Wood <scottwood@freescale.com>
To: Liu Shengzhou-B36685 <Shengzhou.Liu@freescale.com>
Cc: "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [1/4] powerpc/fsl-booke: Add device tree support for T1024/T1023 SoC
Date: Mon, 30 Mar 2015 18:00:16 -0500 [thread overview]
Message-ID: <1427756416.22867.205.camel@freescale.com> (raw)
In-Reply-To: <DM2PR03MB398E5EB28719411243C1C76F8F50@DM2PR03MB398.namprd03.prod.outlook.com>
On Mon, 2015-03-30 at 06:08 -0500, Liu Shengzhou-B36685 wrote:
> > -----Original Message-----
> > From: Wood Scott-B07421
> > Sent: Friday, January 30, 2015 9:20 AM
> > To: Liu Shengzhou-B36685
> > Cc: linuxppc-dev@lists.ozlabs.org
> > Subject: Re: [1/4] powerpc/fsl-booke: Add device tree support for
> > T1024/T1023 SoC
> >
> > On Thu, Jan 29, 2015 at 03:52:24PM +0800, Shengzhou Liu wrote:
> > > + corenet-cf@18000 {
> > > + compatible = "fsl,corenet2-cf";
> >
> > While the damage has already been done by the t1040 device tree, this is
> > not 100% compatible with what's on t4240. I'm not sure if it's worth
> > doing anything about it at this point, given that you can tell the
> > difference by the version register even though that register is reserved
> > on t4240 and simliar chips, which is what I do in
> > http://patchwork.ozlabs.org/patch/419911/
>
> Now here "fsl,corenet2-cf" is suitable for t1024 after your t1040 patch was merged.
> T1024 and t1040 have the same version of ccf.
I wouldn't call it "suitable", just that there's a workaround for
existing badness.
> > > +/include/ "t1023si-post.dtsi"
> > > +&soc {
> > > + display:display@180000 {
> > > + compatible = "fsl,t1024-diu", "fsl,diu";
> > > + reg = <0x180000 1000>;
> > > + interrupts = <74 2 0 0>;
> > > + };
> > > +};
> >
> > There are other differences between t1023 an t1024. Where do you
> > describe t1024's QE? Where do you describe the DDR and IFC differences?
> > can they be detected at runtime? t1024 supports deep sleep, but t1023
> > doesn't -- yet you label both chips as having t1024 rcpm.
> >
> As QE IP block has not been upstream yet,
Huh?
arch/powerpc/sysdev/qe_lib/
> so have to removed QE info in dts currently(same on t1040),
That's not how it works.
> DDR and IFC differences are in u-boot, not in dts.
The differences are in hardware, which is what the dts is supposed to
describe.
> Both t1023 and t1024 support sleep, so label both chips as having t1024 rcpm.
That's not how it works.
> Only t1024 has deep sleep, the difference is identified in *.c not in dts (confirmed with deep sleep owner).
Even if the C code chooses to use SVR to identify the difference (why?),
that doesn't mean it's OK for the device tree to contain wrong
information.
-Scott
next prev parent reply other threads:[~2015-03-30 23:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-29 7:52 [PATCH 1/4] powerpc/fsl-booke: Add device tree support for T1024/T1023 SoC Shengzhou Liu
2015-01-29 7:52 ` [PATCH 2/4] powerpc/fsl-booke: Add T1024 QDS board support Shengzhou Liu
2015-01-29 7:52 ` [PATCH 3/4] powerpc/fsl-booke: Add T1024RDB " Shengzhou Liu
2015-01-29 7:52 ` [PATCH 4/4] powerpc/fsl-booke: Add T1023 RDB " Shengzhou Liu
2015-01-30 1:19 ` [1/4] powerpc/fsl-booke: Add device tree support for T1024/T1023 SoC Scott Wood
2015-03-30 11:08 ` Shengzhou.Liu
2015-03-30 23:00 ` Scott Wood [this message]
2015-03-31 3:32 ` Shengzhou.Liu
2015-03-31 3:37 ` Scott Wood
2015-01-30 1:24 ` 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=1427756416.22867.205.camel@freescale.com \
--to=scottwood@freescale.com \
--cc=Shengzhou.Liu@freescale.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/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).