1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/pci/qcom,pcie-sm8550.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Qualcomm SM8550 PCI Express Root Complex 8 9maintainers: 10 - Bjorn Andersson <[email protected]> 11 - Manivannan Sadhasivam <[email protected]> 12 13description: 14 Qualcomm SM8550 SoC (and compatible) PCIe root complex controller is based on 15 the Synopsys DesignWare PCIe IP. 16 17properties: 18 compatible: 19 oneOf: 20 - const: qcom,pcie-sm8550 21 - items: 22 - enum: 23 - qcom,sar2130p-pcie 24 - qcom,pcie-sm8650 25 - const: qcom,pcie-sm8550 26 27 reg: 28 minItems: 5 29 maxItems: 6 30 31 reg-names: 32 minItems: 5 33 items: 34 - const: parf # Qualcomm specific registers 35 - const: dbi # DesignWare PCIe registers 36 - const: elbi # External local bus interface registers 37 - const: atu # ATU address space 38 - const: config # PCIe configuration space 39 - const: mhi # MHI registers 40 41 clocks: 42 minItems: 7 43 maxItems: 9 44 45 clock-names: 46 minItems: 7 47 items: 48 - const: aux # Auxiliary clock 49 - const: cfg # Configuration clock 50 - const: bus_master # Master AXI clock 51 - const: bus_slave # Slave AXI clock 52 - const: slave_q2a # Slave Q2A clock 53 - const: ddrss_sf_tbu # PCIe SF TBU clock 54 - const: noc_aggr # Aggre NoC PCIe AXI clock 55 - const: cnoc_sf_axi # Config NoC PCIe1 AXI clock 56 - const: qmip_pcie_ahb # QMIP PCIe AHB clock 57 58 interrupts: 59 minItems: 8 60 maxItems: 9 61 62 interrupt-names: 63 minItems: 8 64 items: 65 - const: msi0 66 - const: msi1 67 - const: msi2 68 - const: msi3 69 - const: msi4 70 - const: msi5 71 - const: msi6 72 - const: msi7 73 - const: global 74 75 resets: 76 minItems: 1 77 maxItems: 2 78 79 reset-names: 80 minItems: 1 81 items: 82 - const: pci # PCIe core reset 83 - const: link_down # PCIe link down reset 84 85allOf: 86 - $ref: qcom,pcie-common.yaml# 87 88unevaluatedProperties: false 89 90examples: 91 - | 92 #include <dt-bindings/clock/qcom,sm8550-gcc.h> 93 #include <dt-bindings/gpio/gpio.h> 94 #include <dt-bindings/interconnect/qcom,sm8550-rpmh.h> 95 #include <dt-bindings/interrupt-controller/arm-gic.h> 96 97 soc { 98 #address-cells = <2>; 99 #size-cells = <2>; 100 101 pcie@1c00000 { 102 compatible = "qcom,pcie-sm8550"; 103 reg = <0 0x01c00000 0 0x3000>, 104 <0 0x60000000 0 0xf1d>, 105 <0 0x60000f20 0 0xa8>, 106 <0 0x60001000 0 0x1000>, 107 <0 0x60100000 0 0x100000>; 108 reg-names = "parf", "dbi", "elbi", "atu", "config"; 109 ranges = <0x01000000 0x0 0x00000000 0x0 0x60200000 0x0 0x100000>, 110 <0x02000000 0x0 0x60300000 0x0 0x60300000 0x0 0x3d00000>; 111 112 bus-range = <0x00 0xff>; 113 device_type = "pci"; 114 linux,pci-domain = <0>; 115 num-lanes = <2>; 116 117 #address-cells = <3>; 118 #size-cells = <2>; 119 120 clocks = <&gcc GCC_PCIE_0_AUX_CLK>, 121 <&gcc GCC_PCIE_0_CFG_AHB_CLK>, 122 <&gcc GCC_PCIE_0_MSTR_AXI_CLK>, 123 <&gcc GCC_PCIE_0_SLV_AXI_CLK>, 124 <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>, 125 <&gcc GCC_DDRSS_PCIE_SF_QTB_CLK>, 126 <&gcc GCC_AGGRE_NOC_PCIE_AXI_CLK>; 127 clock-names = "aux", 128 "cfg", 129 "bus_master", 130 "bus_slave", 131 "slave_q2a", 132 "ddrss_sf_tbu", 133 "noc_aggr"; 134 135 dma-coherent; 136 137 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>, 138 <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>, 139 <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>, 140 <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>, 141 <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>, 142 <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>, 143 <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>, 144 <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>, 145 <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>; 146 interrupt-names = "msi0", "msi1", "msi2", "msi3", 147 "msi4", "msi5", "msi6", "msi7", "global"; 148 #interrupt-cells = <1>; 149 interrupt-map-mask = <0 0 0 0x7>; 150 interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ 151 <0 0 0 2 &intc 0 0 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ 152 <0 0 0 3 &intc 0 0 0 151 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ 153 <0 0 0 4 &intc 0 0 0 152 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ 154 155 interconnects = <&pcie_noc MASTER_PCIE_0 0 &mc_virt SLAVE_EBI1 0>, 156 <&gem_noc MASTER_APPSS_PROC 0 &cnoc_main SLAVE_PCIE_0 0>; 157 interconnect-names = "pcie-mem", "cpu-pcie"; 158 159 iommu-map = <0x0 &apps_smmu 0x1400 0x1>, 160 <0x100 &apps_smmu 0x1401 0x1>; 161 162 phys = <&pcie0_phy>; 163 phy-names = "pciephy"; 164 165 pinctrl-0 = <&pcie0_default_state>; 166 pinctrl-names = "default"; 167 168 power-domains = <&gcc PCIE_0_GDSC>; 169 170 resets = <&gcc GCC_PCIE_0_BCR>; 171 reset-names = "pci"; 172 173 perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; 174 wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; 175 }; 176 }; 177