RE: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-18 Thread Sagar Kadam
Hi Jagan,

> -Original Message-
> From: Jagan Teki 
> Sent: Saturday, April 18, 2020 4:12 PM
> To: Sagar Kadam 
> Cc: Bin Meng ; U-Boot Mailing List  b...@lists.denx.de>; linux-amarula  amar...@amarulasolutions.com>; pal...@dabbelt.com
> Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> support
> 
> [External Email] Do not click links or attachments unless you recognize the
> sender and know the content is safe
> 
> Hi Sagar,
> 
> On Sat, Apr 18, 2020 at 4:05 PM Sagar Kadam 
> wrote:
> >
> > Hello Jagan,
> >
> > > -Original Message-
> > > From: Jagan Teki 
> > > Sent: Saturday, April 18, 2020 1:11 AM
> > > To: Sagar Kadam 
> > > Cc: Bin Meng ; U-Boot Mailing List  > > b...@lists.denx.de>; linux-amarula  > > amar...@amarulasolutions.com>; pal...@dabbelt.com
> > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > > support
> > >
> > > [External Email] Do not click links or attachments unless you recognize
> the
> > > sender and know the content is safe
> > >
> > > Hi Sagar,
> > >
> > > On Fri, Apr 17, 2020 at 11:50 PM Sagar Kadam
> 
> > > wrote:
> > > >
> > > > Hello Jagan,
> > > >
> > > > > -Original Message-----
> > > > > From: Jagan Teki 
> > > > > Sent: Friday, April 17, 2020 1:30 PM
> > > > > To: Sagar Kadam 
> > > > > Cc: Bin Meng ; U-Boot Mailing List  > > > > b...@lists.denx.de>; linux-amarula  > > > > amar...@amarulasolutions.com>; pal...@dabbelt.com
> > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor
> flash
> > > > > support
> > > > >
> > > > > [External Email] Do not click links or attachments unless you
> recognize
> > > the
> > > > > sender and know the content is safe
> > > > >
> > > > > Hi Sagar,
> > > > >
> > > > > On Tue, Apr 7, 2020 at 9:48 PM Sagar Kadam
> 
> > > > > wrote:
> > > > > >
> > > > > > Hello Jagan,
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: Jagan Teki 
> > > > > > > Sent: Monday, April 6, 2020 9:30 PM
> > > > > > > To: Sagar Kadam 
> > > > > > > Cc: Bin Meng ; Palmer Dabbelt
> > > > > > > ; U-Boot Mailing List  b...@lists.denx.de>;
> > > > > > > linux- amarula 
> > > > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor
> > > > > > > flash support
> > > > > > >
> > > > > > > [External Email] Do not click links or attachments unless you
> > > > > > > recognize the sender and know the content is safe
> > > > > > >
> > > > > > > Hi Sagar,
> > > > > > >
> > > > > > > On Sun, Apr 5, 2020 at 12:29 AM Sagar Kadam
> > > > > 
> > > > > > > wrote:
> > > > > > > >
> > > > > > > > Hello Jagan,
> > > > > > > >
> > > > > > > > > -Original Message-
> > > > > > > > > From: Jagan Teki 
> > > > > > > > > Sent: Saturday, April 4, 2020 11:45 PM
> > > > > > > > > To: Sagar Kadam 
> > > > > > > > > Cc: Bin Meng ; Palmer Dabbelt
> > > > > > > > > ; U-Boot Mailing List  > > b...@lists.denx.de>;
> > > > > > > linux-
> > > > > > > > > amarula 
> > > > > > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable
> > > > > > > > > spi-nor flash support
> > > > > > > > >
> > > > > > > > > [External Email] Do not click links or attachments unless you
> > > > > > > > > recognize
> > > > > > > the
> > > > > > > > > sender and know the content is safe
> > > > > > > > >
> > > > > > > > > Hi Sagar,
> > > > > > > > >
> > > > > > > > > On Mon, Nov 18, 2019 at 2:29 AM Sagar Kadam
> > > > > > > 
> > > &g

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-18 Thread Jagan Teki
Hi Sagar,

On Sat, Apr 18, 2020 at 4:05 PM Sagar Kadam  wrote:
>
> Hello Jagan,
>
> > -Original Message-
> > From: Jagan Teki 
> > Sent: Saturday, April 18, 2020 1:11 AM
> > To: Sagar Kadam 
> > Cc: Bin Meng ; U-Boot Mailing List  > b...@lists.denx.de>; linux-amarula  > amar...@amarulasolutions.com>; pal...@dabbelt.com
> > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > support
> >
> > [External Email] Do not click links or attachments unless you recognize the
> > sender and know the content is safe
> >
> > Hi Sagar,
> >
> > On Fri, Apr 17, 2020 at 11:50 PM Sagar Kadam 
> > wrote:
> > >
> > > Hello Jagan,
> > >
> > > > -Original Message-
> > > > From: Jagan Teki 
> > > > Sent: Friday, April 17, 2020 1:30 PM
> > > > To: Sagar Kadam 
> > > > Cc: Bin Meng ; U-Boot Mailing List  > > > b...@lists.denx.de>; linux-amarula  > > > amar...@amarulasolutions.com>; pal...@dabbelt.com
> > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > > > support
> > > >
> > > > [External Email] Do not click links or attachments unless you recognize
> > the
> > > > sender and know the content is safe
> > > >
> > > > Hi Sagar,
> > > >
> > > > On Tue, Apr 7, 2020 at 9:48 PM Sagar Kadam 
> > > > wrote:
> > > > >
> > > > > Hello Jagan,
> > > > >
> > > > > > -Original Message-
> > > > > > From: Jagan Teki 
> > > > > > Sent: Monday, April 6, 2020 9:30 PM
> > > > > > To: Sagar Kadam 
> > > > > > Cc: Bin Meng ; Palmer Dabbelt
> > > > > > ; U-Boot Mailing List ;
> > > > > > linux- amarula 
> > > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor
> > > > > > flash support
> > > > > >
> > > > > > [External Email] Do not click links or attachments unless you
> > > > > > recognize the sender and know the content is safe
> > > > > >
> > > > > > Hi Sagar,
> > > > > >
> > > > > > On Sun, Apr 5, 2020 at 12:29 AM Sagar Kadam
> > > > 
> > > > > > wrote:
> > > > > > >
> > > > > > > Hello Jagan,
> > > > > > >
> > > > > > > > -Original Message-
> > > > > > > > From: Jagan Teki 
> > > > > > > > Sent: Saturday, April 4, 2020 11:45 PM
> > > > > > > > To: Sagar Kadam 
> > > > > > > > Cc: Bin Meng ; Palmer Dabbelt
> > > > > > > > ; U-Boot Mailing List  > b...@lists.denx.de>;
> > > > > > linux-
> > > > > > > > amarula 
> > > > > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable
> > > > > > > > spi-nor flash support
> > > > > > > >
> > > > > > > > [External Email] Do not click links or attachments unless you
> > > > > > > > recognize
> > > > > > the
> > > > > > > > sender and know the content is safe
> > > > > > > >
> > > > > > > > Hi Sagar,
> > > > > > > >
> > > > > > > > On Mon, Nov 18, 2019 at 2:29 AM Sagar Kadam
> > > > > > 
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Hello Jagan/Bin,
> > > > > > > > >
> > > > > > > > > > -Original Message-
> > > > > > > > > > From: U-Boot  On Behalf Of
> > Bin
> > > > > > Meng
> > > > > > > > > > Sent: Monday, November 11, 2019 8:02 PM
> > > > > > > > > > To: Jagan Teki 
> > > > > > > > > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot
> > > > > > > > > > Mailing
> > > > > > List
> > > > > > > >  > > > > > > > > > b...@lists.denx.de>; linux-amarula  > > > > > > > amar...@amarulasolutions.com>
> > > > > &g

RE: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-18 Thread Sagar Kadam
Hello Jagan,

