linux-gbmc: Backport Winbond W25Q512NW support

ref:
https://github.com/torvalds/linux/commit/ef434f08b0562069cf431873a052692357d325a1

Tested:
```
kernel msg :  [   88.914587] spi-nor spi1.0: w25q512nwq (65536 Kbytes)
```
```
dev:    size   erasesize  name
mtd0: 04000000 00001000 "bmc"
mtd1: 00400000 00001000 "u-boot"
mtd2: 00800000 00001000 "kernel"
mtd3: 02fe0000 00001000 "rofs"
mtd4: 00010000 00001000 "image-descriptor"
mtd5: 00100000 00001000 "hoth-update"
mtd6: 00300000 00001000 "rwfs"
mtd7: 00010000 00001000 "hoth-mailbox"
mtd8: 04000000 00001000 "bios"
root@machine:/tmp# flashcp -v /tmp/image-bios /dev/mtd8
Erasing block: 16384/16384 (100%)
Writing kb: 65536/65536 (100%)
Verifying kb: 65536/65536 (100%)
```

Google-Bug-Id: 346498543
Change-Id: I736421115527713fd9262f4dd27c554627a7c494
Signed-off-by: David Wang <davidwang@quanta.corp-partner.google.com>
(cherry picked from commit 0e3b8edd78d4ae1d16789d742d1bd09b96b6e2b5)
diff --git a/recipes-kernel/linux/5.15/0001-Add-support-for-Winbond-W25Q512NW-IQ-IN.patch b/recipes-kernel/linux/5.15/0001-Add-support-for-Winbond-W25Q512NW-IQ-IN.patch
new file mode 100644
index 0000000..a5f1e9e
--- /dev/null
+++ b/recipes-kernel/linux/5.15/0001-Add-support-for-Winbond-W25Q512NW-IQ-IN.patch
@@ -0,0 +1,37 @@
+From a10bf58038afb0fdfded2f61ffde8ae0cec1a5d8 Mon Sep 17 00:00:00 2001
+From: David Wang <davidwang@quanta.corp-partner.google.com>
+Date: Tue, 4 Jun 2024 16:02:45 +0800
+Subject: [PATCH] Add support for Winbond W25Q512NW-IQ/IN
+
+Backport the driver from kernel TEST
+https://github.com/torvalds/linux/commit/ef434f08b0562069cf431873a052692357d325a1
+
+mtd: spi-nor: winbond: add support for W25Q512NW-IQ
+
+Signed-off-by: Jae Hyun Yoo <quic_jaehyoo@quicinc.com>
+Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
+Reviewed-by: Cédric Le Goater <clg@kaod.org>
+Reviewed-by: Michael Walle <michael@walle.cc>
+Link: https://www.winbond.com/resource-files/W25Q512NW%20RevB%2007192021.pdf
+Link: https://lore.kernel.org/r/20220716000643.3541839-2-quic_jaehyoo@quicinc.com
+---
+ drivers/mtd/spi-nor/winbond.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c
+index 0ff7a20d030c..4824af5f9205 100644
+--- a/drivers/mtd/spi-nor/winbond.c
++++ b/drivers/mtd/spi-nor/winbond.c
+@@ -106,6 +106,9 @@ static const struct flash_info winbond_parts[] = {
+ 			     SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+ 	{ "w25q01jviq", INFO(0xef4021, 0, 64 * 1024, 2048,
+ 			     SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
++	{ "w25q512nwq", INFO(0xef6020, 0, 64 * 1024, 1024,
++				 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
++
+ };
+
+ /**
+--
+2.34.1
+
diff --git a/recipes-kernel/linux/linux-gbmc_5.15.bb b/recipes-kernel/linux/linux-gbmc_5.15.bb
index f04282e..866429d 100644
--- a/recipes-kernel/linux/linux-gbmc_5.15.bb
+++ b/recipes-kernel/linux/linux-gbmc_5.15.bb
@@ -13,6 +13,7 @@
 SRC_URI:append = " \
   file://0001-hwmon-Add-driver-for-MPS-MPQ8785-Synchronous-Step-Do.patch \
   file://0001-hwmon-pmbus-Add-ltc4286-driver.patch \
+  file://0001-Add-support-for-Winbond-W25Q512NW-IQ-IN.patch \
   "
 
 SRC_URI:append:aspeed-g6 = " \