Beaglebone Black Kernel Upgrade (NAND not detected)

Hello,

In 2015 my company developed a custom board based on the Beaglebone Black using the 3.14 kernel from https://github.com/beagleboard/linux. We now need to update to the 5.4 kernel. We have attempted to port our kernel source and device tree customization into the 5.4.0 kernel that we got from https://github.com/beagleboard/linux, and are currently configuring the 5.4 kernel with the same config file we used for 3.14. Although the system boots, not surprisingly most of our customizations are not functioning.

In particular, our kernel cannot detect our NAND flash (AMD/Spansion S34ML01G2). Wondering if anyone can point me to any resources that might help me through the process of configuring this 5.4 kernel to work with my flash part?

Any help would be greatly appreciated, thank you!

Anthony