imx7d qspi flash DDR read in kernel 5.15

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx7d qspi flash DDR read in kernel 5.15

360 Views
vls
Contributor I

Hi,

I tried to build kernel 5.15 for iMX7D to boot from qspi flash Micron M25Q4096 without success. It always freeze at boot.

device 0 offset 0x6c40000, size 0x100000
SF: 1048576 bytes @ 0x6c40000 Read: OK
hab fuse not enabled
## Starting auxiliary core at 0x8FD00000 ...
device 0 offset 0x3720000, size 0x800000
SF: 8388608 bytes @ 0x3720000 Read: OK
device 0 offset 0x6b20000, size 0x20000
SF: 131072 bytes @ 0x6b20000 Read: OK
device 0 offset 0x3f20000, size 0xc00000
SF: 12582912 bytes @ 0x3f20000 Read: OK
Kernel image @ 0x80800000 [ 0x000000 - 0x704bc0 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
hab fuse not enabled
Using Device Tree in place at 83000000, end 8300c29e

Starting kernel ...

------
I managed to build it and boot fine using kernel 4.1 by adding specific configuration in
drivers/mtd/spi-nor/spi-nor.c:

{ "n25q4096", INFO(0x20ba22, 0, 64 * 1024, 4096, SPI_NOR_DDR_QUAD_READ) },

I see that now in kernel 5.x SPI_NOR_DDR_QUAD_READ is no longer present and using SPI_NOR_QUAD_READ is not fixing the issue.
Also is strange that in the imx dts files we still have ddr quad read property

spi-nor,ddr-quad-read-dummy = <6>;

but it looks like this property in never processed in kernel 5. In 4.1 it used to be parsed in drivers/mtd/spi-nor/fsl-quadspi.c

Does anybody faced this problem with ddr read issue? Is there any option in kernel 5 to enable ddr read for qspi flash?

Thank you!

vls

0 Kudos
Reply
1 Reply

311 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

I see your point and indeed seems that DDR read has been removed from the SPI NOR driver, have you checked with micron what type of read is supported in your memory or if you're missing some flash property?

Best regards,
Aldo.

0 Kudos
Reply