linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Support flash devices used on Pensando boards
@ 2020-07-20 16:36 David Clear
  2020-07-20 16:36 ` [PATCH v2 1/2] mtd: spi-nor: Add support for Macronix mx66u2g45g David Clear
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Clear @ 2020-07-20 16:36 UTC (permalink / raw)
  To: tudor.ambarus, linux-mtd; +Cc: snelson, David Clear

Changes since v1:
  - Added test descriptions to the patches.

Pensando boards use Macronix and Micron flash devices in x2 mode.  This
patchset adds support for the previously unlisted Macronix mx66u2g45g, and
it enables x2 mode on the Micron mt25qu02g.

This patchset applies to the spi-nor/next tree.

David Clear (2):
  mtd: spi-nor: Add support for Macronix mx66u2g45g.
  mtd: spi-nor: Support SPI_NOR_DUAL_READ on Micron mt25qu02g.

 drivers/mtd/spi-nor/macronix.c  | 3 +++
 drivers/mtd/spi-nor/micron-st.c | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)


base-commit: fb249e1007e0270e305ea674012dcc4f95f1304e
-- 
2.17.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* [PATCH v2 1/2] mtd: spi-nor: Add support for Macronix mx66u2g45g.
  2020-07-20 16:36 [PATCH v2 0/2] Support flash devices used on Pensando boards David Clear
@ 2020-07-20 16:36 ` David Clear
  2020-07-20 16:36 ` [PATCH v2 2/2] mtd: spi-nor: Support SPI_NOR_DUAL_READ on Micron mt25qu02g David Clear
  2020-07-27 12:33 ` [PATCH v2 0/2] Support flash devices used on Pensando boards Tudor Ambarus
  2 siblings, 0 replies; 4+ messages in thread
From: David Clear @ 2020-07-20 16:36 UTC (permalink / raw)
  To: tudor.ambarus, linux-mtd; +Cc: snelson, David Clear

The Macronix mx66u2g45g is a 1.8V, 2Gbit (256MB) device that
supports x1, x2, or x4 operation.

Tested on Pensando SoC hardware with a cadence quadspi controller
via drivers/spi/spi-cadence-quadspi.c, in x2 mode at 50MHz.
  - random data write, erase, read   - verified erase operations
  - random data write, read/compare  - verified write/read operations

Signed-off-by: David Clear <dac2@pensando.io>
Acked-by: Shannon Nelson <snelson@pensando.io>
---
 drivers/mtd/spi-nor/macronix.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c
index 0ae0815a3633..f97f3d127575 100644
--- a/drivers/mtd/spi-nor/macronix.c
+++ b/drivers/mtd/spi-nor/macronix.c
@@ -87,6 +87,9 @@ static const struct flash_info macronix_parts[] = {
 			      SPI_NOR_QUAD_READ) },
 	{ "mx66l1g55g",  INFO(0xc2261b, 0, 64 * 1024, 2048,
 			      SPI_NOR_QUAD_READ) },
