[][kernel][mtd][backport spinand series flash from v5.7 and v6.4]

[Description]
Refactor spi nand backport patch, backport spinand series flash from v5.7 and v6.4.

vendor:
from v5.7: winbond

from v6.4: gigadevice macronix micron paragon toshiba

note: regarding the acquisition of NAND ECC strength, we have not backport from version 6.4 and have maintained the original approach, because if we were to backport from v6.4, the entire MTD framework would undergo significant changes.

[Release-log]
N/A

Change-Id: I3b161f607a18f10608e74cded78e8cfe8c8c4f99
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8641861
24 files changed