From: Scott Wood <scottwood@freescale.com>
To: Roberto Guerra <roberto.j.guerra@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: Support for S29JL064 in MPC8272ADS?
Date: Wed, 14 Oct 2009 16:40:28 -0500 [thread overview]
Message-ID: <4AD6454C.60705@freescale.com> (raw)
In-Reply-To: <7c4144600910141434y26972dbbnb776c4ef89d15a17@mail.gmail.com>
Roberto Guerra wrote:
> I've been learning how to modify the dts from
> http://www.mjmwired.net/kernel/Documentation/powerpc/dts-bindings/mtd-physmap.txt#49
> The original mpc8272ads.dts represents four 8-bit JEDEC Sharp flash
> chips in 1 SIMM module:
> [snip] localbus@f0010100 {
> compatible = "fsl,mpc8280-localbus",
> "fsl,pq2-localbus";
> #address-cells = <2>;
> #size-cells = <1>;
> reg = <f0010100 60>;
>
> ranges = <0 0 fe000000 00800000
> 1 0 f4500000 00008000
> 8 0 f8200000 00008000>;
>
> flash@0,0 {
> compatible = "jedec-flash";
> reg = <0 0 800000>;
> bank-width = <4>;
> device-width = <1>;
> };
> [snip]
> My board (based on the PQ2FADS, using the MPC8272ADS BSP)
Don't base anything on the BSPs, unless there's something in them that you
really need that isn't upstream. There is pq2fads support in current upstream
kernels.
> uses one
> 16-bit Spansion (AMD) CFI chip at addresses FF800000 through FFFFFFFF.
> It probably needs to be represented this way (I've only made changes
> to the "flash" section.
> [snip]
> flash@0,0 {
> compatible = "amd, s29jl064h", "cfi-flash";
> reg = <0 0 800000>;
> bank-width = <2>;
> device-width = <2>;
> };
> [snip]
> However, I don't know what would be the correct addresses to type
> after "localbus", "flash" and "reg". Is this enough information to
> define my dts?
The flash node looks good, other than that there shouldn't be a space after "amd,".
In the localbus node, change fe000000 to ff800000. Remove or change the other
ranges entries if they don't describe your board's chipselects.
If your IMMR is somewhere other than 0xf0000000, update the f0010100 to match.
-Scott
next prev parent reply other threads:[~2009-10-14 21:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-09 14:14 Support for S29JL064 in MPC8272ADS? Roberto Guerra
2009-10-09 17:04 ` Scott Wood
2009-10-09 17:59 ` Roberto Guerra
2009-10-09 18:16 ` Scott Wood
2009-10-14 21:34 ` Roberto Guerra
2009-10-14 21:40 ` Scott Wood [this message]
2009-10-16 15:37 ` Roberto Guerra
2009-10-16 15:55 ` Roberto Guerra
2009-10-16 16:18 ` 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=4AD6454C.60705@freescale.com \
--to=scottwood@freescale.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=roberto.j.guerra@gmail.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).