> -Original Message-
> From: Jagan Teki 
> Sent: Saturday, April 18, 2020 1:11 AM
> To: Sagar Kadam 
> Cc: Bin Meng ; U-Boot Mailing List  b...@lists.denx.de>; linux-amarula  amar...@amarulasolutions.com>; pal...@dabbelt.com
> Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> support
> 
> [External Email] Do not click links or attachments unless you recognize the
> sender and know the content is safe
> 
> Hi Sagar,
> 
> On Fri, Apr 17, 2020 at 11:50 PM Sagar Kadam 
> wrote:
> >
> > Hello Jagan,
> >
> > > -Original Message-
> > > From: Jagan Teki 
> > > Sent: Friday, April 17, 2020 1:30 PM
> > > To: Sagar Kadam 
> > > Cc: Bin Meng ; U-Boot Mailing List  > > b...@lists.denx.de>; linux-amarula  > > amar...@amarulasolutions.com>; pal...@dabbelt.com
> > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > > support
> > >
> > > [External Email] Do not click links or attachments unless you recognize
> the
> > > sender and know the content is safe
> > >
> > > Hi Sagar,
> > >
> > > On Tue, Apr 7, 2020 at 9:48 PM Sagar Kadam 
> > > wrote:
> > > >
> > > > Hello Jagan,
> > > >
> > > > > -Original Message-----
> > > > > From: Jagan Teki 
> > > > > Sent: Monday, April 6, 2020 9:30 PM
> > > > > To: Sagar Kadam 
> > > > > Cc: Bin Meng ; Palmer Dabbelt
> > > > > ; U-Boot Mailing List ;
> > > > > linux- amarula 
> > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor
> > > > > flash support
> > > > >
> > > > > [External Email] Do not click links or attachments unless you
> > > > > recognize the sender and know the content is safe
> > > > >
> > > > > Hi Sagar,
> > > > >
> > > > > On Sun, Apr 5, 2020 at 12:29 AM Sagar Kadam
> > > 
> > > > > wrote:
> > > > > >
> > > > > > Hello Jagan,
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: Jagan Teki 
> > > > > > > Sent: Saturday, April 4, 2020 11:45 PM
> > > > > > > To: Sagar Kadam 
> > > > > > > Cc: Bin Meng ; Palmer Dabbelt
> > > > > > > ; U-Boot Mailing List  b...@lists.denx.de>;
> > > > > linux-
> > > > > > > amarula 
> > > > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable
> > > > > > > spi-nor flash support
> > > > > > >
> > > > > > > [External Email] Do not click links or attachments unless you
> > > > > > > recognize
> > > > > the
> > > > > > > sender and know the content is safe
> > > > > > >
> > > > > > > Hi Sagar,
> > > > > > >
> > > > > > > On Mon, Nov 18, 2019 at 2:29 AM Sagar Kadam
> > > > > 
> > > > > > > wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Hello Jagan/Bin,
> > > > > > > >
> > > > > > > > > -Original Message-
> > > > > > > > > From: U-Boot  On Behalf Of
> Bin
> > > > > Meng
> > > > > > > > > Sent: Monday, November 11, 2019 8:02 PM
> > > > > > > > > To: Jagan Teki 
> > > > > > > > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot
> > > > > > > > > Mailing
> > > > > List
> > > > > > >  > > > > > > > > b...@lists.denx.de>; linux-amarula  > > > > > > amar...@amarulasolutions.com>
> > > > > > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable
> > > > > > > > > spi-nor
> > > > > flash
> > > > > > > > > support
> > > > > > > > >
> > > > > > > > > Hi Jagan,
> > > > > > > > >
> > > > > > > > > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki
> > > > > > > 
> > > > > > > > > wrote:
> > > > > > > > &

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-17 Thread Jagan Teki
Hi Sagar,

On Fri, Apr 17, 2020 at 11:50 PM Sagar Kadam  wrote:
>
> Hello Jagan,
>
> > -Original Message-
> > From: Jagan Teki 
> > Sent: Friday, April 17, 2020 1:30 PM
> > To: Sagar Kadam 
> > Cc: Bin Meng ; U-Boot Mailing List  > b...@lists.denx.de>; linux-amarula  > amar...@amarulasolutions.com>; pal...@dabbelt.com
> > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > support
> >
> > [External Email] Do not click links or attachments unless you recognize the
> > sender and know the content is safe
> >
> > Hi Sagar,
> >
> > On Tue, Apr 7, 2020 at 9:48 PM Sagar Kadam 
> > wrote:
> > >
> > > Hello Jagan,
> > >
> > > > -Original Message-
> > > > From: Jagan Teki 
> > > > Sent: Monday, April 6, 2020 9:30 PM
> > > > To: Sagar Kadam 
> > > > Cc: Bin Meng ; Palmer Dabbelt
> > > > ; U-Boot Mailing List ;
> > > > linux- amarula 
> > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor
> > > > flash support
> > > >
> > > > [External Email] Do not click links or attachments unless you
> > > > recognize the sender and know the content is safe
> > > >
> > > > Hi Sagar,
> > > >
> > > > On Sun, Apr 5, 2020 at 12:29 AM Sagar Kadam
> > 
> > > > wrote:
> > > > >
> > > > > Hello Jagan,
> > > > >
> > > > > > -Original Message-
> > > > > > From: Jagan Teki 
> > > > > > Sent: Saturday, April 4, 2020 11:45 PM
> > > > > > To: Sagar Kadam 
> > > > > > Cc: Bin Meng ; Palmer Dabbelt
> > > > > > ; U-Boot Mailing List ;
> > > > linux-
> > > > > > amarula 
> > > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable
> > > > > > spi-nor flash support
> > > > > >
> > > > > > [External Email] Do not click links or attachments unless you
> > > > > > recognize
> > > > the
> > > > > > sender and know the content is safe
> > > > > >
> > > > > > Hi Sagar,
> > > > > >
> > > > > > On Mon, Nov 18, 2019 at 2:29 AM Sagar Kadam
> > > > 
> > > > > > wrote:
> > > > > > >
> > > > > > >
> > > > > > > Hello Jagan/Bin,
> > > > > > >
> > > > > > > > -Original Message-
> > > > > > > > From: U-Boot  On Behalf Of Bin
> > > > Meng
> > > > > > > > Sent: Monday, November 11, 2019 8:02 PM
> > > > > > > > To: Jagan Teki 
> > > > > > > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot
> > > > > > > > Mailing
> > > > List
> > > > > >  > > > > > > > b...@lists.denx.de>; linux-amarula  > > > > > amar...@amarulasolutions.com>
> > > > > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable
> > > > > > > > spi-nor
> > > > flash
> > > > > > > > support
> > > > > > > >
> > > > > > > > Hi Jagan,
> > > > > > > >
> > > > > > > > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki
> > > > > > 
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > Hi Bin,
> > > > > > > > >
> > > > > > > > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng
> > > > > > > > > 
> > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Jagan,
> > > > > > > > > >
> > > > > > > > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng
> > > > 
> > > > > > > > wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Jagan,
> > > > > > > > > > >
> > > > > > > > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> > > > > > > >  wrote:
> > > > > > > > > > > >
> >

RE: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-17 Thread Sagar Kadam
Hello Jagan,

> -Original Message-
> From: Jagan Teki 
> Sent: Friday, April 17, 2020 1:30 PM
> To: Sagar Kadam 
> Cc: Bin Meng ; U-Boot Mailing List  b...@lists.denx.de>; linux-amarula  amar...@amarulasolutions.com>; pal...@dabbelt.com
> Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> support
> 
> [External Email] Do not click links or attachments unless you recognize the
> sender and know the content is safe
> 
> Hi Sagar,
> 
> On Tue, Apr 7, 2020 at 9:48 PM Sagar Kadam 
> wrote:
> >
> > Hello Jagan,
> >
> > > -Original Message-
> > > From: Jagan Teki 
> > > Sent: Monday, April 6, 2020 9:30 PM
> > > To: Sagar Kadam 
> > > Cc: Bin Meng ; Palmer Dabbelt
> > > ; U-Boot Mailing List ;
> > > linux- amarula 
> > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor
> > > flash support
> > >
> > > [External Email] Do not click links or attachments unless you
> > > recognize the sender and know the content is safe
> > >
> > > Hi Sagar,
> > >
> > > On Sun, Apr 5, 2020 at 12:29 AM Sagar Kadam
> 
> > > wrote:
> > > >
> > > > Hello Jagan,
> > > >
> > > > > -----Original Message-----
> > > > > From: Jagan Teki 
> > > > > Sent: Saturday, April 4, 2020 11:45 PM
> > > > > To: Sagar Kadam 
> > > > > Cc: Bin Meng ; Palmer Dabbelt
> > > > > ; U-Boot Mailing List ;
> > > linux-
> > > > > amarula 
> > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable
> > > > > spi-nor flash support
> > > > >
> > > > > [External Email] Do not click links or attachments unless you
> > > > > recognize
> > > the
> > > > > sender and know the content is safe
> > > > >
> > > > > Hi Sagar,
> > > > >
> > > > > On Mon, Nov 18, 2019 at 2:29 AM Sagar Kadam
> > > 
> > > > > wrote:
> > > > > >
> > > > > >
> > > > > > Hello Jagan/Bin,
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: U-Boot  On Behalf Of Bin
> > > Meng
> > > > > > > Sent: Monday, November 11, 2019 8:02 PM
> > > > > > > To: Jagan Teki 
> > > > > > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot
> > > > > > > Mailing
> > > List
> > > > >  > > > > > > b...@lists.denx.de>; linux-amarula  > > > > amar...@amarulasolutions.com>
> > > > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable
> > > > > > > spi-nor
> > > flash
> > > > > > > support
> > > > > > >
> > > > > > > Hi Jagan,
> > > > > > >
> > > > > > > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki
> > > > > 
> > > > > > > wrote:
> > > > > > > >
> > > > > > > > Hi Bin,
> > > > > > > >
> > > > > > > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng
> > > > > > > > 
> > > > > wrote:
> > > > > > > > >
> > > > > > > > > Hi Jagan,
> > > > > > > > >
> > > > > > > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng
> > > 
> > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Jagan,
> > > > > > > > > >
> > > > > > > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> > > > > > >  wrote:
> > > > > > > > > > >
> > > > > > > > > > > HiFive Unleashed A00 support is25wp256 spi-nor
> > > > > > > > > > > flash, So enable the same and add test result log
> > > > > > > > > > > for future reference.
> > > > > > > > > > >
> > > > > > > > > > > Tested on SiFive FU540 board.
> > > > > > > > > > >
> > > > > > > > > > > Signed-off-by: Jagan Teki
> > > > > > > > > > > 

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-17 Thread Jagan Teki
Hi Sagar,

