All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: spinand: winbond: Add support for W25N01GV
@ 2018-10-06 15:36 Robert Marko
  2018-10-12  9:04 ` Boris Brezillon
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Marko @ 2018-10-06 15:36 UTC (permalink / raw)
  To: linux-mtd; +Cc: Robert Marko

W25N01GV is a single die version of the already supported
W25M02GV with half the capacity. Everything else is the
same so introduce support for W25N01GV.

Datasheet:http://www.winbond.com/resource-files/w25n01gv%20revl%20050918%20unsecured.pdf

Tested on 8devices Jalapeno dev board under OpenWrt running 4.19-rc5.

Signed-off-by: Robert Marko <robimarko@gmail.com>
---
 drivers/mtd/nand/spi/winbond.c | 8 ++++++++
 1 file changed, 8 insertions(+)

--- a/drivers/mtd/nand/spi/winbond.c
+++ b/drivers/mtd/nand/spi/winbond.c
@@ -84,6 +84,14 @@ static const struct spinand_info winbond
 		     0,
 		     SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL),
 		     SPINAND_SELECT_TARGET(w25m02gv_select_target)),
+	SPINAND_INFO("W25N01GV", 0xAA,
+		     NAND_MEMORG(1, 2048, 64, 64, 1024, 1, 1, 1),
+		     NAND_ECCREQ(1, 512),
+		     SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
+					      &write_cache_variants,
+					      &update_cache_variants),
+		     0,
+		     SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL)),
 };
 
 /**

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] mtd: spinand: winbond: Add support for W25N01GV
  2018-10-06 15:36 [PATCH] mtd: spinand: winbond: Add support for W25N01GV Robert Marko
@ 2018-10-12  9:04 ` Boris Brezillon
  2018-10-12 11:03   ` Robert Marko
  2018-11-11 20:52   ` Miquel Raynal
  0 siblings, 2 replies; 7+ messages in thread
From: Boris Brezillon @ 2018-10-12  9:04 UTC (permalink / raw)
  To: Robert Marko; +Cc: linux-mtd, Miquel Raynal

+Miquel

Hi Robert,

Please Cc the NAND mantainers when you send a NAND related patch
(in case you don't know about it already, scripts/get_maintainer.pl
should help you find who to Cc).

On Sat,  6 Oct 2018 17:36:42 +0200
Robert Marko <robimarko@gmail.com> wrote:

> W25N01GV is a single die version of the already supported
> W25M02GV with half the capacity. Everything else is the
> same so introduce support for W25N01GV.
> 
> Datasheet:http://www.winbond.com/resource-files/w25n01gv%20revl%20050918%20unsecured.pdf
> 
> Tested on 8devices Jalapeno dev board under OpenWrt running 4.19-rc5.
> 
> Signed-off-by: Robert Marko <robimarko@gmail.com>

Looks good.

Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>

