101950c46SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 201950c46SEmmanuel Vadot%YAML 1.2 301950c46SEmmanuel Vadot--- 401950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/pci/qcom,pcie-sc7280.yaml# 501950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 601950c46SEmmanuel Vadot 701950c46SEmmanuel Vadottitle: Qualcomm SC7280 PCI Express Root Complex 801950c46SEmmanuel Vadot 901950c46SEmmanuel Vadotmaintainers: 1001950c46SEmmanuel Vadot - Bjorn Andersson <andersson@kernel.org> 1101950c46SEmmanuel Vadot - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 1201950c46SEmmanuel Vadot 1301950c46SEmmanuel Vadotdescription: 1401950c46SEmmanuel Vadot Qualcomm SC7280 SoC PCIe root complex controller is based on the Synopsys 1501950c46SEmmanuel Vadot DesignWare PCIe IP. 1601950c46SEmmanuel Vadot 1701950c46SEmmanuel Vadotproperties: 1801950c46SEmmanuel Vadot compatible: 1901950c46SEmmanuel Vadot const: qcom,pcie-sc7280 2001950c46SEmmanuel Vadot 2101950c46SEmmanuel Vadot reg: 2201950c46SEmmanuel Vadot minItems: 5 2301950c46SEmmanuel Vadot maxItems: 6 2401950c46SEmmanuel Vadot 2501950c46SEmmanuel Vadot reg-names: 2601950c46SEmmanuel Vadot minItems: 5 2701950c46SEmmanuel Vadot items: 2801950c46SEmmanuel Vadot - const: parf # Qualcomm specific registers 2901950c46SEmmanuel Vadot - const: dbi # DesignWare PCIe registers 3001950c46SEmmanuel Vadot - const: elbi # External local bus interface registers 3101950c46SEmmanuel Vadot - const: atu # ATU address space 3201950c46SEmmanuel Vadot - const: config # PCIe configuration space 3301950c46SEmmanuel Vadot - const: mhi # MHI registers 3401950c46SEmmanuel Vadot 3501950c46SEmmanuel Vadot clocks: 3601950c46SEmmanuel Vadot minItems: 13 3701950c46SEmmanuel Vadot maxItems: 13 3801950c46SEmmanuel Vadot 3901950c46SEmmanuel Vadot clock-names: 4001950c46SEmmanuel Vadot items: 4101950c46SEmmanuel Vadot - const: pipe # PIPE clock 4201950c46SEmmanuel Vadot - const: pipe_mux # PIPE MUX 4301950c46SEmmanuel Vadot - const: phy_pipe # PIPE output clock 4401950c46SEmmanuel Vadot - const: ref # REFERENCE clock 4501950c46SEmmanuel Vadot - const: aux # Auxiliary clock 4601950c46SEmmanuel Vadot - const: cfg # Configuration clock 4701950c46SEmmanuel Vadot - const: bus_master # Master AXI clock 4801950c46SEmmanuel Vadot - const: bus_slave # Slave AXI clock 4901950c46SEmmanuel Vadot - const: slave_q2a # Slave Q2A clock 5001950c46SEmmanuel Vadot - const: tbu # PCIe TBU clock 5101950c46SEmmanuel Vadot - const: ddrss_sf_tbu # PCIe SF TBU clock 5201950c46SEmmanuel Vadot - const: aggre0 # Aggre NoC PCIe CENTER SF AXI clock 5301950c46SEmmanuel Vadot - const: aggre1 # Aggre NoC PCIe1 AXI clock 5401950c46SEmmanuel Vadot 5501950c46SEmmanuel Vadot interrupts: 56*b2d2a78aSEmmanuel Vadot minItems: 8 57*b2d2a78aSEmmanuel Vadot maxItems: 8 5801950c46SEmmanuel Vadot 5901950c46SEmmanuel Vadot interrupt-names: 6001950c46SEmmanuel Vadot items: 61*b2d2a78aSEmmanuel Vadot - const: msi0 62*b2d2a78aSEmmanuel Vadot - const: msi1 63*b2d2a78aSEmmanuel Vadot - const: msi2 64*b2d2a78aSEmmanuel Vadot - const: msi3 65*b2d2a78aSEmmanuel Vadot - const: msi4 66*b2d2a78aSEmmanuel Vadot - const: msi5 67*b2d2a78aSEmmanuel Vadot - const: msi6 68*b2d2a78aSEmmanuel Vadot - const: msi7 6901950c46SEmmanuel Vadot 7001950c46SEmmanuel Vadot resets: 7101950c46SEmmanuel Vadot maxItems: 1 7201950c46SEmmanuel Vadot 7301950c46SEmmanuel Vadot reset-names: 7401950c46SEmmanuel Vadot items: 7501950c46SEmmanuel Vadot - const: pci 7601950c46SEmmanuel Vadot 7701950c46SEmmanuel VadotallOf: 7801950c46SEmmanuel Vadot - $ref: qcom,pcie-common.yaml# 7901950c46SEmmanuel Vadot 8001950c46SEmmanuel VadotunevaluatedProperties: false 8101950c46SEmmanuel Vadot 8201950c46SEmmanuel Vadotexamples: 8301950c46SEmmanuel Vadot - | 8401950c46SEmmanuel Vadot #include <dt-bindings/clock/qcom,gcc-sc7280.h> 8501950c46SEmmanuel Vadot #include <dt-bindings/clock/qcom,rpmh.h> 8601950c46SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 8701950c46SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 8801950c46SEmmanuel Vadot 8901950c46SEmmanuel Vadot soc { 9001950c46SEmmanuel Vadot #address-cells = <2>; 9101950c46SEmmanuel Vadot #size-cells = <2>; 9201950c46SEmmanuel Vadot 9301950c46SEmmanuel Vadot pcie@1c08000 { 9401950c46SEmmanuel Vadot compatible = "qcom,pcie-sc7280"; 9501950c46SEmmanuel Vadot reg = <0 0x01c08000 0 0x3000>, 9601950c46SEmmanuel Vadot <0 0x40000000 0 0xf1d>, 9701950c46SEmmanuel Vadot <0 0x40000f20 0 0xa8>, 9801950c46SEmmanuel Vadot <0 0x40001000 0 0x1000>, 9901950c46SEmmanuel Vadot <0 0x40100000 0 0x100000>; 10001950c46SEmmanuel Vadot reg-names = "parf", "dbi", "elbi", "atu", "config"; 10101950c46SEmmanuel Vadot ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>, 10201950c46SEmmanuel Vadot <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>; 10301950c46SEmmanuel Vadot 10401950c46SEmmanuel Vadot bus-range = <0x00 0xff>; 10501950c46SEmmanuel Vadot device_type = "pci"; 10601950c46SEmmanuel Vadot linux,pci-domain = <1>; 10701950c46SEmmanuel Vadot num-lanes = <2>; 10801950c46SEmmanuel Vadot 10901950c46SEmmanuel Vadot #address-cells = <3>; 11001950c46SEmmanuel Vadot #size-cells = <2>; 11101950c46SEmmanuel Vadot 11201950c46SEmmanuel Vadot assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>; 11301950c46SEmmanuel Vadot assigned-clock-rates = <19200000>; 11401950c46SEmmanuel Vadot 11501950c46SEmmanuel Vadot clocks = <&gcc GCC_PCIE_1_PIPE_CLK>, 11601950c46SEmmanuel Vadot <&gcc GCC_PCIE_1_PIPE_CLK_SRC>, 11701950c46SEmmanuel Vadot <&pcie1_phy>, 11801950c46SEmmanuel Vadot <&rpmhcc RPMH_CXO_CLK>, 11901950c46SEmmanuel Vadot <&gcc GCC_PCIE_1_AUX_CLK>, 12001950c46SEmmanuel Vadot <&gcc GCC_PCIE_1_CFG_AHB_CLK>, 12101950c46SEmmanuel Vadot <&gcc GCC_PCIE_1_MSTR_AXI_CLK>, 12201950c46SEmmanuel Vadot <&gcc GCC_PCIE_1_SLV_AXI_CLK>, 12301950c46SEmmanuel Vadot <&gcc GCC_PCIE_1_SLV_Q2A_AXI_CLK>, 12401950c46SEmmanuel Vadot <&gcc GCC_AGGRE_NOC_PCIE_TBU_CLK>, 12501950c46SEmmanuel Vadot <&gcc GCC_DDRSS_PCIE_SF_CLK>, 12601950c46SEmmanuel Vadot <&gcc GCC_AGGRE_NOC_PCIE_CENTER_SF_AXI_CLK>, 12701950c46SEmmanuel Vadot <&gcc GCC_AGGRE_NOC_PCIE_1_AXI_CLK>; 12801950c46SEmmanuel Vadot 12901950c46SEmmanuel Vadot clock-names = "pipe", 13001950c46SEmmanuel Vadot "pipe_mux", 13101950c46SEmmanuel Vadot "phy_pipe", 13201950c46SEmmanuel Vadot "ref", 13301950c46SEmmanuel Vadot "aux", 13401950c46SEmmanuel Vadot "cfg", 13501950c46SEmmanuel Vadot "bus_master", 13601950c46SEmmanuel Vadot "bus_slave", 13701950c46SEmmanuel Vadot "slave_q2a", 13801950c46SEmmanuel Vadot "tbu", 13901950c46SEmmanuel Vadot "ddrss_sf_tbu", 14001950c46SEmmanuel Vadot "aggre0", 14101950c46SEmmanuel Vadot "aggre1"; 14201950c46SEmmanuel Vadot 14301950c46SEmmanuel Vadot dma-coherent; 14401950c46SEmmanuel Vadot 145*b2d2a78aSEmmanuel Vadot interrupts = <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>, 146*b2d2a78aSEmmanuel Vadot <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>, 147*b2d2a78aSEmmanuel Vadot <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>, 148*b2d2a78aSEmmanuel Vadot <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>, 149*b2d2a78aSEmmanuel Vadot <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>, 150*b2d2a78aSEmmanuel Vadot <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>, 151*b2d2a78aSEmmanuel Vadot <GIC_SPI 374 IRQ_TYPE_LEVEL_HIGH>, 152*b2d2a78aSEmmanuel Vadot <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>; 153*b2d2a78aSEmmanuel Vadot interrupt-names = "msi0", "msi1", "msi2", "msi3", 154*b2d2a78aSEmmanuel Vadot "msi4", "msi5", "msi6", "msi7"; 15501950c46SEmmanuel Vadot #interrupt-cells = <1>; 15601950c46SEmmanuel Vadot interrupt-map-mask = <0 0 0 0x7>; 15701950c46SEmmanuel Vadot interrupt-map = <0 0 0 1 &intc 0 0 0 434 IRQ_TYPE_LEVEL_HIGH>, 15801950c46SEmmanuel Vadot <0 0 0 2 &intc 0 0 0 435 IRQ_TYPE_LEVEL_HIGH>, 15901950c46SEmmanuel Vadot <0 0 0 3 &intc 0 0 0 438 IRQ_TYPE_LEVEL_HIGH>, 16001950c46SEmmanuel Vadot <0 0 0 4 &intc 0 0 0 439 IRQ_TYPE_LEVEL_HIGH>; 16101950c46SEmmanuel Vadot 16201950c46SEmmanuel Vadot iommu-map = <0x0 &apps_smmu 0x1c80 0x1>, 16301950c46SEmmanuel Vadot <0x100 &apps_smmu 0x1c81 0x1>; 16401950c46SEmmanuel Vadot 16501950c46SEmmanuel Vadot phys = <&pcie1_phy>; 16601950c46SEmmanuel Vadot phy-names = "pciephy"; 16701950c46SEmmanuel Vadot 16801950c46SEmmanuel Vadot pinctrl-names = "default"; 16901950c46SEmmanuel Vadot pinctrl-0 = <&pcie1_clkreq_n>; 17001950c46SEmmanuel Vadot 17101950c46SEmmanuel Vadot power-domains = <&gcc GCC_PCIE_1_GDSC>; 17201950c46SEmmanuel Vadot 17301950c46SEmmanuel Vadot resets = <&gcc GCC_PCIE_1_BCR>; 17401950c46SEmmanuel Vadot reset-names = "pci"; 17501950c46SEmmanuel Vadot 17601950c46SEmmanuel Vadot perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; 17701950c46SEmmanuel Vadot vddpe-3v3-supply = <&pp3300_ssd>; 17801950c46SEmmanuel Vadot }; 17901950c46SEmmanuel Vadot }; 180