# Marvell EBU PCIe interfaces

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

> Device-tree binding reference for Marvell EBU PCIe interfaces.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;marvell&#44;kirkwood&#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;Thomas Petazzoni &#60;thomas&#46;petazzoni&#64;bootlin&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Pali Rohár &#60;pali&#64;kernel&#46;org&#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> — not listed as required here

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;marvell&#44;armada&#45;370&#45;pcie&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;marvell&#44;armada&#45;xp&#45;pcie&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;marvell&#44;dove&#45;pcie&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;marvell&#44;kirkwood&#45;pcie&#34;</code></span>

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

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

<div id="dt-e09d62fd28b1cb158f01">
<p style="white-space: pre-wrap">The ranges describing the MMIO registers have the following layout:</p>
<pre><code>  0x82000000 0 r MBUS_ID(0xf0, 0x01) r 0 s</code></pre>
<p style="white-space: pre-wrap">where:</p>
<pre><code>  * r is a 32-bits value that gives the offset of the MMIO registers of
  this PCIe interface, from the base of the internal registers.</code></pre>
<pre><code>  * s is a 32-bits value that give the size of this MMIO registers area.
  This range entry translates the '0x82000000 0 r' PCI address into the
  'MBUS_ID(0xf0, 0x01) r' CPU address, which is part of the internal
  register window (as identified by MBUS_ID(0xf0, 0x01)).</code></pre>
<p style="white-space: pre-wrap">The ranges describing the MBus windows have the following layout:</p>
<pre><code>    0x8t000000 s 0     MBUS_ID(w, a) 0 1 0</code></pre>
<p style="white-space: pre-wrap">where:</p>
<pre><code>  * t is the type of the MBus window (as defined by the standard PCI DT
  bindings), 1 for I/O and 2 for memory.</code></pre>
<pre><code>  * s is the PCI slot that corresponds to this PCIe interface</code></pre>
<pre><code>  * w is the 'target ID' value for the MBus window</code></pre>
<pre><code>  * a the 'attribute' value for the MBus window.</code></pre>
<p style="white-space: pre-wrap">Since the location and size of the different MBus windows is not fixed in hardware, and only determined in runtime, those ranges cover the full first 4 GB of the physical address space, and do not translate into a valid CPU address.</p>
</div>

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

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

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

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

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-17f859dcb4ec55d5b1ca"></a>

### <code>&#94;pcie&#64;</code> — name matches this regular expression

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

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

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

<a id="dt-27e4620d03fc91fd5d8a"></a>

**Rule 1**

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-844ccb5114d65578ac46">[<code>&#47;schemas&#47;pci&#47;pci&#45;bus&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-shared/pci/pci-bus-common.md#dt-root>)</span>

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

**Rule 2**

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

<a id="dt-05993afbe6c970aa8ec3"></a>

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

<code>false</code>

Not allowed by this rule.

<a id="dt-050063cd79eba8273fd4"></a>

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

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

**<code>clocks</code> — required here**

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

<a id="dt-838d05cd5cdf4d63b597"></a>

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

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

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

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

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

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

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

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

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

**Item 1**

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

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

**Item 2**

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

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

**<code>reset&#45;delay&#45;us</code> — not listed as required here**

**Default value (<code>default</code>):** <span id="dt-d1eaeddd719b867c4648"><code>100000</code></span>

<div id="dt-f40c479e8e212403c3cd">
<p style="white-space: pre-wrap">todo</p>
</div>

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

**<code>marvell&#44;pcie&#45;port</code> — required here**

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

**Maximum value (<code>maximum</code>):** <span id="dt-3eb0200bb836f29c28ec"><code>3</code></span>

<div id="dt-51e0fe2210a015a42545">
<p style="white-space: pre-wrap">todo</p>
</div>

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

**<code>marvell&#44;pcie&#45;lane</code> — not listed as required here**

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

**Maximum value (<code>maximum</code>):** <span id="dt-6a91ebd84a8b8493d71b"><code>3</code></span>

<div id="dt-960bc0c8d6bdf35de441">
<p style="white-space: pre-wrap">todo</p>
</div>

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

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

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

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

**Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)**

<code>false</code>

Not allowed by this rule.

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

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

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

**<code>&#35;address&#45;cells</code> — not listed as required here**

**Exact value (<code>const</code>):** <span id="dt-679fb965591bbc290070"><code>0</code></span>

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

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

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

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

**<code>&#35;interrupt&#45;cells</code> — not listed as required here**

**Exact value (<code>const</code>):** <span id="dt-8c7a2293fc481b04d195"><code>1</code></span>

