Skip to contentSkip to conversation

mtd: spi-nor: add some new chip ids

PATCH In review John Crispin 5 participants 17 messages Dec 21, 2016 – Feb 14, 2017

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH v2 1/3 mtd: spi-nor: add support for macronix mx25u25635f

In reply to John Crispin

From: Ash Benz <[email protected]>

This patch adds support for a new macronix spi flash chip. We have had this patch inside our tree for a while and people are actively using routers with this chip.

---
Changes in V2
* add description

 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +1 -0
index d0fc165..171adb3 100644
@@ -872,6 +872,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
 	{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, 0) },
+	{ "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, 0) },
 	{ "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
 	{ "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_QUAD_READ) },
 	{ "mx66l1g55g",  INFO(0xc2261b, 0, 64 * 1024, 2048, SPI_NOR_QUAD_READ) },
Signature · 1 line
1.7.10.4
#4 lore raw

PATCH v2 2/3 mtd: spi-nor: add support for macronix mx25u3235f

In reply to John Crispin

From: André Valentin <[email protected]>

This patch adds support for a new macronix spi flash chip. We have had this patch inside our tree for a while and people are actively using routers with this chip.

---
Changes in V2
* add description
* add SECT_4K
* fix indenting

 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +1 -0
index 171adb3..bfff159 100644
@@ -868,6 +868,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l3205d",  INFO(0xc22016, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
+	{ "mx25u3235f",	 INFO(0xc22536, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
Signature · 1 line
1.7.10.4
#14 lore raw

PATCH v2 3/3 mtd: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa

In reply to John Crispin

From: "Larry D. Pinney" <[email protected]>

Add Support for the ESMT_F25L32QA and ESMT_F25L64QA These are 4MB and 8MB SPI NOR Chips from Elite Semiconductor Memory Technology

---
 drivers/mtd/spi-nor/spi-nor.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/spi-nor.c +2 -0
index bfff159..2b150b5 100644
@@ -821,6 +821,8 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 
 	/* ESMT */
 	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
+	{ "f25l32qa", INFO(0x8c4116, 0, 64 * 1024, 64, SECT_4K) },
+	{ "f25l64qa", INFO(0x8c4117, 0, 64 * 1024, 128, SECT_4K) },
 
 	/* Everspin */
 	{ "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
Signature · 1 line
1.7.10.4
#0 lore raw

v2 cover mtd: spi-nor: add some new chip ids

These have been lingering inside the owrt and lede trees for a while.

André Valentin (1):
mtd: spi-nor: add support for macronix mx25u3235f

Ash Benz (1):
mtd: spi-nor: add support for macronix mx25u25635f

Larry D. Pinney (1):
mtd: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa

 drivers/mtd/spi-nor/spi-nor.c |    4 ++++
 1 file changed, 4 insertions(+)
Signature · 1 line
1.7.10.4
#2 lore raw

Re: [PATCH V2 1/3] mtd: spi-nor: add support for macronix mx25u25635f

In reply to John Crispin
Quoted 8 lines · John Crispin

From: Ash Benz <[email protected]>

This patch adds support for a new macronix spi flash chip.

We have had this
patch inside our tree for a while and people are actively using routers with this chip.

I think this information shouldn't be part of the commit message, it's just unrelated to this change.

Quoted 22 lines

---
Changes in V2
* add description

 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +1 -0
index d0fc165..171adb3 100644
@@ -872,6 +872,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
 	{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, 0) },
+	{ "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, 0) },
 	{ "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
 	{ "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_QUAD_READ) },
 	{ "mx66l1g55g",  INFO(0xc2261b, 0, 64 * 1024, 2048, SPI_NOR_QUAD_READ) },
Signature · 2 lines
Best regards,
Marek Vasut
#5 lore raw

Re: [PATCH V2 2/3] mtd: spi-nor: add support for macronix mx25u3235f

In reply to John Crispin
Quoted 6 lines · John Crispin

From: André Valentin <[email protected]>

This patch adds support for a new macronix spi flash chip. We have had this patch inside our tree for a while and people are actively using routers with this chip.

Quoted 7 lines

---
Changes in V2
* add description
* add SECT_4K
* fix indenting

Are you SURE this chip can do sect_4k ? The datasheet seems to imply that, but I wonder why it wasn't in V1 of this patch then ? Esp. if people are actively using this chip ...

Quoted 16 lines
 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +1 -0
index 171adb3..bfff159 100644
@@ -868,6 +868,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l3205d",  INFO(0xc22016, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
+	{ "mx25u3235f",	 INFO(0xc22536, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
Signature · 2 lines
Best regards,
Marek Vasut
#6 lore raw

Re: [PATCH V2 2/3] mtd: spi-nor: add support for macronix mx25u3235f

Quoted 15 lines · Marek Vasut
Quoted 6 lines · John Crispin

From: André Valentin <[email protected]>

This patch adds support for a new macronix spi flash chip. We have had this patch inside our tree for a while and people are actively using routers with this chip.

Quoted 7 lines

---
Changes in V2
* add description
* add SECT_4K
* fix indenting

Quoted 3 lines

Are you SURE this chip can do sect_4k ? The datasheet seems to imply that, but I wonder why it wasn't in V1 of this patch then ? Esp. if people are actively using this chip ...

i checked the datasheet just now and it says 4K sectors are supported. generally we cannot runtime test every patch that we receive but need to rely on the testing of the submitter. lets see what André has to say.

John

Quoted 19 lines
Quoted 17 lines
 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +1 -0
index 171adb3..bfff159 100644
@@ -868,6 +868,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l3205d",  INFO(0xc22016, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
+	{ "mx25u3235f",	 INFO(0xc22536, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
#7 lore raw

Re: [PATCH V2 2/3] mtd: spi-nor: add support for macronix mx25u3235f

In reply to Marek Vasut

Hi!

I took these values from the manufacturer SDK (Qualcomm). I could not detect any problems with the setting.

Kind regards,

André

Am 21.12.2016 um 08:33 schrieb Marek Vasut:

Quoted 37 lines · John Crispin
Quoted 6 lines

From: André Valentin <[email protected]>

This patch adds support for a new macronix spi flash chip. We have had this patch inside our tree for a while and people are actively using routers with this chip.

Quoted 7 lines

---
Changes in V2
* add description
* add SECT_4K
* fix indenting

Are you SURE this chip can do sect_4k ? The datasheet seems to imply that, but I wonder why it wasn't in V1 of this patch then ? Esp. if people are actively using this chip ...

Quoted 16 lines
 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +1 -0
index 171adb3..bfff159 100644
@@ -868,6 +868,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l3205d",  INFO(0xc22016, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
+	{ "mx25u3235f",	 INFO(0xc22536, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
#8 lore raw

Re: [PATCH V2 2/3] mtd: spi-nor: add support for macronix mx25u3235f

Hi André

could you test if it also works when enabling SECT_4K please ?

John

Quoted 47 lines · André Valentin

Hi!

I took these values from the manufacturer SDK (Qualcomm). I could not detect any problems with the setting.

Kind regards,

André

Am 21.12.2016 um 08:33 schrieb Marek Vasut:

Quoted 37 lines · John Crispin
Quoted 6 lines

From: André Valentin <[email protected]>

This patch adds support for a new macronix spi flash chip. We have had this patch inside our tree for a while and people are actively using routers with this chip.

Quoted 7 lines

---
Changes in V2
* add description
* add SECT_4K
* fix indenting

Are you SURE this chip can do sect_4k ? The datasheet seems to imply that, but I wonder why it wasn't in V1 of this patch then ? Esp. if people are actively using this chip ...

Quoted 16 lines
 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +1 -0
index 171adb3..bfff159 100644
@@ -868,6 +868,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l3205d",  INFO(0xc22016, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
+	{ "mx25u3235f",	 INFO(0xc22536, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
#9 lore raw

Re: [PATCH V2 2/3] mtd: spi-nor: add support for macronix mx25u3235f

Quoted 3 lines · John Crispin

Hi André

could you test if it also works when enabling SECT_4K please ?

Yes, please test, thanks.

btw please do stop top-posting.

Quoted 50 lines

John

Quoted 47 lines · André Valentin

Hi!

I took these values from the manufacturer SDK (Qualcomm). I could not detect any problems with the setting.

Kind regards,

André

Am 21.12.2016 um 08:33 schrieb Marek Vasut:

Quoted 37 lines · John Crispin
Quoted 6 lines

From: André Valentin <[email protected]>

This patch adds support for a new macronix spi flash chip. We have had this patch inside our tree for a while and people are actively using routers with this chip.

Quoted 7 lines

---
Changes in V2
* add description
* add SECT_4K
* fix indenting

Are you SURE this chip can do sect_4k ? The datasheet seems to imply that, but I wonder why it wasn't in V1 of this patch then ? Esp. if people are actively using this chip ...

Quoted 16 lines
 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +1 -0
index 171adb3..bfff159 100644
@@ -868,6 +868,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l3205d",  INFO(0xc22016, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
+	{ "mx25u3235f",	 INFO(0xc22536, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
Signature · 2 lines
Best regards,
Marek Vasut
#10 lore raw

Re: [PATCH V2 2/3] mtd: spi-nor: add support for macronix mx25u3235f

Quoted 11 lines · Marek Vasut
Quoted 3 lines · John Crispin

Hi André

could you test if it also works when enabling SECT_4K please ?

Yes, please test, thanks.

btw please do stop top-posting.

Quoted 2 lines

John

Sorry about top posting. André will need a bit of time to test so i will send a V3 with only the other 2 patches included today and then send this patch later once tested.

John

#11 lore raw

Re: [PATCH V2 2/3] mtd: spi-nor: add support for macronix mx25u3235f

In reply to John Crispin

Hi all,

Quoted 22 lines · John Crispin

From: André Valentin <[email protected]>

This patch adds support for a new macronix spi flash chip. We have had this patch inside our tree for a while and people are actively using routers with this chip.

---
Changes in V2
* add description
* add SECT_4K
* fix indenting

 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +0 -0
index 171adb3..bfff159 100644

drivers/mtd/spi-nor/spi-nor.c static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) · line 871

Quoted 4 lines
drivers/mtd/spi-nor/spi-nor.c +1 -0
@@ -868,6 +868,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l3205d",  INFO(0xc22016, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
+	{ "mx25u3235f",	 INFO(0xc22536, 0, 64 * 1024,  64, SECT_4K) },

According to its datasheet, the Macronix MX25U3235F also supports Fast Read 1-1-2 (3Bh) and Fast Read 1-1-4 (EBh) hence the SPI_NOR_DUAL_READ and SPI_NOR_QUAD_READ flags should be set as well.

Best regards,

Cyrille

Quoted 4 lines
drivers/mtd/spi-nor/spi-nor.c +0 -0
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
#3 lore raw

Re: [PATCH V2 1/3] mtd: spi-nor: add support for macronix mx25u25635f

In reply to John Crispin

Hi all,

Quoted 20 lines · John Crispin

From: Ash Benz <[email protected]>

This patch adds support for a new macronix spi flash chip. We have had this patch inside our tree for a while and people are actively using routers with this chip.

---
Changes in V2
* add description

 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +0 -0
index d0fc165..171adb3 100644

drivers/mtd/spi-nor/spi-nor.c static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) · line 875

Quoted 4 lines
drivers/mtd/spi-nor/spi-nor.c +1 -0
@@ -872,6 +872,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
 	{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, 0) },
+	{ "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, 0) },

According to its datasheet, the Macronix MX25U25635F, like the MX25U3235F, supports Fast Read 1-1-2 (3Bh) and Fast Read 1-1-4 (6Bh) hence both SPI_NOR_DUAL_READ and SPI_NOR_QUAD_READ flags should be set too.

Also extracted from the datasheet:
"Equal Sectors with 4K byte each, or Equal Blocks with 32K byte each or Equal Blocks with 64K byte each"

Sector Erase 4K (20h) is supported hence the SECT_4K flag.

Best regards,

Cyrille

Quoted 4 lines
drivers/mtd/spi-nor/spi-nor.c +0 -0
 	{ "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
 	{ "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_QUAD_READ) },
 	{ "mx66l1g55g",  INFO(0xc2261b, 0, 64 * 1024, 2048, SPI_NOR_QUAD_READ) },
#12 lore raw

Re: [PATCH V2 2/3] mtd: spi-nor: add support for macronix mx25u3235f

In reply to Cyrille Pitchen
Quoted 34 lines · Cyrille Pitchen

Hi all,

Quoted 22 lines · John Crispin

From: André Valentin <[email protected]>

This patch adds support for a new macronix spi flash chip. We have had this patch inside our tree for a while and people are actively using routers with this chip.

---
Changes in V2
* add description
* add SECT_4K
* fix indenting

 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +0 -0
index 171adb3..bfff159 100644

drivers/mtd/spi-nor/spi-nor.c static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) · line 871

Quoted 4 lines
drivers/mtd/spi-nor/spi-nor.c +1 -0
@@ -868,6 +868,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l3205d",  INFO(0xc22016, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
+	{ "mx25u3235f",	 INFO(0xc22536, 0, 64 * 1024,  64, SECT_4K) },

According to its datasheet, the Macronix MX25U3235F also supports Fast Read 1-1-2 (3Bh) and Fast Read 1-1-4 (EBh) hence the SPI_NOR_DUAL_READ and SPI_NOR_QUAD_READ flags should be set as well.

Quoted 3 lines

Best regards,

Cyrille

Hi Cyrille,

thanks for the help, I'll update the patches and get the original submitters to test them before resending the series

John

Quoted 6 lines
Quoted 5 lines
drivers/mtd/spi-nor/spi-nor.c +0 -0
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
#13 lore raw

Re: [PATCH V2 2/3] mtd: spi-nor: add support for macronix mx25u3235f

Quoted 39 lines · John Crispin
Quoted 36 lines · Cyrille Pitchen

Hi all,

Quoted 22 lines · John Crispin

From: André Valentin <[email protected]>

This patch adds support for a new macronix spi flash chip. We have had this patch inside our tree for a while and people are actively using routers with this chip.

---
Changes in V2
* add description
* add SECT_4K
* fix indenting

 drivers/mtd/spi-nor/spi-nor.c |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +0 -0
index 171adb3..bfff159 100644

drivers/mtd/spi-nor/spi-nor.c static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) · line 871

Quoted 4 lines
drivers/mtd/spi-nor/spi-nor.c +1 -0
@@ -868,6 +868,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 	{ "mx25l3205d",  INFO(0xc22016, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
+	{ "mx25u3235f",	 INFO(0xc22536, 0, 64 * 1024,  64, SECT_4K) },

According to its datasheet, the Macronix MX25U3235F also supports Fast Read 1-1-2 (3Bh) and Fast Read 1-1-4 (EBh) hence the SPI_NOR_DUAL_READ and SPI_NOR_QUAD_READ flags should be set as well.

Best regards,

Quoted 9 lines
Quoted 1 line

Cyrille

Hi Cyrille,

thanks for the help, I'll update the patches and get the original submitters to test them before resending the series

John

If they could test easily it's always a good thing. For 4K erase it should be pretty straight forward but for dual and quad fast reads it depends on the SPI controller hardware capabilities, whether the IO2 and IO3 lines are physically connected to the relevant memory pins... So if it is too difficult to find a proper board to do the tests, just tell us :)

Anyway, with Macronix memories, we don't take that much risk setting the dual/quad flags referring only to the datasheet. For instance, we already know that the Fast Read 1-y-4 commands work with Macronix mx25l25673g, so it's very likely to work the same with mx25u*35f parts.

Still reading the datasheet, I've already checked the number of dummy cycles needed with the factory settings: 8 dummy clock cycles (mode cycles included) for both Fast Read 1-1-4 and Fast Read 1-1-2.

Best regards,

Cyrille

Quoted 7 lines
Quoted 6 lines
Quoted 5 lines
drivers/mtd/spi-nor/spi-nor.c +0 -0
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
#15 lore raw

Re: [PATCH V2 3/3] mtd: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa

In reply to John Crispin

Hi all,

Quoted 18 lines · John Crispin

From: "Larry D. Pinney" <[email protected]>

Add Support for the ESMT_F25L32QA and ESMT_F25L64QA These are 4MB and 8MB SPI NOR Chips from Elite Semiconductor Memory Technology

---
 drivers/mtd/spi-nor/spi-nor.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/spi-nor.c +0 -0
index bfff159..2b150b5 100644

drivers/mtd/spi-nor/spi-nor.c static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) · line 826

Quoted 6 lines
drivers/mtd/spi-nor/spi-nor.c +2 -0
@@ -821,6 +821,8 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 
 	/* ESMT */
 	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
+	{ "f25l32qa", INFO(0x8c4116, 0, 64 * 1024, 64, SECT_4K) },
+	{ "f25l64qa", INFO(0x8c4117, 0, 64 * 1024, 128, SECT_4K) },
 

This patch cannot be applied to the github spi-nor tree. Another recent patch [1] has updated the "f25l32pa" entry to add the SPI_NOR_HAS_LOCK flag. I guess the "f25l{32|64}qa" entries need this flag as well.

[1] on the spi-nor tree, commit 252c36bb9c7b ("mtd: spi-nor: Add lock/unlock support for f25l32pa")

Best regards,

Cyrille

Quoted 3 lines
drivers/mtd/spi-nor/spi-nor.c +0 -0
 	/* Everspin */
 	{ "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
#16 lore raw

Re: [PATCH V2 3/3] mtd: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa

Quoted 31 lines · Cyrille Pitchen
Quoted 18 lines · John Crispin

From: "Larry D. Pinney" <[email protected]>

Add Support for the ESMT_F25L32QA and ESMT_F25L64QA These are 4MB and 8MB SPI NOR Chips from Elite Semiconductor Memory Technology

---
 drivers/mtd/spi-nor/spi-nor.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/spi-nor.c +0 -0
index bfff159..2b150b5 100644

drivers/mtd/spi-nor/spi-nor.c static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) · line 826

Quoted 6 lines
drivers/mtd/spi-nor/spi-nor.c +2 -0
@@ -821,6 +821,8 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 
 	/* ESMT */
 	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
+	{ "f25l32qa", INFO(0x8c4116, 0, 64 * 1024, 64, SECT_4K) },
+	{ "f25l64qa", INFO(0x8c4117, 0, 64 * 1024, 128, SECT_4K) },
 

This patch cannot be applied to the github spi-nor tree. Another recent patch [1] has updated the "f25l32pa" entry to add the SPI_NOR_HAS_LOCK flag. I guess the "f25l{32|64}qa" entries need this flag as well.

Quoted 2 lines

[1] on the spi-nor tree, commit 252c36bb9c7b ("mtd: spi-nor: Add lock/unlock support for f25l32pa")

Hi Larry, I just realized you never resent rebased patch.

Can you do this, please?