# Broadcom iProc PCIe controller with the platform bus interface

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

> Device-tree binding reference for Broadcom iProc PCIe controller with the platform bus interface.

<!-- 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;brcm&#44;iproc&#45;pcie&#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;Ray Jui &#60;ray&#46;jui&#64;broadcom&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Scott Branden &#60;scott&#46;branden&#64;broadcom&#46;com&#62;&#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>&#47;schemas&#47;pci&#47;pci&#45;host&#45;bridge&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-shared/pci/pci-host-bridge.md#dt-root>)</span>

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

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

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

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

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

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;brcm&#44;iproc&#45;pcie&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;brcm&#44;iproc&#45;pcie&#45;paxb&#45;v2&#34;</code></span>, <span id="dt-9802844ed4869452d348"><code>&#34;brcm&#44;iproc&#45;pcie&#45;paxc&#34;</code></span>, <span id="dt-24a1253e29125294194d"><code>&#34;brcm&#44;iproc&#45;pcie&#45;paxc&#45;v2&#34;</code></span>

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

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Base address and length of the PCIe controller I/O register space</p>
</div>

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

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-7928d91ff1b85834b6df"><code>2</code></span>

<div id="dt-e09d62fd28b1cb158f01">
<p style="white-space: pre-wrap">Ranges for the PCI memory and I/O regions</p>
</div>

<a id="dt-398f0f80d64ad8c16804"></a>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-64f78efd1fbfb4992816"><code>1</code></span>

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

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

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

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

<a id="dt-49488a98c3eb6dae2c46"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-29213234bf7b0928b3dc"><code>&#34;pcie&#45;phy&#34;</code></span>

<a id="dt-4603ee192633e8dffc49"></a>

### <code>dma&#45;coherent</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

### <code>brcm&#44;pcie&#45;ob</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-f130d088a75c27e303cb"><code>&#34;boolean&#34;</code></span>

<div id="dt-3ea7e37bb8683a11297c">
<p style="white-space: pre-wrap">Some iProc SoCs do not have the outbound address mapping done by the ASIC after power on reset. In this case, SW needs to configure it</p>
</div>

<a id="dt-1075b919d4c39bb5bbf5"></a>

### <code>brcm&#44;pcie&#45;ob&#45;axi&#45;offset</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-23b6a03bcac9260ea667">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-9d7b13b004b8311418e5">
<p style="white-space: pre-wrap">The offset from the AXI address to the internal address used by the iProc PCIe core (not the PCIe address)</p>
</div>

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

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

**Value type (<code>type</code>):** <span id="dt-3b4b5b512d40dcb1512c"><code>&#34;object&#34;</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c3f6d42ca2a38477c94b">[<code>&#47;schemas&#47;interrupt&#45;controller&#47;msi&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-interrupt-controller/msi-controller.md#dt-root>)</span>

<a id="dt-5129e36f4ee17a201ded"></a>

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

<code>false</code>

Not allowed by this rule.

<a id="dt-218627bbe9fda9367a84"></a>

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

<a id="dt-6363137a9392a34084eb"></a>

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-f37e3b2521d26fab7971"><code>&#34;brcm&#44;iproc&#45;msi&#34;</code></span>

<a id="dt-85bd22d1a59a83835900"></a>

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

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

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

**<code>brcm&#44;pcie&#45;msi&#45;inten</code> — not listed as required here**

**Value type (<code>type</code>):** <span id="dt-5343af28d6b37903d84a"><code>&#34;boolean&#34;</code></span>

<div id="dt-f5e766134a4d645dfe0e">
<p style="white-space: pre-wrap">Needs to be present for some older iProc platforms that require the interrupt enable registers to be set explicitly to enable MSI</p>
</div>

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

### <code>msi&#45;parent</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

## Property dependencies (<code>dependencies</code>)

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

### <code>brcm&#44;pcie&#45;ob&#45;axi&#45;offset</code> — applies when this property is present

Also requires: <span id="dt-98aff805f8102ad4c1a6"><code>&#34;brcm&#44;pcie&#45;ob&#34;</code></span>

<a id="dt-5413bb885ff2a664fa9a"></a>

### <code>brcm&#44;pcie&#45;msi&#45;inten</code> — applies when this property is present

Also requires: <span id="dt-386c4696db27ab8748c5"><code>&#34;msi&#45;controller&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;ranges&#34;</code></span>

<a id="dt-158e3f6339df9dc0e448"></a>

