mbox series

[0/3] spi: sophgo: add Sophgo SPI NOR controller driver

Message ID 20250224101213.26003-1-looong.bin@gmail.com (mailing list archive)
Headers show
Series spi: sophgo: add Sophgo SPI NOR controller driver | expand

Message

Longbin Li Feb. 24, 2025, 10:11 a.m. UTC
Add SPI NOR driver for Sophgo, including read, write operations.
This driver is only suitable for NOR flash.

Longbin Li (3):
  dt-bindings: spi: add Sophgo SPI NOR controller driver
  spi: sophgo: add Sophgo SPI NOR controller driver
  riscv: dts: sophgo: add Sophgo SPI NOR controller driver

 .../bindings/spi/spi-sophgo-nor.yaml          |  52 ++
 .../boot/dts/sophgo/sg2044-sophgo-sd3-10.dts  |  18 +
 arch/riscv/boot/dts/sophgo/sg2044.dtsi        |  24 +
 drivers/spi/Kconfig                           |   9 +
 drivers/spi/Makefile                          |   1 +
 drivers/spi/spi-sophgo-nor.c                  | 501 ++++++++++++++++++
 6 files changed, 605 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/spi-sophgo-nor.yaml
 create mode 100644 drivers/spi/spi-sophgo-nor.c

--
2.48.1

Comments

Chen Wang Feb. 25, 2025, 12:17 a.m. UTC | #1
hi, Longbin,

I think this patch is only for SG2044, right? However, the file name you 
used and the description in the patch all use "sophgo" directly, which 
makes it seem that it applies to all sophgo products. I suggest you 
correct this, otherwise there will be conflicts when other sophgo 
products such as SG2042 submit patches to SPIFMC.

Regards,

Chen

On 2025/2/24 18:11, Longbin Li wrote:
> Add SPI NOR driver for Sophgo, including read, write operations.
> This driver is only suitable for NOR flash.
>
> Longbin Li (3):
>    dt-bindings: spi: add Sophgo SPI NOR controller driver
>    spi: sophgo: add Sophgo SPI NOR controller driver
>    riscv: dts: sophgo: add Sophgo SPI NOR controller driver
>
>   .../bindings/spi/spi-sophgo-nor.yaml          |  52 ++
>   .../boot/dts/sophgo/sg2044-sophgo-sd3-10.dts  |  18 +
>   arch/riscv/boot/dts/sophgo/sg2044.dtsi        |  24 +
>   drivers/spi/Kconfig                           |   9 +
>   drivers/spi/Makefile                          |   1 +
>   drivers/spi/spi-sophgo-nor.c                  | 501 ++++++++++++++++++
>   6 files changed, 605 insertions(+)
>   create mode 100644 Documentation/devicetree/bindings/spi/spi-sophgo-nor.yaml
>   create mode 100644 drivers/spi/spi-sophgo-nor.c
>
> --
> 2.48.1