* [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support
@ 2025-05-07 3:15 Ziyue Zhang
2025-05-07 3:15 ` [PATCH v4 1/5] dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Update pcie phy bindings for QCS615 Ziyue Zhang
` (5 more replies)
0 siblings, 6 replies; 14+ messages in thread
From: Ziyue Zhang @ 2025-05-07 3:15 UTC (permalink / raw)
To: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio
Cc: linux-phy, devicetree, linux-kernel, linux-arm-msm, linux-pci,
quic_qianyu, quic_krichai, quic_vbadigan, Ziyue Zhang
This series adds document, phy, configs support for PCIe in QCS615.
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Ziyue Zhang <quic_ziyuzhan@quicinc.com>
---
Have following changes:
- Add a new Document the QCS615 PCIe Controller
- Add configurations in devicetree for PCIe, including registers, clocks, interrupts and phy setting sequence.
- Add configurations in devicetree for PCIe, platform related gpios, PMIC regulators, etc.
Changes in v4:
- Fixed compile error found by kernel test robot(Krzysztof)
- Update DT format (Konrad & Krzysztof)
- Remove QCS8550 compatible use QCS615 compatible only (Konrad)
- Update phy dt bindings to fix the dtb check errors.
- Link to v3: https://lore.kernel.org/all/20250310065613.151598-1-quic_ziyuzhan@quicinc.com/
Changes in v3:
- Update qcs615 dt-bindings to fit the qcom-soc.yaml (Krzysztof & Dmitry)
- Removed the driver patch and using fallback method (Mani)
- Update DT format, keep it same with the x1e801000.dtsi (Konrad)
- Update DT commit message (Bojor)
- Link to v2: https://lore.kernel.org/all/20241122023314.1616353-1-quic_ziyuzhan@quicinc.com/
Changes in v2:
- Update commit message for qcs615 phy
- Update qcs615 phy, using lowercase hex
- Removed redundant function
- split the soc dtsi and the platform dts into two changes
- Link to v1: https://lore.kernel.org/all/20241118082619.177201-1-quic_ziyuzhan@quicinc.com/
Krishna chaitanya chundru (3):
dt-bindings: PCI: qcom: Document the QCS615 PCIe Controller
arm64: dts: qcom: qcs615: enable pcie
arm64: dts: qcom: qcs615-ride: Enable PCIe interface
Ziyue Zhang (2):
dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Update pcie phy bindings
for QCS615
PCI: qcom: Add support for QCS615 SoC
.../bindings/pci/qcom,qcs615-pcie.yaml | 165 ++++++++++++++++++
.../phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 2 +-
arch/arm64/boot/dts/qcom/qcs615-ride.dts | 42 +++++
arch/arm64/boot/dts/qcom/qcs615.dtsi | 146 ++++++++++++++++
drivers/pci/controller/dwc/pcie-qcom.c | 1 +
5 files changed, 355 insertions(+), 1 deletion(-)
create mode 100644 Documentation/devicetree/bindings/pci/qcom,qcs615-pcie.yaml
base-commit: 8fd51b270d58f8b05aa58841ec38c8a6b4ab09ca
--
2.34.1
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH v4 1/5] dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Update pcie phy bindings for QCS615
2025-05-07 3:15 [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support Ziyue Zhang
@ 2025-05-07 3:15 ` Ziyue Zhang
2025-05-07 5:12 ` Krzysztof Kozlowski
2025-05-07 3:15 ` [PATCH v4 2/5] dt-bindings: PCI: qcom: Document the QCS615 PCIe Controller Ziyue Zhang
` (4 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Ziyue Zhang @ 2025-05-07 3:15 UTC (permalink / raw)
To: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio
Cc: linux-phy, devicetree, linux-kernel, linux-arm-msm, linux-pci,
quic_qianyu, quic_krichai, quic_vbadigan, Ziyue Zhang
QCS615 pcie phy only use 5 clocks, which are aux, cfg_ahb, ref,
ref_gen, pipe. So move "qcom,qcs615-qmp-gen3x1-pcie-phy" compatible
from 6 clocks' list to 5 clocks' list.
Signed-off-by: Ziyue Zhang <quic_ziyuzhan@quicinc.com>
---
.../devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml
index 2c6c9296e4c0..a1ae8c7988c8 100644
--- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml
@@ -145,6 +145,7 @@ allOf:
compatible:
contains:
enum:
+ - qcom,qcs615-qmp-gen3x1-pcie-phy
- qcom,sar2130p-qmp-gen3x2-pcie-phy
- qcom,sc8180x-qmp-pcie-phy
- qcom,sdm845-qhp-pcie-phy
@@ -175,7 +176,6 @@ allOf:
compatible:
contains:
enum:
- - qcom,qcs615-qmp-gen3x1-pcie-phy
- qcom,sc8280xp-qmp-gen3x1-pcie-phy
- qcom,sc8280xp-qmp-gen3x2-pcie-phy
- qcom,sc8280xp-qmp-gen3x4-pcie-phy
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v4 2/5] dt-bindings: PCI: qcom: Document the QCS615 PCIe Controller
2025-05-07 3:15 [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support Ziyue Zhang
2025-05-07 3:15 ` [PATCH v4 1/5] dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Update pcie phy bindings for QCS615 Ziyue Zhang
@ 2025-05-07 3:15 ` Ziyue Zhang
2025-05-07 5:17 ` Krzysztof Kozlowski
2025-05-07 3:15 ` [PATCH v4 3/5] arm64: dts: qcom: qcs615: enable pcie Ziyue Zhang
` (3 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Ziyue Zhang @ 2025-05-07 3:15 UTC (permalink / raw)
To: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio
Cc: linux-phy, devicetree, linux-kernel, linux-arm-msm, linux-pci,
quic_qianyu, quic_krichai, quic_vbadigan, Ziyue Zhang
From: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Add dedicated schema for the PCIe controllers found on QCS615.
Due to qcs615's clock-names do not match any of the existing
dt-bindings, a new compatible for qcs615 is needed.
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Ziyue Zhang <quic_ziyuzhan@quicinc.com>
---
.../bindings/pci/qcom,qcs615-pcie.yaml | 165 ++++++++++++++++++
1 file changed, 165 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pci/qcom,qcs615-pcie.yaml
diff --git a/Documentation/devicetree/bindings/pci/qcom,qcs615-pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,qcs615-pcie.yaml
new file mode 100644
index 000000000000..6f8741fc818a
--- /dev/null
+++ b/Documentation/devicetree/bindings/pci/qcom,qcs615-pcie.yaml
@@ -0,0 +1,165 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pci/qcom,qcs615-pcie.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm QCS615 PCI Express Root Complex
+
+maintainers:
+ - Bjorn Andersson <andersson@kernel.org>
+ - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
+
+description:
+ Qualcomm QCS615 SoC (and compatible) PCIe root complex controller is based on
+ the Synopsys DesignWare PCIe IP.
+
+properties:
+ compatible:
+ const: qcom,qcs615-pcie
+
+ reg:
+ minItems: 6
+ maxItems: 6
+
+ reg-names:
+ items:
+ - const: parf # Qualcomm specific registers
+ - const: dbi # DesignWare PCIe registers
+ - const: elbi # External local bus interface registers
+ - const: atu # ATU address space
+ - const: config # PCIe configuration space
+ - const: mhi # MHI registers
+
+ clocks:
+ minItems: 5
+ maxItems: 6
+
+ clock-names:
+ items:
+ - const: aux # Auxiliary clock
+ - const: cfg # Configuration clock
+ - const: bus_master # Master AXI clock
+ - const: bus_slave # Slave AXI clock
+ - const: slave_q2a # Slave Q2A clock
+ - const: ref # REFERENCE clock
+
+ interrupts:
+ minItems: 9
+ maxItems: 9
+
+ interrupt-names:
+ items:
+ - const: msi0
+ - const: msi1
+ - const: msi2
+ - const: msi3
+ - const: msi4
+ - const: msi5
+ - const: msi6
+ - const: msi7
+ - const: global
+
+ resets:
+ maxItems: 1
+
+ reset-names:
+ items:
+ - const: pci # PCIe core reset
+
+allOf:
+ - $ref: qcom,pcie-common.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,qcs615-gcc.h>
+ #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/interconnect/qcom,qcs615-rpmh.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/clock/qcom,rpmh.h>
+
+ soc {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ pcie@1c08000 {
+ compatible = "qcom,qcs615-pcie";
+ reg = <0 0x01c08000 0 0x3000>,
+ <0 0x40000000 0 0xf1d>,
+ <0 0x40000f20 0 0xa8>,
+ <0 0x40001000 0 0x1000>,
+ <0 0x40100000 0 0x100000>,
+ <0 0x01c0b000 0 0x1000>;
+ reg-names = "parf", "dbi", "elbi", "atu", "config", "mhi";
+ ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>,
+ <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x3d00000>;
+
+ bus-range = <0x00 0xff>;
+ device_type = "pci";
+ linux,pci-domain = <0>;
+ num-lanes = <1>;
+
+ #address-cells = <3>;
+ #size-cells = <2>;
+
+ clocks = <&gcc GCC_PCIE_0_AUX_CLK>,
+ <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
+ <&gcc GCC_PCIE_0_MSTR_AXI_CLK>,
+ <&gcc GCC_PCIE_0_SLV_AXI_CLK>,
+ <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>,
+ <&rpmhcc RPMH_CXO_CLK>;
+ clock-names = "aux",
+ "cfg",
+ "bus_master",
+ "bus_slave",
+ "slave_q2a",
+ "ref";
+
+ dma-coherent;
+
+ interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "msi0", "msi1", "msi2", "msi3",
+ "msi4", "msi5", "msi6", "msi7", "global";
+ #interrupt-cells = <1>;
+ interrupt-map-mask = <0 0 0 0x7>;
+ interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
+ <0 0 0 2 &intc 0 0 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
+ <0 0 0 3 &intc 0 0 0 151 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
+ <0 0 0 4 &intc 0 0 0 152 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
+
+ interconnects = <&agree1_noc MASTER_PCIE 0 &mc_virt SLAVE_EBI1 0>,
+ <&gem_noc MASTER_APPSS_PROC 0 &cnoc_main SLAVE_PCIE_0 0>;
+ interconnect-names = "pcie-mem", "cpu-pcie";
+
+ iommu-map = <0x0 &apps_smmu 0x400 0x1>,
+ <0x100 &apps_smmu 0x401 0x1>;
+
+ phys = <&pcie_phy>;
+ phy-names = "pciephy";
+
+ eq-presets-8gts = /bits/ 16 <0x5555 0x5555 0x5555 0x5555
+ 0x5555 0x5555 0x5555 0x5555>;
+ eq-presets-16gts = /bits/ 8 <0x55 0x55 0x55 0x55 0x55 0x55 0x55 0x55>;
+
+ pinctrl-0 = <&pcie_default_state>;
+ pinctrl-names = "default";
+
+ power-domains = <&gcc PCIE_0_GDSC>;
+
+ resets = <&gcc GCC_PCIE_0_BCR>;
+ reset-names = "pci";
+
+ perst-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>;
+ wake-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
+ };
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v4 3/5] arm64: dts: qcom: qcs615: enable pcie
2025-05-07 3:15 [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support Ziyue Zhang
2025-05-07 3:15 ` [PATCH v4 1/5] dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Update pcie phy bindings for QCS615 Ziyue Zhang
2025-05-07 3:15 ` [PATCH v4 2/5] dt-bindings: PCI: qcom: Document the QCS615 PCIe Controller Ziyue Zhang
@ 2025-05-07 3:15 ` Ziyue Zhang
2025-05-08 14:47 ` Konrad Dybcio
2025-05-07 3:15 ` [PATCH v4 4/5] arm64: dts: qcom: qcs615-ride: Enable PCIe interface Ziyue Zhang
` (2 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Ziyue Zhang @ 2025-05-07 3:15 UTC (permalink / raw)
To: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio
Cc: linux-phy, devicetree, linux-kernel, linux-arm-msm, linux-pci,
quic_qianyu, quic_krichai, quic_vbadigan, Ziyue Zhang
From: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Add configurations in devicetree for PCIe0, including registers, clocks,
interrupts and phy setting sequence.
Add PCIe lane equalization preset properties for 8 GT/s.
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Ziyue Zhang <quic_ziyuzhan@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcs615.dtsi | 146 +++++++++++++++++++++++++++
1 file changed, 146 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi
index 7c377f3402c1..f7e9b5bbd253 100644
--- a/arch/arm64/boot/dts/qcom/qcs615.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi
@@ -1012,6 +1012,152 @@ mmss_noc: interconnect@1740000 {
qcom,bcm-voters = <&apps_bcm_voter>;
};
+ pcie: pcie@1c08000 {
+ device_type = "pci";
+ compatible = "qcom,qcs615-pcie";
+ reg = <0x0 0x01c08000 0x0 0x3000>,
+ <0x0 0x40000000 0x0 0xf1d>,
+ <0x0 0x40000f20 0x0 0xa8>,
+ <0x0 0x40001000 0x0 0x1000>,
+ <0x0 0x40100000 0x0 0x100000>,
+ <0x0 0x01c0b000 0x0 0x1000>;
+ reg-names = "parf",
+ "dbi",
+ "elbi",
+ "atu",
+ "config",
+ "mhi";
+ #address-cells = <3>;
+ #size-cells = <2>;
+ ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>,
+ <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>;
+ bus-range = <0x00 0xff>;
+
+ dma-coherent;
+
+ linux,pci-domain = <0>;
+ num-lanes = <1>;
+
+ interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "msi0",
+ "msi1",
+ "msi2",
+ "msi3",
+ "msi4",
+ "msi5",
+ "msi6",
+ "msi7",
+ "global";
+
+ #interrupt-cells = <1>;
+ interrupt-map-mask = <0 0 0 0x7>;
+ interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 2 &intc 0 0 0 150 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 3 &intc 0 0 0 151 IRQ_TYPE_LEVEL_HIGH>,
+ <0 0 0 4 &intc 0 0 0 152 IRQ_TYPE_LEVEL_HIGH>;
+
+ clocks = <&gcc GCC_PCIE_0_AUX_CLK>,
+ <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
+ <&gcc GCC_PCIE_0_MSTR_AXI_CLK>,
+ <&gcc GCC_PCIE_0_SLV_AXI_CLK>,
+ <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>,
+ <&rpmhcc RPMH_CXO_CLK>;
+ clock-names = "aux",
+ "cfg",
+ "bus_master",
+ "bus_slave",
+ "slave_q2a",
+ "ref";
+ assigned-clocks = <&gcc GCC_PCIE_0_AUX_CLK>;
+ assigned-clock-rates = <19200000>;
+
+ interconnects = <&aggre1_noc MASTER_PCIE QCOM_ICC_TAG_ALWAYS
+ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
+ <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
+ &config_noc SLAVE_PCIE_0 QCOM_ICC_TAG_ACTIVE_ONLY>;
+ interconnect-names = "pcie-mem", "cpu-pcie";
+
+ iommu-map = <0x0 &apps_smmu 0x400 0x1>,
+ <0x100 &apps_smmu 0x401 0x1>;
+
+ resets = <&gcc GCC_PCIE_0_BCR>;
+ reset-names = "pci";
+
+ power-domains = <&gcc PCIE_0_GDSC>;
+
+ phys = <&pcie_phy>;
+ phy-names = "pciephy";
+
+ eq-presets-8gts = /bits/ 16 <0x5555 0x5555 0x5555 0x5555
+ 0x5555 0x5555 0x5555 0x5555>;
+
+ operating-points-v2 = <&pcie_opp_table>;
+
+ status = "disabled";
+
+ pcie_opp_table: opp-table {
+ compatible = "operating-points-v2";
+
+ /* GEN 1 x1 */
+ opp-2500000 {
+ opp-hz = /bits/ 64 <2500000>;
+ required-opps = <&rpmhpd_opp_low_svs>;
+ opp-peak-kBps = <250000 1>;
+ };
+
+ /* GEN 2 x1 */
+ opp-5000000 {
+ opp-hz = /bits/ 64 <5000000>;
+ required-opps = <&rpmhpd_opp_low_svs>;
+ opp-peak-kBps = <500000 1>;
+ };
+
+ /* GEN 3 x1 */
+ opp-8000000 {
+ opp-hz = /bits/ 64 <8000000>;
+ required-opps = <&rpmhpd_opp_svs_l1>;
+ opp-peak-kBps = <984500 1>;
+ };
+ };
+ };
+
+ pcie_phy: phy@1c0e000 {
+ compatible = "qcom,qcs615-qmp-gen3x1-pcie-phy";
+ reg = <0x0 0x01c0e000 0x0 0x1000>;
+
+ clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>,
+ <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
+ <&gcc GCC_PCIE_0_CLKREF_CLK>,
+ <&gcc GCC_PCIE0_PHY_REFGEN_CLK>,
+ <&gcc GCC_PCIE_0_PIPE_CLK>;
+ clock-names = "aux",
+ "cfg_ahb",
+ "ref",
+ "refgen",
+ "pipe";
+
+ resets = <&gcc GCC_PCIE_0_PHY_BCR>;
+ reset-names = "phy";
+
+ assigned-clocks = <&gcc GCC_PCIE0_PHY_REFGEN_CLK>;
+ assigned-clock-rates = <100000000>;
+
+ #clock-cells = <0>;
+ clock-output-names = "pcie_0_pipe_clk";
+
+ #phy-cells = <0>;
+
+ status = "disabled";
+ };
+
ufs_mem_hc: ufshc@1d84000 {
compatible = "qcom,qcs615-ufshc", "qcom,ufshc", "jedec,ufs-2.0";
reg = <0x0 0x01d84000 0x0 0x3000>,
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v4 4/5] arm64: dts: qcom: qcs615-ride: Enable PCIe interface
2025-05-07 3:15 [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support Ziyue Zhang
` (2 preceding siblings ...)
2025-05-07 3:15 ` [PATCH v4 3/5] arm64: dts: qcom: qcs615: enable pcie Ziyue Zhang
@ 2025-05-07 3:15 ` Ziyue Zhang
2025-05-07 3:15 ` [PATCH v4 5/5] PCI: qcom: Add support for QCS615 SoC Ziyue Zhang
2025-05-07 15:41 ` [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support Rob Herring (Arm)
5 siblings, 0 replies; 14+ messages in thread
From: Ziyue Zhang @ 2025-05-07 3:15 UTC (permalink / raw)
To: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio
Cc: linux-phy, devicetree, linux-kernel, linux-arm-msm, linux-pci,
quic_qianyu, quic_krichai, quic_vbadigan, Konrad Dybcio,
Ziyue Zhang
From: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Add platform configurations in devicetree for PCIe, board related
gpios, PMIC regulators, etc.
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Ziyue Zhang <quic_ziyuzhan@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcs615-ride.dts | 42 ++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs615-ride.dts b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
index 2b5aa3c66867..c59647e5f2d6 100644
--- a/arch/arm64/boot/dts/qcom/qcs615-ride.dts
+++ b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
@@ -217,6 +217,23 @@ &gcc {
<&sleep_clk>;
};
+&pcie {
+ perst-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>;
+ wake-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
+
+ pinctrl-0 = <&pcie_default_state>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+
+&pcie_phy {
+ vdda-phy-supply = <&vreg_l5a>;
+ vdda-pll-supply = <&vreg_l12a>;
+
+ status = "okay";
+};
+
&pm8150_gpios {
usb2_en: usb2-en-state {
pins = "gpio10";
@@ -244,6 +261,31 @@ &rpmhcc {
clocks = <&xo_board_clk>;
};
+&tlmm {
+ pcie_default_state: pcie-default-state {
+ clkreq-pins {
+ pins = "gpio90";
+ function = "pcie_clk_req";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+
+ perst-pins {
+ pins = "gpio101";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ };
+
+ wake-pins {
+ pins = "gpio100";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+ };
+};
+
&sdhc_1 {
pinctrl-0 = <&sdc1_state_on>;
pinctrl-1 = <&sdc1_state_off>;
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v4 5/5] PCI: qcom: Add support for QCS615 SoC
2025-05-07 3:15 [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support Ziyue Zhang
` (3 preceding siblings ...)
2025-05-07 3:15 ` [PATCH v4 4/5] arm64: dts: qcom: qcs615-ride: Enable PCIe interface Ziyue Zhang
@ 2025-05-07 3:15 ` Ziyue Zhang
2025-05-07 5:18 ` Krzysztof Kozlowski
2025-05-07 15:41 ` [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support Rob Herring (Arm)
5 siblings, 1 reply; 14+ messages in thread
From: Ziyue Zhang @ 2025-05-07 3:15 UTC (permalink / raw)
To: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio
Cc: linux-phy, devicetree, linux-kernel, linux-arm-msm, linux-pci,
quic_qianyu, quic_krichai, quic_vbadigan, Ziyue Zhang
Add the compatible and the driver data for QCS615 PCIe controller.
There is only one controller instance found on this platform, which
is capable of up to 8.0GT/s.
The version of the controller is 1.38.0 which is compatible with 1.9.0
config.
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Ziyue Zhang <quic_ziyuzhan@quicinc.com>
---
drivers/pci/controller/dwc/pcie-qcom.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c
index dc98ae63362d..0ed934b0d1be 100644
--- a/drivers/pci/controller/dwc/pcie-qcom.c
+++ b/drivers/pci/controller/dwc/pcie-qcom.c
@@ -1862,6 +1862,7 @@ static const struct of_device_id qcom_pcie_match[] = {
{ .compatible = "qcom,pcie-sm8450-pcie1", .data = &cfg_1_9_0 },
{ .compatible = "qcom,pcie-sm8550", .data = &cfg_1_9_0 },
{ .compatible = "qcom,pcie-x1e80100", .data = &cfg_sc8280xp },
+ { .compatible = "qcom,qcs615-pcie", .data = &cfg_1_9_0 },
{ }
};
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v4 1/5] dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Update pcie phy bindings for QCS615
2025-05-07 3:15 ` [PATCH v4 1/5] dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Update pcie phy bindings for QCS615 Ziyue Zhang
@ 2025-05-07 5:12 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-07 5:12 UTC (permalink / raw)
To: Ziyue Zhang
Cc: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio, linux-phy, devicetree,
linux-kernel, linux-arm-msm, linux-pci, quic_qianyu, quic_krichai,
quic_vbadigan
On Wed, May 07, 2025 at 11:15:55AM GMT, Ziyue Zhang wrote:
> QCS615 pcie phy only use 5 clocks, which are aux, cfg_ahb, ref,
> ref_gen, pipe. So move "qcom,qcs615-qmp-gen3x1-pcie-phy" compatible
> from 6 clocks' list to 5 clocks' list.
Same for QCS8300 patchset: what changed in the hardware that now it uses
different amount of clocks than before?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v4 2/5] dt-bindings: PCI: qcom: Document the QCS615 PCIe Controller
2025-05-07 3:15 ` [PATCH v4 2/5] dt-bindings: PCI: qcom: Document the QCS615 PCIe Controller Ziyue Zhang
@ 2025-05-07 5:17 ` Krzysztof Kozlowski
2025-05-12 8:16 ` Ziyue Zhang
0 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-07 5:17 UTC (permalink / raw)
To: Ziyue Zhang
Cc: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio, linux-phy, devicetree,
linux-kernel, linux-arm-msm, linux-pci, quic_qianyu, quic_krichai,
quic_vbadigan
On Wed, May 07, 2025 at 11:15:56AM GMT, Ziyue Zhang wrote:
> From: Krishna chaitanya chundru <quic_krichai@quicinc.com>
>
> Add dedicated schema for the PCIe controllers found on QCS615.
> Due to qcs615's clock-names do not match any of the existing
> dt-bindings, a new compatible for qcs615 is needed.
Other bindings for QCS615 were not finished, so I have doubts this is
done as well. Send your bindings once you finish them.
...
> +properties:
> + compatible:
> + const: qcom,qcs615-pcie
> +
> + reg:
> + minItems: 6
> + maxItems: 6
> +
> + reg-names:
> + items:
> + - const: parf # Qualcomm specific registers
> + - const: dbi # DesignWare PCIe registers
> + - const: elbi # External local bus interface registers
> + - const: atu # ATU address space
> + - const: config # PCIe configuration space
> + - const: mhi # MHI registers
> +
> + clocks:
> + minItems: 5
Drop or use correct value - 6. I don't understand why this changed and
nothing in changelog explains this.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v4 5/5] PCI: qcom: Add support for QCS615 SoC
2025-05-07 3:15 ` [PATCH v4 5/5] PCI: qcom: Add support for QCS615 SoC Ziyue Zhang
@ 2025-05-07 5:18 ` Krzysztof Kozlowski
2025-05-12 9:03 ` Ziyue Zhang
0 siblings, 1 reply; 14+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-07 5:18 UTC (permalink / raw)
To: Ziyue Zhang
Cc: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio, linux-phy, devicetree,
linux-kernel, linux-arm-msm, linux-pci, quic_qianyu, quic_krichai,
quic_vbadigan
On Wed, May 07, 2025 at 11:15:59AM GMT, Ziyue Zhang wrote:
> Add the compatible and the driver data for QCS615 PCIe controller.
> There is only one controller instance found on this platform, which
> is capable of up to 8.0GT/s.
> The version of the controller is 1.38.0 which is compatible with 1.9.0
> config.
>
> Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
> Signed-off-by: Ziyue Zhang <quic_ziyuzhan@quicinc.com>
> ---
> drivers/pci/controller/dwc/pcie-qcom.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c
> index dc98ae63362d..0ed934b0d1be 100644
> --- a/drivers/pci/controller/dwc/pcie-qcom.c
> +++ b/drivers/pci/controller/dwc/pcie-qcom.c
> @@ -1862,6 +1862,7 @@ static const struct of_device_id qcom_pcie_match[] = {
> { .compatible = "qcom,pcie-sm8450-pcie1", .data = &cfg_1_9_0 },
> { .compatible = "qcom,pcie-sm8550", .data = &cfg_1_9_0 },
> { .compatible = "qcom,pcie-x1e80100", .data = &cfg_sc8280xp },
> + { .compatible = "qcom,qcs615-pcie", .data = &cfg_1_9_0 },
Why? It's compatible with other entries, so why adding redundant entry
here?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support
2025-05-07 3:15 [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support Ziyue Zhang
` (4 preceding siblings ...)
2025-05-07 3:15 ` [PATCH v4 5/5] PCI: qcom: Add support for QCS615 SoC Ziyue Zhang
@ 2025-05-07 15:41 ` Rob Herring (Arm)
5 siblings, 0 replies; 14+ messages in thread
From: Rob Herring (Arm) @ 2025-05-07 15:41 UTC (permalink / raw)
To: Ziyue Zhang
Cc: conor+dt, linux-arm-msm, krzk+dt, kishon, neil.armstrong,
abel.vesa, andersson, devicetree, konradybcio, quic_qianyu, kw,
linux-phy, linux-pci, linux-kernel, dmitry.baryshkov,
quic_vbadigan, manivannan.sadhasivam, lpieralisi, vkoul, bhelgaas,
quic_krichai
On Wed, 07 May 2025 11:15:54 +0800, Ziyue Zhang wrote:
> This series adds document, phy, configs support for PCIe in QCS615.
>
> Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
> Signed-off-by: Ziyue Zhang <quic_ziyuzhan@quicinc.com>
> ---
> Have following changes:
> - Add a new Document the QCS615 PCIe Controller
> - Add configurations in devicetree for PCIe, including registers, clocks, interrupts and phy setting sequence.
> - Add configurations in devicetree for PCIe, platform related gpios, PMIC regulators, etc.
>
> Changes in v4:
> - Fixed compile error found by kernel test robot(Krzysztof)
> - Update DT format (Konrad & Krzysztof)
> - Remove QCS8550 compatible use QCS615 compatible only (Konrad)
> - Update phy dt bindings to fix the dtb check errors.
> - Link to v3: https://lore.kernel.org/all/20250310065613.151598-1-quic_ziyuzhan@quicinc.com/
>
> Changes in v3:
> - Update qcs615 dt-bindings to fit the qcom-soc.yaml (Krzysztof & Dmitry)
> - Removed the driver patch and using fallback method (Mani)
> - Update DT format, keep it same with the x1e801000.dtsi (Konrad)
> - Update DT commit message (Bojor)
> - Link to v2: https://lore.kernel.org/all/20241122023314.1616353-1-quic_ziyuzhan@quicinc.com/
>
> Changes in v2:
> - Update commit message for qcs615 phy
> - Update qcs615 phy, using lowercase hex
> - Removed redundant function
> - split the soc dtsi and the platform dts into two changes
> - Link to v1: https://lore.kernel.org/all/20241118082619.177201-1-quic_ziyuzhan@quicinc.com/
>
> Krishna chaitanya chundru (3):
> dt-bindings: PCI: qcom: Document the QCS615 PCIe Controller
> arm64: dts: qcom: qcs615: enable pcie
> arm64: dts: qcom: qcs615-ride: Enable PCIe interface
>
> Ziyue Zhang (2):
> dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Update pcie phy bindings
> for QCS615
> PCI: qcom: Add support for QCS615 SoC
>
> .../bindings/pci/qcom,qcs615-pcie.yaml | 165 ++++++++++++++++++
> .../phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 2 +-
> arch/arm64/boot/dts/qcom/qcs615-ride.dts | 42 +++++
> arch/arm64/boot/dts/qcom/qcs615.dtsi | 146 ++++++++++++++++
> drivers/pci/controller/dwc/pcie-qcom.c | 1 +
> 5 files changed, 355 insertions(+), 1 deletion(-)
> create mode 100644 Documentation/devicetree/bindings/pci/qcom,qcs615-pcie.yaml
>
>
> base-commit: 8fd51b270d58f8b05aa58841ec38c8a6b4ab09ca
> --
> 2.34.1
>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
This patch series was applied (using b4) to base:
Base: base-commit 8fd51b270d58f8b05aa58841ec38c8a6b4ab09ca not known, ignoring
Base: attempting to guess base-commit...
Base: tags/next-20250507 (best guess, 3/4 blobs matched)
If this is not the correct base, please add 'base-commit' tag
(or use b4 which does this automatically)
New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/qcom/' for 20250507031559.4085159-1-quic_ziyuzhan@quicinc.com:
arch/arm64/boot/dts/qcom/qcs615.dtsi:1062.4-1065.34: Warning (interrupt_map): /soc@0/pcie@1c08000:interrupt-map: Cell 12 is not a phandle(0)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v4 3/5] arm64: dts: qcom: qcs615: enable pcie
2025-05-07 3:15 ` [PATCH v4 3/5] arm64: dts: qcom: qcs615: enable pcie Ziyue Zhang
@ 2025-05-08 14:47 ` Konrad Dybcio
0 siblings, 0 replies; 14+ messages in thread
From: Konrad Dybcio @ 2025-05-08 14:47 UTC (permalink / raw)
To: Ziyue Zhang, vkoul, kishon, robh, krzk+dt, conor+dt,
dmitry.baryshkov, neil.armstrong, abel.vesa,
manivannan.sadhasivam, lpieralisi, kw, bhelgaas, andersson,
konradybcio
Cc: linux-phy, devicetree, linux-kernel, linux-arm-msm, linux-pci,
quic_qianyu, quic_krichai, quic_vbadigan
On 5/7/25 5:15 AM, Ziyue Zhang wrote:
> From: Krishna chaitanya chundru <quic_krichai@quicinc.com>
>
> Add configurations in devicetree for PCIe0, including registers, clocks,
> interrupts and phy setting sequence.
>
> Add PCIe lane equalization preset properties for 8 GT/s.
>
> Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
> Signed-off-by: Ziyue Zhang <quic_ziyuzhan@quicinc.com>
> ---
[...]
> + #interrupt-cells = <1>;
> + interrupt-map-mask = <0 0 0 0x7>;
> + interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>,
> + <0 0 0 2 &intc 0 0 0 150 IRQ_TYPE_LEVEL_HIGH>,
> + <0 0 0 3 &intc 0 0 0 151 IRQ_TYPE_LEVEL_HIGH>,
> + <0 0 0 4 &intc 0 0 0 152 IRQ_TYPE_LEVEL_HIGH>;
You added too many zeroes after &intc, this could not have worked
[...]
> +
> + eq-presets-8gts = /bits/ 16 <0x5555 0x5555 0x5555 0x5555
> + 0x5555 0x5555 0x5555 0x5555>;
very odd indentation, please put the 0x's under each other
Konrad
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v4 2/5] dt-bindings: PCI: qcom: Document the QCS615 PCIe Controller
2025-05-07 5:17 ` Krzysztof Kozlowski
@ 2025-05-12 8:16 ` Ziyue Zhang
2025-05-12 9:26 ` Krzysztof Kozlowski
0 siblings, 1 reply; 14+ messages in thread
From: Ziyue Zhang @ 2025-05-12 8:16 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio, linux-phy, devicetree,
linux-kernel, linux-arm-msm, linux-pci, quic_qianyu, quic_krichai,
quic_vbadigan
On 5/7/2025 1:17 PM, Krzysztof Kozlowski wrote:
> On Wed, May 07, 2025 at 11:15:56AM GMT, Ziyue Zhang wrote:
>> From: Krishna chaitanya chundru <quic_krichai@quicinc.com>
>>
>> Add dedicated schema for the PCIe controllers found on QCS615.
>> Due to qcs615's clock-names do not match any of the existing
>> dt-bindings, a new compatible for qcs615 is needed.
> Other bindings for QCS615 were not finished, so I have doubts this is
> done as well. Send your bindings once you finish them.
>
> ...
>
>> +properties:
>> + compatible:
>> + const: qcom,qcs615-pcie
>> +
>> + reg:
>> + minItems: 6
>> + maxItems: 6
>> +
>> + reg-names:
>> + items:
>> + - const: parf # Qualcomm specific registers
>> + - const: dbi # DesignWare PCIe registers
>> + - const: elbi # External local bus interface registers
>> + - const: atu # ATU address space
>> + - const: config # PCIe configuration space
>> + - const: mhi # MHI registers
>> +
>> + clocks:
>> + minItems: 5
> Drop or use correct value - 6. I don't understand why this changed and
> nothing in changelog explains this.
>
> Best regards,
> Krzysztof
Hi Krzysztof
As discussed in qcs8300, gcc_aux_clk is recommended to be removed from PCIe PHY
device tree node, so I need to update the bindings.
BRs
Ziyue
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v4 5/5] PCI: qcom: Add support for QCS615 SoC
2025-05-07 5:18 ` Krzysztof Kozlowski
@ 2025-05-12 9:03 ` Ziyue Zhang
0 siblings, 0 replies; 14+ messages in thread
From: Ziyue Zhang @ 2025-05-12 9:03 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio, linux-phy, devicetree,
linux-kernel, linux-arm-msm, linux-pci, quic_qianyu, quic_krichai,
quic_vbadigan
On 5/7/2025 1:18 PM, Krzysztof Kozlowski wrote:
> On Wed, May 07, 2025 at 11:15:59AM GMT, Ziyue Zhang wrote:
>> Add the compatible and the driver data for QCS615 PCIe controller.
>> There is only one controller instance found on this platform, which
>> is capable of up to 8.0GT/s.
>> The version of the controller is 1.38.0 which is compatible with 1.9.0
>> config.
>>
>> Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
>> Signed-off-by: Ziyue Zhang <quic_ziyuzhan@quicinc.com>
>> ---
>> drivers/pci/controller/dwc/pcie-qcom.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c
>> index dc98ae63362d..0ed934b0d1be 100644
>> --- a/drivers/pci/controller/dwc/pcie-qcom.c
>> +++ b/drivers/pci/controller/dwc/pcie-qcom.c
>> @@ -1862,6 +1862,7 @@ static const struct of_device_id qcom_pcie_match[] = {
>> { .compatible = "qcom,pcie-sm8450-pcie1", .data = &cfg_1_9_0 },
>> { .compatible = "qcom,pcie-sm8550", .data = &cfg_1_9_0 },
>> { .compatible = "qcom,pcie-x1e80100", .data = &cfg_sc8280xp },
>> + { .compatible = "qcom,qcs615-pcie", .data = &cfg_1_9_0 },
> Why? It's compatible with other entries, so why adding redundant entry
> here?
>
> Best regards,
> Krzysztof
Hi Krzysztof
If I use the compatible entry for qcs615 in the driver, do I need to
add qcom,qcs615-pcie to qcom,pcie-sm8550.yaml, or should I create a new
YAML file specifically for qcs615-pcie? Given that the PCIe cores on
qcs615 and sm8550 require different clocks, is it acceptable to combine
them in qcom,pcie-sm8550.yaml?
BRs
Ziyue
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v4 2/5] dt-bindings: PCI: qcom: Document the QCS615 PCIe Controller
2025-05-12 8:16 ` Ziyue Zhang
@ 2025-05-12 9:26 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-12 9:26 UTC (permalink / raw)
To: Ziyue Zhang
Cc: vkoul, kishon, robh, krzk+dt, conor+dt, dmitry.baryshkov,
neil.armstrong, abel.vesa, manivannan.sadhasivam, lpieralisi, kw,
bhelgaas, andersson, konradybcio, linux-phy, devicetree,
linux-kernel, linux-arm-msm, linux-pci, quic_qianyu, quic_krichai,
quic_vbadigan
On 12/05/2025 10:16, Ziyue Zhang wrote:
>
> On 5/7/2025 1:17 PM, Krzysztof Kozlowski wrote:
>> On Wed, May 07, 2025 at 11:15:56AM GMT, Ziyue Zhang wrote:
>>> From: Krishna chaitanya chundru <quic_krichai@quicinc.com>
>>>
>>> Add dedicated schema for the PCIe controllers found on QCS615.
>>> Due to qcs615's clock-names do not match any of the existing
>>> dt-bindings, a new compatible for qcs615 is needed.
>> Other bindings for QCS615 were not finished, so I have doubts this is
>> done as well. Send your bindings once you finish them.
>>
>> ...
>>
>>> +properties:
>>> + compatible:
>>> + const: qcom,qcs615-pcie
>>> +
>>> + reg:
>>> + minItems: 6
>>> + maxItems: 6
>>> +
>>> + reg-names:
>>> + items:
>>> + - const: parf # Qualcomm specific registers
>>> + - const: dbi # DesignWare PCIe registers
>>> + - const: elbi # External local bus interface registers
>>> + - const: atu # ATU address space
>>> + - const: config # PCIe configuration space
>>> + - const: mhi # MHI registers
>>> +
>>> + clocks:
>>> + minItems: 5
>> Drop or use correct value - 6. I don't understand why this changed and
>> nothing in changelog explains this.
>>
>> Best regards,
>> Krzysztof
>
> Hi Krzysztof
>
> As discussed in qcs8300, gcc_aux_clk is recommended to be removed from PCIe PHY
> device tree node, so I need to update the bindings.
I don't see how this is relevant to the code you posted and to my
comment, so comment stays valid.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2025-05-12 9:26 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07 3:15 [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support Ziyue Zhang
2025-05-07 3:15 ` [PATCH v4 1/5] dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Update pcie phy bindings for QCS615 Ziyue Zhang
2025-05-07 5:12 ` Krzysztof Kozlowski
2025-05-07 3:15 ` [PATCH v4 2/5] dt-bindings: PCI: qcom: Document the QCS615 PCIe Controller Ziyue Zhang
2025-05-07 5:17 ` Krzysztof Kozlowski
2025-05-12 8:16 ` Ziyue Zhang
2025-05-12 9:26 ` Krzysztof Kozlowski
2025-05-07 3:15 ` [PATCH v4 3/5] arm64: dts: qcom: qcs615: enable pcie Ziyue Zhang
2025-05-08 14:47 ` Konrad Dybcio
2025-05-07 3:15 ` [PATCH v4 4/5] arm64: dts: qcom: qcs615-ride: Enable PCIe interface Ziyue Zhang
2025-05-07 3:15 ` [PATCH v4 5/5] PCI: qcom: Add support for QCS615 SoC Ziyue Zhang
2025-05-07 5:18 ` Krzysztof Kozlowski
2025-05-12 9:03 ` Ziyue Zhang
2025-05-07 15:41 ` [PATCH v4 0/5] pci: qcom: Add QCS615 PCIe support Rob Herring (Arm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox