Skip to content

Commit 25e08bf

Browse files
committed
mtd: spinand: winbond: Add support for W35N02JW and W35N04JW chips
These chips support single SPI, octal SPI and octal DDR SPI. For now, only the SDR protocols are supported. Tested with the W35N02JW variant, but the 04 one just has twice more dies and is described in the same datasheet, so we can reasonably expect that it will behave identically. Acked-by: Tudor Ambarus <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 1ac5ff2 commit 25e08bf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

drivers/mtd/nand/spi/winbond.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,24 @@ static const struct spinand_info winbond_spinand_table[] = {
287287
&update_cache_octal_variants),
288288
0,
289289
SPINAND_ECCINFO(&w35n01jw_ooblayout, NULL)),
290+
SPINAND_INFO("W35N02JW", /* 1.8V */
291+
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xdf, 0x22),
292+
NAND_MEMORG(1, 4096, 128, 64, 512, 10, 2, 1, 1),
293+
NAND_ECCREQ(1, 512),
294+
SPINAND_INFO_OP_VARIANTS(&read_cache_octal_variants,
295+
&write_cache_octal_variants,
296+
&update_cache_octal_variants),
297+
0,
298+
SPINAND_ECCINFO(&w35n01jw_ooblayout, NULL)),
299+
SPINAND_INFO("W35N04JW", /* 1.8V */
300+
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xdf, 0x23),
301+
NAND_MEMORG(1, 4096, 128, 64, 512, 10, 4, 1, 1),
302+
NAND_ECCREQ(1, 512),
303+
SPINAND_INFO_OP_VARIANTS(&read_cache_octal_variants,
304+
&write_cache_octal_variants,
305+
&update_cache_octal_variants),
306+
0,
307+
SPINAND_ECCINFO(&w35n01jw_ooblayout, NULL)),
290308
/* 2G-bit densities */
291309
SPINAND_INFO("W25M02GV", /* 2x1G-bit 3.3V */
292310
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xab, 0x21),

0 commit comments

Comments
 (0)