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