]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mtd: spi-nor: winbond: Add support for W25Q01NWxxIQ chips
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 5 Nov 2025 17:27:00 +0000 (18:27 +0100)
committerPratyush Yadav <pratyush@kernel.org>
Thu, 6 Nov 2025 14:56:06 +0000 (15:56 +0100)
This chip must be described as none of the block protection information
are discoverable. This chip supports 4 bits plus the top/bottom
addressing capability to identify the protected blocks.

Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
drivers/mtd/spi-nor/winbond.c

index 63a93c9eb9174b073e19c41eeada33b23a99b184..a13a1201eae92233091dde644d590baa57e97046 100644 (file)
@@ -343,6 +343,10 @@ static const struct flash_info winbond_nor_parts[] = {
                .id = SNOR_ID(0xef, 0x80, 0x20),
                .name = "w25q512nwm",
                .otp = SNOR_OTP(256, 3, 0x1000, 0x1000),
+       }, {
+               /* W25Q01NWxxIQ */
+               .id = SNOR_ID(0xef, 0x60, 0x21),
+               .flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
        },
 };