Support for Winbond W25N02KV QSPI NAND Chip (256MB Size)#
Date: 3rd November 2023
Changes:
- 15th November 2023: Add link for kernel version 5.4-ktn
Affected hardware products#
All Kontron i.MX6 UL and ULL SOM based devices which contain the Winbond W25N02KV 256MB QSPI NAND flash. Also customer products are affected which are based on these Kontron SOM products.
- 40099 144 - Kontron i.MX6 ULL SOM 256/256
- 40099 123 - Kontron i.MX6 UL SOM 256/256
Affected software components#
- all U-Boot bootloader versions,
- all Linux kernel versions,
- all Yocto BSP versions
Description#
Due to the change of the 256MB QSPI NAND chip on i.MX6 SOM devices some software adaptions in Linux kernel and U-Boot bootloader are required. The basic steps to do are already described in PCN2103/23.
Further stress testing of the new configuration discovered some timing issues which lead to malfunction of the device. This is true especially for environments with increased environmental temperature.
So for reliable opreration, some additional adaptions has to be done in Linux kernel. For U-Boot additional timing adaptions are not required due to the reduced interface frequency of 50MHz.
To fully support the new chip two adaptions are required
- Basic support for this chip for Linux kernel and U-Boot bootloader (as already mentionned in PCN2103/23)
- Additional timing adjustment for Linux kernel (new)
Recommended Actions#
Upgrade to a software version which fixes this issue or backport the provided patches to the version you use.
Or reduce the interface frequency of the QSPI clock to 50MHz in the device tree of your board. This obsoletes additional timing patches, but may have negative impact for the performance of your storage system!
Available Fixes#
The Kontron Yocto BSP 6.1 currently does not support 256MB QSPI NAND devices at all. Kontron Yocto BSP versions from version 6.2 up are going to include this fix.
The current development branch of Kontron Yocto BSP 5.x contains support for the Winbond W25N02KV QSPI NAND (basic chip support and timing adjustment)
The Kontron U-Boot and Linux kernel repositories provide fixed versions. Use the latest versions or at least these commits:
-
U-Boot version 2022.10 at least commit 9b843f513842e3f3258af7710d6b997d14d7bb35 (basic chip support)
-
U-Boot version 2023.04 at least commit 10d0694d29f1518c206665303bfe974ebc793b33 (basic chip support)
-
Linux Kernel version 4.14 at least commit 91b007eb77b93bcdfcbd80116f3078499a1ebc29 (basic chip support and timing adjustment)
-
Linux Kernel version 5.4 at least commit 27752c14460d6e69645dbf84bac205155d904edb (basic chip support and timing adjustment)
-
Linux Kernel version 5.10 at least commit 3986742090054efd606a0ef27d7d69b9f506dc08 (basic chip support and timing adjustment)
-
Linux Kernel version 6.1 at least commit d277dc4a90b19a89f02cf70493477326ec4a2e60 (basic chip support and timing adjustment)
For backporting to other Linux kernel versions these are the relevant commits for chip support on U-Boot 2022.10 and Linux kernel 5.10:
- U-Boot 2022.10 basic chip support, commit 9b843f513842e3f3258af7710d6b997d14d7bb35
- Linux 5.10 basic chip support, commit 4b28c1dce49af5029ebcfb1155c75fabfa8fd8ef
- Linux 5.10 timing adjustment, commit 3986742090054efd606a0ef27d7d69b9f506dc08