## Condition (<code>if</code>)

> <a id="dt-0c7b6d12024f922c1b96"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-824fdc441f7c94ae56ca"></a>
>
> #### <code>compatible</code> — not listed as required here
>
> <a id="dt-8239149d6c8b0a5dabbe"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-33b6ed092215f2be8801"></a> <span id="dt-9dc9072d1f2469ee9637"><code>&#34;brcm&#44;iproc&#45;pcie&#34;</code></span>

<a id="dt-94d3067a06aec87aad7f"></a>

## When the condition matches (<code>then</code>)

> **Required in this object (<code>required</code>):** <a id="dt-824165741bab07e919e7"></a> <span id="dt-0be16f81402541b26aff"><code>&#34;interrupt&#45;map&#34;</code></span>, <span id="dt-dd9db9085e2885964a9c"><code>&#34;interrupt&#45;map&#45;mask&#34;</code></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/interrupt-controller/arm-gic.h&gt;

gic: interrupt-controller {
    #address-cells = &lt;0&gt;;
    interrupt-controller;
    #interrupt-cells = &lt;3&gt;;
};

pcie@18012000 {
    compatible = "brcm,iproc-pcie";
    reg = &lt;0x18012000 0x1000&gt;;

    #interrupt-cells = &lt;1&gt;;
    interrupt-map-mask = &lt;0 0 0 0&gt;;
    interrupt-map = &lt;0 0 0 0 &amp;gic GIC_SPI 100 IRQ_TYPE_NONE&gt;;

    linux,pci-domain = &lt;0&gt;;

    bus-range = &lt;0x00 0xff&gt;;

    #address-cells = &lt;3&gt;;
    #size-cells = &lt;2&gt;;
    device_type = "pci";
    ranges = &lt;0x81000000 0          0 0x28000000 0 0x00010000&gt;,
             &lt;0x82000000 0 0x20000000 0x20000000 0 0x04000000&gt;;

    phys = &lt;&amp;phy 0 5&gt;;
    phy-names = "pcie-phy";

    brcm,pcie-ob;
    brcm,pcie-ob-axi-offset = &lt;0x00000000&gt;;

    msi-parent = &lt;&amp;msi0&gt;;

    /* iProc event queue based MSI */
    msi0: msi {
        compatible = "brcm,iproc-msi";
        msi-controller;
        interrupt-parent = &lt;&amp;gic&gt;;
        interrupts = &lt;GIC_SPI 96 IRQ_TYPE_NONE&gt;,
                &lt;GIC_SPI 97 IRQ_TYPE_NONE&gt;,
                &lt;GIC_SPI 98 IRQ_TYPE_NONE&gt;,
                &lt;GIC_SPI 99 IRQ_TYPE_NONE&gt;;
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">pcie@18013000 {
    compatible = "brcm,iproc-pcie";
    reg = &lt;0x18013000 0x1000&gt;;

    #interrupt-cells = &lt;1&gt;;
    interrupt-map-mask = &lt;0 0 0 0&gt;;
    interrupt-map = &lt;0 0 0 0 &amp;gic GIC_SPI 106 IRQ_TYPE_NONE&gt;;

    linux,pci-domain = &lt;1&gt;;

    bus-range = &lt;0x00 0xff&gt;;

    #address-cells = &lt;3&gt;;
    #size-cells = &lt;2&gt;;
    device_type = "pci";
    ranges = &lt;0x81000000 0          0 0x48000000 0 0x00010000&gt;,
             &lt;0x82000000 0 0x40000000 0x40000000 0 0x04000000&gt;;

    phys = &lt;&amp;phy 1 6&gt;;
    phy-names = "pcie-phy";
};
</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 20:</strong> <span> for the first generation of PAXB based controller, used in SoCs</span></p>

<p id="dt-comment-2"><strong>Line 21:</strong> <span> including NSP, Cygnus, NS2, and Pegasus</span></p>

<p id="dt-comment-3"><strong>Line 23:</strong> <span> for the second generation of PAXB-based controllers, used in</span></p>

<p id="dt-comment-4"><strong>Line 24:</strong> <span> Stingray</span></p>

<p id="dt-comment-5"><strong>Line 26:</strong> <span> For the first generation of PAXC based controller, used in NS2</span></p>

<p id="dt-comment-6"><strong>Line 28:</strong> <span> For the second generation of PAXC based controller, used in Stingray</span></p>

</details>
