diff mbox series

mtd: spi-nor: ids: Add IS25LP01GG flash support

Message ID 20240617041841.1336632-1-prasad.kummari@amd.com
State Accepted
Commit c43d65e2664397141834bad6f08711bdb8b2df70
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series mtd: spi-nor: ids: Add IS25LP01GG flash support | expand

Commit Message

Kummari, Prasad June 17, 2024, 4:18 a.m. UTC
Add support for ISSI 128MB flash IS25LP01GG. This part
supports 4byte opcodes. It also supports dual and quad
read.

Signed-off-by: Prasad Kummari <prasad.kummari@amd.com>
---
 drivers/mtd/spi/spi-nor-ids.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Dhruva Gole June 17, 2024, 6:28 a.m. UTC | #1
On Jun 17, 2024 at 09:48:42 +0530, Prasad Kummari wrote:
> Add support for ISSI 128MB flash IS25LP01GG. This part

Can we have the datasheet link for this part?
I am assuming it's this?
https://www.issi.com/WW/pdf/25LP-WP01GG.pdf

Better to add it to the commit message.

> supports 4byte opcodes. It also supports dual and quad
> read.
> 
> Signed-off-by: Prasad Kummari <prasad.kummari@amd.com>
> ---
>  drivers/mtd/spi/spi-nor-ids.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
> index 4e83b8c94c..8cad764237 100644
> --- a/drivers/mtd/spi/spi-nor-ids.c
> +++ b/drivers/mtd/spi/spi-nor-ids.c
> @@ -242,6 +242,8 @@ const struct flash_info spi_nor_ids[] = {
>  			SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES) },
>  	{ INFO("is25lx512",  0x9d5a1a, 0, 64 * 1024, 1024,
>  			SECT_4K | USE_FSR | SPI_NOR_4B_OPCODES | SPI_NOR_HAS_TB) },
> +	{ INFO("is25lp01gg",  0x9d6021, 0, 64 * 1024, 2048,
> +			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_TB) },

Otherwise looks good to me,
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Michal Simek June 17, 2024, 1:26 p.m. UTC | #2
On 6/17/24 08:28, Dhruva Gole wrote:
> On Jun 17, 2024 at 09:48:42 +0530, Prasad Kummari wrote:
>> Add support for ISSI 128MB flash IS25LP01GG. This part
> 
> Can we have the datasheet link for this part?
> I am assuming it's this?
> https://www.issi.com/WW/pdf/25LP-WP01GG.pdf

Problem with links is that they will disappear when company decide to change 
infrastructure or is acquired by different one.

> 
> Better to add it to the commit message.

Not sure what's U-Boot policy on this but placing it below --- should be enough
or what you have done as reply to this email that it can be found via b4.

Thanks,
Michal

> 
>> supports 4byte opcodes. It also supports dual and quad
>> read.
>>
>> Signed-off-by: Prasad Kummari <prasad.kummari@amd.com>
>> ---
>>   drivers/mtd/spi/spi-nor-ids.c | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
>> index 4e83b8c94c..8cad764237 100644
>> --- a/drivers/mtd/spi/spi-nor-ids.c
>> +++ b/drivers/mtd/spi/spi-nor-ids.c
>> @@ -242,6 +242,8 @@ const struct flash_info spi_nor_ids[] = {
>>   			SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES) },
>>   	{ INFO("is25lx512",  0x9d5a1a, 0, 64 * 1024, 1024,
>>   			SECT_4K | USE_FSR | SPI_NOR_4B_OPCODES | SPI_NOR_HAS_TB) },
>> +	{ INFO("is25lp01gg",  0x9d6021, 0, 64 * 1024, 2048,
>> +			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_TB) },
> 
> Otherwise looks good to me,
> Reviewed-by: Dhruva Gole <d-gole@ti.com>
> 
>
Dragan Simic June 17, 2024, 1:31 p.m. UTC | #3
Hello Michal,

On 2024-06-17 15:26, Michal Simek wrote:
> On 6/17/24 08:28, Dhruva Gole wrote:
>> On Jun 17, 2024 at 09:48:42 +0530, Prasad Kummari wrote:
>>> Add support for ISSI 128MB flash IS25LP01GG. This part
>> 
>> Can we have the datasheet link for this part?
>> I am assuming it's this?
>> https://www.issi.com/WW/pdf/25LP-WP01GG.pdf
> 
> Problem with links is that they will disappear when company decide to
> change infrastructure or is acquired by different one.

You can prevent that by making sure that the link to the PDF file
is archived on The Wayback Machine. [1]  That way, even if the URL
becomes invalid at some point in time, the contents won't be lost.

[1] https://web.archive.org/

