arm64: dts: qcom: Add PCIe Support for sm8750
Subsystems (7)
v3 cover arm64: dts: qcom: Add PCIe Support for sm8750
Describe PCIe controller and PHY. Also add required system resources like regulators, clocks, interrupts and registers configuration for PCIe.
The qcom_pcie_parse_ports() function currently iterates over all available child nodes of the PCIe controller's device tree node. This includes unrelated nodes such as OPP (Operating Performance Points) nodes, which do not contain the expected 'reset' and 'phy' properties. As a result, parsing fails and the driver falls back to the legacy method of parsing the controller node directly. However, this fallback also fails when properties are shifted to the root port, leading to probe failure.
Fix this by restricting the parsing logic to only consider child nodes with device_type = "pci", which is the expected and required property for PCIe ports as defined in pci-bus-common.yaml.
---
Changes in v3:
- Use device_type to find pci node or not instead of node name.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Follow the x1e80100.dtsi pcie node description (Konrad).
- define phy & perst, wake in port node as per latest bindings.
- Add check in the driver to parse only pcie child nodes.
- Added acked by tag(Rob).
- Removed dtbinding and phy driver patches as they got applied.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Krishna Chaitanya Chundru (3):
dt-bindings: PCI: qcom,pcie-sm8550: Add SM8750 compatible
arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
PCI: qcom: Restrict port parsing only to pci child nodes
.../devicetree/bindings/pci/qcom,pcie-sm8550.yaml | 1 + arch/arm64/boot/dts/qcom/sm8750.dtsi | 180 ++++++++++++++++++++- drivers/pci/controller/dwc/pcie-qcom.c | 2 + 3 files changed, 182 insertions(+), 1 deletion(-)
---
base-commit: b6add54ba61890450fa54fd9327d10fdfd653439
change-id: 20250809-pakala-25a7c1ddba85
Best regards,
Signature · 1 line
Krishna Chaitanya Chundru <[email protected]>
PATCH v3 1/3 dt-bindings: PCI: qcom,pcie-sm8550: Add SM8750 compatible
On the Qualcomm SM8750 platform the PCIe host is compatible with the DWC controller present on the SM8550 platorm.
--- Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/pci/qcom,pcie-sm8550.yaml +1 -0
@@ -22,6 +22,7 @@ properties: - enum: - qcom,sar2130p-pcie - qcom,pcie-sm8650 + - qcom,pcie-sm8750 - const: qcom,pcie-sm8550 reg:
Signature · 1 line
2.34.1
PATCH v3 2/3 arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
In reply to Krishna Chaitanya ChundruAdd PCIe controller and PHY nodes which supports data rates of 8GT/s and x2 lane.
--- arch/arm64/boot/dts/qcom/sm8750.dtsi | 180 ++++++++++++++++++++++++++++++++++- 1 file changed, 179 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8750.dtsi +179 -1
@@ -631,7 +631,7 @@ gcc: clock-controller@100000 { clocks = <&bi_tcxo_div2>, <0>, <&sleep_clk>, - <0>, + <&pcie0_phy>, <0>, <0>, <0>,
@@ -3304,6 +3304,184 @@ gic_its: msi-controller@16040000 { }; }; + pcie0: pcie@1c00000 { + device_type = "pci"; + compatible = "qcom,pcie-sm8750", "qcom,pcie-sm8550"; + reg = <0x0 0x01c00000 0x0 0x3000>, + <0x0 0x40000000 0x0 0xf1d>, + <0x0 0x40000f20 0x0 0xa8>, + <0x0 0x40001000 0x0 0x1000>, + <0x0 0x40100000 0x0 0x100000>, + <0x0 0x01C03000 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 0x23d00000>, + <0x03000000 0x4 0x00000000 0x4 0x00000000 0x3 0x00000000>; + bus-range = <0x00 0xff>; + + dma-coherent; + + linux,pci-domain = <0>; + + msi-map = <0x0 &gic_its 0x1400 0x1>, + <0x100 &gic_its 0x1401 0x1>; + msi-map-mask = <0xff00>; + + num-lanes = <2>; + + 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>, + <&gcc GCC_DDRSS_PCIE_SF_QTB_CLK>, + <&gcc GCC_AGGRE_NOC_PCIE_AXI_CLK>, + <&gcc GCC_CNOC_PCIE_SF_AXI_CLK>; + clock-names = "aux", + "cfg", + "bus_master", + "bus_slave", + "slave_q2a", + "ddrss_sf_tbu", + "noc_aggr", + "cnoc_sf_axi"; + + interconnects = <&pcie_noc MASTER_PCIE_0 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS + &cnoc_main SLAVE_PCIE_0 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "pcie-mem", + "cpu-pcie"; + + iommu-map = <0x0 &apps_smmu 0x1400 0x1>, + <0x100 &apps_smmu 0x1401 0x1>; + + resets = <&gcc GCC_PCIE_0_BCR>; + reset-names = "pci"; + + power-domains = <&gcc GCC_PCIE_0_GDSC>; + + operating-points-v2 = <&pcie0_opp_table>; + + status = "disabled"; + + pcie0_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 1 x2 and GEN 2 x1 */ + opp-5000000 { + opp-hz = /bits/ 64 <5000000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <500000 1>; + }; + + /* GEN 2 x2 */ + opp-10000000 { + opp-hz = /bits/ 64 <10000000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <1000000 1>; + }; + + /* GEN 3 x1 */ + opp-8000000 { + opp-hz = /bits/ 64 <8000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <984500 1>; + }; + + /* GEN 3 x2 */ + opp-16000000 { + opp-hz = /bits/ 64 <16000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <1969000 1>; + }; + + }; + + pcieport0: pcie@0 { + device_type = "pci"; + reg = <0x0 0x0 0x0 0x0 0x0>; + bus-range = <0x01 0xff>; + + #address-cells = <3>; + #size-cells = <2>; + ranges; + phys = <&pcie0_phy>; + }; + }; + + pcie0_phy: phy@1c06000 { + compatible = "qcom,sm8750-qmp-gen3x2-pcie-phy"; + reg = <0 0x01c06000 0 0x2000>; + + clocks = <&gcc GCC_PCIE_0_AUX_CLK>, + <&gcc GCC_PCIE_0_CFG_AHB_CLK>, + <&tcsrcc TCSR_PCIE_0_CLKREF_EN>, + <&gcc GCC_PCIE_0_PHY_RCHNG_CLK>, + <&gcc GCC_PCIE_0_PIPE_CLK>; + clock-names = "aux", + "cfg_ahb", + "ref", + "rchng", + "pipe"; + + assigned-clocks = <&gcc GCC_PCIE_0_PHY_RCHNG_CLK>; + assigned-clock-rates = <100000000>; + + resets = <&gcc GCC_PCIE_0_PHY_BCR>; + reset-names = "phy"; + + power-domains = <&gcc GCC_PCIE_0_PHY_GDSC>; + + #clock-cells = <0>; + clock-output-names = "pcie0_pipe_clk"; + + #phy-cells = <0>; + + status = "disabled"; + }; + ufs_mem_phy: phy@1d80000 { compatible = "qcom,sm8750-qmp-ufs-phy"; reg = <0x0 0x01d80000 0x0 0x2000>;
Signature · 1 line
2.34.1
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
Quoted 3 lines · Krishna Chaitanya Chundru
Add PCIe controller and PHY nodes which supports data rates of 8GT/s and x2 lane.
I tried to boot the upstream kernel (next-20250925 defconfig) on my Pakala MTP with latest LA1.0 META and unless I disable &pcie0 the device is crashing during boot as PCIe is being probed.
Is this a known problem? Is there any workaround/changes in flight that I'm missing?
Regards,
Bjorn
Quoted 207 lines
Signed-off-by Krishna Chaitanya Chundru <[email protected]>--- arch/arm64/boot/dts/qcom/sm8750.dtsi | 180 ++++++++++++++++++++++++++++++++++- 1 file changed, 179 insertions(+), 1 deletion(-)arch/arm64/boot/dts/qcom/sm8750.dtsi +179
-1@@ -631,7 +631,7 @@ gcc: clock-controller@100000 { clocks = <&bi_tcxo_div2>, <0>, <&sleep_clk>, - <0>, + <&pcie0_phy>, <0>, <0>, <0>,@@ -3304,6 +3304,184 @@ gic_its: msi-controller@16040000 { }; }; + pcie0: pcie@1c00000 { + device_type = "pci"; + compatible = "qcom,pcie-sm8750", "qcom,pcie-sm8550"; + reg = <0x0 0x01c00000 0x0 0x3000>, + <0x0 0x40000000 0x0 0xf1d>, + <0x0 0x40000f20 0x0 0xa8>, + <0x0 0x40001000 0x0 0x1000>, + <0x0 0x40100000 0x0 0x100000>, + <0x0 0x01C03000 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 0x23d00000>, + <0x03000000 0x4 0x00000000 0x4 0x00000000 0x3 0x00000000>; + bus-range = <0x00 0xff>; + + dma-coherent; + + linux,pci-domain = <0>; + + msi-map = <0x0 &gic_its 0x1400 0x1>, + <0x100 &gic_its 0x1401 0x1>; + msi-map-mask = <0xff00>; + + num-lanes = <2>; + + 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>, + <&gcc GCC_DDRSS_PCIE_SF_QTB_CLK>, + <&gcc GCC_AGGRE_NOC_PCIE_AXI_CLK>, + <&gcc GCC_CNOC_PCIE_SF_AXI_CLK>; + clock-names = "aux", + "cfg", + "bus_master", + "bus_slave", + "slave_q2a", + "ddrss_sf_tbu", + "noc_aggr", + "cnoc_sf_axi"; + + interconnects = <&pcie_noc MASTER_PCIE_0 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS + &cnoc_main SLAVE_PCIE_0 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "pcie-mem", + "cpu-pcie"; + + iommu-map = <0x0 &apps_smmu 0x1400 0x1>, + <0x100 &apps_smmu 0x1401 0x1>; + + resets = <&gcc GCC_PCIE_0_BCR>; + reset-names = "pci"; + + power-domains = <&gcc GCC_PCIE_0_GDSC>; + + operating-points-v2 = <&pcie0_opp_table>; + + status = "disabled"; + + pcie0_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 1 x2 and GEN 2 x1 */ + opp-5000000 { + opp-hz = /bits/ 64 <5000000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <500000 1>; + }; + + /* GEN 2 x2 */ + opp-10000000 { + opp-hz = /bits/ 64 <10000000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <1000000 1>; + }; + + /* GEN 3 x1 */ + opp-8000000 { + opp-hz = /bits/ 64 <8000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <984500 1>; + }; + + /* GEN 3 x2 */ + opp-16000000 { + opp-hz = /bits/ 64 <16000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <1969000 1>; + }; + + }; + + pcieport0: pcie@0 { + device_type = "pci"; + reg = <0x0 0x0 0x0 0x0 0x0>; + bus-range = <0x01 0xff>; + + #address-cells = <3>; + #size-cells = <2>; + ranges; + phys = <&pcie0_phy>; + }; + }; + + pcie0_phy: phy@1c06000 { + compatible = "qcom,sm8750-qmp-gen3x2-pcie-phy"; + reg = <0 0x01c06000 0 0x2000>; + + clocks = <&gcc GCC_PCIE_0_AUX_CLK>, + <&gcc GCC_PCIE_0_CFG_AHB_CLK>, + <&tcsrcc TCSR_PCIE_0_CLKREF_EN>, + <&gcc GCC_PCIE_0_PHY_RCHNG_CLK>, + <&gcc GCC_PCIE_0_PIPE_CLK>; + clock-names = "aux", + "cfg_ahb", + "ref", + "rchng", + "pipe"; + + assigned-clocks = <&gcc GCC_PCIE_0_PHY_RCHNG_CLK>; + assigned-clock-rates = <100000000>; + + resets = <&gcc GCC_PCIE_0_PHY_BCR>; + reset-names = "phy"; + + power-domains = <&gcc GCC_PCIE_0_PHY_GDSC>; + + #clock-cells = <0>; + clock-output-names = "pcie0_pipe_clk"; + + #phy-cells = <0>; + + status = "disabled"; + }; + ufs_mem_phy: phy@1d80000 { compatible = "qcom,sm8750-qmp-ufs-phy"; reg = <0x0 0x01d80000 0x0 0x2000>;Signature · 2 lines
-- 2.34.1
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
Quoted 5 lines · Bjorn Andersson
Quoted 3 lines · Krishna Chaitanya Chundru
Add PCIe controller and PHY nodes which supports data rates of 8GT/s and x2 lane.
Quoted 7 lines
I tried to boot the upstream kernel (next-20250925 defconfig) on my Pakala MTP with latest LA1.0 META and unless I disable &pcie0 the device is crashing during boot as PCIe is being probed.
Is this a known problem? Is there any workaround/changes in flight that I'm missing?
The only required change for this is the driver change in this series [3/3] PCI: qcom: Restrict port parsing only to pci child nodes
- Krishna Chaitanya.
Quoted 210 lines
Regards,
BjornQuoted 207 lines
Signed-off-by Krishna Chaitanya Chundru <[email protected]>--- arch/arm64/boot/dts/qcom/sm8750.dtsi | 180 ++++++++++++++++++++++++++++++++++- 1 file changed, 179 insertions(+), 1 deletion(-)arch/arm64/boot/dts/qcom/sm8750.dtsi +179
-1@@ -631,7 +631,7 @@ gcc: clock-controller@100000 { clocks = <&bi_tcxo_div2>, <0>, <&sleep_clk>, - <0>, + <&pcie0_phy>, <0>, <0>, <0>,@@ -3304,6 +3304,184 @@ gic_its: msi-controller@16040000 { }; }; + pcie0: pcie@1c00000 { + device_type = "pci"; + compatible = "qcom,pcie-sm8750", "qcom,pcie-sm8550"; + reg = <0x0 0x01c00000 0x0 0x3000>, + <0x0 0x40000000 0x0 0xf1d>, + <0x0 0x40000f20 0x0 0xa8>, + <0x0 0x40001000 0x0 0x1000>, + <0x0 0x40100000 0x0 0x100000>, + <0x0 0x01C03000 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 0x23d00000>, + <0x03000000 0x4 0x00000000 0x4 0x00000000 0x3 0x00000000>; + bus-range = <0x00 0xff>; + + dma-coherent; + + linux,pci-domain = <0>; + + msi-map = <0x0 &gic_its 0x1400 0x1>, + <0x100 &gic_its 0x1401 0x1>; + msi-map-mask = <0xff00>; + + num-lanes = <2>; + + 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>, + <&gcc GCC_DDRSS_PCIE_SF_QTB_CLK>, + <&gcc GCC_AGGRE_NOC_PCIE_AXI_CLK>, + <&gcc GCC_CNOC_PCIE_SF_AXI_CLK>; + clock-names = "aux", + "cfg", + "bus_master", + "bus_slave", + "slave_q2a", + "ddrss_sf_tbu", + "noc_aggr", + "cnoc_sf_axi"; + + interconnects = <&pcie_noc MASTER_PCIE_0 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS + &cnoc_main SLAVE_PCIE_0 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "pcie-mem", + "cpu-pcie"; + + iommu-map = <0x0 &apps_smmu 0x1400 0x1>, + <0x100 &apps_smmu 0x1401 0x1>; + + resets = <&gcc GCC_PCIE_0_BCR>; + reset-names = "pci"; + + power-domains = <&gcc GCC_PCIE_0_GDSC>; + + operating-points-v2 = <&pcie0_opp_table>; + + status = "disabled"; + + pcie0_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 1 x2 and GEN 2 x1 */ + opp-5000000 { + opp-hz = /bits/ 64 <5000000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <500000 1>; + }; + + /* GEN 2 x2 */ + opp-10000000 { + opp-hz = /bits/ 64 <10000000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <1000000 1>; + }; + + /* GEN 3 x1 */ + opp-8000000 { + opp-hz = /bits/ 64 <8000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <984500 1>; + }; + + /* GEN 3 x2 */ + opp-16000000 { + opp-hz = /bits/ 64 <16000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <1969000 1>; + }; + + }; + + pcieport0: pcie@0 { + device_type = "pci"; + reg = <0x0 0x0 0x0 0x0 0x0>; + bus-range = <0x01 0xff>; + + #address-cells = <3>; + #size-cells = <2>; + ranges; + phys = <&pcie0_phy>; + }; + }; + + pcie0_phy: phy@1c06000 { + compatible = "qcom,sm8750-qmp-gen3x2-pcie-phy"; + reg = <0 0x01c06000 0 0x2000>; + + clocks = <&gcc GCC_PCIE_0_AUX_CLK>, + <&gcc GCC_PCIE_0_CFG_AHB_CLK>, + <&tcsrcc TCSR_PCIE_0_CLKREF_EN>, + <&gcc GCC_PCIE_0_PHY_RCHNG_CLK>, + <&gcc GCC_PCIE_0_PIPE_CLK>; + clock-names = "aux", + "cfg_ahb", + "ref", + "rchng", + "pipe"; + + assigned-clocks = <&gcc GCC_PCIE_0_PHY_RCHNG_CLK>; + assigned-clock-rates = <100000000>; + + resets = <&gcc GCC_PCIE_0_PHY_BCR>; + reset-names = "phy"; + + power-domains = <&gcc GCC_PCIE_0_PHY_GDSC>; + + #clock-cells = <0>; + clock-output-names = "pcie0_pipe_clk"; + + #phy-cells = <0>; + + status = "disabled"; + }; + ufs_mem_phy: phy@1d80000 { compatible = "qcom,sm8750-qmp-ufs-phy"; reg = <0x0 0x01d80000 0x0 0x2000>;Signature · 2 lines
-- 2.34.1
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
In reply to Bjorn AnderssonQuoted 11 lines · Bjorn Andersson
Quoted 3 lines · Krishna Chaitanya Chundru
Add PCIe controller and PHY nodes which supports data rates of 8GT/s and x2 lane.
I tried to boot the upstream kernel (next-20250925 defconfig) on my Pakala MTP with latest LA1.0 META and unless I disable &pcie0 the device is crashing during boot as PCIe is being probed.
Is this a known problem? Is there any workaround/changes in flight that I'm missing?
Would enabling USB fix it? I think we went over it with some other IP block due to funny interconnect dependencies, but I'm surprised the series for USB is still not fully brought to completion..
Konrad
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
In reply to Bjorn AnderssonQuoted 5 lines · Bjorn Andersson
Quoted 3 lines · Krishna Chaitanya Chundru
Add PCIe controller and PHY nodes which supports data rates of 8GT/s and x2 lane.
Quoted 7 lines
I tried to boot the upstream kernel (next-20250925 defconfig) on my Pakala MTP with latest LA1.0 META and unless I disable &pcie0 the device is crashing during boot as PCIe is being probed.
Is this a known problem? Is there any workaround/changes in flight that I'm missing?
Hi Bjorn,
we need this fix for the PCIe to work properly. Please try it once.
https://lore.kernel.org/all/[email protected]/
- Krishna Chaitanya.
Quoted 210 lines
Regards,
BjornQuoted 207 lines
Signed-off-by Krishna Chaitanya Chundru <[email protected]>--- arch/arm64/boot/dts/qcom/sm8750.dtsi | 180 ++++++++++++++++++++++++++++++++++- 1 file changed, 179 insertions(+), 1 deletion(-)arch/arm64/boot/dts/qcom/sm8750.dtsi +179
-1@@ -631,7 +631,7 @@ gcc: clock-controller@100000 { clocks = <&bi_tcxo_div2>, <0>, <&sleep_clk>, - <0>, + <&pcie0_phy>, <0>, <0>, <0>,@@ -3304,6 +3304,184 @@ gic_its: msi-controller@16040000 { }; }; + pcie0: pcie@1c00000 { + device_type = "pci"; + compatible = "qcom,pcie-sm8750", "qcom,pcie-sm8550"; + reg = <0x0 0x01c00000 0x0 0x3000>, + <0x0 0x40000000 0x0 0xf1d>, + <0x0 0x40000f20 0x0 0xa8>, + <0x0 0x40001000 0x0 0x1000>, + <0x0 0x40100000 0x0 0x100000>, + <0x0 0x01C03000 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 0x23d00000>, + <0x03000000 0x4 0x00000000 0x4 0x00000000 0x3 0x00000000>; + bus-range = <0x00 0xff>; + + dma-coherent; + + linux,pci-domain = <0>; + + msi-map = <0x0 &gic_its 0x1400 0x1>, + <0x100 &gic_its 0x1401 0x1>; + msi-map-mask = <0xff00>; + + num-lanes = <2>; + + 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>, + <&gcc GCC_DDRSS_PCIE_SF_QTB_CLK>, + <&gcc GCC_AGGRE_NOC_PCIE_AXI_CLK>, + <&gcc GCC_CNOC_PCIE_SF_AXI_CLK>; + clock-names = "aux", + "cfg", + "bus_master", + "bus_slave", + "slave_q2a", + "ddrss_sf_tbu", + "noc_aggr", + "cnoc_sf_axi"; + + interconnects = <&pcie_noc MASTER_PCIE_0 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS + &cnoc_main SLAVE_PCIE_0 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "pcie-mem", + "cpu-pcie"; + + iommu-map = <0x0 &apps_smmu 0x1400 0x1>, + <0x100 &apps_smmu 0x1401 0x1>; + + resets = <&gcc GCC_PCIE_0_BCR>; + reset-names = "pci"; + + power-domains = <&gcc GCC_PCIE_0_GDSC>; + + operating-points-v2 = <&pcie0_opp_table>; + + status = "disabled"; + + pcie0_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 1 x2 and GEN 2 x1 */ + opp-5000000 { + opp-hz = /bits/ 64 <5000000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <500000 1>; + }; + + /* GEN 2 x2 */ + opp-10000000 { + opp-hz = /bits/ 64 <10000000>; + required-opps = <&rpmhpd_opp_low_svs>; + opp-peak-kBps = <1000000 1>; + }; + + /* GEN 3 x1 */ + opp-8000000 { + opp-hz = /bits/ 64 <8000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <984500 1>; + }; + + /* GEN 3 x2 */ + opp-16000000 { + opp-hz = /bits/ 64 <16000000>; + required-opps = <&rpmhpd_opp_nom>; + opp-peak-kBps = <1969000 1>; + }; + + }; + + pcieport0: pcie@0 { + device_type = "pci"; + reg = <0x0 0x0 0x0 0x0 0x0>; + bus-range = <0x01 0xff>; + + #address-cells = <3>; + #size-cells = <2>; + ranges; + phys = <&pcie0_phy>; + }; + }; + + pcie0_phy: phy@1c06000 { + compatible = "qcom,sm8750-qmp-gen3x2-pcie-phy"; + reg = <0 0x01c06000 0 0x2000>; + + clocks = <&gcc GCC_PCIE_0_AUX_CLK>, + <&gcc GCC_PCIE_0_CFG_AHB_CLK>, + <&tcsrcc TCSR_PCIE_0_CLKREF_EN>, + <&gcc GCC_PCIE_0_PHY_RCHNG_CLK>, + <&gcc GCC_PCIE_0_PIPE_CLK>; + clock-names = "aux", + "cfg_ahb", + "ref", + "rchng", + "pipe"; + + assigned-clocks = <&gcc GCC_PCIE_0_PHY_RCHNG_CLK>; + assigned-clock-rates = <100000000>; + + resets = <&gcc GCC_PCIE_0_PHY_BCR>; + reset-names = "phy"; + + power-domains = <&gcc GCC_PCIE_0_PHY_GDSC>; + + #clock-cells = <0>; + clock-output-names = "pcie0_pipe_clk"; + + #phy-cells = <0>; + + status = "disabled"; + }; + ufs_mem_phy: phy@1d80000 { compatible = "qcom,sm8750-qmp-ufs-phy"; reg = <0x0 0x01d80000 0x0 0x2000>;Signature · 2 lines
-- 2.34.1
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
Quoted 12 lines · Krishna Chaitanya Chundru
Quoted 9 lines · Bjorn Andersson
Quoted 3 lines · Krishna Chaitanya Chundru
Add PCIe controller and PHY nodes which supports data rates of 8GT/s and x2 lane.
I tried to boot the upstream kernel (next-20250925 defconfig) on my Pakala MTP with latest LA1.0 META and unless I disable &pcie0 the device is crashing during boot as PCIe is being probed.
Quoted 7 lines
Quoted 3 lines
Is this a known problem? Is there any workaround/changes in flight that I'm missing?
Hi Bjorn,
we need this fix for the PCIe to work properly. Please try it once.
https://lore.kernel.org/all/[email protected]/
This surely shouldn't cause/fix any issues, no?
Konrad
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
Quoted 16 lines · Konrad Dybcio
Quoted 15 lines · Krishna Chaitanya Chundru
Quoted 12 lines · Bjorn Andersson
Quoted 3 lines · Krishna Chaitanya Chundru
Add PCIe controller and PHY nodes which supports data rates of 8GT/s and x2 lane.
I tried to boot the upstream kernel (next-20250925 defconfig) on my Pakala MTP with latest LA1.0 META and unless I disable &pcie0 the device is crashing during boot as PCIe is being probed.
Is this a known problem? Is there any workaround/changes in flight that I'm missing?
Quoted 6 lines
Quoted 4 lines
Hi Bjorn,
we need this fix for the PCIe to work properly. Please try it once.
https://lore.kernel.org/all/[email protected]/This surely shouldn't cause/fix any issues, no?
Apparently this is a real fix, because sm8750.dtsi defines the PCIe PHY under a port node, while the MTP DT assigns perst-gpios to the RC node, which the legacy binding ("everything under the RC node") parsing code can't cope with (please mention that in the commit message, Krishna)
And I couldn't come up with a way to describe "either both are required if any is present under the RC node or none are allowed" in yaml
Konrad
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
Quoted 24 lines · Konrad Dybcio
Quoted 16 lines · Konrad Dybcio
Quoted 15 lines · Krishna Chaitanya Chundru
Quoted 12 lines · Bjorn Andersson
Quoted 3 lines · Krishna Chaitanya Chundru
Add PCIe controller and PHY nodes which supports data rates of 8GT/s and x2 lane.
I tried to boot the upstream kernel (next-20250925 defconfig) on my Pakala MTP with latest LA1.0 META and unless I disable &pcie0 the device is crashing during boot as PCIe is being probed.
Is this a known problem? Is there any workaround/changes in flight that I'm missing?
Quoted 6 lines
Quoted 4 lines
Hi Bjorn,
we need this fix for the PCIe to work properly. Please try it once.
https://lore.kernel.org/all/[email protected]/This surely shouldn't cause/fix any issues, no?
Quoted 7 lines
Apparently this is a real fix, because
sm8750.dtsidefines the PCIe PHY under a port node, while the MTP DT assigns perst-gpios to the RC node, which the legacy binding ("everything under the RC node") parsing code can't cope with (please mention that in the commit message, Krishna)And I couldn't come up with a way to describe "either both are required if any is present under the RC node or none are allowed" in yaml
What about:
oneOf:
- required:
- foo
- bar
- properties:
foo: false
bar: false
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
Quoted 35 lines · Dmitry Baryshkov
Quoted 24 lines · Konrad Dybcio
Quoted 16 lines · Konrad Dybcio
Quoted 15 lines · Krishna Chaitanya Chundru
Quoted 12 lines · Bjorn Andersson
Quoted 3 lines · Krishna Chaitanya Chundru
Add PCIe controller and PHY nodes which supports data rates of 8GT/s and x2 lane.
I tried to boot the upstream kernel (next-20250925 defconfig) on my Pakala MTP with latest LA1.0 META and unless I disable &pcie0 the device is crashing during boot as PCIe is being probed.
Is this a known problem? Is there any workaround/changes in flight that I'm missing?
Quoted 6 lines
Quoted 4 lines
Hi Bjorn,
we need this fix for the PCIe to work properly. Please try it once.
https://lore.kernel.org/all/[email protected]/This surely shouldn't cause/fix any issues, no?
Quoted 7 lines
Apparently this is a real fix, because
sm8750.dtsidefines the PCIe PHY under a port node, while the MTP DT assigns perst-gpios to the RC node, which the legacy binding ("everything under the RC node") parsing code can't cope with (please mention that in the commit message, Krishna)And I couldn't come up with a way to describe "either both are required if any is present under the RC node or none are allowed" in yaml
What about:
Quoted 7 lines
oneOf:
- required:
- foo
- bar
- properties:
foo: false
bar: false
Oh yeah, this works.. would you mind submitting a patch like this, with a
# These properties must either both be under the RC node or both under the port node
or so?
Konrad>
Re: [PATCH v3 2/3] arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
Quoted 44 lines · Konrad Dybcio
Quoted 35 lines · Dmitry Baryshkov
Quoted 24 lines · Konrad Dybcio
Quoted 16 lines · Konrad Dybcio
Quoted 15 lines · Krishna Chaitanya Chundru
Quoted 12 lines · Bjorn Andersson
Quoted 3 lines · Krishna Chaitanya Chundru
Add PCIe controller and PHY nodes which supports data rates of 8GT/s and x2 lane.
I tried to boot the upstream kernel (next-20250925 defconfig) on my Pakala MTP with latest LA1.0 META and unless I disable &pcie0 the device is crashing during boot as PCIe is being probed.
Is this a known problem? Is there any workaround/changes in flight that I'm missing?
Quoted 6 lines
Quoted 4 lines
Hi Bjorn,
we need this fix for the PCIe to work properly. Please try it once.
https://lore.kernel.org/all/[email protected]/This surely shouldn't cause/fix any issues, no?
Quoted 7 lines
Apparently this is a real fix, because
sm8750.dtsidefines the PCIe PHY under a port node, while the MTP DT assigns perst-gpios to the RC node, which the legacy binding ("everything under the RC node") parsing code can't cope with (please mention that in the commit message, Krishna)And I couldn't come up with a way to describe "either both are required if any is present under the RC node or none are allowed" in yaml
What about:
Quoted 7 lines
oneOf:
- required:
- foo
- bar
- properties:
foo: false
bar: false
Quoted 1 line
Oh yeah, this works.. would you mind submitting a patch like this, with a
I'd prefer it it comes from somebody who is actually working on PCIe so that the explanations are not ridiculous. Mani?
Quoted 6 lines
# These properties must either both be under the RC node or both under the port node
or so?
Konrad>
Signature · 2 lines
With best wishes Dmitry
Manivannan Sadhasivam
maintainerRe: [PATCH v3 2/3] arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
Quoted 45 lines · Dmitry Baryshkov
Quoted 44 lines · Konrad Dybcio
Quoted 42 lines · Dmitry Baryshkov
Quoted 24 lines · Konrad Dybcio
Quoted 16 lines · Konrad Dybcio
Quoted 15 lines · Krishna Chaitanya Chundru
Quoted 12 lines · Bjorn Andersson
Quoted 3 lines · Krishna Chaitanya Chundru
Add PCIe controller and PHY nodes which supports data rates of 8GT/s and x2 lane.
I tried to boot the upstream kernel (next-20250925 defconfig) on my Pakala MTP with latest LA1.0 META and unless I disable &pcie0 the device is crashing during boot as PCIe is being probed.
Is this a known problem? Is there any workaround/changes in flight that I'm missing?
Quoted 6 lines
Quoted 4 lines
Hi Bjorn,
we need this fix for the PCIe to work properly. Please try it once.
https://lore.kernel.org/all/[email protected]/This surely shouldn't cause/fix any issues, no?
Quoted 7 lines
Apparently this is a real fix, because
sm8750.dtsidefines the PCIe PHY under a port node, while the MTP DT assigns perst-gpios to the RC node, which the legacy binding ("everything under the RC node") parsing code can't cope with (please mention that in the commit message, Krishna)And I couldn't come up with a way to describe "either both are required if any is present under the RC node or none are allowed" in yaml
What about:
oneOf:
- required:
- foo
- bar
- properties:
foo: false
bar: false
Quoted 5 lines
Quoted 1 line
Oh yeah, this works.. would you mind submitting a patch like this, with a
I'd prefer it it comes from somebody who is actually working on PCIe so that the explanations are not ridiculous. Mani?
Will do.
- Mani
Signature · 1 line
மணிவண்ணன் சதாசிவம்
PATCH v3 3/3 PCI: qcom: Restrict port parsing only to pci child nodes
In reply to Krishna Chaitanya ChundruThe qcom_pcie_parse_ports() function currently iterates over all available child nodes of the PCIe controller's device tree node. This includes unrelated nodes such as OPP (Operating Performance Points) nodes, which do not contain the expected 'reset' and 'phy' properties. As a result, parsing fails and the driver falls back to the legacy method of parsing the controller node directly. However, this fallback also fails when properties are shifted to the root port, leading to probe failure.
Fix this by restricting the parsing logic to only consider child nodes with device_type = "pci", which is the expected and required property for PCIe ports as defined in pci-bus-common.yaml.
--- drivers/pci/controller/dwc/pcie-qcom.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/pci/controller/dwc/pcie-qcom.c +2 -0
@@ -1740,6 +1740,8 @@ static int qcom_pcie_parse_ports(struct qcom_pcie *pcie)int ret = -ENOENT ;for_each_available_child_of_node_scoped (dev->of_node, of_port) { +if (!of_node_is_type (of_port,"pci" )) +continue ; ret =qcom_pcie_parse_port (pcie, of_port);if (ret) goto err_port_del;
Signature · 1 line
2.34.1
Rob Herring (Arm)
maintainerQuoted 39 lines · Krishna Chaitanya Chundru
Describe PCIe controller and PHY. Also add required system resources like regulators, clocks, interrupts and registers configuration for PCIe.
The
qcom_pcie_parse_ports()function currently iterates over all available child nodes of the PCIe controller's device tree node. This includes unrelated nodes such as OPP (Operating Performance Points) nodes, which do not contain the expected 'reset' and 'phy' properties. As a result, parsing fails and the driver falls back to the legacy method of parsing the controller node directly. However, this fallback also fails when properties are shifted to the root port, leading to probe failure.Fix this by restricting the parsing logic to only consider child nodes with
device_type= "pci", which is the expected and required property for PCIe ports as defined inpci-bus-common.yaml.Signed-off-by Krishna Chaitanya Chundru <[email protected]>---
Changes in v3:
- Usedevice_typeto find pci node or not instead of node name.
- Link to v2: https://lore.kernel.org/r/[email protected]Changes in v2:
- Follow thex1e80100.dtsipcie node description (Konrad).
- define phy & perst, wake in port node as per latest bindings.
- Add check in the driver to parse only pcie child nodes.
- Added acked by tag(Rob).
- Removed dtbinding and phy driver patches as they got applied.
- Link to v1: https://lore.kernel.org/r/[email protected]---
Krishna Chaitanya Chundru (3):
dt-bindings: PCI: qcom,pcie-sm8550: Add SM8750 compatible
arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
PCI: qcom: Restrict port parsing only to pci child nodes.../devicetree/bindings/pci/qcom,pcie-sm8550.yaml | 1 + arch/arm64/boot/dts/qcom/sm8750.dtsi | 180 ++++++++++++++++++++- drivers/pci/controller/dwc/pcie-qcom.c | 2 + 3 files changed, 182 insertions(+), 1 deletion(-)
Quoted 10 lines
---
base-commit:b6add54ba61890450fa54fd9327d10fdfd653439
change-id: 20250809-pakala-25a7c1ddba85Best regards,
--
Krishna Chaitanya Chundru <[email protected]>
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: using specified base-commit b6add54ba61890450fa54fd9327d10fdfd653439
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 [email protected]:
arch/arm64/boot/dts/qcom/sm8750-mtp.dtb: /soc@0/phy@1c06000: failed to match any schema with compatible: ['qcom,sm8750-qmp-gen3x2-pcie-phy'] arch/arm64/boot/dts/qcom/sm8750-qrd.dtb: /soc@0/phy@1c06000: failed to match any schema with compatible: ['qcom,sm8750-qmp-gen3x2-pcie-phy']
Quoted 29 lines · Krishna Chaitanya Chundru
Describe PCIe controller and PHY. Also add required system resources like regulators, clocks, interrupts and registers configuration for PCIe.
The
qcom_pcie_parse_ports()function currently iterates over all available child nodes of the PCIe controller's device tree node. This includes unrelated nodes such as OPP (Operating Performance Points) nodes, which do not contain the expected 'reset' and 'phy' properties. As a result, parsing fails and the driver falls back to the legacy method of parsing the controller node directly. However, this fallback also fails when properties are shifted to the root port, leading to probe failure.Fix this by restricting the parsing logic to only consider child nodes with
device_type= "pci", which is the expected and required property for PCIe ports as defined inpci-bus-common.yaml.Signed-off-by Krishna Chaitanya Chundru <[email protected]>---
Changes in v3:
- Usedevice_typeto find pci node or not instead of node name.
- Link to v2: https://lore.kernel.org/r/[email protected]Changes in v2:
- Follow thex1e80100.dtsipcie node description (Konrad).
- define phy & perst, wake in port node as per latest bindings.
- Add check in the driver to parse only pcie child nodes.
- Added acked by tag(Rob).
- Removed dtbinding and phy driver patches as they got applied.
- Link to v1: https://lore.kernel.org/r/[email protected]
Quoted 5 lines
---
Krishna Chaitanya Chundru (3):
dt-bindings: PCI: qcom,pcie-sm8550: Add SM8750 compatible
arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
PCI: qcom: Restrict port parsing only to pci child nodes
Applied patches 1 and 3, thanks!
- Mani
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Re: (subset) [PATCH v3 0/3] arm64: dts: qcom: Add PCIe Support for sm8750
In reply to Krishna Chaitanya ChundruQuoted 11 lines · Krishna Chaitanya Chundru
Describe PCIe controller and PHY. Also add required system resources like regulators, clocks, interrupts and registers configuration for PCIe.
The
qcom_pcie_parse_ports()function currently iterates over all available child nodes of the PCIe controller's device tree node. This includes unrelated nodes such as OPP (Operating Performance Points) nodes, which do not contain the expected 'reset' and 'phy' properties. As a result, parsing fails and the driver falls back to the legacy method of parsing the controller node directly. However, this fallback also fails when properties are shifted to the root port, leading to probe failure.
Quoted 1 line
[...]
Applied, thanks!
[2/3] arm64: dts: qcom: sm8750: Add PCIe PHY and controller node
commit: 19f1395333f80479a3a5fce29e4c7a8255322a9c
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>