* [PATCH v2 1/2] mtd: spi-nor: add support for is25lq040b
@ 2017-12-13 11:35 Sean Nyekjaer
2017-12-13 11:35 ` [PATCH v2 2/2] mtd: spi-nor: indent issi section Sean Nyekjaer
2017-12-14 10:21 ` [PATCH v2 1/2] mtd: spi-nor: add support for is25lq040b Sean Nyekjær
0 siblings, 2 replies; 4+ messages in thread
From: Sean Nyekjaer @ 2017-12-13 11:35 UTC (permalink / raw)
To: linux-mtd, marek.vasut, cyrille.pitchen; +Cc: Sean Nyekjaer
Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
---
v2:
- removed SECT_4K as the chip are supporting 32K and bulk erase
drivers/mtd/spi-nor/spi-nor.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 9178139a39d0..cc4328dff89a 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -1048,6 +1048,7 @@ static const struct flash_info spi_nor_ids[] = {
{ "is25cd512", INFO(0x7f9d20, 0, 32 * 1024, 2, SECT_4K) },
{ "is25lp128", INFO(0x9d6018, 0, 64 * 1024, 256,
SECT_4K | SPI_NOR_DUAL_READ) },
+ { "is25lq040b", INFO(0x9d4013, 0, 64 * 1024, 64, 0) },
/* Macronix */
{ "mx25l512e", INFO(0xc22010, 0, 64 * 1024, 1, SECT_4K) },
--
2.15.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] mtd: spi-nor: indent issi section
2017-12-13 11:35 [PATCH v2 1/2] mtd: spi-nor: add support for is25lq040b Sean Nyekjaer
@ 2017-12-13 11:35 ` Sean Nyekjaer
2017-12-14 10:21 ` [PATCH v2 1/2] mtd: spi-nor: add support for is25lq040b Sean Nyekjær
1 sibling, 0 replies; 4+ messages in thread
From: Sean Nyekjaer @ 2017-12-13 11:35 UTC (permalink / raw)
To: linux-mtd, marek.vasut, cyrille.pitchen; +Cc: Sean Nyekjaer
Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
---
drivers/mtd/spi-nor/spi-nor.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index cc4328dff89a..c3cd413c8957 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -1045,8 +1045,8 @@ static const struct flash_info spi_nor_ids[] = {
{ "640s33b", INFO(0x898913, 0, 64 * 1024, 128, 0) },
/* ISSI */
- { "is25cd512", INFO(0x7f9d20, 0, 32 * 1024, 2, SECT_4K) },
- { "is25lp128", INFO(0x9d6018, 0, 64 * 1024, 256,
+ { "is25cd512", INFO(0x7f9d20, 0, 32 * 1024, 2, SECT_4K) },
+ { "is25lp128", INFO(0x9d6018, 0, 64 * 1024, 256,
SECT_4K | SPI_NOR_DUAL_READ) },
{ "is25lq040b", INFO(0x9d4013, 0, 64 * 1024, 64, 0) },
--
2.15.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2] mtd: spi-nor: add support for is25lq040b
2017-12-13 11:35 [PATCH v2 1/2] mtd: spi-nor: add support for is25lq040b Sean Nyekjaer
2017-12-13 11:35 ` [PATCH v2 2/2] mtd: spi-nor: indent issi section Sean Nyekjaer
@ 2017-12-14 10:21 ` Sean Nyekjær
2017-12-14 12:12 ` Cyrille Pitchen
1 sibling, 1 reply; 4+ messages in thread
From: Sean Nyekjær @ 2017-12-14 10:21 UTC (permalink / raw)
To: cyrille.pitchen; +Cc: linux-mtd, marek.vasut
Hi Cyrille
On 2017-12-13 12:35, Sean Nyekjaer wrote:
> Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
> ---
> v2:
> - removed SECT_4K as the chip are supporting 32K and bulk erase
>
> drivers/mtd/spi-nor/spi-nor.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index 9178139a39d0..cc4328dff89a 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -1048,6 +1048,7 @@ static const struct flash_info spi_nor_ids[] = {
> { "is25cd512", INFO(0x7f9d20, 0, 32 * 1024, 2, SECT_4K) },
> { "is25lp128", INFO(0x9d6018, 0, 64 * 1024, 256,
> SECT_4K | SPI_NOR_DUAL_READ) },
> + { "is25lq040b", INFO(0x9d4013, 0, 64 * 1024, 64, 0) },
Doh, my bad, there is only 8 blocks on the device (4Mbit not 4MB)
The device have the possibility to erase 4, 32, 64 Kbyte, or Chip Erase.
Is the SECT_4K preferred in the kernel or should i leave it off?
>
> /* Macronix */
> { "mx25l512e", INFO(0xc22010, 0, 64 * 1024, 1, SECT_4K) },
/Sean
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2] mtd: spi-nor: add support for is25lq040b
2017-12-14 10:21 ` [PATCH v2 1/2] mtd: spi-nor: add support for is25lq040b Sean Nyekjær
@ 2017-12-14 12:12 ` Cyrille Pitchen
0 siblings, 0 replies; 4+ messages in thread
From: Cyrille Pitchen @ 2017-12-14 12:12 UTC (permalink / raw)
To: Sean Nyekjær; +Cc: linux-mtd, marek.vasut
Hi Sean,
Le 14/12/2017 à 11:21, Sean Nyekjær a écrit :
> Hi Cyrille
>
> On 2017-12-13 12:35, Sean Nyekjaer wrote:
>> Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
>> ---
>> v2:
>> - removed SECT_4K as the chip are supporting 32K and bulk erase
>>
>> drivers/mtd/spi-nor/spi-nor.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
>> index 9178139a39d0..cc4328dff89a 100644
>> --- a/drivers/mtd/spi-nor/spi-nor.c
>> +++ b/drivers/mtd/spi-nor/spi-nor.c
>> @@ -1048,6 +1048,7 @@ static const struct flash_info spi_nor_ids[] = {
>> { "is25cd512", INFO(0x7f9d20, 0, 32 * 1024, 2, SECT_4K) },
>> { "is25lp128", INFO(0x9d6018, 0, 64 * 1024, 256,
>> SECT_4K | SPI_NOR_DUAL_READ) },
>> + { "is25lq040b", INFO(0x9d4013, 0, 64 * 1024, 64, 0) },
> Doh, my bad, there is only 8 blocks on the device (4Mbit not 4MB)
>
> The device have the possibility to erase 4, 32, 64 Kbyte, or Chip Erase.
> Is the SECT_4K preferred in the kernel or should i leave it off?
If 4K erase is uniformly supported by the memory, then please add the
SECT_4K flag.
I'm looking at the datasheet [1]:
- Uniform 4 Kbyte Sectors or 32/64 Kbyte Blocks: please add the SECT_4K flag
- FAST READ QUAD OUTPUT (FRQO, 6Bh): Fast Read 1-1-4 supported, then please
add the SPI_NOR_QUAD_READ flag too
- FAST READ DUAL OUTPUT (FRDO, 3Bh): Fast Read 1-1-2 supported, also add the
SPI_NOR_DUAL_READ flag.
Besides, setting at least one the the SPI_NOR_{DUAL,QUAD}_READ flags will
enable parsing of the SFDP tables, which are also supported by this memory:
"Supports Serial Flash Discoverable Parameters (SFDP)"
So you should set the 3 flags:
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ
Best regards,
Cyrille
[1] http://www.issi.com/WW/pdf/25LQ025B-512B-010B-020B-040B.pdf
>> /* Macronix */
>> { "mx25l512e", INFO(0xc22010, 0, 64 * 1024, 1, SECT_4K) },
> /Sean
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-12-14 12:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-13 11:35 [PATCH v2 1/2] mtd: spi-nor: add support for is25lq040b Sean Nyekjaer
2017-12-13 11:35 ` [PATCH v2 2/2] mtd: spi-nor: indent issi section Sean Nyekjaer
2017-12-14 10:21 ` [PATCH v2 1/2] mtd: spi-nor: add support for is25lq040b Sean Nyekjær
2017-12-14 12:12 ` Cyrille Pitchen
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.