Skip to content

Add support for Andes Qilai SoC PCIe controller

Randolph linux-devicetree linux-pci linux-riscv lkml 11 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v11 Latest4 patches 2 repliesApplied
  2. v104 patches 1 replySuperseded
  3. v94 patches 2 repliesSuperseded
Earlier versions · 8
VersionPostedPatchesRepliesStatus
v85 patches3 repliesSuperseded
v75 patches0 repliesSuperseded
v65 patches5 repliesSuperseded
v55 patches0 repliesSuperseded
v45 patches1 replySuperseded
v35 patches7 repliesSuperseded
v25 patches6 repliesSuperseded
v16 patches9 repliesSuperseded

Changes in v11 from the cover letter

- Make minor adjustments based on the reviewer's suggestions.
- Use FIELD_GET() to check the link status.
- Use dw_pcie_readl_dbi() when reading from the DBI region.
- Enable runtime PM to participate in the PM hierarchy.
- Add dma-coherent to the DT bindings and DTS.
- Fix the interrupt-map-mask value in the DT bindings example.
- Modify the maximum ranges size to support multiple iATU regions in the DT bindings and DTS.

Patches in v11 Applied

#Subject and filesSizeRepliesApplied
1/4dt-bindings: PCI: Add Andes QiLai PCIe supportDocumentation/devicetree/bindings/pci/andestech,qilai-pcie.yaml+89 -00 replies
2/4riscv: dts: qilai: Add PCIe node into the QiLai SoCarch/riscv/boot/dts/andes/qilai.dtsi+109 -01 reply
3/4PCI: qilai: Add Andes QiLai SoC PCIe host driver supportdrivers/pci/controller/dwc/Kconfig drivers/pci/controller/dwc/Makefile drivers/pci/controller/dwc/pcie-andes-qilai.c+211 -00 replies
4/4MAINTAINERS: Add maintainers for Andes QiLai PCIe driverMAINTAINERS+7 -00 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchRob Herring (Arm)Manivannan Sadhasivam
1/4R-b
2/4A-b
3/4
4/4

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

Read the v11 thread

Cover letter [PATCH v11 0/4] Add support for Andes Qilai SoC PCIe controller

From: Randolph Lin <[email protected]>

Add support for Andes Qilai SoC PCIe controller

These patches introduce driver support for the PCIe controller on the Andes Qilai SoC.

---
Changes in v11:
- Make minor adjustments based on the reviewer's suggestions.
- Use FIELD_GET() to check the link status.
- Use dw_pcie_readl_dbi() when reading from the DBI region.
- Enable runtime PM to participate in the PM hierarchy.
- Add dma-coherent to the DT bindings and DTS.
- Fix the interrupt-map-mask value in the DT bindings example.
- Modify the maximum ranges size to support multiple iATU regions in the DT bindings and DTS.

Changes in v10:
- Use "qilai" instead of "andes" as the tag

Changes in v9:
- Drop the patch that adjusts the number of OB/IB windows.
- Made minor adjustments based on the reviewer's suggestions.

Changes in v8:
- Fix the compile error reported by the kernel test robot.

Changes in v7:
- Remove unnecessary nodes and property in DTS bindings

Changes in v6:
- Fix typo in the logic for adjusting the number of OB/IB windows

Changes in v5:
- Add support to adjust the number of OB/IB windows in the glue driver.
- Fix the number of OB windows in the Qilai PCIe driver.
- Remove meaningless properties from the device tree.
- Made minor adjustments based on the reviewer's suggestions.

Changes in v4:
- Add .post_init callback for enabling IOCP cache.
- Sort by vender name in Kconfig
- Using PROBE_PREFER_ASYNCHRONOUS as default probe type.
- Made minor adjustments based on the reviewer's suggestions.

Changes in v3:
- Remove outbound ATU address range validation callback and logic.
- Add logic to skip failed outbound iATU configuration and continue.
- Using PROBE_PREFER_ASYNCHRONOUS as default probe type.
- Made minor adjustments based on the reviewer's suggestions.

Changes in v2:
- Remove the patch that adds the dma-ranges property to the SoC node.
- Add dma-ranges to the PCIe parent node bus node.
- Refactor and rename outbound ATU address range validation callback and logic.
- Use parent_bus_offset instead of cpu_addr_fixup().
- Using PROBE_DEFAULT_STRATEGY as default probe type.
- Made minor adjustments based on the reviewer's suggestions.

Randolph Lin (4):
dt-bindings: PCI: Add Andes QiLai PCIe support
riscv: dts: qilai: Add PCIe node into the QiLai SoC
PCI: qilai: Add Andes QiLai SoC PCIe host driver support
MAINTAINERS: Add maintainers for Andes QiLai PCIe driver

 .../bindings/pci/andestech,qilai-pcie.yaml    |  89 ++++++++
 MAINTAINERS                                   |   7 +
 arch/riscv/boot/dts/andes/qilai.dtsi          | 109 ++++++++++
 drivers/pci/controller/dwc/Kconfig            |  13 ++
 drivers/pci/controller/dwc/Makefile           |   1 +
 drivers/pci/controller/dwc/pcie-andes-qilai.c | 199 ++++++++++++++++++
 6 files changed, 418 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pci/andestech,qilai-pcie.yaml
 create mode 100644 drivers/pci/controller/dwc/pcie-andes-qilai.c
Signature · 1 line
2.34.1