# Qualcomm SA8775p PCI Express Root Complex

_Peios Kernel / Hardware and drivers / Device-tree binding reference / PCI bindings_

> Device-tree binding reference for Qualcomm SA8775p PCI Express Root Complex.

<!-- SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;pci&#47;qcom&#44;pcie&#45;sa8775p&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Bjorn Andersson &#60;andersson&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Manivannan Sadhasivam &#60;mani&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Qualcomm SA8775p SoC PCIe root complex controller is based on the Synopsys DesignWare PCIe IP.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — not listed as required here

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

<a id="dt-fe13e24e5c9612880f47"></a>

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;qcom&#44;pcie&#45;sa8775p&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;qcom&#44;pcie&#45;qcs8300&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;qcom&#44;pcie&#45;sa8775p&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — not listed as required here

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>6</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>6</code></span>

<a id="dt-a25ee402afa562132bc5"></a>

### <code>reg&#45;names</code> — not listed as required here

<a id="dt-cb45e4d562022f44522c"></a>

#### Array item rules (<code>items</code>)

<a id="dt-ad0326e242afa18bd21a"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;parf&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;dbi&#34;</code></span>

<a id="dt-dd584520d0fd1feaa634"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-bd78c6ffbdc5ce20feb0"><code>&#34;elbi&#34;</code></span>

<a id="dt-fa79136aca5560f01834"></a>

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-98e4b3caabf49b98c17d"><code>&#34;atu&#34;</code></span>

<a id="dt-b752e677aaa115323aed"></a>

**Item 5**

> **Exact value (<code>const</code>):** <span id="dt-f5b0caab3d0e3bc730aa"><code>&#34;config&#34;</code></span>

<a id="dt-6163748256066003777f"></a>

**Item 6**

> **Exact value (<code>const</code>):** <span id="dt-81567d5e5cafc8c025ce"><code>&#34;mhi&#34;</code></span>

<a id="dt-4e9a371963ac013ad39d"></a>

### <code>clocks</code> — not listed as required here

**Minimum number of items (<code>minItems</code>):** <span id="dt-1f26a8d0aa315cbb9547"><code>5</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><code>5</code></span>

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — not listed as required here

<a id="dt-3d1de59bdfddccf00eed"></a>

#### Array item rules (<code>items</code>)

<a id="dt-b779484bf9e022991fd6"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;aux&#34;</code></span>

<a id="dt-b7e4e477f91935ef1935"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;cfg&#34;</code></span>

<a id="dt-261be8310c899fd46631"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-ad55fa67f3e765bf6ab6"><code>&#34;bus&#95;master&#34;</code></span>

<a id="dt-ae944c97a534a6c0067e"></a>

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-a00c09b3bb0bf38fee22"><code>&#34;bus&#95;slave&#34;</code></span>

<a id="dt-cf956fcaf1071b45bd0b"></a>

**Item 5**

> **Exact value (<code>const</code>):** <span id="dt-0662e29e8e0f6fa46046"><code>&#34;slave&#95;q2a&#34;</code></span>

<a id="dt-c2de09e7f7fd211b679d"></a>

### <code>interrupts</code> — not listed as required here

**Minimum number of items (<code>minItems</code>):** <span id="dt-1691b9edf145244244a0"><code>8</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b7823fb65b2f27642d26"><code>9</code></span>

<a id="dt-8aa4fd7705c68de75d2b"></a>

### <code>interrupt&#45;names</code> — not listed as required here

**Minimum number of items (<code>minItems</code>):** <span id="dt-30089c7b6e408306475b"><code>8</code></span>

<a id="dt-77e94e63ca0b20bb5ef1"></a>

#### Array item rules (<code>items</code>)

<a id="dt-1198ecbdbe49337cf73e"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-7f7686a533ef09dda0b1"><code>&#34;msi0&#34;</code></span>

<a id="dt-0d40baae5346e6957f8a"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-5af1964d23a153c89b8a"><code>&#34;msi1&#34;</code></span>

<a id="dt-01a6f91e38388cdf0f5a"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-25e85adf3e7caf29cd92"><code>&#34;msi2&#34;</code></span>

