Skip to contentSkip to conversation

mtd: spi-nor: Add support for mx25u3235f

PATCH Applied Ding Tao 3 participants 3 messages Jan 30, 2019 – Feb 10, 2019

Subsystems (2)
lore
Share & tools
lore

Ding Tao

author
#0 lore raw

PATCH 1/1 mtd: spi-nor: Add support for mx25u3235f

From: André Valentin <[email protected]>

The mx25u3235f is found on the ZyXEL NBG6817 router, therefore add driver support for it so that we can upstream board support.

Minimal tested with u-boot tools fw_printenv/fw_setenv on GlobalScale ESPRESSObin v5 board.

[[email protected]: Remove unnecessary white space.]
---
 drivers/mtd/spi-nor/spi-nor.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/spi-nor.c +2 -0
index 6e13bbd1aaa5..01ac2e4babaa 100644
@@ -1836,6 +1836,8 @@ static const struct flash_info spi_nor_ids[] = {
 	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25u2033e",  INFO(0xc22532, 0, 64 * 1024,   4, SECT_4K) },
+	{ "mx25u3235f",	 INFO(0xc22536, 0, 64 * 1024,  64,
+			 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 	{ "mx25u4035",   INFO(0xc22533, 0, 64 * 1024,   8, SECT_4K) },
 	{ "mx25u8035",   INFO(0xc22534, 0, 64 * 1024,  16, SECT_4K) },
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
Signature · 6 lines
2.17.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Reviewed-by on v1 1/1
#1 lore raw

Hi, Boris,

Quoted 9 lines · Ding Tao

From: André Valentin <[email protected]>

The mx25u3235f is found on the ZyXEL NBG6817 router, therefore add driver support for it so that we can upstream board support.

Minimal tested with u-boot tools fw_printenv/fw_setenv on GlobalScale ESPRESSObin v5 board.

[[email protected]: Remove unnecessary white space.]

Would you please move this line between Andre's S-o-b and Ding's?

Quoted 1 line

Ding,
your change should be indicated between the last Signed-off-by header and yours, see Documentation/process/submitting-patches.rst. Your Tested-by tag could have been here too.

Quoted 1 line

Andre and Hauke, we will take this version of the patch, because Ding has worked on it too.

Quoted 1 line

---

change log was nice to have here.

Cheers,
ta

Quoted 9 lines
 drivers/mtd/spi-nor/spi-nor.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/spi-nor.c +0 -0
index 6e13bbd1aaa5..01ac2e4babaa 100644

drivers/mtd/spi-nor/spi-nor.c static const struct flash_info spi_nor_ids[] = { · line 1843

Quoted 8 lines
drivers/mtd/spi-nor/spi-nor.c +2 -0
@@ -1836,6 +1836,8 @@ static const struct flash_info spi_nor_ids[] = {
 	{ "mx25l3255e",  INFO(0xc29e16, 0, 64 * 1024,  64, SECT_4K) },
 	{ "mx25l6405d",  INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25u2033e",  INFO(0xc22532, 0, 64 * 1024,   4, SECT_4K) },
+	{ "mx25u3235f",	 INFO(0xc22536, 0, 64 * 1024,  64,
+			 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 	{ "mx25u4035",   INFO(0xc22533, 0, 64 * 1024,   8, SECT_4K) },
 	{ "mx25u8035",   INFO(0xc22534, 0, 64 * 1024,  16, SECT_4K) },
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#2 lore raw
In reply to Ding Tao

From: Boris Brezillon <[email protected]>

Quoted 5 lines · Ding Tao

From: André Valentin <[email protected]>

The mx25u3235f is found on the ZyXEL NBG6817 router, therefore add driver support for it so that we can upstream board support.

Quoted 7 lines

Minimal tested with u-boot tools fw_printenv/fw_setenv on GlobalScale ESPRESSObin v5 board.

Applied to http://git.infradead.org/linux-mtd.git spi-nor/next, thanks.

Boris

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/