On Tue, Apr 7, 2020 at 9:48 PM Sagar Kadam  wrote:
>
> Hello Jagan,
>
> > -Original Message-
> > From: Jagan Teki 
> > Sent: Monday, April 6, 2020 9:30 PM
> > To: Sagar Kadam 
> > Cc: Bin Meng ; Palmer Dabbelt
> > ; U-Boot Mailing List ; linux-
> > amarula 
> > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > support
> >
> > [External Email] Do not click links or attachments unless you recognize the
> > sender and know the content is safe
> >
> > Hi Sagar,
> >
> > On Sun, Apr 5, 2020 at 12:29 AM Sagar Kadam 
> > wrote:
> > >
> > > Hello Jagan,
> > >
> > > > -Original Message-
> > > > From: Jagan Teki 
> > > > Sent: Saturday, April 4, 2020 11:45 PM
> > > > To: Sagar Kadam 
> > > > Cc: Bin Meng ; Palmer Dabbelt
> > > > ; U-Boot Mailing List ;
> > linux-
> > > > amarula 
> > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > > > support
> > > >
> > > > [External Email] Do not click links or attachments unless you recognize
> > the
> > > > sender and know the content is safe
> > > >
> > > > Hi Sagar,
> > > >
> > > > On Mon, Nov 18, 2019 at 2:29 AM Sagar Kadam
> > 
> > > > wrote:
> > > > >
> > > > >
> > > > > Hello Jagan/Bin,
> > > > >
> > > > > > -Original Message-
> > > > > > From: U-Boot  On Behalf Of Bin
> > Meng
> > > > > > Sent: Monday, November 11, 2019 8:02 PM
> > > > > > To: Jagan Teki 
> > > > > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot Mailing
> > List
> > > >  > > > > > b...@lists.denx.de>; linux-amarula  > > > amar...@amarulasolutions.com>
> > > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor
> > flash
> > > > > > support
> > > > > >
> > > > > > Hi Jagan,
> > > > > >
> > > > > > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki
> > > > 
> > > > > > wrote:
> > > > > > >
> > > > > > > Hi Bin,
> > > > > > >
> > > > > > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng 
> > > > wrote:
> > > > > > > >
> > > > > > > > Hi Jagan,
> > > > > > > >
> > > > > > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng
> > 
> > > > > > wrote:
> > > > > > > > >
> > > > > > > > > Hi Jagan,
> > > > > > > > >
> > > > > > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> > > > > >  wrote:
> > > > > > > > > >
> > > > > > > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > > > > > > > So enable the same and add test result log for future
> > > > > > > > > > reference.
> > > > > > > > > >
> > > > > > > > > > Tested on SiFive FU540 board.
> > > > > > > > > >
> > > > > > > > > > Signed-off-by: Jagan Teki 
> > > > > > > > > > Reviewed-by: Bin Meng 
> > > > > > > > > > Tested-by: Bin Meng 
> > > > > > > > > > ---
> > > > > > > > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > > > > > > > >  board/sifive/fu540/Kconfig|  3 +++
> > > > > > > > > >  doc/board/sifive/fu540.rst| 19
> > > > +++
> > > > > > > > > >  3 files changed, 23 insertions(+)
> > > > > > > > > >
> > > > > > > > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > > > index 25ec8265a5..d7a64134db 100644
> > > > > > > > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-13 Thread Jagan Teki
On Tue, Apr 7, 2020 at 9:48 PM Sagar Kadam  wrote:
>
> Hello Jagan,
>
> > -Original Message-
> > From: Jagan Teki 
> > Sent: Monday, April 6, 2020 9:30 PM
> > To: Sagar Kadam 
> > Cc: Bin Meng ; Palmer Dabbelt
> > ; U-Boot Mailing List ; linux-
> > amarula 
> > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > support
> >
> > [External Email] Do not click links or attachments unless you recognize the
> > sender and know the content is safe
> >
> > Hi Sagar,
> >
> > On Sun, Apr 5, 2020 at 12:29 AM Sagar Kadam 
> > wrote:
> > >
> > > Hello Jagan,
> > >
> > > > -Original Message-
> > > > From: Jagan Teki 
> > > > Sent: Saturday, April 4, 2020 11:45 PM
> > > > To: Sagar Kadam 
> > > > Cc: Bin Meng ; Palmer Dabbelt
> > > > ; U-Boot Mailing List ;
> > linux-
> > > > amarula 
> > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > > > support
> > > >
> > > > [External Email] Do not click links or attachments unless you recognize
> > the
> > > > sender and know the content is safe
> > > >
> > > > Hi Sagar,
> > > >
> > > > On Mon, Nov 18, 2019 at 2:29 AM Sagar Kadam
> > 
> > > > wrote:
> > > > >
> > > > >
> > > > > Hello Jagan/Bin,
> > > > >
> > > > > > -Original Message-
> > > > > > From: U-Boot  On Behalf Of Bin
> > Meng
> > > > > > Sent: Monday, November 11, 2019 8:02 PM
> > > > > > To: Jagan Teki 
> > > > > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot Mailing
> > List
> > > >  > > > > > b...@lists.denx.de>; linux-amarula  > > > amar...@amarulasolutions.com>
> > > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor
> > flash
> > > > > > support
> > > > > >
> > > > > > Hi Jagan,
> > > > > >
> > > > > > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki
> > > > 
> > > > > > wrote:
> > > > > > >
> > > > > > > Hi Bin,
> > > > > > >
> > > > > > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng 
> > > > wrote:
> > > > > > > >
> > > > > > > > Hi Jagan,
> > > > > > > >
> > > > > > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng
> > 
> > > > > > wrote:
> > > > > > > > >
> > > > > > > > > Hi Jagan,
> > > > > > > > >
> > > > > > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> > > > > >  wrote:
> > > > > > > > > >
> > > > > > > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > > > > > > > So enable the same and add test result log for future
> > > > > > > > > > reference.
> > > > > > > > > >
> > > > > > > > > > Tested on SiFive FU540 board.
> > > > > > > > > >
> > > > > > > > > > Signed-off-by: Jagan Teki 
> > > > > > > > > > Reviewed-by: Bin Meng 
> > > > > > > > > > Tested-by: Bin Meng 
> > > > > > > > > > ---
> > > > > > > > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > > > > > > > >  board/sifive/fu540/Kconfig|  3 +++
> > > > > > > > > >  doc/board/sifive/fu540.rst| 19
> > > > +++
> > > > > > > > > >  3 files changed, 23 insertions(+)
> > > > > > > > > >
> > > > > > > > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > > > index 25ec8265a5..d7a64134db 100644
> > > > > > > > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-

RE: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-07 Thread Sagar Kadam
Hello Jagan,

> -Original Message-
> From: Jagan Teki 
> Sent: Monday, April 6, 2020 9:30 PM
> To: Sagar Kadam 
> Cc: Bin Meng ; Palmer Dabbelt
> ; U-Boot Mailing List ; linux-
> amarula 
> Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> support
> 
> [External Email] Do not click links or attachments unless you recognize the
> sender and know the content is safe
> 
> Hi Sagar,
> 
> On Sun, Apr 5, 2020 at 12:29 AM Sagar Kadam 
> wrote:
> >
> > Hello Jagan,
> >
> > > -Original Message-
> > > From: Jagan Teki 
> > > Sent: Saturday, April 4, 2020 11:45 PM
> > > To: Sagar Kadam 
> > > Cc: Bin Meng ; Palmer Dabbelt
> > > ; U-Boot Mailing List ;
> linux-
> > > amarula 
> > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > > support
> > >
> > > [External Email] Do not click links or attachments unless you recognize
> the
> > > sender and know the content is safe
> > >
> > > Hi Sagar,
> > >
> > > On Mon, Nov 18, 2019 at 2:29 AM Sagar Kadam
> 
> > > wrote:
> > > >
> > > >
> > > > Hello Jagan/Bin,
> > > >
> > > > > -Original Message-----
> > > > > From: U-Boot  On Behalf Of Bin
> Meng
> > > > > Sent: Monday, November 11, 2019 8:02 PM
> > > > > To: Jagan Teki 
> > > > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot Mailing
> List
> > >  > > > > b...@lists.denx.de>; linux-amarula  > > amar...@amarulasolutions.com>
> > > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor
> flash
> > > > > support
> > > > >
> > > > > Hi Jagan,
> > > > >
> > > > > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki
> > > 
> > > > > wrote:
> > > > > >
> > > > > > Hi Bin,
> > > > > >
> > > > > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng 
> > > wrote:
> > > > > > >
> > > > > > > Hi Jagan,
> > > > > > >
> > > > > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng
> 
> > > > > wrote:
> > > > > > > >
> > > > > > > > Hi Jagan,
> > > > > > > >
> > > > > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> > > > >  wrote:
> > > > > > > > >
> > > > > > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > > > > > > So enable the same and add test result log for future
> > > > > > > > > reference.
> > > > > > > > >
> > > > > > > > > Tested on SiFive FU540 board.
> > > > > > > > >
> > > > > > > > > Signed-off-by: Jagan Teki 
> > > > > > > > > Reviewed-by: Bin Meng 
> > > > > > > > > Tested-by: Bin Meng 
> > > > > > > > > ---
> > > > > > > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > > > > > > >  board/sifive/fu540/Kconfig|  3 +++
> > > > > > > > >  doc/board/sifive/fu540.rst| 19
> > > +++
> > > > > > > > >  3 files changed, 23 insertions(+)
> > > > > > > > >
> > > > > > > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > > index 25ec8265a5..d7a64134db 100644
> > > > > > > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > > @@ -5,6 +5,7 @@
> > > > > > > > >
> > > > > > > > >  / {
> > > > > > > > > aliases {
> > > > > > > > > +   spi0 = 
> > > > > > > > > spi2 = 
> > > > > > > > > };
> > > > > > > > >  };
> > > > > > > > > diff --git a/board/sifive/fu540/Kconfig
> > > b/

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-06 Thread Jagan Teki
Hi Sagar,

