sophgo.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] spi: sophgo: add Sophgo SPI NOR controller driver
@ 2025-03-04  8:35 Longbin Li
  2025-03-04  8:35 ` [PATCH v2 1/2] dt-bindings: spi: add SG2044 " Longbin Li
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Longbin Li @ 2025-03-04  8:35 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Paul Walmsley, Palmer Dabbelt, Albert Ou, Chen Wang,
	Inochi Amaoto
  Cc: Longbin Li, linux-spi, devicetree, linux-kernel, linux-riscv,
	sophgo

Add SPI NOR driver for Sophgo, including read, write operations.
This driver is only suitable for NOR flash.

---

Changes in v2:

  Fixed following issues as per comments from Yixun Lan, Chen Wang, Inochi Amaoto, thanks.

  - Replaced "sophgo" to "sg2044" to avoid conflicts with other drivers.
  - Improve driver code:
    - Improve coding style.
    - Removed the [PATCH 3/3] in previous submission that based on the baseline not submitted.
    - Added error handler to destroy mutex if probe fail.

Changes in v1:
  You can simply review or test the patches at the link [1].

Link: https://lore.kernel.org/linux-riscv/20250224101213.26003-1-looong.bin@gmail.com/ [1]
---

Longbin Li (2):
  dt-bindings: spi: add SG2044 SPI NOR controller driver
  spi: sophgo: add SG2044 SPI NOR controller driver

 .../bindings/spi/spi-sg2044-nor.yaml          |  52 ++
 drivers/spi/Kconfig                           |   9 +
 drivers/spi/Makefile                          |   1 +
 drivers/spi/spi-sg2044-nor.c                  | 500 ++++++++++++++++++
 4 files changed, 562 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/spi-sg2044-nor.yaml
 create mode 100644 drivers/spi/spi-sg2044-nor.c

--
2.48.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-03-12 12:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-04  8:35 [PATCH v2 0/2] spi: sophgo: add Sophgo SPI NOR controller driver Longbin Li
2025-03-04  8:35 ` [PATCH v2 1/2] dt-bindings: spi: add SG2044 " Longbin Li
2025-03-04 15:11   ` Rob Herring (Arm)
2025-03-04  8:35 ` [PATCH v2 2/2] spi: sophgo: " Longbin Li
2025-03-04  9:14   ` Maud Spierings
2025-03-04 12:20     ` Mark Brown
2025-03-04 12:25       ` Maud Spierings
2025-03-04 10:14 ` [PATCH v2 0/2] spi: sophgo: add Sophgo " Chen Wang
2025-03-05  1:29   ` Longbin Li
2025-03-12 12:39 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).