# PCI Host Bridge Nodes

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / pci_

> Device-tree binding reference for PCI Host Bridge Nodes.

<!-- SPDX-License-Identifier: (GPL2.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;pci&#45;host&#45;bridge&#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;base&#46;yaml&#35;&#34;</code></span>

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

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Common properties for PCI host bridge nodes. PCI host bridges implement the
PCI bus binding plus additional properties for mapping host resources into
PCI space.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Rob Herring &#60;robh&#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>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-22ca5ec5b89308748ecc"></a>

### Rule 2

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

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

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

<a id="dt-3867543ed7ae763c635e"></a>

### <code>linux&#44;pci&#45;domain</code> — not listed as required here

<div id="dt-485a3065507d002af0fb">
<p style="white-space: pre-wrap">If present this property assigns a fixed PCI domain number to a host bridge, otherwise an unstable (across boots) unique number will be assigned. It is required to either not set this property at all or set it for all host bridges in the system, otherwise potentially conflicting domain numbers may be assigned to root buses behind different host bridges.  The domain number for each host bridge in the system must be unique.</p>
</div>

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

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

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

<div id="dt-54ed7189386b290602d7">
<p style="white-space: pre-wrap">Maps a Requester ID (AKA RID) to an MSI controller and associated msi-specifier data.
Each PCI device under a root complex is uniquely identified by its Requester ID. A Requester ID is a triplet of a Bus number, Device number, and Function number.
For the purpose of this document, when treated as a numeric value, a RID is formatted such that:</p>
<pre><code>  * Bits [15:8] are the Bus number.
  * Bits [7:3] are the Device number.
  * Bits [2:0] are the Function number.
  * Any other bits required for padding must be zero.</code></pre>
<p style="white-space: pre-wrap">MSIs may be distinguished in part through the use of sideband data accompanying writes. In the case of PCI devices, this sideband data may be derived from the Requester ID. A mechanism is required to associate a device with both the MSI controllers it can address, and the sideband data that will be associated with its writes to those controllers.
Any RID r in the interval [rid-base, rid-base + length) is associated with the listed msi-controller, with the msi-specifier (r - rid-base + msi-base).</p>
</div>

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

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

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

> <a id="dt-a6639d80812e51c25c32"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-a728dcd899d004a4712f"></a>
>
> **Item 1**
>
> > <div id="dt-827fd622dae755a9310d">
> > <p style="white-space: pre-wrap">The RID base matched by the entry</p>
> > </div>
>
> <a id="dt-f3d99ee112ea8e5efdce"></a>
>
> **Item 2**
>
> > <div id="dt-a45a1cff87aa69d1f927">
> > <p style="white-space: pre-wrap">phandle to msi-controller node</p>
> > </div>
>
> <a id="dt-aef9a9bbf0704baa9c69"></a>
>
> **Item 3**
>
> > <div id="dt-48815ec1e4c4be05f9b2">
> > <p style="white-space: pre-wrap">(optional) The msi-specifier produced for the first RID matched by the entry. Currently, msi-specifier is 0 or 1 cells.</p>
> > </div>
>
> <a id="dt-bf75e11bae22fbdc9ac9"></a>
>
> **Item 4**
>
> > <div id="dt-428ece21ca8f5405365d">
> > <p style="white-space: pre-wrap">The length of consecutive RIDs following the RID base</p>
> > </div>

<a id="dt-8348eccb058042c2c9a4"></a>

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

<div id="dt-12fe564b9ea9db965be0">
<p style="white-space: pre-wrap">A mask to be applied to each Requester ID prior to being mapped to an msi-specifier per the msi-map property.</p>
</div>

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

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

### <code>vendor&#45;id</code> — not listed as required here

<div id="dt-409bfc0965622bb155e0">
<p style="white-space: pre-wrap">The PCI vendor ID</p>
</div>

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

<a id="dt-863b5179387fb92b257a"></a>

### <code>device&#45;id</code> — not listed as required here

<div id="dt-585d3ee52ea59ba74faa">
<p style="white-space: pre-wrap">The PCI device ID</p>
</div>

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

**Requirements triggered by another property (<code>dependentRequired</code>):** <a id="dt-e3a4857bf233f030e290"></a> { <code>msi&#45;map&#45;mask</code>: <a id="dt-fe184159fa42c6965d18"></a> <span id="dt-a4f874e0a7af62710b5c"><code>&#34;msi&#45;map&#34;</code></span> }

<a id="dt-738c4b4f9e483441138b"></a>

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

<code>true</code>

Allowed by this rule.

## Source notes

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

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

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright 2018 Linaro Ltd.</span></p>

<p id="dt-comment-2"><strong>Line 3:</strong> <span> Copyright 2024 Arm Ltd.</span></p>

</details>
