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-sm8450.yaml# 501950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 601950c46SEmmanuel Vadot 701950c46SEmmanuel Vadottitle: Qualcomm SM8450 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 SM8450 SoC PCIe root complex controller is based on the Synopsys 1501950c46SEmmanuel Vadot DesignWare PCIe IP. 1601950c46SEmmanuel Vadot 1701950c46SEmmanuel Vadotproperties: 1801950c46SEmmanuel Vadot compatible: 1901950c46SEmmanuel Vadot enum: 2001950c46SEmmanuel Vadot - qcom,pcie-sm8450-pcie0 2101950c46SEmmanuel Vadot - qcom,pcie-sm8450-pcie1 2201950c46SEmmanuel Vadot 2301950c46SEmmanuel Vadot reg: 2401950c46SEmmanuel Vadot minItems: 5 2501950c46SEmmanuel Vadot maxItems: 6 2601950c46SEmmanuel Vadot 2701950c46SEmmanuel Vadot reg-names: 2801950c46SEmmanuel Vadot minItems: 5 2901950c46SEmmanuel Vadot items: 3001950c46SEmmanuel Vadot - const: parf # Qualcomm specific registers 3101950c46SEmmanuel Vadot - const: dbi # DesignWare PCIe registers 3201950c46SEmmanuel Vadot - const: elbi # External local bus interface registers 3301950c46SEmmanuel Vadot - const: atu # ATU address space 3401950c46SEmmanuel Vadot - const: config # PCIe configuration space 3501950c46SEmmanuel Vadot - const: mhi # MHI registers 3601950c46SEmmanuel Vadot 3701950c46SEmmanuel Vadot clocks: 3801950c46SEmmanuel Vadot minItems: 11 3901950c46SEmmanuel Vadot maxItems: 12 4001950c46SEmmanuel Vadot 4101950c46SEmmanuel Vadot clock-names: 4201950c46SEmmanuel Vadot minItems: 11 4301950c46SEmmanuel Vadot items: 4401950c46SEmmanuel Vadot - const: pipe # PIPE clock 4501950c46SEmmanuel Vadot - const: pipe_mux # PIPE MUX 4601950c46SEmmanuel Vadot - const: phy_pipe # PIPE output clock 4701950c46SEmmanuel Vadot - const: ref # REFERENCE clock 4801950c46SEmmanuel Vadot - const: aux # Auxiliary clock 4901950c46SEmmanuel Vadot - const: cfg # Configuration clock 5001950c46SEmmanuel Vadot - const: bus_master # Master AXI clock 5101950c46SEmmanuel Vadot - const: bus_slave # Slave AXI clock 5201950c46SEmmanuel Vadot - const: slave_q2a # Slave Q2A clock 5301950c46SEmmanuel Vadot - const: ddrss_sf_tbu # PCIe SF TBU clock 5401950c46SEmmanuel Vadot - enum: [aggre0, aggre1] # Aggre NoC PCIe0/1 AXI clock 5501950c46SEmmanuel Vadot - const: aggre1 # Aggre NoC PCIe1 AXI clock 5601950c46SEmmanuel Vadot 5701950c46SEmmanuel Vadot interrupts: 5801950c46SEmmanuel Vadot minItems: 8 5901950c46SEmmanuel Vadot maxItems: 8 6001950c46SEmmanuel Vadot 6101950c46SEmmanuel Vadot interrupt-names: 6201950c46SEmmanuel Vadot items: 6301950c46SEmmanuel Vadot - const: msi0 6401950c46SEmmanuel Vadot - const: msi1 6501950c46SEmmanuel Vadot - const: msi2 6601950c46SEmmanuel Vadot - const: msi3 6701950c46SEmmanuel Vadot - const: msi4 6801950c46SEmmanuel Vadot - const: msi5 6901950c46SEmmanuel Vadot - const: msi6 7001950c46SEmmanuel Vadot - const: msi7 7101950c46SEmmanuel Vadot 72*0e8011faSEmmanuel Vadot operating-points-v2: true 73*0e8011faSEmmanuel Vadot opp-table: 74*0e8011faSEmmanuel Vadot type: object 75*0e8011faSEmmanuel Vadot 7601950c46SEmmanuel Vadot resets: 7701950c46SEmmanuel Vadot maxItems: 1 7801950c46SEmmanuel Vadot 7901950c46SEmmanuel Vadot reset-names: 8001950c46SEmmanuel Vadot items: 8101950c46SEmmanuel Vadot - const: pci 8201950c46SEmmanuel Vadot 8301950c46SEmmanuel VadotallOf: 8401950c46SEmmanuel Vadot - $ref: qcom,pcie-common.yaml# 8501950c46SEmmanuel Vadot 8601950c46SEmmanuel VadotunevaluatedProperties: false 8701950c46SEmmanuel Vadot 8801950c46SEmmanuel Vadotexamples: 8901950c46SEmmanuel Vadot - | 9001950c46SEmmanuel Vadot #include <dt-bindings/clock/qcom,gcc-sm8450.h> 9101950c46SEmmanuel Vadot #include <dt-bindings/clock/qcom,rpmh.h> 9201950c46SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 9301950c46SEmmanuel Vadot #include <dt-bindings/interconnect/qcom,sm8450.h> 9401950c46SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 9501950c46SEmmanuel Vadot 9601950c46SEmmanuel Vadot soc { 9701950c46SEmmanuel Vadot #address-cells = <2>; 9801950c46SEmmanuel Vadot #size-cells = <2>; 9901950c46SEmmanuel Vadot 10001950c46SEmmanuel Vadot pcie@1c00000 { 10101950c46SEmmanuel Vadot compatible = "qcom,pcie-sm8450-pcie0"; 10201950c46SEmmanuel Vadot reg = <0 0x01c00000 0 0x3000>, 10301950c46SEmmanuel Vadot <0 0x60000000 0 0xf1d>, 10401950c46SEmmanuel Vadot <0 0x60000f20 0 0xa8>, 10501950c46SEmmanuel Vadot <0 0x60001000 0 0x1000>, 10601950c46SEmmanuel Vadot <0 0x60100000 0 0x100000>; 10701950c46SEmmanuel Vadot reg-names = "parf", "dbi", "elbi", "atu", "config"; 10801950c46SEmmanuel Vadot ranges = <0x01000000 0x0 0x00000000 0x0 0x60200000 0x0 0x100000>, 10901950c46SEmmanuel Vadot <0x02000000 0x0 0x60300000 0x0 0x60300000 0x0 0x3d00000>; 11001950c46SEmmanuel Vadot 11101950c46SEmmanuel Vadot bus-range = <0x00 0xff>; 11201950c46SEmmanuel Vadot device_type = "pci"; 11301950c46SEmmanuel Vadot linux,pci-domain = <0>; 11401950c46SEmmanuel Vadot max-link-speed = <2>; 11501950c46SEmmanuel Vadot num-lanes = <1>; 11601950c46SEmmanuel Vadot 11701950c46SEmmanuel Vadot #address-cells = <3>; 11801950c46SEmmanuel Vadot #size-cells = <2>; 11901950c46SEmmanuel Vadot 12001950c46SEmmanuel Vadot clocks = <&gcc GCC_PCIE_0_PIPE_CLK>, 12101950c46SEmmanuel Vadot <&gcc GCC_PCIE_0_PIPE_CLK_SRC>, 12201950c46SEmmanuel Vadot <&pcie0_phy>, 12301950c46SEmmanuel Vadot <&rpmhcc RPMH_CXO_CLK>, 12401950c46SEmmanuel Vadot <&gcc GCC_PCIE_0_AUX_CLK>, 12501950c46SEmmanuel Vadot <&gcc GCC_PCIE_0_CFG_AHB_CLK>, 12601950c46SEmmanuel Vadot <&gcc GCC_PCIE_0_MSTR_AXI_CLK>, 12701950c46SEmmanuel Vadot <&gcc GCC_PCIE_0_SLV_AXI_CLK>, 12801950c46SEmmanuel Vadot <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>, 12901950c46SEmmanuel Vadot <&gcc GCC_DDRSS_PCIE_SF_TBU_CLK>, 13001950c46SEmmanuel Vadot <&gcc GCC_AGGRE_NOC_PCIE_0_AXI_CLK>, 13101950c46SEmmanuel Vadot <&gcc GCC_AGGRE_NOC_PCIE_1_AXI_CLK>; 13201950c46SEmmanuel Vadot clock-names = "pipe", 13301950c46SEmmanuel Vadot "pipe_mux", 13401950c46SEmmanuel Vadot "phy_pipe", 13501950c46SEmmanuel Vadot "ref", 13601950c46SEmmanuel Vadot "aux", 13701950c46SEmmanuel Vadot "cfg", 13801950c46SEmmanuel Vadot "bus_master", 13901950c46SEmmanuel Vadot "bus_slave", 14001950c46SEmmanuel Vadot "slave_q2a", 14101950c46SEmmanuel Vadot "ddrss_sf_tbu", 14201950c46SEmmanuel Vadot "aggre0", 14301950c46SEmmanuel Vadot "aggre1"; 14401950c46SEmmanuel Vadot 14501950c46SEmmanuel Vadot interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>, 14601950c46SEmmanuel Vadot <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>, 14701950c46SEmmanuel Vadot <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>, 14801950c46SEmmanuel Vadot <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>, 14901950c46SEmmanuel Vadot <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>, 15001950c46SEmmanuel Vadot <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>, 15101950c46SEmmanuel Vadot <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>, 15201950c46SEmmanuel Vadot <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; 15301950c46SEmmanuel Vadot interrupt-names = "msi0", "msi1", "msi2", "msi3", 15401950c46SEmmanuel 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 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ 15801950c46SEmmanuel Vadot <0 0 0 2 &intc 0 0 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ 15901950c46SEmmanuel Vadot <0 0 0 3 &intc 0 0 0 151 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ 16001950c46SEmmanuel Vadot <0 0 0 4 &intc 0 0 0 152 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ 16101950c46SEmmanuel Vadot msi-map = <0x0 &gic_its 0x5981 0x1>, 16201950c46SEmmanuel Vadot <0x100 &gic_its 0x5980 0x1>; 16301950c46SEmmanuel Vadot msi-map-mask = <0xff00>; 16401950c46SEmmanuel Vadot 16501950c46SEmmanuel Vadot iommu-map = <0x0 &apps_smmu 0x1c00 0x1>, 16601950c46SEmmanuel Vadot <0x100 &apps_smmu 0x1c01 0x1>; 16701950c46SEmmanuel Vadot 16801950c46SEmmanuel Vadot phys = <&pcie0_phy>; 16901950c46SEmmanuel Vadot phy-names = "pciephy"; 17001950c46SEmmanuel Vadot 17101950c46SEmmanuel Vadot pinctrl-0 = <&pcie0_default_state>; 17201950c46SEmmanuel Vadot pinctrl-names = "default"; 17301950c46SEmmanuel Vadot 17401950c46SEmmanuel Vadot power-domains = <&gcc PCIE_0_GDSC>; 17501950c46SEmmanuel Vadot 17601950c46SEmmanuel Vadot resets = <&gcc GCC_PCIE_0_BCR>; 17701950c46SEmmanuel Vadot reset-names = "pci"; 17801950c46SEmmanuel Vadot 17901950c46SEmmanuel Vadot perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; 18001950c46SEmmanuel Vadot wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; 18101950c46SEmmanuel Vadot }; 18201950c46SEmmanuel Vadot }; 183