<a id="dt-96b5fc50d1d5da0ddc64"></a>

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-bb507334c2bd56c85638"><code>&#34;msi3&#34;</code></span>

<a id="dt-fd790998935e34a4be6d"></a>

**Item 5**

> **Exact value (<code>const</code>):** <span id="dt-24e24ae9c744f6d3404a"><code>&#34;msi4&#34;</code></span>

<a id="dt-78538ebdcee0e6b3ee29"></a>

**Item 6**

> **Exact value (<code>const</code>):** <span id="dt-7cc2c08134dc2e073aa6"><code>&#34;msi5&#34;</code></span>

<a id="dt-e2598508e5554b5d571d"></a>

**Item 7**

> **Exact value (<code>const</code>):** <span id="dt-08fa51b24e80029ccaa4"><code>&#34;msi6&#34;</code></span>

<a id="dt-01720d94ef8e36f0fe37"></a>

**Item 8**

> **Exact value (<code>const</code>):** <span id="dt-b69442fc9d7cffb6c650"><code>&#34;msi7&#34;</code></span>

<a id="dt-489088339303f6d7dc09"></a>

**Item 9**

> **Exact value (<code>const</code>):** <span id="dt-4f107fa09e05a1c047ff"><code>&#34;global&#34;</code></span>

<a id="dt-df397b2b98a8cf834e89"></a>

### <code>resets</code> — required here

<a id="dt-7d15d3b17aa2d528614e"></a>

#### Array item rules (<code>items</code>)

<a id="dt-95107b4b3584e917ff31"></a>

**Item 1**

> <div id="dt-3686a6620d670314acea">
> <p style="white-space: pre-wrap">PCIe controller reset</p>
> </div>

<a id="dt-d5e57279f24674469f92"></a>

**Item 2**

> <div id="dt-ea6a40f03c50681315cc">
> <p style="white-space: pre-wrap">PCIe link down reset</p>
> </div>

<a id="dt-563c20491090a57ac4c9"></a>

### <code>reset&#45;names</code> — required here

<a id="dt-353fc881e5c58d1dcba1"></a>

#### Array item rules (<code>items</code>)

<a id="dt-5629342117bd5a110a5b"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-00c19fce1fea453eab02"><code>&#34;pci&#34;</code></span>

<a id="dt-80813f149d5a57545875"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-bff27a7e8c043853e284"><code>&#34;link&#95;down&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;interconnects&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;interconnect&#45;names&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;power&#45;domains&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;resets&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;reset&#45;names&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

<a id="dt-d33de94ac1d3652cd22a"></a>

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>qcom&#44;pcie&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-pci/qcom-pcie-common.md#dt-root>)</span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/clock/qcom,sa8775p-gcc.h&gt;
#include &lt;dt-bindings/clock/qcom,rpmh.h&gt;
#include &lt;dt-bindings/gpio/gpio.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/interconnect/qcom,sa8775p-rpmh.h&gt;