+	{ "mx66u2g45g",	 INFO(0xc2253c, 0, 64 * 1024, 4096,
+			      SECT_4K | SPI_NOR_DUAL_READ |
+			      SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 };
 
 static void macronix_default_init(struct spi_nor *nor)
-- 
2.17.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* [PATCH v2 2/2] mtd: spi-nor: Support SPI_NOR_DUAL_READ on Micron mt25qu02g.
  2020-07-20 16:36 [PATCH v2 0/2] Support flash devices used on Pensando boards David Clear
  2020-07-20 16:36 ` [PATCH v2 1/2] mtd: spi-nor: Add support for Macronix mx66u2g45g David Clear
@ 2020-07-20 16:36 ` David Clear
  2020-07-27 12:33 ` [PATCH v2 0/2] Support flash devices used on Pensando boards Tudor Ambarus
  2 siblings, 0 replies; 4+ messages in thread
From: David Clear @ 2020-07-20 16:36 UTC (permalink / raw)
  To: tudor.ambarus, linux-mtd; +Cc: snelson, David Clear

The Micron mt25qu02g supports both x2 and x4 transactions.  Add the
SPI_NOR_DUAL_READ to its spi_nor_ids[] table entry.

Tested on Pensando SoC hardware with a cadence quadspi controller
via drivers/spi/spi-cadence-quadspi.c, in x2 mode at 50MHz.
  - random data write, erase, read   - verified erase operations
  - random data write, read/compare  - verified write/read operations

Signed-off-by: David Clear <dac2@pensando.io>
Acked-by: Shannon Nelson <snelson@pensando.io>
---
 drivers/mtd/spi-nor/micron-st.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c
index 3dca5b9af3b6..ef3695080710 100644
--- a/drivers/mtd/spi-nor/micron-st.c
+++ b/drivers/mtd/spi-nor/micron-st.c
@@ -71,8 +71,8 @@ static const struct flash_info st_parts[] = {
 			      SECT_4K | USE_FSR | SPI_NOR_QUAD_READ |
 			      NO_CHIP_ERASE) },
 	{ "mt25qu02g",   INFO(0x20bb22, 0, 64 * 1024, 4096,
-			      SECT_4K | USE_FSR | SPI_NOR_QUAD_READ |
-			      NO_CHIP_ERASE) },
+			      SECT_4K | USE_FSR | SPI_NOR_DUAL_READ |
+			      SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
 
 	{ "m25p05",  INFO(0x202010,  0,  32 * 1024,   2, 0) },
 	{ "m25p10",  INFO(0x202011,  0,  32 * 1024,   4, 0) },
-- 
2.17.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH v2 0/2] Support flash devices used on Pensando boards
  2020-07-20 16:36 [PATCH v2 0/2] Support flash devices used on Pensando boards David Clear
  2020-07-20 16:36 ` [PATCH v2 1/2] mtd: spi-nor: Add support for Macronix mx66u2g45g David Clear
  2020-07-20 16:36 ` [PATCH v2 2/2] mtd: spi-nor: Support SPI_NOR_DUAL_READ on Micron mt25qu02g David Clear
@ 2020-07-27 12:33 ` Tudor Ambarus
  2 siblings, 0 replies; 4+ messages in thread
From: Tudor Ambarus @ 2020-07-27 12:33 UTC (permalink / raw)
  To: linux-mtd, David Clear; +Cc: snelson, Tudor Ambarus

On Mon, 20 Jul 2020 09:36:54 -0700, David Clear wrote:
> Changes since v1:
>   - Added test descriptions to the patches.
> 
> Pensando boards use Macronix and Micron flash devices in x2 mode.  This
> patchset adds support for the previously unlisted Macronix mx66u2g45g, and
> it enables x2 mode on the Micron mt25qu02g.
> 
> [...]

Applied to spi-nor/next, thanks!

[1/2] mtd: spi-nor: macronix: Add support for mx66u2g45g
      https://git.kernel.org/mtd/c/48029e620dec
[2/2] mtd: spi-nor: micron: Add SPI_NOR_DUAL_READ flag on mt25qu02g
      https://git.kernel.org/mtd/c/1371a80cac33

Best regards,
-- 
Tudor Ambarus <tudor.ambarus@microchip.com>

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

end of thread, other threads:[~2020-07-27 12:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-20 16:36 [PATCH v2 0/2] Support flash devices used on Pensando boards David Clear
2020-07-20 16:36 ` [PATCH v2 1/2] mtd: spi-nor: Add support for Macronix mx66u2g45g David Clear
2020-07-20 16:36 ` [PATCH v2 2/2] mtd: spi-nor: Support SPI_NOR_DUAL_READ on Micron mt25qu02g David Clear
2020-07-27 12:33 ` [PATCH v2 0/2] Support flash devices used on Pensando boards Tudor Ambarus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).