]> Gentwo Git Trees - linux/.git/commitdiff
mtd: spi-nor: winbond: Add support for W25H02NWxxAM chips
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 5 Nov 2025 17:27:05 +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 338e44db506a819b15e21f312c06ec13e6d37d28..fb855fe44733db5664c200520d19a6be33edc323 100644 (file)
@@ -363,6 +363,10 @@ static const struct flash_info winbond_nor_parts[] = {
                /* 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,
+       }, {
+               /* W25H02NWxxAM */
+               .id = SNOR_ID(0xef, 0xa0, 0x22),
+               .flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,
        },
 };