We have a LS1021a-IOT gateway and SDK IoT-gateway-platform-Release-V0.1-20170120, The kernel recognized QSPI device S70FL01GS as an s25fl512s, and that is fine as we only need 32M space for our application. but when we trying to do the partition on it and added the partition definition in the dts file. But never got it works, only shows one partition like below
------
dev: size erasesize name
mtd0: 04000000 00040000 "1550000.quadspi"
-------
Then we digging into the source codes, we found the kernel-source/drivers/mtd/spi-nor/fsl-quadspi.c file isn't try to register the partition as below
-----
ret = mtd_device_register(mtd, NULL, 0);
-----
it didn't put the partition struct "mtd_partition" to mtd_device_register, it passed a NULL.
So, is this mean the driver of ls1021a qspi not support MTD device do the partition, we only can have one partition for our s25fl512s? If so, is there a solution to fix it?
Thank you
Yuqian
Hello Yuqian Li,
Please try whether the attached patch can be used to resolve this problem.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------