# AMD CDX bus controller

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

> Device-tree binding reference for AMD CDX bus controller.

<!-- SPDX-License-Identifier: (GPL-2.0 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;bus&#47;xlnx&#44;versal&#45;net&#45;cdx&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">CDX bus controller for AMD devices is implemented to dynamically
detect CDX bus and devices using the firmware.
The CDX bus manages multiple FPGA based hardware devices, which
can support network, crypto or any other specialized type of
devices. These FPGA based devices can be added/modified dynamically
on run-time.</p>
<p style="white-space: pre-wrap">All devices on the CDX bus will have a unique streamid (for IOMMU)
and a unique device ID (for MSI) corresponding to a requestor ID
(one to one associated with the device). The streamid and deviceid
are used to configure SMMU and GIC-ITS respectively.</p>
<p style="white-space: pre-wrap">iommu-map property is used to define the set of stream ids
corresponding to each device and the associated IOMMU.</p>
<p style="white-space: pre-wrap">The MSI writes are accompanied by sideband data (Device ID).
The msi-map property is used to associate the devices with the
device ID as well as the associated ITS controller.</p>
<p style="white-space: pre-wrap">rproc property (xlnx,rproc) is used to identify the remote processor
with which APU (Application Processor Unit) interacts to find out
the bus and device configuration.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Nipun Gupta &#60;nipun&#46;gupta&#64;amd&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Nikhil Agarwal &#60;nikhil&#46;agarwal&#64;amd&#46;com&#62;&#34;</code></span>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;xlnx&#44;versal&#45;net&#45;cdx&#34;</code></span>

<a id="dt-476cf51129594c4bb1fd"></a>

### <code>iommu&#45;map</code> — required here

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

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

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

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

<a id="dt-117b72432f0da6995fb2"></a>

### <code>xlnx&#44;rproc</code> — required here

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

<div id="dt-99a6327bd718802f2e17">
<p style="white-space: pre-wrap">phandle to the remoteproc_r5 rproc node using which APU interacts with remote processor.</p>
</div>

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

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

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

<a id="dt-2efe70314a961a652abe"></a>

### <code>&#35;address&#45;cells</code> — required here

**Allowed values (<code>enum</code>):** <a id="dt-01d9ce7fc56f712455be"></a> <span id="dt-94d3735d14e27e2d7df1"><code>1</code></span>, <span id="dt-0dda607ef98de398e3f7"><code>2</code></span>

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

### <code>&#35;size&#45;cells</code> — required here

**Allowed values (<code>enum</code>):** <a id="dt-11f8fcdf7ed0ce5274ad"></a> <span id="dt-1df5884131042d9f2b35"><code>1</code></span>, <span id="dt-0d778c9f0ef0966b501c"><code>2</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;iommu&#45;map&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;msi&#45;map&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;xlnx&#44;rproc&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;ranges&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;&#35;size&#45;cells&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></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-1a130cabaa8a47b058bf"></a>

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">cdx {
    compatible = "xlnx,versal-net-cdx";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    /* define map for RIDs 250-259 */
    iommu-map = &lt;250 &amp;smmu 250 10&gt;;
    /* define msi map for RIDs 250-259 */
    msi-map = &lt;250 &amp;its 250 10&gt;;
    xlnx,rproc = &lt;&amp;remoteproc_r5&gt;;
    ranges;
};
</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 OR BSD-2-Clause)</span></p>

</details>