> ---
>  drivers/mtd/nand/spi/winbond.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> --- a/drivers/mtd/nand/spi/winbond.c
> +++ b/drivers/mtd/nand/spi/winbond.c
> @@ -84,6 +84,14 @@ static const struct spinand_info winbond
>  		     0,
>  		     SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL),
>  		     SPINAND_SELECT_TARGET(w25m02gv_select_target)),
> +	SPINAND_INFO("W25N01GV", 0xAA,
> +		     NAND_MEMORG(1, 2048, 64, 64, 1024, 1, 1, 1),
> +		     NAND_ECCREQ(1, 512),
> +		     SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
> +					      &write_cache_variants,
> +					      &update_cache_variants),
> +		     0,
> +		     SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL)),
>  };
>  
>  /**
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] mtd: spinand: winbond: Add support for W25N01GV
  2018-10-12  9:04 ` Boris Brezillon
@ 2018-10-12 11:03   ` Robert Marko
  2018-11-11 20:52   ` Miquel Raynal
  1 sibling, 0 replies; 7+ messages in thread
From: Robert Marko @ 2018-10-12 11:03 UTC (permalink / raw)
  To: Boris Brezillon; +Cc: linux-mtd, Miquel Raynal

On Fri, 2018-10-12 at 11:04 +0200, Boris Brezillon wrote:
> +Miquel
> 
> Hi Robert,
> 
> Please Cc the NAND mantainers when you send a NAND related patch
> (in case you don't know about it already, scripts/get_maintainer.pl
> should help you find who to Cc).
> 
Sorry, I knew about scripts/get_maintainer.pl but completelly forgot
about it this time.

> On Sat,  6 Oct 2018 17:36:42 +0200
> Robert Marko <robimarko@gmail.com> wrote:
> 
> > W25N01GV is a single die version of the already supported
> > W25M02GV with half the capacity. Everything else is the
> > same so introduce support for W25N01GV.
> > 
> > Datasheet:
> > http://www.winbond.com/resource-files/w25n01gv%20revl%20050918%20unsecured.pdf
> > 
> > Tested on 8devices Jalapeno dev board under OpenWrt running 4.19-
> > rc5.
> > 
> > Signed-off-by: Robert Marko <robimarko@gmail.com>
> 
> Looks good.
> 
> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
> 
> > ---
> >  drivers/mtd/nand/spi/winbond.c | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> > 
> > --- a/drivers/mtd/nand/spi/winbond.c
> > +++ b/drivers/mtd/nand/spi/winbond.c
> > @@ -84,6 +84,14 @@ static const struct spinand_info winbond
> >  		     0,
> >  		     SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL),
> >  		     SPINAND_SELECT_TARGET(w25m02gv_select_target)),
> > +	SPINAND_INFO("W25N01GV", 0xAA,
> > +		     NAND_MEMORG(1, 2048, 64, 64, 1024, 1, 1, 1),
> > +		     NAND_ECCREQ(1, 512),
> > +		     SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
> > +					      &write_cache_variants,
> > +					      &update_cache_variants),
> > +		     0,
> > +		     SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL)),
> >  };
> >  
> >  /**
> > 
> > ______________________________________________________
> > Linux MTD discussion mailing list
> > http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] mtd: spinand: winbond: Add support for W25N01GV
  2018-10-12  9:04 ` Boris Brezillon
  2018-10-12 11:03   ` Robert Marko
@ 2018-11-11 20:52   ` Miquel Raynal
  1 sibling, 0 replies; 7+ messages in thread
From: Miquel Raynal @ 2018-11-11 20:52 UTC (permalink / raw)
  To: Boris Brezillon; +Cc: Robert Marko, linux-mtd

Hi Robert,

Boris Brezillon <boris.brezillon@bootlin.com> wrote on Fri, 12 Oct 2018
11:04:12 +0200:

> +Miquel
> 
> Hi Robert,
> 
> Please Cc the NAND mantainers when you send a NAND related patch
> (in case you don't know about it already, scripts/get_maintainer.pl
> should help you find who to Cc).
> 
> On Sat,  6 Oct 2018 17:36:42 +0200
> Robert Marko <robimarko@gmail.com> wrote:
> 
> > W25N01GV is a single die version of the already supported
> > W25M02GV with half the capacity. Everything else is the
> > same so introduce support for W25N01GV.
> > 
> > Datasheet:http://www.winbond.com/resource-files/w25n01gv%20revl%20050918%20unsecured.pdf
> > 
> > Tested on 8devices Jalapeno dev board under OpenWrt running 4.19-rc5.
> > 
> > Signed-off-by: Robert Marko <robimarko@gmail.com>  
> 
> Looks good.
> 
> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>

Applied to nand/next.

Thanks,
Miquèl

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] mtd: spinand: winbond: Add support for W25N01GV
  2020-01-26 13:47 ` Jagan Teki
@ 2020-01-26 17:12   ` Robert Marko
  0 siblings, 0 replies; 7+ messages in thread
From: Robert Marko @ 2020-01-26 17:12 UTC (permalink / raw)
  To: u-boot

On Sun, Jan 26, 2020 at 2:47 PM Jagan Teki <jagan@amarulasolutions.com> wrote:
>
> On Thu, Jan 16, 2020 at 6:33 PM Robert Marko <robert.marko@sartura.hr> wrote:
> >
> > Linux has supported W25N01GV for a long time, so lets import it.
> >
> > Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> > Cc: Luka Perkov <luka.perkov@sartura.hr>
> > ---
>
> Applied to u-boot-spi/master
Great, can you also take a look at my Toshiba SPI-NAND related patches?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] mtd: spinand: winbond: Add support for W25N01GV
  2020-01-16 13:03 Robert Marko
@ 2020-01-26 13:47 ` Jagan Teki
  2020-01-26 17:12   ` Robert Marko
  0 siblings, 1 reply; 7+ messages in thread
From: Jagan Teki @ 2020-01-26 13:47 UTC (permalink / raw)
  To: u-boot

On Thu, Jan 16, 2020 at 6:33 PM Robert Marko <robert.marko@sartura.hr> wrote:
>
> Linux has supported W25N01GV for a long time, so lets import it.
>
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> Cc: Luka Perkov <luka.perkov@sartura.hr>
> ---

Applied to u-boot-spi/master

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] mtd: spinand: winbond: Add support for W25N01GV
@ 2020-01-16 13:03 Robert Marko
  2020-01-26 13:47 ` Jagan Teki
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Marko @ 2020-01-16 13:03 UTC (permalink / raw)
  To: u-boot

Linux has supported W25N01GV for a long time, so lets import it.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
---
 drivers/mtd/nand/spi/winbond.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c
index eac811d97c..6ba8bc5c7b 100644
--- a/drivers/mtd/nand/spi/winbond.c
+++ b/drivers/mtd/nand/spi/winbond.c
@@ -86,6 +86,14 @@ static const struct spinand_info winbond_spinand_table[] = {
 		     0,
 		     SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL),
 		     SPINAND_SELECT_TARGET(w25m02gv_select_target)),
+	SPINAND_INFO("W25N01GV", 0xAA,
+		     NAND_MEMORG(1, 2048, 64, 64, 1024, 1, 1, 1),
+		     NAND_ECCREQ(1, 512),
+		     SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
+					      &write_cache_variants,
+					      &update_cache_variants),
+		     0,
+		     SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL)),
 };
 
 /**
-- 
2.24.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-01-26 17:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-06 15:36 [PATCH] mtd: spinand: winbond: Add support for W25N01GV Robert Marko
2018-10-12  9:04 ` Boris Brezillon
2018-10-12 11:03   ` Robert Marko
2018-11-11 20:52   ` Miquel Raynal
2020-01-16 13:03 Robert Marko
2020-01-26 13:47 ` Jagan Teki
2020-01-26 17:12   ` Robert Marko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.