Hi youyong
please check struct spi_device_id spi_nor_ids in linux/drivers/mtd/devices/spi-nor/spi-nor.c
and add necessary model parameters. More details can be found in Chapter 31
SPI NOR Flash Memory Technology Device (MTD) Driver attached Linux Manual.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
having sources, one can debug it using AN4553 Using Open Source Debugging
Tools for Linux on i.MX Processors
https://www.nxp.com/docs/en/application-note/AN4553.pdf
~igor