>> Better to add it to the commit message.
> 
> Not sure what's U-Boot policy on this but placing it below --- should 
> be enough
> or what you have done as reply to this email that it can be found via 
> b4.
> 
> Thanks,
> Michal
> 
>> 
>>> supports 4byte opcodes. It also supports dual and quad
>>> read.
>>> 
>>> Signed-off-by: Prasad Kummari <prasad.kummari@amd.com>
>>> ---
>>>   drivers/mtd/spi/spi-nor-ids.c | 2 ++
>>>   1 file changed, 2 insertions(+)
>>> 
>>> diff --git a/drivers/mtd/spi/spi-nor-ids.c 
>>> b/drivers/mtd/spi/spi-nor-ids.c
>>> index 4e83b8c94c..8cad764237 100644
>>> --- a/drivers/mtd/spi/spi-nor-ids.c
>>> +++ b/drivers/mtd/spi/spi-nor-ids.c
>>> @@ -242,6 +242,8 @@ const struct flash_info spi_nor_ids[] = {
>>>   			SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES) },
>>>   	{ INFO("is25lx512",  0x9d5a1a, 0, 64 * 1024, 1024,
>>>   			SECT_4K | USE_FSR | SPI_NOR_4B_OPCODES | SPI_NOR_HAS_TB) },
>>> +	{ INFO("is25lp01gg",  0x9d6021, 0, 64 * 1024, 2048,
>>> +			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_TB) 
>>> },
>> 
>> Otherwise looks good to me,
>> Reviewed-by: Dhruva Gole <d-gole@ti.com>
>> 
>>
Michal Simek June 17, 2024, 1:38 p.m. UTC | #4
On 6/17/24 15:31, Dragan Simic wrote:
> Hello Michal,
> 
> On 2024-06-17 15:26, Michal Simek wrote:
>> On 6/17/24 08:28, Dhruva Gole wrote:
>>> On Jun 17, 2024 at 09:48:42 +0530, Prasad Kummari wrote:
>>>> Add support for ISSI 128MB flash IS25LP01GG. This part
>>>
>>> Can we have the datasheet link for this part?
>>> I am assuming it's this?
>>> https://www.issi.com/WW/pdf/25LP-WP01GG.pdf
>>
>> Problem with links is that they will disappear when company decide to
>> change infrastructure or is acquired by different one.
> 
> You can prevent that by making sure that the link to the PDF file
> is archived on The Wayback Machine. [1]  That way, even if the URL
> becomes invalid at some point in time, the contents won't be lost.
> 
> [1] https://web.archive.org/

No idea about it. Up to Tom.

Cheers,
Michal
Dragan Simic June 17, 2024, 7:56 p.m. UTC | #5
On 2024-06-17 15:38, Michal Simek wrote:
> On 6/17/24 15:31, Dragan Simic wrote:
>> On 2024-06-17 15:26, Michal Simek wrote:
>>> On 6/17/24 08:28, Dhruva Gole wrote:
>>>> On Jun 17, 2024 at 09:48:42 +0530, Prasad Kummari wrote:
>>>>> Add support for ISSI 128MB flash IS25LP01GG. This part
>>>> 
>>>> Can we have the datasheet link for this part?
>>>> I am assuming it's this?
>>>> https://www.issi.com/WW/pdf/25LP-WP01GG.pdf
>>> 
>>> Problem with links is that they will disappear when company decide to
>>> change infrastructure or is acquired by different one.
>> 
>> You can prevent that by making sure that the link to the PDF file
>> is archived on The Wayback Machine. [1]  That way, even if the URL
>> becomes invalid at some point in time, the contents won't be lost.
>> 
>> [1] https://web.archive.org/
> 
> No idea about it. Up to Tom.

As a note, that's what Wikipedia does with its online references
that become inaccessible over time.
Michal Simek July 11, 2024, 11:36 a.m. UTC | #6
On 6/17/24 06:18, Prasad Kummari wrote:
> Add support for ISSI 128MB flash IS25LP01GG. This part
> supports 4byte opcodes. It also supports dual and quad
> read.
> 
> Signed-off-by: Prasad Kummari <prasad.kummari@amd.com>
> ---
>   drivers/mtd/spi/spi-nor-ids.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
> index 4e83b8c94c..8cad764237 100644
> --- a/drivers/mtd/spi/spi-nor-ids.c
> +++ b/drivers/mtd/spi/spi-nor-ids.c
> @@ -242,6 +242,8 @@ const struct flash_info spi_nor_ids[] = {
>   			SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES) },
>   	{ INFO("is25lx512",  0x9d5a1a, 0, 64 * 1024, 1024,
>   			SECT_4K | USE_FSR | SPI_NOR_4B_OPCODES | SPI_NOR_HAS_TB) },
> +	{ INFO("is25lp01gg",  0x9d6021, 0, 64 * 1024, 2048,
> +			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_TB) },
>   #endif
>   #ifdef CONFIG_SPI_FLASH_MACRONIX	/* MACRONIX */
>   	/* Macronix */

Applied.
M
diff mbox series

Patch

diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
index 4e83b8c94c..8cad764237 100644
--- a/drivers/mtd/spi/spi-nor-ids.c
+++ b/drivers/mtd/spi/spi-nor-ids.c
@@ -242,6 +242,8 @@  const struct flash_info spi_nor_ids[] = {
 			SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES) },
 	{ INFO("is25lx512",  0x9d5a1a, 0, 64 * 1024, 1024,
 			SECT_4K | USE_FSR | SPI_NOR_4B_OPCODES | SPI_NOR_HAS_TB) },
+	{ INFO("is25lp01gg",  0x9d6021, 0, 64 * 1024, 2048,
+			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_TB) },
 #endif
 #ifdef CONFIG_SPI_FLASH_MACRONIX	/* MACRONIX */
 	/* Macronix */