On Sun, Apr 5, 2020 at 12:29 AM Sagar Kadam  wrote:
>
> Hello Jagan,
>
> > -Original Message-
> > From: Jagan Teki 
> > Sent: Saturday, April 4, 2020 11:45 PM
> > To: Sagar Kadam 
> > Cc: Bin Meng ; Palmer Dabbelt
> > ; U-Boot Mailing List ; linux-
> > amarula 
> > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > support
> >
> > [External Email] Do not click links or attachments unless you recognize the
> > sender and know the content is safe
> >
> > Hi Sagar,
> >
> > On Mon, Nov 18, 2019 at 2:29 AM Sagar Kadam 
> > wrote:
> > >
> > >
> > > Hello Jagan/Bin,
> > >
> > > > -Original Message-
> > > > From: U-Boot  On Behalf Of Bin Meng
> > > > Sent: Monday, November 11, 2019 8:02 PM
> > > > To: Jagan Teki 
> > > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot Mailing List
> >  > > > b...@lists.denx.de>; linux-amarula  > amar...@amarulasolutions.com>
> > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > > > support
> > > >
> > > > Hi Jagan,
> > > >
> > > > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki
> > 
> > > > wrote:
> > > > >
> > > > > Hi Bin,
> > > > >
> > > > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng 
> > wrote:
> > > > > >
> > > > > > Hi Jagan,
> > > > > >
> > > > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng 
> > > > wrote:
> > > > > > >
> > > > > > > Hi Jagan,
> > > > > > >
> > > > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> > > >  wrote:
> > > > > > > >
> > > > > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > > > > > So enable the same and add test result log for future
> > > > > > > > reference.
> > > > > > > >
> > > > > > > > Tested on SiFive FU540 board.
> > > > > > > >
> > > > > > > > Signed-off-by: Jagan Teki 
> > > > > > > > Reviewed-by: Bin Meng 
> > > > > > > > Tested-by: Bin Meng 
> > > > > > > > ---
> > > > > > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > > > > > >  board/sifive/fu540/Kconfig|  3 +++
> > > > > > > >  doc/board/sifive/fu540.rst| 19
> > +++
> > > > > > > >  3 files changed, 23 insertions(+)
> > > > > > > >
> > > > > > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > index 25ec8265a5..d7a64134db 100644
> > > > > > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > @@ -5,6 +5,7 @@
> > > > > > > >
> > > > > > > >  / {
> > > > > > > > aliases {
> > > > > > > > +   spi0 = 
> > > > > > > > spi2 = 
> > > > > > > > };
> > > > > > > >  };
> > > > > > > > diff --git a/board/sifive/fu540/Kconfig
> > b/board/sifive/fu540/Kconfig
> > > > > > > > index 5d65080429..c5a1bca03c 100644
> > > > > > > > --- a/board/sifive/fu540/Kconfig
> > > > > > > > +++ b/board/sifive/fu540/Kconfig
> > > > > > > > @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > > > imply CMD_FS_GENERIC
> > > > > > > > imply CMD_NET
> > > > > > > > imply CMD_PING
> > > > > > > > +   imply CMD_SF
> > > > > > > > imply CLK_SIFIVE
> > > > > > > > imply CLK_SIFIVE_FU540_PRCI
> > > > > > > > imply DOS_PARTITION
> > > > > > > > @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > &g

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-05 Thread Bin Meng
Hi Jagan,

On Sun, Apr 5, 2020 at 2:44 AM Jagan Teki  wrote:
>
> Hi Bin,
>
> On Mon, Nov 18, 2019 at 8:19 AM Bin Meng  wrote:
> >
> > Hi Segar Kadam,
> >
> > On Mon, Nov 18, 2019 at 4:59 AM Sagar Kadam  wrote:
> > >
> > >
> > > Hello Jagan/Bin,
> > >
> > > > -Original Message-
> > > > From: U-Boot  On Behalf Of Bin Meng
> > > > Sent: Monday, November 11, 2019 8:02 PM
> > > > To: Jagan Teki 
> > > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot Mailing List 
> > > >  > > > b...@lists.denx.de>; linux-amarula 
> > > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > > > support
> > > >
> > > > Hi Jagan,
> > > >
> > > > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki 
> > > > wrote:
> > > > >
> > > > > Hi Bin,
> > > > >
> > > > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng  wrote:
> > > > > >
> > > > > > Hi Jagan,
> > > > > >
> > > > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng 
> > > > wrote:
> > > > > > >
> > > > > > > Hi Jagan,
> > > > > > >
> > > > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> > > >  wrote:
> > > > > > > >
> > > > > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > > > > > So enable the same and add test result log for future
> > > > > > > > reference.
> > > > > > > >
> > > > > > > > Tested on SiFive FU540 board.
> > > > > > > >
> > > > > > > > Signed-off-by: Jagan Teki 
> > > > > > > > Reviewed-by: Bin Meng 
> > > > > > > > Tested-by: Bin Meng 
> > > > > > > > ---
> > > > > > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > > > > > >  board/sifive/fu540/Kconfig|  3 +++
> > > > > > > >  doc/board/sifive/fu540.rst| 19 
> > > > > > > > +++
> > > > > > > >  3 files changed, 23 insertions(+)
> > > > > > > >
> > > > > > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > index 25ec8265a5..d7a64134db 100644
> > > > > > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > > @@ -5,6 +5,7 @@
> > > > > > > >
> > > > > > > >  / {
> > > > > > > > aliases {
> > > > > > > > +   spi0 = 
> > > > > > > > spi2 = 
> > > > > > > > };
> > > > > > > >  };
> > > > > > > > diff --git a/board/sifive/fu540/Kconfig 
> > > > > > > > b/board/sifive/fu540/Kconfig
> > > > > > > > index 5d65080429..c5a1bca03c 100644
> > > > > > > > --- a/board/sifive/fu540/Kconfig
> > > > > > > > +++ b/board/sifive/fu540/Kconfig
> > > > > > > > @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > > > imply CMD_FS_GENERIC
> > > > > > > > imply CMD_NET
> > > > > > > > imply CMD_PING
> > > > > > > > +   imply CMD_SF
> > > > > > > > imply CLK_SIFIVE
> > > > > > > > imply CLK_SIFIVE_FU540_PRCI
> > > > > > > > imply DOS_PARTITION
> > > > > > > > @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > > > imply SIFIVE_SERIAL
> > > > > > > > imply SPI
> > > > > > > > imply SPI_SIFIVE
> > > > > > > > +   imply SPI_FLASH
> > > > > > > > +   imply SPI_FLASH_ISSI
> > > > > > > > imply MMC
> > > > > > > > imply MMC_SPI
> >

RE: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-04 Thread Sagar Kadam
Hello Jagan,

