Thread (9 messages) 9 messages, 2 authors, 2009-10-16

Re: Support for S29JL064 in MPC8272ADS?

From: Roberto Guerra <hidden>
Date: 2009-10-14 21:34:09

On Fri, Oct 9, 2009 at 2:16 PM, Scott Wood [off-list ref] wrote:
On Fri, Oct 09, 2009 at 01:59:58PM -0400, Roberto Guerra wrote:
quoted
No. I did not. My FDT was simplified from the stock MPC8272ADS:
=3D> fdt list
/ {
=A0 =A0 =A0 =A0 model =3D "pq2fads";
=A0 =A0 =A0 =A0 compatible =3D "fsl,pq2fads";
=A0 =A0 =A0 =A0 #address-cells =3D <0x00000001>;
=A0 =A0 =A0 =A0 #size-cells =3D <0x00000001>;
=A0 =A0 =A0 =A0 cpus {
=A0 =A0 =A0 =A0 };
=A0 =A0 =A0 =A0 memory {
=A0 =A0 =A0 =A0 };
=A0 =A0 =A0 =A0 soc@f0000000 {
=A0 =A0 =A0 =A0 };
=A0 =A0 =A0 =A0 chosen {
=A0 =A0 =A0 =A0 };
};
You need more than that. =A0What happened to all the content of those nod=
es?
quoted
I am searching how I could add the mtd branch between the "soc" and
the "chosen".
Look at the localbus node on the mpc8272ads dts.

Look at (and use) a recent upstream kernel, if you're not already.

-Scott
I've been learning how to modify the dts from
http://www.mjmwired.net/kernel/Documentation/powerpc/dts-bindings/mtd-physm=
ap.txt#49
The original mpc8272ads.dts represents four 8-bit JEDEC Sharp flash
chips in 1 SIMM module:
[snip]        localbus@f0010100 {
                compatible =3D "fsl,mpc8280-localbus",
                             "fsl,pq2-localbus";
                #address-cells =3D <2>;
                #size-cells =3D <1>;
                reg =3D <f0010100 60>;

                ranges =3D <0 0 fe000000 00800000
                          1 0 f4500000 00008000
                          8 0 f8200000 00008000>;

                flash@0,0 {
                        compatible =3D "jedec-flash";
                        reg =3D <0 0 800000>;
                        bank-width =3D <4>;
                        device-width =3D <1>;
                };
[snip]
My board (based on the PQ2FADS, using the MPC8272ADS BSP) 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 =3D "amd, s29jl064h", "cfi-flash";
                        reg =3D <0 0 800000>;
                        bank-width =3D <2>;
                        device-width =3D <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?
Thanks,
Roberto
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help