**Required in this object (<code>required</code>):** <a id="dt-ef36df052ce3e4cb0e9d"></a> <span id="dt-18498aeeedb183c9233b"><code>&#34;assigned&#45;addresses&#34;</code></span>, <span id="dt-7c8f4af0e498d495239b"><code>&#34;clocks&#34;</code></span>, <span id="dt-7bba257d2a432f65bfca"><code>&#34;interrupt&#45;map&#34;</code></span>, <span id="dt-f9211d278fa89ce2d133"><code>&#34;marvell&#44;pcie&#45;port&#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">#define MBUS_ID(target,attributes) (((target) &lt;&lt; 24) | ((attributes) &lt;&lt; 16))

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

    pcie@f001000000000000 {
        compatible = "marvell,armada-xp-pcie";
        device_type = "pci";

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

        bus-range = &lt;0x00 0xff&gt;;
        msi-parent = &lt;&amp;mpic&gt;;

        ranges =
              &lt;0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000  /* Port 0.0 registers */
                0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000  /* Port 2.0 registers */
                0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000  /* Port 0.1 registers */
                0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000  /* Port 0.2 registers */
                0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000  /* Port 0.3 registers */
                0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000  /* Port 1.0 registers */
                0x82000000 0 0x82000 MBUS_ID(0xf0, 0x01) 0x82000 0 0x00002000  /* Port 3.0 registers */
                0x82000000 0 0x84000 MBUS_ID(0xf0, 0x01) 0x84000 0 0x00002000  /* Port 1.1 registers */
                0x82000000 0 0x88000 MBUS_ID(0xf0, 0x01) 0x88000 0 0x00002000  /* Port 1.2 registers */
                0x82000000 0 0x8c000 MBUS_ID(0xf0, 0x01) 0x8c000 0 0x00002000  /* Port 1.3 registers */
                0x82000000 0x1 0     MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
                0x81000000 0x1 0     MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO  */
                0x82000000 0x2 0     MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
                0x81000000 0x2 0     MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO  */
                0x82000000 0x3 0     MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
                0x81000000 0x3 0     MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO  */
                0x82000000 0x4 0     MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
                0x81000000 0x4 0     MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO  */

                0x82000000 0x5 0     MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
                0x81000000 0x5 0     MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO  */
                0x82000000 0x6 0     MBUS_ID(0x08, 0xd8) 0 1 0 /* Port 1.1 MEM */
                0x81000000 0x6 0     MBUS_ID(0x08, 0xd0) 0 1 0 /* Port 1.1 IO  */
                0x82000000 0x7 0     MBUS_ID(0x08, 0xb8) 0 1 0 /* Port 1.2 MEM */
                0x81000000 0x7 0     MBUS_ID(0x08, 0xb0) 0 1 0 /* Port 1.2 IO  */
                0x82000000 0x8 0     MBUS_ID(0x08, 0x78) 0 1 0 /* Port 1.3 MEM */
                0x81000000 0x8 0     MBUS_ID(0x08, 0x70) 0 1 0 /* Port 1.3 IO  */

                0x82000000 0x9 0     MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
                0x81000000 0x9 0     MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO  */

                0x82000000 0xa 0     MBUS_ID(0x08, 0xf8) 0 1 0 /* Port 3.0 MEM */
                0x81000000 0xa 0     MBUS_ID(0x08, 0xf0) 0 1 0 /* Port 3.0 IO  */&gt;;

        pcie@1,0 {
            device_type = "pci";
            assigned-addresses = &lt;0x82000800 0 0x40000 0 0x2000&gt;;
            reg = &lt;0x0800 0 0 0 0&gt;;
            #address-cells = &lt;3&gt;;
            #size-cells = &lt;2&gt;;
            #interrupt-cells = &lt;1&gt;;
            ranges = &lt;0x82000000 0 0 0x82000000 0x1 0 1 0
                0x81000000 0 0 0x81000000 0x1 0 1 0&gt;;
            interrupt-map-mask = &lt;0 0 0 0&gt;;
            interrupt-map = &lt;0 0 0 0 &amp;mpic 58&gt;;
            marvell,pcie-port = &lt;0&gt;;
            marvell,pcie-lane = &lt;0&gt;;
            num-lanes = &lt;1&gt;;
            /* low-active PERST# reset on GPIO 25 */
            reset-gpios = &lt;&amp;gpio0 25 1&gt;;
            /* wait 20ms for device settle after reset deassertion */
            reset-delay-us = &lt;20000&gt;;
            clocks = &lt;&amp;gateclk 5&gt;;
        };

        pcie@2,0 {
            device_type = "pci";
            assigned-addresses = &lt;0x82001000 0 0x44000 0 0x2000&gt;;
            reg = &lt;0x1000 0 0 0 0&gt;;
            #address-cells = &lt;3&gt;;
            #size-cells = &lt;2&gt;;
            #interrupt-cells = &lt;1&gt;;
            ranges = &lt;0x82000000 0 0 0x82000000 0x2 0 1 0
                0x81000000 0 0 0x81000000 0x2 0 1 0&gt;;
            interrupt-map-mask = &lt;0 0 0 0&gt;;
            interrupt-map = &lt;0 0 0 0 &amp;mpic 59&gt;;
            marvell,pcie-port = &lt;0&gt;;
            marvell,pcie-lane = &lt;1&gt;;
            num-lanes = &lt;1&gt;;
            clocks = &lt;&amp;gateclk 6&gt;;
        };

        pcie@3,0 {
            device_type = "pci";
            assigned-addresses = &lt;0x82001800 0 0x48000 0 0x2000&gt;;
            reg = &lt;0x1800 0 0 0 0&gt;;
            #address-cells = &lt;3&gt;;
            #size-cells = &lt;2&gt;;
            #interrupt-cells = &lt;1&gt;;
            ranges = &lt;0x82000000 0 0 0x82000000 0x3 0 1 0
                0x81000000 0 0 0x81000000 0x3 0 1 0&gt;;
            interrupt-map-mask = &lt;0 0 0 0&gt;;
            interrupt-map = &lt;0 0 0 0 &amp;mpic 60&gt;;
            marvell,pcie-port = &lt;0&gt;;
            marvell,pcie-lane = &lt;2&gt;;
            num-lanes = &lt;1&gt;;
            clocks = &lt;&amp;gateclk 7&gt;;
        };

        pcie@4,0 {
            device_type = "pci";
            assigned-addresses = &lt;0x82002000 0 0x4c000 0 0x2000&gt;;
            reg = &lt;0x2000 0 0 0 0&gt;;
            #address-cells = &lt;3&gt;;
            #size-cells = &lt;2&gt;;
            #interrupt-cells = &lt;1&gt;;
            ranges = &lt;0x82000000 0 0 0x82000000 0x4 0 1 0
                0x81000000 0 0 0x81000000 0x4 0 1 0&gt;;
            interrupt-map-mask = &lt;0 0 0 0&gt;;
            interrupt-map = &lt;0 0 0 0 &amp;mpic 61&gt;;
            marvell,pcie-port = &lt;0&gt;;
            marvell,pcie-lane = &lt;3&gt;;
            num-lanes = &lt;1&gt;;
            clocks = &lt;&amp;gateclk 8&gt;;
        };

        pcie@5,0 {
            device_type = "pci";
            assigned-addresses = &lt;0x82002800 0 0x80000 0 0x2000&gt;;
            reg = &lt;0x2800 0 0 0 0&gt;;
            #address-cells = &lt;3&gt;;
            #size-cells = &lt;2&gt;;
            #interrupt-cells = &lt;1&gt;;
            ranges = &lt;0x82000000 0 0 0x82000000 0x5 0 1 0
                0x81000000 0 0 0x81000000 0x5 0 1 0&gt;;
            interrupt-map-mask = &lt;0 0 0 0&gt;;
            interrupt-map = &lt;0 0 0 0 &amp;mpic 62&gt;;
            marvell,pcie-port = &lt;1&gt;;
            marvell,pcie-lane = &lt;0&gt;;
            num-lanes = &lt;1&gt;;
            clocks = &lt;&amp;gateclk 9&gt;;
        };

        pcie@6,0 {
            device_type = "pci";
            assigned-addresses = &lt;0x82003000 0 0x84000 0 0x2000&gt;;
            reg = &lt;0x3000 0 0 0 0&gt;;
            #address-cells = &lt;3&gt;;
            #size-cells = &lt;2&gt;;
            #interrupt-cells = &lt;1&gt;;
            ranges = &lt;0x82000000 0 0 0x82000000 0x6 0 1 0
                0x81000000 0 0 0x81000000 0x6 0 1 0&gt;;
            interrupt-map-mask = &lt;0 0 0 0&gt;;
            interrupt-map = &lt;0 0 0 0 &amp;mpic 63&gt;;
            marvell,pcie-port = &lt;1&gt;;
            marvell,pcie-lane = &lt;1&gt;;
            num-lanes = &lt;1&gt;;
            clocks = &lt;&amp;gateclk 10&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</span></p>

</details>