> -Original Message-
> From: Jagan Teki 
> Sent: Saturday, April 4, 2020 11:45 PM
> To: Sagar Kadam 
> Cc: Bin Meng ; Palmer Dabbelt
> ; U-Boot Mailing List ; linux-
> amarula 
> Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> support
> 
> [External Email] Do not click links or attachments unless you recognize the
> sender and know the content is safe
> 
> Hi Sagar,
> 
> On Mon, Nov 18, 2019 at 2:29 AM Sagar Kadam 
> wrote:
> >
> >
> > Hello Jagan/Bin,
> >
> > > -Original Message-
> > > From: U-Boot  On Behalf Of Bin Meng
> > > Sent: Monday, November 11, 2019 8:02 PM
> > > To: Jagan Teki 
> > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot Mailing List
>  > > b...@lists.denx.de>; linux-amarula  amar...@amarulasolutions.com>
> > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > > support
> > >
> > > Hi Jagan,
> > >
> > > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki
> 
> > > wrote:
> > > >
> > > > Hi Bin,
> > > >
> > > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng 
> wrote:
> > > > >
> > > > > Hi Jagan,
> > > > >
> > > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng 
> > > wrote:
> > > > > >
> > > > > > Hi Jagan,
> > > > > >
> > > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> > >  wrote:
> > > > > > >
> > > > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > > > > So enable the same and add test result log for future
> > > > > > > reference.
> > > > > > >
> > > > > > > Tested on SiFive FU540 board.
> > > > > > >
> > > > > > > Signed-off-by: Jagan Teki 
> > > > > > > Reviewed-by: Bin Meng 
> > > > > > > Tested-by: Bin Meng 
> > > > > > > ---
> > > > > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > > > > >  board/sifive/fu540/Kconfig|  3 +++
> > > > > > >  doc/board/sifive/fu540.rst| 19
> +++
> > > > > > >  3 files changed, 23 insertions(+)
> > > > > > >
> > > > > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > index 25ec8265a5..d7a64134db 100644
> > > > > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > @@ -5,6 +5,7 @@
> > > > > > >
> > > > > > >  / {
> > > > > > > aliases {
> > > > > > > +   spi0 = 
> > > > > > > spi2 = 
> > > > > > > };
> > > > > > >  };
> > > > > > > diff --git a/board/sifive/fu540/Kconfig
> b/board/sifive/fu540/Kconfig
> > > > > > > index 5d65080429..c5a1bca03c 100644
> > > > > > > --- a/board/sifive/fu540/Kconfig
> > > > > > > +++ b/board/sifive/fu540/Kconfig
> > > > > > > @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > > imply CMD_FS_GENERIC
> > > > > > > imply CMD_NET
> > > > > > > imply CMD_PING
> > > > > > > +   imply CMD_SF
> > > > > > > imply CLK_SIFIVE
> > > > > > > imply CLK_SIFIVE_FU540_PRCI
> > > > > > > imply DOS_PARTITION
> > > > > > > @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > > imply SIFIVE_SERIAL
> > > > > > > imply SPI
> > > > > > > imply SPI_SIFIVE
> > > > > > > +   imply SPI_FLASH
> > > > > > > +   imply SPI_FLASH_ISSI
> > > > > > > imply MMC
> > > > > > > imply MMC_SPI
> > > > > > > imply MMC_BROKEN_CD
> > > > > > > diff --git a/doc/board/sifive/fu540.rst
> b/doc/board/sifive/fu540.rst
>

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-04 Thread Jagan Teki
Hi Bin,

On Mon, Nov 18, 2019 at 8:19 AM Bin Meng  wrote:
>
> Hi Segar Kadam,
>
> On Mon, Nov 18, 2019 at 4:59 AM Sagar Kadam  wrote:
> >
> >
> > Hello Jagan/Bin,
> >
> > > -Original Message-
> > > From: U-Boot  On Behalf Of Bin Meng
> > > Sent: Monday, November 11, 2019 8:02 PM
> > > To: Jagan Teki 
> > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot Mailing List  > > b...@lists.denx.de>; linux-amarula 
> > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > > support
> > >
> > > Hi Jagan,
> > >
> > > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki 
> > > wrote:
> > > >
> > > > Hi Bin,
> > > >
> > > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng  wrote:
> > > > >
> > > > > Hi Jagan,
> > > > >
> > > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng 
> > > wrote:
> > > > > >
> > > > > > Hi Jagan,
> > > > > >
> > > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> > >  wrote:
> > > > > > >
> > > > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > > > > So enable the same and add test result log for future
> > > > > > > reference.
> > > > > > >
> > > > > > > Tested on SiFive FU540 board.
> > > > > > >
> > > > > > > Signed-off-by: Jagan Teki 
> > > > > > > Reviewed-by: Bin Meng 
> > > > > > > Tested-by: Bin Meng 
> > > > > > > ---
> > > > > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > > > > >  board/sifive/fu540/Kconfig|  3 +++
> > > > > > >  doc/board/sifive/fu540.rst| 19 
> > > > > > > +++
> > > > > > >  3 files changed, 23 insertions(+)
> > > > > > >
> > > > > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > index 25ec8265a5..d7a64134db 100644
> > > > > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > @@ -5,6 +5,7 @@
> > > > > > >
> > > > > > >  / {
> > > > > > > aliases {
> > > > > > > +   spi0 = 
> > > > > > > spi2 = 
> > > > > > > };
> > > > > > >  };
> > > > > > > diff --git a/board/sifive/fu540/Kconfig 
> > > > > > > b/board/sifive/fu540/Kconfig
> > > > > > > index 5d65080429..c5a1bca03c 100644
> > > > > > > --- a/board/sifive/fu540/Kconfig
> > > > > > > +++ b/board/sifive/fu540/Kconfig
> > > > > > > @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > > imply CMD_FS_GENERIC
> > > > > > > imply CMD_NET
> > > > > > > imply CMD_PING
> > > > > > > +   imply CMD_SF
> > > > > > > imply CLK_SIFIVE
> > > > > > > imply CLK_SIFIVE_FU540_PRCI
> > > > > > > imply DOS_PARTITION
> > > > > > > @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > > imply SIFIVE_SERIAL
> > > > > > > imply SPI
> > > > > > > imply SPI_SIFIVE
> > > > > > > +   imply SPI_FLASH
> > > > > > > +   imply SPI_FLASH_ISSI
> > > > > > > imply MMC
> > > > > > > imply MMC_SPI
> > > > > > > imply MMC_BROKEN_CD
> > > > > > > diff --git a/doc/board/sifive/fu540.rst 
> > > > > > > b/doc/board/sifive/fu540.rst
> > > > > > > index 91b94ee06f..2e70cad02e 100644
> > > > > > > --- a/doc/board/sifive/fu540.rst
> > > > > > > +++ b/doc/board/sifive/fu540.rst
> > > > > > > @@ -366,3 +366,22 @@ load uImage.
> > > > > > >
> > > > > > &g

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-04 Thread Jagan Teki
Hi Sagar,

On Mon, Nov 18, 2019 at 2:29 AM Sagar Kadam  wrote:
>
>
> Hello Jagan/Bin,
>
> > -Original Message-
> > From: U-Boot  On Behalf Of Bin Meng
> > Sent: Monday, November 11, 2019 8:02 PM
> > To: Jagan Teki 
> > Cc: Palmer Dabbelt ( Sifive) ; U-Boot Mailing List  > b...@lists.denx.de>; linux-amarula 
> > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > support
> >
> > Hi Jagan,
> >
> > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki 
> > wrote:
> > >
> > > Hi Bin,
> > >
> > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng  wrote:
> > > >
> > > > Hi Jagan,
> > > >
> > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng 
> > wrote:
> > > > >
> > > > > Hi Jagan,
> > > > >
> > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> >  wrote:
> > > > > >
> > > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > > > So enable the same and add test result log for future
> > > > > > reference.
> > > > > >
> > > > > > Tested on SiFive FU540 board.
> > > > > >
> > > > > > Signed-off-by: Jagan Teki 
> > > > > > Reviewed-by: Bin Meng 
> > > > > > Tested-by: Bin Meng 
> > > > > > ---
> > > > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > > > >  board/sifive/fu540/Kconfig|  3 +++
> > > > > >  doc/board/sifive/fu540.rst| 19 
> > > > > > +++
> > > > > >  3 files changed, 23 insertions(+)
> > > > > >
> > > > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > index 25ec8265a5..d7a64134db 100644
> > > > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > @@ -5,6 +5,7 @@
> > > > > >
> > > > > >  / {
> > > > > > aliases {
> > > > > > +   spi0 = 
> > > > > > spi2 = 
> > > > > > };
> > > > > >  };
> > > > > > diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig
> > > > > > index 5d65080429..c5a1bca03c 100644
> > > > > > --- a/board/sifive/fu540/Kconfig
> > > > > > +++ b/board/sifive/fu540/Kconfig
> > > > > > @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > imply CMD_FS_GENERIC
> > > > > > imply CMD_NET
> > > > > > imply CMD_PING
> > > > > > +   imply CMD_SF
> > > > > > imply CLK_SIFIVE
> > > > > > imply CLK_SIFIVE_FU540_PRCI
> > > > > > imply DOS_PARTITION
> > > > > > @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > imply SIFIVE_SERIAL
> > > > > > imply SPI
> > > > > > imply SPI_SIFIVE
> > > > > > +   imply SPI_FLASH
> > > > > > +   imply SPI_FLASH_ISSI
> > > > > > imply MMC
> > > > > > imply MMC_SPI
> > > > > > imply MMC_BROKEN_CD
> > > > > > diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst
> > > > > > index 91b94ee06f..2e70cad02e 100644
> > > > > > --- a/doc/board/sifive/fu540.rst
> > > > > > +++ b/doc/board/sifive/fu540.rst
> > > > > > @@ -366,3 +366,22 @@ load uImage.
> > > > > >
> > > > > > Please press Enter to activate this console.
> > > > > > / #
> > > > > > +
> > > > > > +Sample spi nor flash test
> > > > > > +-
> > > > > > +
> > > > > > +.. code-block:: none
> > > > > > +
> > > > > > +   => sf probe 0:2
> > > > >
> > > > > The cs number can't be 2. It should be zero.
> > > >
> > > > With this patch series, we got crazy du

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-02 Thread Bin Meng
Hi Jagan,

