mtd: spi-nor: winbond: Add support for w25q512jv
Subsystems (2)
PATCH 1/1 mtd: spi-nor: winbond: Add support for w25q512jv
Add support for w25q512jv. This is of the same series chip with w25q256jv, which is already supported, but with size doubled and different JEDEC ID.
--- drivers/mtd/spi-nor/winbond.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/winbond.c +2 -0
@@ -97,6 +97,8 @@ static const struct flash_info winbond_parts[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, {"w25m512jv" ,INFO (0xef7119 ,0 ,64 *1024 ,1024 , SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, + { "w25q512jv", INFO(0xef4020, 0, 64 * 1024, 1024, + SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, };/**
Signature · 1 line
2.20.1
Hi, Shuhao,
Quoted 5 lines · Shuhao Mai
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Add support for w25q512jv. This is of the same series chip with w25q256jv, which is already supported, but with size doubled and different JEDEC ID.
Where and how was this tested? Please add this info in the commit message.
Quoted 11 lines
Signed-off-by Shuhao Mai <[email protected]>--- drivers/mtd/spi-nor/winbond.c | 2 ++ 1 file changed, 2 insertions(+)drivers/mtd/spi-nor/winbond.c +0
-0
drivers/mtd/spi-nor/winbond.c static const struct flash_info winbond_parts[] = { · line 100
Quoted 4 lines
drivers/mtd/spi-nor/winbond.c +1
-0@@ -97,6 +97,8 @@ static const struct flash_info winbond_parts[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, {"w25m512jv" ,INFO (0xef7119 ,0 ,64 *1024 ,1024 , SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, + { "w25q512jv", INFO(0xef4020, 0, 64 * 1024, 1024,
We should name it "w25q512jvq" in order to differentiate it to the
"M" version: https://www.winbond.com/resource-files/W25Q512JV%20DTR%20RevD%2006292020%20133.pdf
The flash supports BP locking and we can enable it if you can test the locking with mtd-utils. Not mandatory though.
Cheers,
ta
Quoted 7 lines
drivers/mtd/spi-nor/winbond.c +1
-1+ SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, };/** -- 2.20.1
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Quoted 12 lines · On Mon, Jan 04, 2021 at 08:58:26AM +0000, [email protected] wrote:
Hi, Shuhao,
Quoted 5 lines · Shuhao Mai
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Add support for w25q512jv. This is of the same series chip with w25q256jv, which is already supported, but with size doubled and different JEDEC ID.
Where and how was this tested? Please add this info in the commit message.
Will add it in next version.
Quoted 19 lines
Quoted 11 lines
Signed-off-by Shuhao Mai <[email protected]>--- drivers/mtd/spi-nor/winbond.c | 2 ++ 1 file changed, 2 insertions(+)drivers/mtd/spi-nor/winbond.c +0
-0drivers/mtd/spi-nor/winbond.c static const struct flash_info winbond_parts[] = { · line 100
Quoted 4 lines
drivers/mtd/spi-nor/winbond.c +1
-0@@ -97,6 +97,8 @@ static const struct flash_info winbond_parts[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, {"w25m512jv" ,INFO (0xef7119 ,0 ,64 *1024 ,1024 , SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, + { "w25q512jv", INFO(0xef4020, 0, 64 * 1024, 1024,We should name it "w25q512jvq" in order to differentiate it to the
"M" version: https://www.winbond.com/resource-files/W25Q512JV%20DTR%20RevD%2006292020%20133.pdf
Quoted 5 lines
The flash supports BP locking and we can enable it if you can test the locking with mtd-utils. Not mandatory though.
Cheers,
ta
I tried flash lock on my test enviorment, but it doesn't work. I think I'll only update the flash name in next version, and submit a new patch when I have answer to it.
Best,
Shuhao
Quoted 8 lines
Quoted 7 lines
drivers/mtd/spi-nor/winbond.c +1
-1+ SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, };/** -- 2.20.1
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
PATCH v2 1/1 mtd: spi-nor: winbond: Add support for w25q512jvq
In reply to Shuhao MaiAdd support for w25q512jvq. This is of the same series chip with w25q256jv, which is already supported, but with size doubled and different JEDEC ID.
Tested on Intel whitley platform with dd from/to the flash for read/write respectly, and flash_erase for erasing the flash.
--- drivers/mtd/spi-nor/winbond.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/winbond.c +2 -0
@@ -97,6 +97,8 @@ static const struct flash_info winbond_parts[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, {"w25m512jv" ,INFO (0xef7119 ,0 ,64 *1024 ,1024 , SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, + { "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024, + SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, };/**
Signature · 2 lines
v2: - Change the name to w25q512jvq
PATCH v2 1/1 mtd: spi-nor: winbond: Add support for w25q512jvq
In reply to Shuhao MaiAdd support for w25q512jvq. This is of the same series chip with w25q256jv, which is already supported, but with size doubled and different JEDEC ID.
Tested on Intel whitley platform with dd from/to the flash for read/write respectly, and flash_erase for erasing the flash.
--- drivers/mtd/spi-nor/winbond.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/winbond.c +2 -0
@@ -97,6 +97,8 @@ static const struct flash_info winbond_parts[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, {"w25m512jv" ,INFO (0xef7119 ,0 ,64 *1024 ,1024 , SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, + { "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024, + SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, };/**
Signature · 1 line
2.20.1
Tudor Ambarus
AppliedRe: [PATCH v2] mtd: spi-nor: winbond: Add support for w25q512jvq
Quoted 6 lines · Shuhao Mai
Add support for w25q512jvq. This is of the same series chip with w25q256jv, which is already supported, but with size doubled and different JEDEC ID.
Tested on Intel whitley platform with dd from/to the flash for read/write respectly, and
flash_erasefor erasing the flash.
Applied to spi-nor/next, thanks!
[1/1] mtd: spi-nor: winbond: Add support for w25q512jvq
https://git.kernel.org/mtd/c/ff013330fbdb
Best regards,
Signature · 1 line
Tudor Ambarus <[email protected]>