[PATCH v1 4/4] mtd: spi-nor: macronix: Add 1-4-4 DTR read support for MX66L1G45G
Changhuang Liang
changhuang.liang at starfivetech.com
Fri Oct 23 03:42:22 PDT 2026
Hi, Michael
Thanks for the review.
> On Thu Oct 22, 2026 at 12:26 PM CEST, Changhuang Liang wrote:
> > The MX66L1G45G supports the 1-4-4 DTR read mode. This flash uses 6
> > dummy cycles by default in 1-4-4 DTR mode, but the kernel's SFDP
> > parser does not derive any SNOR_HWCAPS_READ_1_4_4_DTR capability
> from
> > the BFPT table
>
> So why don't you fix that?
Perhaps my commit message description wasn't good. For 1S-4D-4D, its support
bit is in the 21st DWORD of the BFPT table, while the dummy cycles are described
in the 23rd DWORD. Unfortunately, the current flash model's BFPT only supports
16 DWORDs.
>
> > , and 4BAIT only filters already-known capabilities.
> > The exact number of dummy cycles is also not directly given in the
> > SFDP tables.
>
> What is BFPT 3rd DWORD bits 4:0 then?
If I'm not mistaken, this one is for 1S-4S-4S.
> Could you please dump the SFDP for this part? See [1].
>
# hexdump -C /sys/bus/spi/devices/spi0.0/spi-nor/sfdp
00000000 53 46 44 50 06 01 02 ff 00 06 01 10 30 00 00 ff |SFDP........0...|
00000010 c2 00 01 04 10 01 00 ff 84 00 01 02 c0 00 00 ff |................|
00000020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
00000030 e5 20 fb ff ff ff ff 3f 44 eb 08 6b 08 3b 04 bb |. .....?D..k.;..|
00000040 fe ff ff ff ff ff 00 ff ff ff 44 eb 0c 20 0f 52 |..........D.. .R|
00000050 10 d8 00 ff d6 49 c5 00 85 df 04 e3 44 03 67 38 |.....I......D.g8|
00000060 30 b0 30 b0 f7 bd d5 5c 4a 9e 29 ff f0 50 f9 85 |0.0....\J.)..P..|
00000070 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
000000c0 7f ef ff ff 21 5c dc ff ff ff ff ff ff ff ff ff |....!\..........|
000000d0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
00000110 00 36 00 27 9d f9 c0 64 85 cb ff ff ff ff ff ff |.6.'...d........|
> -michael
>
> [1] https://docs.kernel.org/6.2/driver-api/mtd/spi-nor.html
Best Regards,
Changhuang
More information about the linux-mtd
mailing list