All of lore.kernel.org
 help / color / mirror / Atom feed
From: hacklu <embedway.test@gmail.com>
To: "Grant Likely" <grant.likely@secretlab.ca>
Cc: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>
Subject: Re: Re: hi, i have two flashs, but my kernel can only find one , how cani write the dts?
Date: Mon, 19 Jul 2010 11:56:31 +0800	[thread overview]
Message-ID: <201007191156288194097@gmail.com> (raw)
In-Reply-To: AANLkTimXGTg41XHChzcnn75Px_pitC8sPKOY-OlPNIe1@mail.gmail.com


[-- Attachment #1.1: Type: text/plain, Size: 2122 bytes --]

thanks very much! it works well now~~
but i found in my system,if i add the 0x prefix it will cause a syntax error 


2010-07-19 



hacklu 



发件人: Grant Likely 
发送时间: 2010-07-17  05:46:59 
收件人: hacklu 
抄送: linuxppc-dev 
主题: Re: hi, i have two flashs, but my kernel can only find one , how cani write the dts? 
 
On Fri, Jul 16, 2010 at 2:34 AM, hacklu <embedway.test@gmail.com> wrote:
> this is my dts file:
> flash@0,0 {
>                         #address-cells = <1>;
>                         #size-cells = <1>;
>                         compatible = "cfi-flash";
>                         probe-type = "CFI";
>                         reg = <0 0 1000000>;
>                         bank-width = <2>;
>                         device-width = <1>;
>                         hrcw@0 {
>                                 label = "hrcw";
>                                 reg = <0 40000>;
>                         };
>                         jffs@40000 {
>                                 label = "jffs";
>                                 reg = <40000 200000>;
>                         };
>                         jffs2@240000 {
>                                 label = "uimage";
>                                 reg = <240000 d80000>;
>                         };
>              };
> flash@1,0 {
>                         #address-cells = <1>;
>                         #size-cells = <1>;
>                         compatible = "cfi-flash";
>                         probe-type = "CFI";
>                         reg = <1000000 0 1000000>;
This looks wrong.  If you're second flash is on chip select 1 as the
node name suggests, then this should be (first cell is CS#, second is
offset, and third is size.  Alos you're missing the 0x prefix):
reg = <1 0 0x1000000>;
If your second flash is on chip select 0 with the first flash, but
offset by 0x1000000, then reg should be:
reg = <0 0x1000000 0x1000000>;
and the name should be:
flash@0,1000000 { ... };
g.
-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

[-- Attachment #1.2: Type: text/html, Size: 9255 bytes --]

[-- Attachment #2: 14.gif --]
[-- Type: image/gif, Size: 1662 bytes --]

  reply	other threads:[~2010-07-19  3:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-16  8:34 hi, i have two flashs, but my kernel can only find one , how can i write the dts? hacklu
2010-07-16 21:46 ` Grant Likely
2010-07-19  3:56   ` hacklu [this message]
2010-07-19  4:33     ` Re: hi, i have two flashs, but my kernel can only find one , how cani " Grant Likely

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=201007191156288194097@gmail.com \
    --to=embedway.test@gmail.com \
    --cc=grant.likely@secretlab.ca \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.