[PATCH v2 0/3] spi: sophgo: Add SPI NOR controller for SG2042

Zixian Zeng
2025-05-25T14:59:46Z

Add support SPI NOR flash memory controller for SG2042, using upstreamed
SG2044 SPI NOR driver.

Tested on SG2042 Pioneer Box, read, write operations.

Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com>
---
Changes in v2:
- patch1: Accept devicetree nodes whose compatible contains only
"sophgo,sg2044-spifmc-nor" to avoid breaking existing devicetrees.
- patch1: Improve the commit subject message.
- patch2: Dump the SFDP information to commit message.
- Link to v1: https://lore.kernel.org/r/20250523-sfg-spifmc-v1-0-4cf16cf3fd2a@gmail.com

---
Zixian Zeng (3):
spi: dt-bindings: spi-sg2044-nor: Add SOPHGO SG2042
mtd: spi-nor: Add GD25LB512ME GigaDevice flash_info
riscv: dts: sophgo: Add SPI NOR node for SG2042

.../devicetree/bindings/spi/spi-sg2044-nor.yaml | 7 ++++++-
.../riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts | 18 ++++++++++++++++
arch/riscv/boot/dts/sophgo/sg2042.dtsi | 24 ++++++++++++++++++++++
drivers/mtd/spi-nor/gigadevice.c | 17 +++++++++++++++
4 files changed, 65 insertions(+), 1 deletion(-)
---
base-commit: bd8ad2bcb8ff8e7af8d35273a8194104ca9ba5c0
change-id: 20250523-sfg-spifmc-7a910290e964

Best regards,
--
Zixian Zeng <sycamoremoon376@gmail.com>