]> Gentwo Git Trees - linux/.git/commitdiff
mtd: spi-nor: winbond: Add support for W25H01NWxxAM chips
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 5 Nov 2025 17:27:04 +0000 (18:27 +0100)
committerPratyush Yadav <pratyush@kernel.org>
Thu, 6 Nov 2025 14:56:07 +0000 (15:56 +0100)
These chips 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 781ca0abfcdca2dc883e33bfa5c164623cf0905d..338e44db506a819b15e21f312c06ec13e6d37d28 100644 (file)
@@ -359,6 +359,10 @@ static const struct flash_info winbond_nor_parts[] = {
                /* W25H512NWxxAM */
                .id = SNOR_ID(0xef, 0xa0, 0x20),
                .flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
+       }, {
+               /* W25H01NWxxAM */
+               .id = SNOR_ID(0xef, 0xa0, 0x21),
+               .flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
        },
 };