hi, i have two flashs, but my kernel can only find one , how can i write the dts?

2010-07-16 Thread hacklu
this is my dts file:
fl...@0,0 {
#address-cells = 1;
#size-cells = 1;
compatible = cfi-flash;
probe-type = CFI;
reg = 0 0 100;
bank-width = 2;
device-width = 1;
h...@0 {
label = hrcw;
reg = 0 4;
};
j...@4 {
label = jffs;
reg = 4 20;
};
jf...@24 {
label = uimage;
reg = 24 d8;
};
 };
fl...@1,0 {
#address-cells = 1;
#size-cells = 1;
compatible = cfi-flash;
probe-type = CFI;
reg = 100 0 100;
bank-width = 2;
device-width = 1;
jf...@24 {
label = jffs2;
reg = 0 100;
};
}; 
2010-07-16 



hacklu 
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: hi, i have two flashs, but my kernel can only find one , how can i write the dts?

2010-07-16 Thread Grant Likely
On Fri, Jul 16, 2010 at 2:34 AM, hacklu embedway.t...@gmail.com wrote:
 this is my dts file:
 fl...@0,0 {
 #address-cells = 1;
 #size-cells = 1;
 compatible = cfi-flash;
 probe-type = CFI;
     reg = 0 0 100;
 bank-width = 2;
 device-width = 1;
 h...@0 {
 label = hrcw;
 reg = 0 4;
 };
 j...@4 {
 label = jffs;
 reg = 4 20;
 };
 jf...@24 {
 label = uimage;
 reg = 24 d8;
 };
  };
 fl...@1,0 {
 #address-cells = 1;
 #size-cells = 1;
 compatible = cfi-flash;
 probe-type = CFI;
 reg = 100 0 100;

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 0x100;

If your second flash is on chip select 0 with the first flash, but
offset by 0x100, then reg should be:

reg = 0 0x100 0x100;

and the name should be:

fl...@0,100 { ... };

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev