Skip to content

spi: sophgo: add Sophgo SPI NOR controller driver

Longbin Li linux-devicetree linux-riscv linux-spi lkml sophgo 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 7 repliesIn review
  2. v13 patches 10 repliesSuperseded

Changes in v1 from the cover letter

You can simply review or test the patches at the link [1].

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: spi: add SG2044 SPI NOR controller driverDocumentation/devicetree/bindings/spi/spi-sg2044-nor.yaml+52 -01 reply
2/2spi: sophgo: add SG2044 SPI NOR controller driverdrivers/spi/Kconfig drivers/spi/Makefile drivers/spi/spi-sg2044-nor.c+510 -03 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRob Herring (Arm)
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] spi: sophgo: add Sophgo SPI NOR controller driver

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].

---

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