soc {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    pcie@1c00000 {
        compatible = "qcom,pcie-sa8775p";
        reg = &lt;0x0 0x01c00000 0x0 0x3000&gt;,
              &lt;0x0 0x40000000 0x0 0xf20&gt;,
              &lt;0x0 0x40000f20 0x0 0xa8&gt;,
              &lt;0x0 0x40001000 0x0 0x4000&gt;,
              &lt;0x0 0x40100000 0x0 0x100000&gt;,
              &lt;0x0 0x01c03000 0x0 0x1000&gt;;
        reg-names = "parf", "dbi", "elbi", "atu", "config", "mhi";
        ranges = &lt;0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000&gt;,
                 &lt;0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000&gt;;

        bus-range = &lt;0x00 0xff&gt;;
        device_type = "pci";
        linux,pci-domain = &lt;0&gt;;
        num-lanes = &lt;2&gt;;

        #address-cells = &lt;3&gt;;
        #size-cells = &lt;2&gt;;

        assigned-clocks = &lt;&amp;gcc GCC_PCIE_0_AUX_CLK&gt;;
        assigned-clock-rates = &lt;19200000&gt;;

        clocks = &lt;&amp;gcc GCC_PCIE_0_AUX_CLK&gt;,
                 &lt;&amp;gcc GCC_PCIE_0_CFG_AHB_CLK&gt;,
                 &lt;&amp;gcc GCC_PCIE_0_MSTR_AXI_CLK&gt;,
                 &lt;&amp;gcc GCC_PCIE_0_SLV_AXI_CLK&gt;,
                 &lt;&amp;gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK&gt;;
        clock-names = "aux",
                      "cfg",
                      "bus_master",
                      "bus_slave",
                      "slave_q2a";

        dma-coherent;

        interrupts = &lt;GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH&gt;,
                     &lt;GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH&gt;,
                     &lt;GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH&gt;,
                     &lt;GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH&gt;,
                     &lt;GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH&gt;,
                     &lt;GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH&gt;,
                     &lt;GIC_SPI 374 IRQ_TYPE_LEVEL_HIGH&gt;,
                     &lt;GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH&gt;,
                     &lt;GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH&gt;;
        interrupt-names = "msi0",
                          "msi1",
                          "msi2",
                          "msi3",
                          "msi4",
                          "msi5",
                          "msi6",
                          "msi7",
                          "global";
        #interrupt-cells = &lt;1&gt;;
        interrupt-map-mask = &lt;0 0 0 0x7&gt;;
        interrupt-map = &lt;0 0 0 1 &amp;intc GIC_SPI 434 IRQ_TYPE_LEVEL_HIGH&gt;,
                        &lt;0 0 0 2 &amp;intc GIC_SPI 435 IRQ_TYPE_LEVEL_HIGH&gt;,
                        &lt;0 0 0 3 &amp;intc GIC_SPI 438 IRQ_TYPE_LEVEL_HIGH&gt;,
                        &lt;0 0 0 4 &amp;intc GIC_SPI 439 IRQ_TYPE_LEVEL_HIGH&gt;;

        interconnects = &lt;&amp;pcie_anoc MASTER_PCIE_0 0 &amp;mc_virt SLAVE_EBI1 0&gt;,
                        &lt;&amp;gem_noc MASTER_APPSS_PROC 0 &amp;config_noc SLAVE_PCIE_0 0&gt;;
        interconnect-names = "pcie-mem", "cpu-pcie";

        iommu-map = &lt;0x0 &amp;pcie_smmu 0x0000 0x1&gt;,
                    &lt;0x100 &amp;pcie_smmu 0x0001 0x1&gt;;

        phys = &lt;&amp;pcie0_phy&gt;;
        phy-names = "pciephy";

        power-domains = &lt;&amp;gcc PCIE_0_GDSC&gt;;

        resets = &lt;&amp;gcc GCC_PCIE_0_BCR&gt;,
                 &lt;&amp;gcc GCC_PCIE_0_LINK_DOWN_BCR&gt;;
        reset-names = "pci",
                      "link_down";

        perst-gpios = &lt;&amp;tlmm 2 GPIO_ACTIVE_LOW&gt;;
        wake-gpios = &lt;&amp;tlmm 0 GPIO_ACTIVE_HIGH&gt;;
    };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 32:</strong> <span> Qualcomm specific registers</span></p>

<p id="dt-comment-2"><strong>Line 33:</strong> <span> DesignWare PCIe registers</span></p>

<p id="dt-comment-3"><strong>Line 34:</strong> <span> External local bus interface registers</span></p>

<p id="dt-comment-4"><strong>Line 35:</strong> <span> ATU address space</span></p>

<p id="dt-comment-5"><strong>Line 36:</strong> <span> PCIe configuration space</span></p>

<p id="dt-comment-6"><strong>Line 37:</strong> <span> MHI registers</span></p>

<p id="dt-comment-7"><strong>Line 45:</strong> <span> Auxiliary clock</span></p>

<p id="dt-comment-8"><strong>Line 46:</strong> <span> Configuration clock</span></p>

<p id="dt-comment-9"><strong>Line 47:</strong> <span> Master AXI clock</span></p>

<p id="dt-comment-10"><strong>Line 48:</strong> <span> Slave AXI clock</span></p>

<p id="dt-comment-11"><strong>Line 49:</strong> <span> Slave Q2A clock</span></p>

</details>
