1*544e8f96SKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*544e8f96SKrzysztof Kozlowski%YAML 1.2 3*544e8f96SKrzysztof Kozlowski--- 4*544e8f96SKrzysztof Kozlowski$id: http://devicetree.org/schemas/pci/qcom,pcie-sa8775p.yaml# 5*544e8f96SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 6*544e8f96SKrzysztof Kozlowski 7*544e8f96SKrzysztof Kozlowskititle: Qualcomm SA8775p PCI Express Root Complex 8*544e8f96SKrzysztof Kozlowski 9*544e8f96SKrzysztof Kozlowskimaintainers: 10*544e8f96SKrzysztof Kozlowski - Bjorn Andersson <andersson@kernel.org> 11*544e8f96SKrzysztof Kozlowski - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 12*544e8f96SKrzysztof Kozlowski 13*544e8f96SKrzysztof Kozlowskidescription: 14*544e8f96SKrzysztof Kozlowski Qualcomm SA8775p SoC PCIe root complex controller is based on the Synopsys 15*544e8f96SKrzysztof Kozlowski DesignWare PCIe IP. 16*544e8f96SKrzysztof Kozlowski 17*544e8f96SKrzysztof Kozlowskiproperties: 18*544e8f96SKrzysztof Kozlowski compatible: 19*544e8f96SKrzysztof Kozlowski const: qcom,pcie-sa8775p 20*544e8f96SKrzysztof Kozlowski 21*544e8f96SKrzysztof Kozlowski reg: 22*544e8f96SKrzysztof Kozlowski minItems: 6 23*544e8f96SKrzysztof Kozlowski maxItems: 6 24*544e8f96SKrzysztof Kozlowski 25*544e8f96SKrzysztof Kozlowski reg-names: 26*544e8f96SKrzysztof Kozlowski items: 27*544e8f96SKrzysztof Kozlowski - const: parf # Qualcomm specific registers 28*544e8f96SKrzysztof Kozlowski - const: dbi # DesignWare PCIe registers 29*544e8f96SKrzysztof Kozlowski - const: elbi # External local bus interface registers 30*544e8f96SKrzysztof Kozlowski - const: atu # ATU address space 31*544e8f96SKrzysztof Kozlowski - const: config # PCIe configuration space 32*544e8f96SKrzysztof Kozlowski - const: mhi # MHI registers 33*544e8f96SKrzysztof Kozlowski 34*544e8f96SKrzysztof Kozlowski clocks: 35*544e8f96SKrzysztof Kozlowski minItems: 5 36*544e8f96SKrzysztof Kozlowski maxItems: 5 37*544e8f96SKrzysztof Kozlowski 38*544e8f96SKrzysztof Kozlowski clock-names: 39*544e8f96SKrzysztof Kozlowski items: 40*544e8f96SKrzysztof Kozlowski - const: aux # Auxiliary clock 41*544e8f96SKrzysztof Kozlowski - const: cfg # Configuration clock 42*544e8f96SKrzysztof Kozlowski - const: bus_master # Master AXI clock 43*544e8f96SKrzysztof Kozlowski - const: bus_slave # Slave AXI clock 44*544e8f96SKrzysztof Kozlowski - const: slave_q2a # Slave Q2A clock 45*544e8f96SKrzysztof Kozlowski 46*544e8f96SKrzysztof Kozlowski interrupts: 47*544e8f96SKrzysztof Kozlowski minItems: 8 48*544e8f96SKrzysztof Kozlowski maxItems: 8 49*544e8f96SKrzysztof Kozlowski 50*544e8f96SKrzysztof Kozlowski interrupt-names: 51*544e8f96SKrzysztof Kozlowski items: 52*544e8f96SKrzysztof Kozlowski - const: msi0 53*544e8f96SKrzysztof Kozlowski - const: msi1 54*544e8f96SKrzysztof Kozlowski - const: msi2 55*544e8f96SKrzysztof Kozlowski - const: msi3 56*544e8f96SKrzysztof Kozlowski - const: msi4 57*544e8f96SKrzysztof Kozlowski - const: msi5 58*544e8f96SKrzysztof Kozlowski - const: msi6 59*544e8f96SKrzysztof Kozlowski - const: msi7 60*544e8f96SKrzysztof Kozlowski 61*544e8f96SKrzysztof Kozlowski resets: 62*544e8f96SKrzysztof Kozlowski maxItems: 1 63*544e8f96SKrzysztof Kozlowski 64*544e8f96SKrzysztof Kozlowski reset-names: 65*544e8f96SKrzysztof Kozlowski items: 66*544e8f96SKrzysztof Kozlowski - const: pci 67*544e8f96SKrzysztof Kozlowski 68*544e8f96SKrzysztof Kozlowskirequired: 69*544e8f96SKrzysztof Kozlowski - interconnects 70*544e8f96SKrzysztof Kozlowski - interconnect-names 71*544e8f96SKrzysztof Kozlowski 72*544e8f96SKrzysztof KozlowskiallOf: 73*544e8f96SKrzysztof Kozlowski - $ref: qcom,pcie-common.yaml# 74*544e8f96SKrzysztof Kozlowski 75*544e8f96SKrzysztof KozlowskiunevaluatedProperties: false 76*544e8f96SKrzysztof Kozlowski 77*544e8f96SKrzysztof Kozlowskiexamples: 78*544e8f96SKrzysztof Kozlowski - | 79*544e8f96SKrzysztof Kozlowski #include <dt-bindings/clock/qcom,sa8775p-gcc.h> 80*544e8f96SKrzysztof Kozlowski #include <dt-bindings/clock/qcom,rpmh.h> 81*544e8f96SKrzysztof Kozlowski #include <dt-bindings/gpio/gpio.h> 82*544e8f96SKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/arm-gic.h> 83*544e8f96SKrzysztof Kozlowski #include <dt-bindings/interconnect/qcom,sa8775p-rpmh.h> 84*544e8f96SKrzysztof Kozlowski 85*544e8f96SKrzysztof Kozlowski soc { 86*544e8f96SKrzysztof Kozlowski #address-cells = <2>; 87*544e8f96SKrzysztof Kozlowski #size-cells = <2>; 88*544e8f96SKrzysztof Kozlowski 89*544e8f96SKrzysztof Kozlowski pcie@1c00000 { 90*544e8f96SKrzysztof Kozlowski compatible = "qcom,pcie-sa8775p"; 91*544e8f96SKrzysztof Kozlowski reg = <0x0 0x01c00000 0x0 0x3000>, 92*544e8f96SKrzysztof Kozlowski <0x0 0x40000000 0x0 0xf20>, 93*544e8f96SKrzysztof Kozlowski <0x0 0x40000f20 0x0 0xa8>, 94*544e8f96SKrzysztof Kozlowski <0x0 0x40001000 0x0 0x4000>, 95*544e8f96SKrzysztof Kozlowski <0x0 0x40100000 0x0 0x100000>, 96*544e8f96SKrzysztof Kozlowski <0x0 0x01c03000 0x0 0x1000>; 97*544e8f96SKrzysztof Kozlowski reg-names = "parf", "dbi", "elbi", "atu", "config", "mhi"; 98*544e8f96SKrzysztof Kozlowski ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>, 99*544e8f96SKrzysztof Kozlowski <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>; 100*544e8f96SKrzysztof Kozlowski 101*544e8f96SKrzysztof Kozlowski bus-range = <0x00 0xff>; 102*544e8f96SKrzysztof Kozlowski device_type = "pci"; 103*544e8f96SKrzysztof Kozlowski linux,pci-domain = <0>; 104*544e8f96SKrzysztof Kozlowski num-lanes = <2>; 105*544e8f96SKrzysztof Kozlowski 106*544e8f96SKrzysztof Kozlowski #address-cells = <3>; 107*544e8f96SKrzysztof Kozlowski #size-cells = <2>; 108*544e8f96SKrzysztof Kozlowski 109*544e8f96SKrzysztof Kozlowski assigned-clocks = <&gcc GCC_PCIE_0_AUX_CLK>; 110*544e8f96SKrzysztof Kozlowski assigned-clock-rates = <19200000>; 111*544e8f96SKrzysztof Kozlowski 112*544e8f96SKrzysztof Kozlowski clocks = <&gcc GCC_PCIE_0_AUX_CLK>, 113*544e8f96SKrzysztof Kozlowski <&gcc GCC_PCIE_0_CFG_AHB_CLK>, 114*544e8f96SKrzysztof Kozlowski <&gcc GCC_PCIE_0_MSTR_AXI_CLK>, 115*544e8f96SKrzysztof Kozlowski <&gcc GCC_PCIE_0_SLV_AXI_CLK>, 116*544e8f96SKrzysztof Kozlowski <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>; 117*544e8f96SKrzysztof Kozlowski clock-names = "aux", 118*544e8f96SKrzysztof Kozlowski "cfg", 119*544e8f96SKrzysztof Kozlowski "bus_master", 120*544e8f96SKrzysztof Kozlowski "bus_slave", 121*544e8f96SKrzysztof Kozlowski "slave_q2a"; 122*544e8f96SKrzysztof Kozlowski 123*544e8f96SKrzysztof Kozlowski dma-coherent; 124*544e8f96SKrzysztof Kozlowski 125*544e8f96SKrzysztof Kozlowski interrupts = <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>, 126*544e8f96SKrzysztof Kozlowski <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>, 127*544e8f96SKrzysztof Kozlowski <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>, 128*544e8f96SKrzysztof Kozlowski <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>, 129*544e8f96SKrzysztof Kozlowski <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>, 130*544e8f96SKrzysztof Kozlowski <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>, 131*544e8f96SKrzysztof Kozlowski <GIC_SPI 374 IRQ_TYPE_LEVEL_HIGH>, 132*544e8f96SKrzysztof Kozlowski <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>; 133*544e8f96SKrzysztof Kozlowski interrupt-names = "msi0", 134*544e8f96SKrzysztof Kozlowski "msi1", 135*544e8f96SKrzysztof Kozlowski "msi2", 136*544e8f96SKrzysztof Kozlowski "msi3", 137*544e8f96SKrzysztof Kozlowski "msi4", 138*544e8f96SKrzysztof Kozlowski "msi5", 139*544e8f96SKrzysztof Kozlowski "msi6", 140*544e8f96SKrzysztof Kozlowski "msi7"; 141*544e8f96SKrzysztof Kozlowski #interrupt-cells = <1>; 142*544e8f96SKrzysztof Kozlowski interrupt-map-mask = <0 0 0 0x7>; 143*544e8f96SKrzysztof Kozlowski interrupt-map = <0 0 0 1 &intc GIC_SPI 434 IRQ_TYPE_LEVEL_HIGH>, 144*544e8f96SKrzysztof Kozlowski <0 0 0 2 &intc GIC_SPI 435 IRQ_TYPE_LEVEL_HIGH>, 145*544e8f96SKrzysztof Kozlowski <0 0 0 3 &intc GIC_SPI 438 IRQ_TYPE_LEVEL_HIGH>, 146*544e8f96SKrzysztof Kozlowski <0 0 0 4 &intc GIC_SPI 439 IRQ_TYPE_LEVEL_HIGH>; 147*544e8f96SKrzysztof Kozlowski 148*544e8f96SKrzysztof Kozlowski interconnects = <&pcie_anoc MASTER_PCIE_0 0 &mc_virt SLAVE_EBI1 0>, 149*544e8f96SKrzysztof Kozlowski <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_PCIE_0 0>; 150*544e8f96SKrzysztof Kozlowski interconnect-names = "pcie-mem", "cpu-pcie"; 151*544e8f96SKrzysztof Kozlowski 152*544e8f96SKrzysztof Kozlowski iommu-map = <0x0 &pcie_smmu 0x0000 0x1>, 153*544e8f96SKrzysztof Kozlowski <0x100 &pcie_smmu 0x0001 0x1>; 154*544e8f96SKrzysztof Kozlowski 155*544e8f96SKrzysztof Kozlowski phys = <&pcie0_phy>; 156*544e8f96SKrzysztof Kozlowski phy-names = "pciephy"; 157*544e8f96SKrzysztof Kozlowski 158*544e8f96SKrzysztof Kozlowski power-domains = <&gcc PCIE_0_GDSC>; 159*544e8f96SKrzysztof Kozlowski 160*544e8f96SKrzysztof Kozlowski resets = <&gcc GCC_PCIE_0_BCR>; 161*544e8f96SKrzysztof Kozlowski reset-names = "pci"; 162*544e8f96SKrzysztof Kozlowski 163*544e8f96SKrzysztof Kozlowski perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; 164*544e8f96SKrzysztof Kozlowski wake-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; 165*544e8f96SKrzysztof Kozlowski }; 166*544e8f96SKrzysztof Kozlowski }; 167