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