[PW_SID:977011] spi: sophgo: Add SPI NOR controller for SG2042#587
[PW_SID:977011] spi: sophgo: Add SPI NOR controller for SG2042#587linux-riscv-bot wants to merge 5 commits into
Conversation
SG2042 is not fully compatiable with SG2044, So it is necessary to become independent const Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Due to the differences in the SG2042 controller, a new configurable chip_info structure is added to implement that. Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
SG2042 spi flash controller specification[1] states that: > For Receive, an interrupt and DMA request are generated > when the number of valid bytes in the FIFO is greater than > or equal to the number of bytes defined by FFTrgLvl. Auto-detecting flash with SFDP only requires reading 4 bytes in spi_nor_check_sfdp_signature(). Because of that, no interrupt is triggered and a timeout happens instead. Since we want to reuse this driver for SG2042, setting FFTrgLvl to a value which is less than or equal to 4 should solve the issue. Link: https://github.com/sophgo/sophgo-doc/blob/main/SG2042/TRM/source/SPI-flash.rst [1] Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Add SPI-NOR controller and flash nodes to device tree for SG2042. Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 1: "[v3,1/4] spi: dt-bindings: spi-sg2044-nor: Change SOPHGO SG2042" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 2: "[v3,2/4] spi: spi-sg2044-nor: Add configurable chip info" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 3: "[v3,3/4] spi: spi-sg2044-nor: Fix reading bytes issue on SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
|
Patch 4: "[v3,4/4] riscv: dts: sophgo: Add SPI NOR node for SG2042" |
a7cb30d to
d776861
Compare
PR for series 977011 applied to workflow__riscv__fixes
Name: spi: sophgo: Add SPI NOR controller for SG2042
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=977011
Version: 3