On Mon, Nov 18, 2019 at 10:49 AM Bin Meng  wrote:
>
> Hi Segar Kadam,
>
> On Mon, Nov 18, 2019 at 4:59 AM Sagar Kadam  wrote:
> >
> >
> > Hello Jagan/Bin,
> >
> > > -Original Message-
> > > From: U-Boot  On Behalf Of Bin Meng
> > > Sent: Monday, November 11, 2019 8:02 PM
> > > To: Jagan Teki 
> > > Cc: Palmer Dabbelt ( Sifive) ; U-Boot Mailing List  > > b...@lists.denx.de>; linux-amarula 
> > > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > > support
> > >
> > > Hi Jagan,
> > >
> > > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki 
> > > wrote:
> > > >
> > > > Hi Bin,
> > > >
> > > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng  wrote:
> > > > >
> > > > > Hi Jagan,
> > > > >
> > > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng 
> > > wrote:
> > > > > >
> > > > > > Hi Jagan,
> > > > > >
> > > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> > >  wrote:
> > > > > > >
> > > > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > > > > So enable the same and add test result log for future
> > > > > > > reference.
> > > > > > >
> > > > > > > Tested on SiFive FU540 board.
> > > > > > >
> > > > > > > Signed-off-by: Jagan Teki 
> > > > > > > Reviewed-by: Bin Meng 
> > > > > > > Tested-by: Bin Meng 
> > > > > > > ---
> > > > > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > > > > >  board/sifive/fu540/Kconfig|  3 +++
> > > > > > >  doc/board/sifive/fu540.rst| 19 
> > > > > > > +++
> > > > > > >  3 files changed, 23 insertions(+)
> > > > > > >
> > > > > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > index 25ec8265a5..d7a64134db 100644
> > > > > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > > @@ -5,6 +5,7 @@
> > > > > > >
> > > > > > >  / {
> > > > > > > aliases {
> > > > > > > +   spi0 = 
> > > > > > > spi2 = 
> > > > > > > };
> > > > > > >  };
> > > > > > > diff --git a/board/sifive/fu540/Kconfig 
> > > > > > > b/board/sifive/fu540/Kconfig
> > > > > > > index 5d65080429..c5a1bca03c 100644
> > > > > > > --- a/board/sifive/fu540/Kconfig
> > > > > > > +++ b/board/sifive/fu540/Kconfig
> > > > > > > @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > > imply CMD_FS_GENERIC
> > > > > > > imply CMD_NET
> > > > > > > imply CMD_PING
> > > > > > > +   imply CMD_SF
> > > > > > > imply CLK_SIFIVE
> > > > > > > imply CLK_SIFIVE_FU540_PRCI
> > > > > > > imply DOS_PARTITION
> > > > > > > @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > > imply SIFIVE_SERIAL
> > > > > > > imply SPI
> > > > > > > imply SPI_SIFIVE
> > > > > > > +   imply SPI_FLASH
> > > > > > > +   imply SPI_FLASH_ISSI
> > > > > > > imply MMC
> > > > > > > imply MMC_SPI
> > > > > > > imply MMC_BROKEN_CD
> > > > > > > diff --git a/doc/board/sifive/fu540.rst 
> > > > > > > b/doc/board/sifive/fu540.rst
> > > > > > > index 91b94ee06f..2e70cad02e 100644
> > > > > > > --- a/doc/board/sifive/fu540.rst
> > > > > > > +++ b/doc/board/sifive/fu540.rst
> > > > > > > @@ -366,3 +366,22 @@ load uImage.
> > > > > > >
> > > > > > &g

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2019-11-17 Thread Bin Meng
Hi Segar Kadam,

On Mon, Nov 18, 2019 at 4:59 AM Sagar Kadam  wrote:
>
>
> Hello Jagan/Bin,
>
> > -Original Message-
> > From: U-Boot  On Behalf Of Bin Meng
> > Sent: Monday, November 11, 2019 8:02 PM
> > To: Jagan Teki 
> > Cc: Palmer Dabbelt ( Sifive) ; U-Boot Mailing List  > b...@lists.denx.de>; linux-amarula 
> > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> > support
> >
> > Hi Jagan,
> >
> > On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki 
> > wrote:
> > >
> > > Hi Bin,
> > >
> > > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng  wrote:
> > > >
> > > > Hi Jagan,
> > > >
> > > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng 
> > wrote:
> > > > >
> > > > > Hi Jagan,
> > > > >
> > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
> >  wrote:
> > > > > >
> > > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > > > So enable the same and add test result log for future
> > > > > > reference.
> > > > > >
> > > > > > Tested on SiFive FU540 board.
> > > > > >
> > > > > > Signed-off-by: Jagan Teki 
> > > > > > Reviewed-by: Bin Meng 
> > > > > > Tested-by: Bin Meng 
> > > > > > ---
> > > > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > > > >  board/sifive/fu540/Kconfig|  3 +++
> > > > > >  doc/board/sifive/fu540.rst| 19 
> > > > > > +++
> > > > > >  3 files changed, 23 insertions(+)
> > > > > >
> > > > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > index 25ec8265a5..d7a64134db 100644
> > > > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > > @@ -5,6 +5,7 @@
> > > > > >
> > > > > >  / {
> > > > > > aliases {
> > > > > > +   spi0 = 
> > > > > > spi2 = 
> > > > > > };
> > > > > >  };
> > > > > > diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig
> > > > > > index 5d65080429..c5a1bca03c 100644
> > > > > > --- a/board/sifive/fu540/Kconfig
> > > > > > +++ b/board/sifive/fu540/Kconfig
> > > > > > @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > imply CMD_FS_GENERIC
> > > > > > imply CMD_NET
> > > > > > imply CMD_PING
> > > > > > +   imply CMD_SF
> > > > > > imply CLK_SIFIVE
> > > > > > imply CLK_SIFIVE_FU540_PRCI
> > > > > > imply DOS_PARTITION
> > > > > > @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > > imply SIFIVE_SERIAL
> > > > > > imply SPI
> > > > > > imply SPI_SIFIVE
> > > > > > +   imply SPI_FLASH
> > > > > > +   imply SPI_FLASH_ISSI
> > > > > > imply MMC
> > > > > > imply MMC_SPI
> > > > > > imply MMC_BROKEN_CD
> > > > > > diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst
> > > > > > index 91b94ee06f..2e70cad02e 100644
> > > > > > --- a/doc/board/sifive/fu540.rst
> > > > > > +++ b/doc/board/sifive/fu540.rst
> > > > > > @@ -366,3 +366,22 @@ load uImage.
> > > > > >
> > > > > > Please press Enter to activate this console.
> > > > > > / #
> > > > > > +
> > > > > > +Sample spi nor flash test
> > > > > > +-
> > > > > > +
> > > > > > +.. code-block:: none
> > > > > > +
> > > > > > +   => sf probe 0:2
> > > > >
> > > > > The cs number can't be 2. It should be zero.
> > > >
> > > > With this patch series, we got crazy du

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2019-11-17 Thread Sagar Kadam

Hello Jagan/Bin,

> -Original Message-
> From: U-Boot  On Behalf Of Bin Meng
> Sent: Monday, November 11, 2019 8:02 PM
> To: Jagan Teki 
> Cc: Palmer Dabbelt ( Sifive) ; U-Boot Mailing List  b...@lists.denx.de>; linux-amarula 
> Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash
> support
> 
> Hi Jagan,
> 
> On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki 
> wrote:
> >
> > Hi Bin,
> >
> > On Tue, Oct 29, 2019 at 3:50 PM Bin Meng  wrote:
> > >
> > > Hi Jagan,
> > >
> > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng 
> wrote:
> > > >
> > > > Hi Jagan,
> > > >
> > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki
>  wrote:
> > > > >
> > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > > So enable the same and add test result log for future
> > > > > reference.
> > > > >
> > > > > Tested on SiFive FU540 board.
> > > > >
> > > > > Signed-off-by: Jagan Teki 
> > > > > Reviewed-by: Bin Meng 
> > > > > Tested-by: Bin Meng 
> > > > > ---
> > > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > > >  board/sifive/fu540/Kconfig|  3 +++
> > > > >  doc/board/sifive/fu540.rst| 19 
> > > > > +++
> > > > >  3 files changed, 23 insertions(+)
> > > > >
> > > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > index 25ec8265a5..d7a64134db 100644
> > > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > > @@ -5,6 +5,7 @@
> > > > >
> > > > >  / {
> > > > > aliases {
> > > > > +   spi0 = 
> > > > > spi2 = 
> > > > > };
> > > > >  };
> > > > > diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig
> > > > > index 5d65080429..c5a1bca03c 100644
> > > > > --- a/board/sifive/fu540/Kconfig
> > > > > +++ b/board/sifive/fu540/Kconfig
> > > > > @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > imply CMD_FS_GENERIC
> > > > > imply CMD_NET
> > > > > imply CMD_PING
> > > > > +   imply CMD_SF
> > > > > imply CLK_SIFIVE
> > > > > imply CLK_SIFIVE_FU540_PRCI
> > > > > imply DOS_PARTITION
> > > > > @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > > imply SIFIVE_SERIAL
> > > > > imply SPI
> > > > > imply SPI_SIFIVE
> > > > > +   imply SPI_FLASH
> > > > > +   imply SPI_FLASH_ISSI
> > > > > imply MMC
> > > > > imply MMC_SPI
> > > > > imply MMC_BROKEN_CD
> > > > > diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst
> > > > > index 91b94ee06f..2e70cad02e 100644
> > > > > --- a/doc/board/sifive/fu540.rst
> > > > > +++ b/doc/board/sifive/fu540.rst
> > > > > @@ -366,3 +366,22 @@ load uImage.
> > > > >
> > > > > Please press Enter to activate this console.
> > > > > / #
> > > > > +
> > > > > +Sample spi nor flash test
> > > > > +-
> > > > > +
> > > > > +.. code-block:: none
> > > > > +
> > > > > +   => sf probe 0:2
> > > >
> > > > The cs number can't be 2. It should be zero.
> > >
> > > With this patch series, we got crazy duplicated flash devices created,
> > > see below:
> > >
> > > => sf probe
> > > unrecognized JEDEC id bytes: ff, ff, ff
> > > Failed to initialize SPI flash at 0:0 (error -2)
> > > => sf probe 0:2
> > > SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 
> > > 32
> MiB
> > > => sf probe 0:4
> > > SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 
> > > 32
> MiB
> > > => sf probe 0:6
> > > SF: Detecte

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2019-11-11 Thread Bin Meng
Hi Jagan,

