[PATCH v2 1/2] mtd: spi-nor: Add support for MX25L12833F and MX25L12845G

Miquel Raynal miquel.raynal at bootlin.com
Thu Jun 4 22:02:38 PDT 2026


Hello Cheng Ming,

On 05/06/2026 at 08:57:19 +08, Cheng Ming Lin <linchengming884 at gmail.com> wrote:

> From: Cheng Ming Lin <chengminglin at mxic.com.tw>
>
> Add support for Macronix MX25L12833F and MX25L12845G SPI NOR flashes.
> These parts share the same JEDEC ID (0xc2, 0x20, 0x18) as the legacy
> MX25L12805D.
>
> The newer flashes support SFDP and 1-4-4 Page Program in 3-byte address
> mode, but this 4PP capability is not defined in their SFDP tables.
> Conversely, the legacy MX25L12805D lacks SFDP support entirely and does
> not support 4PP.
>
> To safely enable 4PP for the newer flashes without breaking the legacy
> part, introduce a post_bfpt fixup. Since the legacy MX25L12805D does
> not support SFDP, it falls back to static parameters and will never
> execute the post_bfpt hook. The newer flashes will successfully parse
> the BFPT, trigger the hook, and safely append the SNOR_HWCAPS_PP_1_4_4
> capability.
>
> Signed-off-by: Cheng Ming Lin <chengminglin at mxic.com.tw>

LGTM.

Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>

Thanks,
Miquèl



More information about the linux-mtd mailing list