From: Erez Geva <ErezGeva2@xxxxxxxxx> mx25l12833f uses the same JEDEC ID as mx25l12805d. The 2 chips have the same flash size. So user can use mx25l12805d setting with mx25l12833f chip. mx25l12833f support SFDP and have a bigger symmetric OTP. Macronix annonce the end of life of mx25l12805d in 2010. See: "https://www.macronix.com/Lists/TechDoc/Attachments/9861/PCN31_2009 PCN_MX25L6405D and MX25L12805D.pdf" Signed-off-by: Erez Geva <ErezGeva2@xxxxxxxxx> --- drivers/mtd/spi-nor/core.c | 1 + drivers/mtd/spi-nor/macronix.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 0f267da339a4..6a5caa199978 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -3799,6 +3799,7 @@ static const struct spi_device_id spi_nor_dev_ids[] = { */ {"at25df321a"}, {"at25df641"}, {"at26df081a"}, {"mx25l4005a"}, {"mx25l1606e"}, {"mx25l6405d"}, {"mx25l12805d"}, + {"mx25l12833f"}, /* Uses the same JEDEC ID of mx25l12805d */ {"mx25l25635e"},{"mx66l51235l"}, {"n25q064"}, {"n25q128a11"}, {"n25q128a13"}, {"n25q512a"}, {"s25fl256s1"}, {"s25fl512s"}, {"s25sl12801"}, {"s25fl008k"}, diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index f210231468a6..28ae6041fe8c 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -247,6 +247,11 @@ static const struct flash_info macronix_nor_parts[] = { .size = SZ_16M, .flags = SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP, .no_sfdp_flags = SECT_4K, + }, { /* Yes, Same JEDEC ID as mx25l12805d */ + .id = SNOR_ID(0xc2, 0x20, 0x18), + .name = "mx25l12833f", + .flags = SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP, + .otp = SNOR_OTP(512, 2, 0x000, 0x200), }, { .id = SNOR_ID(0xc2, 0x20, 0x19), .name = "mx25l25635e", -- 2.39.2