mbox series

[V2,0/7] Add PCIe support for IPQ8074

Message ID 1596036607-11877-1-git-send-email-sivaprak@codeaurora.org
Headers show
Series Add PCIe support for IPQ8074 | expand


Sivaprakash Murugesan July 29, 2020, 3:30 p.m. UTC
IPQ8074 has two PCIe ports both are based on synopsis designware PCIe
controller. while it was assumed that PCIe support for IPQ8074 was already
available, it was not functional until now.

This patch series adds support for PCIe ports on IPQ8074.

First PCIe port is of Gen2 synposis version is 2_3_2 which has already been
enabled. But it had some problems on phy init and needed dt updates.

Second PCIe port is Gen3 synopsis version is 2_9_0. This series adds
support for this PCIe port while fixing dt nodes.

Patch 1 on this series depends on qcom PCIe bindings patch

 * Fixed commit headers and messages to have PCIe and Gen[2-3]
 * Addressed Vinod's review comments on phy init
 * Patches are rebased on linux-next to resolve dependencies with recent
   PCI patches
 * Patch 1 depends on https://lkml.org/lkml/2020/7/28/1462
 * Dropped clock patches as it has picked up by Stephen

Sivaprakash Murugesan (7):
  dt-bindings: PCI: qcom: Add ipq8074 Gen3 PCIe compatible
  dt-bindings: phy: qcom,qmp: Add ipq8074 PCIe Gen3 phy
  phy: qcom-qmp: Use correct values for ipq8074 PCIe Gen2 PHY init
  phy: qcom-qmp: Add compatible for ipq8074 PCIe Gen3 qmp phy
  PCI: qcom: Do PHY power on before PCIe init
  PCI: qcom: Add ipq8074 PCIe controller support
  arm64: dts: ipq8074: Fixup PCIe dts nodes

 .../devicetree/bindings/pci/qcom,pcie.yaml         |  47 +++++
 .../devicetree/bindings/phy/qcom,qmp-phy.yaml      |   1 +
 arch/arm64/boot/dts/qcom/ipq8074-hk01.dts          |   8 +-
 arch/arm64/boot/dts/qcom/ipq8074.dtsi              | 109 ++++++++----
 drivers/pci/controller/dwc/pcie-qcom.c             | 189 ++++++++++++++++++++-
 drivers/phy/qualcomm/phy-qcom-pcie3-qmp.h          | 139 +++++++++++++++
 drivers/phy/qualcomm/phy-qcom-qmp.c                | 187 +++++++++++++++++++-
 drivers/phy/qualcomm/phy-qcom-qmp.h                |   2 +
 8 files changed, 627 insertions(+), 55 deletions(-)
 create mode 100644 drivers/phy/qualcomm/phy-qcom-pcie3-qmp.h