]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:43 +0000 (10:14 +0100)
commit 604cf6a40157abba4677dea9834de8df9047d798 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/spi-nor/winbond.c

index c4e2b748c9deed9d1cda7e590f1bc2826dfd5365..9d9b8ce4d5aa6ef379f25dce8bfcfabd4c31180e 100644 (file)
@@ -274,6 +274,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,
        },
 };