Skip to content

riscv: sophgo Add PCIe support to Sophgo SG2044 SoC

Inochi Amaoto linux-devicetree linux-pci linux-riscv lkml sophgo 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: pci: Add Sophgo SG2044 PCIe hostDocumentation/devicetree/bindings/pci/sophgo,sg2044-pcie.yaml+125 -012 replies
2/2PCI: sophgo-dwc: Add Sophgo SG2044 PCIe driverdrivers/pci/controller/dwc/Kconfig drivers/pci/controller/dwc/Makefile drivers/pci/controller/dwc/pcie-dw-sophgo.c+293 -06 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] riscv: sophgo Add PCIe support to Sophgo SG2044 SoC

Sophgo's SG2044 SoC uses Synopsys Designware PCIe core to implement RC mode.

For legacy interrupt, the PCIe controller on SG2044 implement its own legacy interrupt controller. For MSI/MSI-X, it use an external interrupt controller to handle.

The external MSI interrupt controller patch can be found on [1]. As SG2044 needs a mirror change to support the way to send MSI message and different irq number.

[1] https://lore.kernel.org/all/[email protected]/

Inochi Amaoto (2):
dt-bindings: pci: Add Sophgo SG2044 PCIe host
PCI: sophgo-dwc: Add Sophgo SG2044 PCIe driver

 .../bindings/pci/sophgo,sg2044-pcie.yaml      | 125 ++++++++
 drivers/pci/controller/dwc/Kconfig            |  10 +
 drivers/pci/controller/dwc/Makefile           |   1 +
 drivers/pci/controller/dwc/pcie-dw-sophgo.c   | 282 ++++++++++++++++++
 4 files changed, 418 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pci/sophgo,sg2044-pcie.yaml
 create mode 100644 drivers/pci/controller/dwc/pcie-dw-sophgo.c

--
2.48.1