On Sat, Nov 9, 2019 at 7:57 PM Jagan Teki  wrote:
>
> Hi Bin,
>
> On Tue, Oct 29, 2019 at 3:50 PM Bin Meng  wrote:
> >
> > Hi Jagan,
> >
> > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng  wrote:
> > >
> > > Hi Jagan,
> > >
> > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki  
> > > wrote:
> > > >
> > > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > > So enable the same and add test result log for future
> > > > reference.
> > > >
> > > > Tested on SiFive FU540 board.
> > > >
> > > > Signed-off-by: Jagan Teki 
> > > > Reviewed-by: Bin Meng 
> > > > Tested-by: Bin Meng 
> > > > ---
> > > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > > >  board/sifive/fu540/Kconfig|  3 +++
> > > >  doc/board/sifive/fu540.rst| 19 +++
> > > >  3 files changed, 23 insertions(+)
> > > >
> > > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi 
> > > > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > index 25ec8265a5..d7a64134db 100644
> > > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > > @@ -5,6 +5,7 @@
> > > >
> > > >  / {
> > > > aliases {
> > > > +   spi0 = 
> > > > spi2 = 
> > > > };
> > > >  };
> > > > diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig
> > > > index 5d65080429..c5a1bca03c 100644
> > > > --- a/board/sifive/fu540/Kconfig
> > > > +++ b/board/sifive/fu540/Kconfig
> > > > @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > imply CMD_FS_GENERIC
> > > > imply CMD_NET
> > > > imply CMD_PING
> > > > +   imply CMD_SF
> > > > imply CLK_SIFIVE
> > > > imply CLK_SIFIVE_FU540_PRCI
> > > > imply DOS_PARTITION
> > > > @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > > imply SIFIVE_SERIAL
> > > > imply SPI
> > > > imply SPI_SIFIVE
> > > > +   imply SPI_FLASH
> > > > +   imply SPI_FLASH_ISSI
> > > > imply MMC
> > > > imply MMC_SPI
> > > > imply MMC_BROKEN_CD
> > > > diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst
> > > > index 91b94ee06f..2e70cad02e 100644
> > > > --- a/doc/board/sifive/fu540.rst
> > > > +++ b/doc/board/sifive/fu540.rst
> > > > @@ -366,3 +366,22 @@ load uImage.
> > > >
> > > > Please press Enter to activate this console.
> > > > / #
> > > > +
> > > > +Sample spi nor flash test
> > > > +-
> > > > +
> > > > +.. code-block:: none
> > > > +
> > > > +   => sf probe 0:2
> > >
> > > The cs number can't be 2. It should be zero.
> >
> > With this patch series, we got crazy duplicated flash devices created,
> > see below:
> >
> > => sf probe
> > unrecognized JEDEC id bytes: ff, ff, ff
> > Failed to initialize SPI flash at 0:0 (error -2)
> > => sf probe 0:2
> > SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 32 
> > MiB
> > => sf probe 0:4
> > SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 32 
> > MiB
> > => sf probe 0:6
> > SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 32 
> > MiB
> > => dm tree
> >  Class Index  Probed  DriverName
> > ---
> >  root  0  [ + ]   root_driver   root_driver
> >  simple_bus0  [ + ]   generic_simple_bus|-- soc
> >  clk   0  [ + ]   sifive-fu540-prci |   |--
> > clock-controller@1000
> >  serial0  [ + ]   serial_sifive |   |-- serial@1001
> >  serial1  [   ]   serial_sifive |   |-- serial@10011000
> >  spi   0  [ + ]   sifive_spi|   |-- spi@1004
> >  spi_flash 0  [   ]   spi_flash_std |   |   |-- flash@0
> >  spi_flash 1  [ + ]   spi_flash_std |   |   |-- spi_flash@0:2
> >  spi_flash 2  [ + ]   spi_flash_std |   |   |-- spi_flash@0:4
> >  spi_flash 3  [ + ]   spi_flash_std |   |   `-- spi_flash@0:6
> >
> > With my patch series below
> > http://patchwork.ozlabs.org/project/uboot/list/?series=129736
> >
> > the CS number check was added to the SPI flash hence we got:
> >
> > => sf probe
> > unrecognized JEDEC id bytes: ff, ff, ff
> > Failed to initialize SPI flash at 0:0 (error -2)
> > => sf probe 2
> > Invalid cs 2 (err=-22)
> > Invalid cs 2 (err=-22)
> > Invalid chip select 0:2 (err=-22)
> > Failed to initialize SPI flash at 0:2 (error -22)
> > => sf probe 4
> > Invalid cs 4 (err=-22)
> > Invalid cs 4 (err=-22)
> > Invalid chip select 0:4 (err=-22)
> > Failed to initialize SPI flash at 0:4 (error -22)
> >
> > So we still need figure out why CS number 0 cannot work on SiFive.
>
> The existing quad wire that driver pushing for flash seems not
> detecting flash at CS 0 so making cr to single wire detecting flash at

I vaguely remember someone from SiFive posted a patch 

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2019-11-09 Thread Jagan Teki
Hi Bin,

On Tue, Oct 29, 2019 at 3:50 PM Bin Meng  wrote:
>
> Hi Jagan,
>
> On Tue, Oct 29, 2019 at 5:38 PM Bin Meng  wrote:
> >
> > Hi Jagan,
> >
> > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki  
> > wrote:
> > >
> > > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > > So enable the same and add test result log for future
> > > reference.
> > >
> > > Tested on SiFive FU540 board.
> > >
> > > Signed-off-by: Jagan Teki 
> > > Reviewed-by: Bin Meng 
> > > Tested-by: Bin Meng 
> > > ---
> > >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> > >  board/sifive/fu540/Kconfig|  3 +++
> > >  doc/board/sifive/fu540.rst| 19 +++
> > >  3 files changed, 23 insertions(+)
> > >
> > > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi 
> > > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > index 25ec8265a5..d7a64134db 100644
> > > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > > @@ -5,6 +5,7 @@
> > >
> > >  / {
> > > aliases {
> > > +   spi0 = 
> > > spi2 = 
> > > };
> > >  };
> > > diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig
> > > index 5d65080429..c5a1bca03c 100644
> > > --- a/board/sifive/fu540/Kconfig
> > > +++ b/board/sifive/fu540/Kconfig
> > > @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > imply CMD_FS_GENERIC
> > > imply CMD_NET
> > > imply CMD_PING
> > > +   imply CMD_SF
> > > imply CLK_SIFIVE
> > > imply CLK_SIFIVE_FU540_PRCI
> > > imply DOS_PARTITION
> > > @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > > imply SIFIVE_SERIAL
> > > imply SPI
> > > imply SPI_SIFIVE
> > > +   imply SPI_FLASH
> > > +   imply SPI_FLASH_ISSI
> > > imply MMC
> > > imply MMC_SPI
> > > imply MMC_BROKEN_CD
> > > diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst
> > > index 91b94ee06f..2e70cad02e 100644
> > > --- a/doc/board/sifive/fu540.rst
> > > +++ b/doc/board/sifive/fu540.rst
> > > @@ -366,3 +366,22 @@ load uImage.
> > >
> > > Please press Enter to activate this console.
> > > / #
> > > +
> > > +Sample spi nor flash test
> > > +-
> > > +
> > > +.. code-block:: none
> > > +
> > > +   => sf probe 0:2
> >
> > The cs number can't be 2. It should be zero.
>
> With this patch series, we got crazy duplicated flash devices created,
> see below:
>
> => sf probe
> unrecognized JEDEC id bytes: ff, ff, ff
> Failed to initialize SPI flash at 0:0 (error -2)
> => sf probe 0:2
> SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 32 
> MiB
> => sf probe 0:4
> SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 32 
> MiB
> => sf probe 0:6
> SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 32 
> MiB
> => dm tree
>  Class Index  Probed  DriverName
> ---
>  root  0  [ + ]   root_driver   root_driver
>  simple_bus0  [ + ]   generic_simple_bus|-- soc
>  clk   0  [ + ]   sifive-fu540-prci |   |--
> clock-controller@1000
>  serial0  [ + ]   serial_sifive |   |-- serial@1001
>  serial1  [   ]   serial_sifive |   |-- serial@10011000
>  spi   0  [ + ]   sifive_spi|   |-- spi@1004
>  spi_flash 0  [   ]   spi_flash_std |   |   |-- flash@0
>  spi_flash 1  [ + ]   spi_flash_std |   |   |-- spi_flash@0:2
>  spi_flash 2  [ + ]   spi_flash_std |   |   |-- spi_flash@0:4
>  spi_flash 3  [ + ]   spi_flash_std |   |   `-- spi_flash@0:6
>
> With my patch series below
> http://patchwork.ozlabs.org/project/uboot/list/?series=129736
>
> the CS number check was added to the SPI flash hence we got:
>
> => sf probe
> unrecognized JEDEC id bytes: ff, ff, ff
> Failed to initialize SPI flash at 0:0 (error -2)
> => sf probe 2
> Invalid cs 2 (err=-22)
> Invalid cs 2 (err=-22)
> Invalid chip select 0:2 (err=-22)
> Failed to initialize SPI flash at 0:2 (error -22)
> => sf probe 4
> Invalid cs 4 (err=-22)
> Invalid cs 4 (err=-22)
> Invalid chip select 0:4 (err=-22)
> Failed to initialize SPI flash at 0:4 (error -22)
>
> So we still need figure out why CS number 0 cannot work on SiFive.

