* [PATCH v4 0/2] pci: Add PCIe support for SM8150 SoC
@ 2022-03-26 6:08 Bhupesh Sharma
2022-03-26 6:08 ` [PATCH v4 1/2] dt-bindings: pci: qcom: Document PCIe bindings " Bhupesh Sharma
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bhupesh Sharma @ 2022-03-26 6:08 UTC (permalink / raw)
To: linux-pci
Cc: bhupesh.sharma, bhupesh.linux, lorenzo.pieralisi, agross,
bjorn.andersson, svarbanov, bhelgaas, linux-arm-msm,
linux-kernel, devicetree, robh+dt
Changes since v3:
-----------------
- v3 can be found here: https://lore.kernel.org/linux-arm-msm/20220302203045.184500-1-bhupesh.sharma@linaro.org/
- Broke down the patchset into 3 separate patchsets for each tree,
so that the patch(es) can be easily reviewed and merged by respective
maintainers.
- This patchset adds the driver / binding related PCIe support for
SM8150 SoC.
Hi Lorenzo,
This series adds driver / binding support for PCIe controllers found
on Qualcomm SM8150 SoC. There are 2 PCIe instances on this SoC each with
different PHYs. The PCIe controller and PHYs are mostly compatible with
the ones found on SM8250 SoC, hence the old drivers are modified to add
the support.
This series has been tested on SA8155p ADP board with QCA6696 chipset connected
onboard.
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: lorenzo.pieralisi@arm.com
Bhupesh Sharma (2):
dt-bindings: pci: qcom: Document PCIe bindings for SM8150 SoC
PCI: qcom: Add SM8150 SoC support
Documentation/devicetree/bindings/pci/qcom,pcie.txt | 5 +++--
drivers/pci/controller/dwc/pcie-qcom.c | 8 ++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
--
2.35.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v4 1/2] dt-bindings: pci: qcom: Document PCIe bindings for SM8150 SoC
2022-03-26 6:08 [PATCH v4 0/2] pci: Add PCIe support for SM8150 SoC Bhupesh Sharma
@ 2022-03-26 6:08 ` Bhupesh Sharma
2022-03-26 6:08 ` [PATCH v4 2/2] PCI: qcom: Add SM8150 SoC support Bhupesh Sharma
2022-04-08 10:49 ` [PATCH v4 0/2] pci: Add PCIe support for SM8150 SoC Lorenzo Pieralisi
2 siblings, 0 replies; 4+ messages in thread
From: Bhupesh Sharma @ 2022-03-26 6:08 UTC (permalink / raw)
To: linux-pci
Cc: bhupesh.sharma, bhupesh.linux, lorenzo.pieralisi, agross,
bjorn.andersson, svarbanov, bhelgaas, linux-arm-msm,
linux-kernel, devicetree, robh+dt, Rob Herring
Document the PCIe DT bindings for SM8150 SoC. The PCIe IP is similar to
the one used on SM8250.
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
---
Documentation/devicetree/bindings/pci/qcom,pcie.txt | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.txt b/Documentation/devicetree/bindings/pci/qcom,pcie.txt
index 0adb56d5645e..fd8b6d1912e7 100644
--- a/Documentation/devicetree/bindings/pci/qcom,pcie.txt
+++ b/Documentation/devicetree/bindings/pci/qcom,pcie.txt
@@ -14,6 +14,7 @@
- "qcom,pcie-qcs404" for qcs404
- "qcom,pcie-sc8180x" for sc8180x
- "qcom,pcie-sdm845" for sdm845
+ - "qcom,pcie-sm8150" for sm8150
- "qcom,pcie-sm8250" for sm8250
- "qcom,pcie-sm8450-pcie0" for PCIe0 on sm8450
- "qcom,pcie-sm8450-pcie1" for PCIe1 on sm8450
@@ -159,7 +160,7 @@
- "pipe" PIPE clock
- clock-names:
- Usage: required for sc8180x and sm8250
+ Usage: required for sc8180x, sm8150 and sm8250
Value type: <stringlist>
Definition: Should contain the following entries
- "aux" Auxiliary clock
@@ -266,7 +267,7 @@
- "ahb" AHB reset
- reset-names:
- Usage: required for sc8180x, sdm845, sm8250 and sm8450
+ Usage: required for sc8180x, sdm845, sm8150, sm8250 and sm8450
Value type: <stringlist>
Definition: Should contain the following entries
- "pci" PCIe core reset
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v4 2/2] PCI: qcom: Add SM8150 SoC support
2022-03-26 6:08 [PATCH v4 0/2] pci: Add PCIe support for SM8150 SoC Bhupesh Sharma
2022-03-26 6:08 ` [PATCH v4 1/2] dt-bindings: pci: qcom: Document PCIe bindings " Bhupesh Sharma
@ 2022-03-26 6:08 ` Bhupesh Sharma
2022-04-08 10:49 ` [PATCH v4 0/2] pci: Add PCIe support for SM8150 SoC Lorenzo Pieralisi
2 siblings, 0 replies; 4+ messages in thread
From: Bhupesh Sharma @ 2022-03-26 6:08 UTC (permalink / raw)
To: linux-pci
Cc: bhupesh.sharma, bhupesh.linux, lorenzo.pieralisi, agross,
bjorn.andersson, svarbanov, bhelgaas, linux-arm-msm,
linux-kernel, devicetree, robh+dt, Vinod Koul, Dmitry Baryshkov,
Rob Herring
The PCIe IP (rev 1.5.0) on SM8150 SoC is similar to the one used on
SM8250. Hence the support is added reusing the members of ops_1_9_0.
Cc: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
---
drivers/pci/controller/dwc/pcie-qcom.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c
index 6ab90891801d..375f27ab9403 100644
--- a/drivers/pci/controller/dwc/pcie-qcom.c
+++ b/drivers/pci/controller/dwc/pcie-qcom.c
@@ -1523,6 +1523,13 @@ static const struct qcom_pcie_cfg sdm845_cfg = {
.has_tbu_clk = true,
};
+static const struct qcom_pcie_cfg sm8150_cfg = {
+ /* sm8150 has qcom IP rev 1.5.0. However 1.5.0 ops are same as
+ * 1.9.0, so reuse the same.
+ */
+ .ops = &ops_1_9_0,
+};
+
static const struct qcom_pcie_cfg sm8250_cfg = {
.ops = &ops_1_9_0,
.has_tbu_clk = true,
@@ -1655,6 +1662,7 @@ static const struct of_device_id qcom_pcie_match[] = {
{ .compatible = "qcom,pcie-ipq4019", .data = &ipq4019_cfg },
{ .compatible = "qcom,pcie-qcs404", .data = &ipq4019_cfg },
{ .compatible = "qcom,pcie-sdm845", .data = &sdm845_cfg },
+ { .compatible = "qcom,pcie-sm8150", .data = &sm8150_cfg },
{ .compatible = "qcom,pcie-sm8250", .data = &sm8250_cfg },
{ .compatible = "qcom,pcie-sc8180x", .data = &sm8250_cfg },
{ .compatible = "qcom,pcie-sm8450-pcie0", .data = &sm8450_pcie0_cfg },
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v4 0/2] pci: Add PCIe support for SM8150 SoC
2022-03-26 6:08 [PATCH v4 0/2] pci: Add PCIe support for SM8150 SoC Bhupesh Sharma
2022-03-26 6:08 ` [PATCH v4 1/2] dt-bindings: pci: qcom: Document PCIe bindings " Bhupesh Sharma
2022-03-26 6:08 ` [PATCH v4 2/2] PCI: qcom: Add SM8150 SoC support Bhupesh Sharma
@ 2022-04-08 10:49 ` Lorenzo Pieralisi
2 siblings, 0 replies; 4+ messages in thread
From: Lorenzo Pieralisi @ 2022-04-08 10:49 UTC (permalink / raw)
To: linux-pci, Bhupesh Sharma
Cc: Lorenzo Pieralisi, linux-arm-msm, agross, devicetree,
bjorn.andersson, bhelgaas, linux-kernel, robh+dt, svarbanov,
bhupesh.linux
On Sat, 26 Mar 2022 11:38:08 +0530, Bhupesh Sharma wrote:
> Changes since v3:
> -----------------
> - v3 can be found here: https://lore.kernel.org/linux-arm-msm/20220302203045.184500-1-bhupesh.sharma@linaro.org/
> - Broke down the patchset into 3 separate patchsets for each tree,
> so that the patch(es) can be easily reviewed and merged by respective
> maintainers.
> - This patchset adds the driver / binding related PCIe support for
> SM8150 SoC.
>
> [...]
Applied to pci/qcom, thanks!
[1/2] dt-bindings: pci: qcom: Document PCIe bindings for SM8150 SoC
https://git.kernel.org/lpieralisi/pci/c/f52d2a0f0d
[2/2] PCI: qcom: Add SM8150 SoC support
https://git.kernel.org/lpieralisi/pci/c/3007ba831c
Thanks,
Lorenzo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-08 10:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-26 6:08 [PATCH v4 0/2] pci: Add PCIe support for SM8150 SoC Bhupesh Sharma
2022-03-26 6:08 ` [PATCH v4 1/2] dt-bindings: pci: qcom: Document PCIe bindings " Bhupesh Sharma
2022-03-26 6:08 ` [PATCH v4 2/2] PCI: qcom: Add SM8150 SoC support Bhupesh Sharma
2022-04-08 10:49 ` [PATCH v4 0/2] pci: Add PCIe support for SM8150 SoC Lorenzo Pieralisi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).