mtd: spi-nor: Add Winbond w25q512jvdtr
Kang.Kerry 康宇良 TAO
Kang.Kerry at inventec.com
Tue Sep 16 01:14:28 PDT 2025
>Hi,
>
>On Mon, Sep 15 2025, Kang.Kerry 康宇良 TAO wrote:
>
>Please don't top-post. https://www.idallen.com/topposting.html
>
>> Hi Pratyush,
>> I configured the DTS with 'compatible = "jedec,spi-nor";'
> and enabled the kernel options:
> CONFIG_MTD_PARTITIONED_MASTER=y
> CONFIG_MTD_SPI_NOR=y
>
>> However, the dmesg output shows that the kernel is failing to recognize the flash's JEDEC ID. This suggests that the generic SFDP-based driver isn't working as expected.
>>
>> [ 135.294624] spi-nor spi1.0: unrecognized JEDEC id bytes: ef 70 20
>> 00 00 00 [ 135.301602] spi-nor: probe of spi1.0 failed with error -2
>>
>> I think we need to add this to table to make sure W25Q512JV-DTR is recognized.
>
>This means spi_nor_check_sfdp_signature() fails. Can you check why? The flash datasheet says it has a SFDP table so this should work.
>
>BTW, which kernel version are you testing this on?
>
>[...]
>
>--
>Regards,
>Pratyush Yadav
I used kernel 5.15 for testing.
It seems the kernel is failing to recognize JEDEC id of the Winbond flash, which is causing the error.
When I test with Nuvoton kernel 6.6, it is able to recognize the flash as a generic device.
[ 50.804160] spi-nor spi1.0: spi-nor-generic (65536 Kbytes)
--
BR,
Kerry
More information about the linux-mtd
mailing list