1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/pci/qcom,pcie-sm8250.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm SM8250 PCI Express Root Complex
10 - Bjorn Andersson <andersson@kernel.org>
11 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
14 Qualcomm SM8250 SoC PCIe root complex controller is based on the Synopsys
19 const: qcom,pcie-sm8250
28 - const: parf # Qualcomm specific registers
29 - const: dbi # DesignWare PCIe registers
30 - const: elbi # External local bus interface registers
31 - const: atu # ATU address space
32 - const: config # PCIe configuration space
33 - const: mhi # MHI registers
40 # Unfortunately the "optional" ref clock is used in the middle of the list
43 - const: pipe # PIPE clock
44 - const: aux # Auxiliary clock
45 - const: cfg # Configuration clock
46 - const: bus_master # Master AXI clock
47 - const: bus_slave # Slave AXI clock
48 - const: slave_q2a # Slave Q2A clock
49 - const: ref # REFERENCE clock
50 - const: tbu # PCIe TBU clock
51 - const: ddrss_sf_tbu # PCIe SF TBU clock
53 - const: pipe # PIPE clock
54 - const: aux # Auxiliary clock
55 - const: cfg # Configuration clock
56 - const: bus_master # Master AXI clock
57 - const: bus_slave # Slave AXI clock
58 - const: slave_q2a # Slave Q2A clock
59 - const: tbu # PCIe TBU clock
60 - const: ddrss_sf_tbu # PCIe SF TBU clock
85 - $ref: qcom,pcie-common.yaml#
87 unevaluatedProperties: false
91 #include <dt-bindings/clock/qcom,gcc-sm8250.h>
92 #include <dt-bindings/gpio/gpio.h>
93 #include <dt-bindings/interconnect/qcom,sm8250.h>
94 #include <dt-bindings/interrupt-controller/arm-gic.h>
101 compatible = "qcom,pcie-sm8250";
102 reg = <0 0x01c00000 0 0x3000>,
103 <0 0x60000000 0 0xf1d>,
104 <0 0x60000f20 0 0xa8>,
105 <0 0x60001000 0 0x1000>,
106 <0 0x60100000 0 0x100000>,
107 <0 0x01c03000 0 0x1000>;
108 reg-names = "parf", "dbi", "elbi", "atu", "config", "mhi";
109 ranges = <0x01000000 0x0 0x00000000 0x0 0x60200000 0x0 0x100000>,
110 <0x02000000 0x0 0x60300000 0x0 0x60300000 0x0 0x3d00000>;
112 bus-range = <0x00 0xff>;
114 linux,pci-domain = <0>;
117 #address-cells = <3>;
120 clocks = <&gcc GCC_PCIE_0_PIPE_CLK>,
121 <&gcc GCC_PCIE_0_AUX_CLK>,
122 <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
123 <&gcc GCC_PCIE_0_MSTR_AXI_CLK>,
124 <&gcc GCC_PCIE_0_SLV_AXI_CLK>,
125 <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>,
126 <&gcc GCC_AGGRE_NOC_PCIE_TBU_CLK>,
127 <&gcc GCC_DDRSS_PCIE_SF_TBU_CLK>;
128 clock-names = "pipe",
139 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
140 <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
141 <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
142 <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
143 <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
144 <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
145 <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
146 <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
147 interrupt-names = "msi0", "msi1", "msi2", "msi3",
148 "msi4", "msi5", "msi6", "msi7";
149 #interrupt-cells = <1>;
150 interrupt-map-mask = <0 0 0 0x7>;
151 interrupt-map = <0 0 0 1 &intc 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
152 <0 0 0 2 &intc 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
153 <0 0 0 3 &intc 0 151 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
154 <0 0 0 4 &intc 0 152 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
156 iommu-map = <0x0 &apps_smmu 0x1c00 0x1>,
157 <0x100 &apps_smmu 0x1c01 0x1>;
160 phy-names = "pciephy";
162 pinctrl-0 = <&pcie0_default_state>;
163 pinctrl-names = "default";
165 power-domains = <&gcc PCIE_0_GDSC>;
167 resets = <&gcc GCC_PCIE_0_BCR>;
170 perst-gpios = <&tlmm 79 GPIO_ACTIVE_LOW>;
171 wake-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>;