[U-Boot] [Question] DM SPI FLASH

Masahiro Yamada yamada.m at jp.panasonic.com
Wed Jan 7 11:22:11 CET 2015


On Tue, 6 Jan 2015 22:33:02 -0700
Simon Glass <sjg at chromium.org> wrote:

> Hi Peng,
> 
> On 6 January 2015 at 20:06, Peng Fan <B51431 at freescale.com> wrote:
> > Hi Simon,
> >
> > I am hacking DTB and DM SPI FLASH support for i.MX 6SoloX. I have a question
> > about `sf probe`. In original way, `sf probe` or `sf probe 0:0` can detect
> > qspi flashes on my platform. But after using DM, I should use `sf probe
> > 35536896:0` to probe flashes. 35536896 is the address of QSPI controller's
> > reg base 0x021e4000 in hex format. Does I miss something in my driver? It
> > seems dev->seq is not valid so should pass req_seq which is the address of
> > qspi controller in dts file.
> >
> > Any ideas?
> 
> You can use:
> 
> aliases {
>    spi0 = "/spi at xxxx";
> }
> 
> to correct the sequence number.
> 
> It would be better if we had a way to indicate a bus where reg
> provides the sequence number, so we know when it doesn't. I haven't
> come up with a good idea on that yet.



My device tree source is growing its aliases node...


arch/arm/dts/uniphier-ph1-pro4-ref.dts


        aliases {
                serial0 = &uart0;
                serial1 = &uart1;
                serial2 = &uart2;
                serial3 = &uart3;
                i2c0 = &i2c0;
                i2c1 = &i2c1;
                i2c2 = &i2c2;
                i2c3 = &i2c3;
                i2c5 = &i2c5;
                i2c6 = &i2c6;
        };




Best Regards
Masahiro Yamada



More information about the U-Boot mailing list