The existing quad wire that driver pushing for flash seems not
detecting flash at CS 0 so making cr to single wire detecting flash at
CS0. One more point is that flash seems available in different CS, not
sure whether the hardware wired this logic or it has flash really on
those CS's.

=> sf probe 0:0
SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
=> sf probe 0:1
unrecognized JEDEC id bytes: ff, ff, ff
Failed to initialize SPI flash at 0:1 (error -2)
=> sf probe 0:2
SF: Detected 

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2019-10-29 Thread Bin Meng
Hi Jagan,

On Tue, Oct 29, 2019 at 5:38 PM Bin Meng  wrote:
>
> Hi Jagan,
>
> On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki  
> wrote:
> >
> > HiFive Unleashed A00 support is25wp256 spi-nor flash,
> > So enable the same and add test result log for future
> > reference.
> >
> > Tested on SiFive FU540 board.
> >
> > Signed-off-by: Jagan Teki 
> > Reviewed-by: Bin Meng 
> > Tested-by: Bin Meng 
> > ---
> >  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
> >  board/sifive/fu540/Kconfig|  3 +++
> >  doc/board/sifive/fu540.rst| 19 +++
> >  3 files changed, 23 insertions(+)
> >
> > diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi 
> > b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > index 25ec8265a5..d7a64134db 100644
> > --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> > @@ -5,6 +5,7 @@
> >
> >  / {
> > aliases {
> > +   spi0 = 
> > spi2 = 
> > };
> >  };
> > diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig
> > index 5d65080429..c5a1bca03c 100644
> > --- a/board/sifive/fu540/Kconfig
> > +++ b/board/sifive/fu540/Kconfig
> > @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > imply CMD_FS_GENERIC
> > imply CMD_NET
> > imply CMD_PING
> > +   imply CMD_SF
> > imply CLK_SIFIVE
> > imply CLK_SIFIVE_FU540_PRCI
> > imply DOS_PARTITION
> > @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> > imply SIFIVE_SERIAL
> > imply SPI
> > imply SPI_SIFIVE
> > +   imply SPI_FLASH
> > +   imply SPI_FLASH_ISSI
> > imply MMC
> > imply MMC_SPI
> > imply MMC_BROKEN_CD
> > diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst
> > index 91b94ee06f..2e70cad02e 100644
> > --- a/doc/board/sifive/fu540.rst
> > +++ b/doc/board/sifive/fu540.rst
> > @@ -366,3 +366,22 @@ load uImage.
> >
> > Please press Enter to activate this console.
> > / #
> > +
> > +Sample spi nor flash test
> > +-
> > +
> > +.. code-block:: none
> > +
> > +   => sf probe 0:2
>
> The cs number can't be 2. It should be zero.

With this patch series, we got crazy duplicated flash devices created,
see below:

=> sf probe
unrecognized JEDEC id bytes: ff, ff, ff
Failed to initialize SPI flash at 0:0 (error -2)
=> sf probe 0:2
SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
=> sf probe 0:4
SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
=> sf probe 0:6
SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
=> dm tree
 Class Index  Probed  DriverName
---
 root  0  [ + ]   root_driver   root_driver
 simple_bus0  [ + ]   generic_simple_bus|-- soc
 clk   0  [ + ]   sifive-fu540-prci |   |--
clock-controller@1000
 serial0  [ + ]   serial_sifive |   |-- serial@1001
 serial1  [   ]   serial_sifive |   |-- serial@10011000
 spi   0  [ + ]   sifive_spi|   |-- spi@1004
 spi_flash 0  [   ]   spi_flash_std |   |   |-- flash@0
 spi_flash 1  [ + ]   spi_flash_std |   |   |-- spi_flash@0:2
 spi_flash 2  [ + ]   spi_flash_std |   |   |-- spi_flash@0:4
 spi_flash 3  [ + ]   spi_flash_std |   |   `-- spi_flash@0:6

With my patch series below
http://patchwork.ozlabs.org/project/uboot/list/?series=129736

the CS number check was added to the SPI flash hence we got:

=> sf probe
unrecognized JEDEC id bytes: ff, ff, ff
Failed to initialize SPI flash at 0:0 (error -2)
=> sf probe 2
Invalid cs 2 (err=-22)
Invalid cs 2 (err=-22)
Invalid chip select 0:2 (err=-22)
Failed to initialize SPI flash at 0:2 (error -22)
=> sf probe 4
Invalid cs 4 (err=-22)
Invalid cs 4 (err=-22)
Invalid chip select 0:4 (err=-22)
Failed to initialize SPI flash at 0:4 (error -22)

So we still need figure out why CS number 0 cannot work on SiFive.

>
> > +   SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, 
> > total 32 MiB
> > +   => sf erase 0x100 0x10
> > +   SF: 1048576 bytes @ 0x100 Erased: OK
> > +   => mw.b 0xc000 0xaa 0x10
> > +   => sf write 0xc000 0x100 0x10
> > +   device 0 offset 0x100, size 0x10
> > +   SF: 1048576 bytes @ 0x100 Written: OK
> > +   => sf read 0xf000 0x100 0x10
> > +   device 0 offset 0x100, size 0x10
> > +   SF: 1048576 bytes @ 0x100 Read: OK
> > +   => cmp.b 0xf000 0xc000 0x10
> > +   Total of 1048576 byte(s) were the same
> > --

Regards,
Bin
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2019-10-29 Thread Bin Meng
Hi Jagan,

On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki  wrote:
>
> HiFive Unleashed A00 support is25wp256 spi-nor flash,
> So enable the same and add test result log for future
> reference.
>
> Tested on SiFive FU540 board.
>
> Signed-off-by: Jagan Teki 
> Reviewed-by: Bin Meng 
> Tested-by: Bin Meng 
> ---
>  .../dts/hifive-unleashed-a00-u-boot.dtsi  |  1 +
>  board/sifive/fu540/Kconfig|  3 +++
>  doc/board/sifive/fu540.rst| 19 +++
>  3 files changed, 23 insertions(+)
>
> diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi 
> b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> index 25ec8265a5..d7a64134db 100644
> --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
> @@ -5,6 +5,7 @@
>
>  / {
> aliases {
> +   spi0 = 
> spi2 = 
> };
>  };
> diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig
> index 5d65080429..c5a1bca03c 100644
> --- a/board/sifive/fu540/Kconfig
> +++ b/board/sifive/fu540/Kconfig
> @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> imply CMD_FS_GENERIC
> imply CMD_NET
> imply CMD_PING
> +   imply CMD_SF
> imply CLK_SIFIVE
> imply CLK_SIFIVE_FU540_PRCI
> imply DOS_PARTITION
> @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> imply SIFIVE_SERIAL
> imply SPI
> imply SPI_SIFIVE
> +   imply SPI_FLASH
> +   imply SPI_FLASH_ISSI
> imply MMC
> imply MMC_SPI
> imply MMC_BROKEN_CD
> diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst
> index 91b94ee06f..2e70cad02e 100644
> --- a/doc/board/sifive/fu540.rst
> +++ b/doc/board/sifive/fu540.rst
> @@ -366,3 +366,22 @@ load uImage.
>
> Please press Enter to activate this console.
> / #
> +
> +Sample spi nor flash test
> +-
> +
> +.. code-block:: none
> +
> +   => sf probe 0:2

The cs number can't be 2. It should be zero.

> +   SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 
> 32 MiB
> +   => sf erase 0x100 0x10
> +   SF: 1048576 bytes @ 0x100 Erased: OK
> +   => mw.b 0xc000 0xaa 0x10
> +   => sf write 0xc000 0x100 0x10
> +   device 0 offset 0x100, size 0x10
> +   SF: 1048576 bytes @ 0x100 Written: OK
> +   => sf read 0xf000 0x100 0x10
> +   device 0 offset 0x100, size 0x10
> +   SF: 1048576 bytes @ 0x100 Read: OK
> +   => cmp.b 0xf000 0xc000 0x10
> +   Total of 1048576 byte(s) were the same
> --

Regards,
Bin
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot