Enable PCIe1 xHCI on Qualcomm QCS6490 RB3 Gen2
Status from this message: NAK, we have a driver model for a reason, use it. Please also write
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | pci: dwc: add inbound ATU window supportdrivers/ drivers/ | +82 | 1 reply | |
| 2/9 | pci: pcie_dw_qcom: configure an inbound iATU windowdrivers/ | +30 | 1 reply | |
| 3/9 | pci: pcie_dw_qcom: program PARF DBI/ATU base address registersdrivers/ | +20 | 1 reply | |
| 4/9 | clk: qcom: sc7280: add GCC_PCIE_1_PIPE_CLK_SRC no-op gatedrivers/ | +5 | 1 reply | |
| 5/9 | phy: qcom-qmp-pcie: add SM8250/Kodiak Gen3x2 PHY supportdrivers/ | +184 | 1 reply | |
| 6/9 | gpio: qcom_spmi: add pm7250b/pm8350c compatible stringsdrivers/ | +1 | 1 reply | |
| 7/9 | arm: mach-snapdragon: add QCS6490 PCIe1 power/reset sequencingarch/ arch/ arch/ | +188 | 1 reply | |
| 8/9 | iommu: add PCI stream-ID resolution for devices without an ofnodedrivers/ drivers/ include/ | +70 | 1 reply | |
| 9/9 | configs: qcom_defconfig: enable PCIe1 RC/PHY and qcom_board_init override for QCS6490configs/ configs/ | +8 | 0 replies |
Reviews trailers per patch
5 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Neil Armstrong |
|---|---|
| 1/9 | R-b |
| 2/9 | R-b |
| 3/9 | R-b |
| 4/9 | |
| 5/9 | R-b |
| 6/9 | R-b |
| 7/9 | |
| 8/9 | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 0/9] Enable PCIe1 xHCI on Qualcomm QCS6490 RB3 Gen2
This series enables PCIe1 (RC1) on the QCS6490/Kodiak RB3 Gen2 so that the Renesas uPD720201 xHCI controller behind the on-board QPS615 PCIe switch can be used from U-Boot.
PCIe controller (patches 1-3):
- Add inbound iATU window support to the DesignWare common code and use it in pcie_dw_qcom, sized from "dma-ranges". Without an enabled inbound window the RC drops endpoint Memory Read/Write TLPs, which shows up as a Completion Timeout at the requester.
- Program the PARF DBI/ATU base address registers, as Linux does in qcom_pcie_configure_dbi_atu_base().
SoC support (patches 4-6):
- Add a no-op gate for GCC_PCIE_1_PIPE_CLK_SRC on sc7280.
- Add SM8250/Kodiak Gen3x2 QMP PCIe PHY support.
- Add the PM7250B GPIO compatible string.
Board and IOMMU (patches 7-9):
- Sequence the QPS615 switch and xHCI power/reset GPIOs on every boot from qcom_board_init(). A static gpio-hog only drives its level once and cannot re-assert across a warm reboot, since the PMIC rails stay powered.
- Resolve PCI stream IDs for devices without an ofnode via the bridge's iommu-map, and stop qcom-hyp-smmu from disabling stream classification at EL2, as firmware turns unclaimed streams into FAULT streams regardless of exception level.
- Enable the PCI, DesignWare/Qualcomm PCIe and QMP PCIe PHY options in qcom_defconfig. Also, enable qcom_board_init() override for QCS6490 / RB3 Gen 2 platform in qcm6490_defconfig.
Senthilkumar (9):
pci: dwc: add inbound ATU window support
pci: pcie_dw_qcom: configure an inbound iATU window
pci: pcie_dw_qcom: program PARF DBI/ATU base address registers
clk: qcom: sc7280: add GCC_PCIE_1_PIPE_CLK_SRC no-op gate
phy: qcom-qmp-pcie: add SM8250/Kodiak Gen3x2 PHY support
gpio: qcom_spmi: add pm7250b/pm8350c compatible strings
arm: mach-snapdragon: add QCS6490 PCIe1 power/reset sequencing
iommu: add PCI stream-ID resolution for devices without an ofnode
configs: qcom_defconfig: enable PCIe1 RC/PHY and qcom_board_init
override for QCS6490
arch/arm/mach-snapdragon/Kconfig | 9 + arch/arm/mach-snapdragon/Makefile | 1 + arch/arm/mach-snapdragon/qcs6490_pcie_init.c | 178 ++++++++++++++++++ configs/qcm6490_defconfig | 1 + configs/qcom_defconfig | 7 + drivers/clk/qcom/clock-sc7280.c | 5 + drivers/gpio/qcom_spmi_gpio.c | 1 + drivers/iommu/iommu-uclass.c | 78 +++++--- drivers/iommu/qcom-hyp-smmu.c | 27 +-- drivers/pci/pcie_dw_common.c | 59 ++++++ drivers/pci/pcie_dw_common.h | 23 +++ drivers/pci/pcie_dw_qcom.c | 62 ++++-- drivers/phy/qcom/phy-qcom-qmp-pcie.c | 187 ++++++++++++++++++- include/dm/device.h | 7 + 14 files changed, 588 insertions(+), 57 deletions(-) create mode 100644 arch/arm/mach-snapdragon/qcs6490_pcie_init.c
base-commit: 3973f3c4d24df75ca90d7c0a9f03e5e5c9b48f32
Signature · 2 lines
Best Regards Sumit Singh Dhami