# Freescale Management Complex

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

> Device-tree binding reference for Freescale Management 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;misc&#47;fsl&#44;qoriq&#45;mc&#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;Frank Li &#60;Frank&#46;Li&#64;nxp&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Freescale Management Complex (fsl-mc) is a hardware resource
manager that manages specialized hardware objects used in
network-oriented packet processing applications. After the fsl-mc
block is enabled, pools of hardware resources are available, such as
queues, buffer pools, I/O interfaces. These resources are building
blocks that can be used to create functional hardware objects/devices
such as network interfaces, crypto accelerator instances, L2 switches,
etc.</p>
<p style="white-space: pre-wrap">For an overview of the DPAA2 architecture and fsl-mc bus see:
Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst</p>
<p style="white-space: pre-wrap">As described in the above overview, all DPAA2 objects in a DPRC share the
same hardware "isolation context" and a 10-bit value called an ICID
(isolation context id) is expressed by the hardware to identify
the requester.</p>
<p style="white-space: pre-wrap">The generic 'iommus' property is insufficient to describe the relationship
between ICIDs and IOMMUs, so an iommu-map property is used to define
the set of possible ICIDs under a root DPRC and how they map to
an IOMMU.</p>
<p style="white-space: pre-wrap">For generic IOMMU bindings, see
Documentation/devicetree/bindings/iommu/iommu.txt.</p>
<p style="white-space: pre-wrap">For arm-smmu binding, see:
Documentation/devicetree/bindings/iommu/arm,smmu.yaml.</p>
<p style="white-space: pre-wrap">The MSI writes are accompanied by sideband data which is derived from the ICID.
The msi-map property is used to associate the devices with both the ITS
controller and the sideband data which accompanies the writes.</p>
<p style="white-space: pre-wrap">For generic MSI bindings, see
Documentation/devicetree/bindings/interrupt-controller/msi.txt.</p>
<p style="white-space: pre-wrap">For GICv3 and GIC ITS bindings, see:
Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml.</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;fsl&#44;qoriq&#45;mc&#34;</code></span>

<div id="dt-e84064a2d568e9bcb9c3">
<p style="white-space: pre-wrap">Must be "fsl,qoriq-mc".  A Freescale Management Complex compatible with this binding must have Block Revision Registers BRR1 and BRR2 at offset 0x0BF8 and 0x0BFC in the MC control register region.</p>
</div>

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">the first region is the command portal for the this machine and must always be present</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">the second region is the MC control registers. This region may not be present in some scenarios, such as in the device tree presented to a virtual machine.</p>
> </div>

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

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

<div id="dt-e09d62fd28b1cb158f01">
<p style="white-space: pre-wrap">A standard property.  Defines the mapping between the child
MC address space and the parent system address space.</p>
<pre><code>The MC address space is defined by 3 components:
  &lt;region type&gt; &lt;offset hi&gt; &lt;offset lo&gt;</code></pre>
<pre><code>Valid values for region type are
  0x0 - MC portals
  0x1 - QBMAN portals</code></pre>
</div>

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

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

**Exact value (<code>const</code>):** <span id="dt-e6e6af09ab617572731b"><code>3</code></span>

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

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

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

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

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

<div id="dt-8e0b4813cab58856655c">
<p style="white-space: pre-wrap">Maps an ICID to an IOMMU and associated iommu-specifier
data.</p>
<p style="white-space: pre-wrap">The property is an arbitrary number of tuples of
(icid-base,iommu,iommu-base,length).</p>
<p style="white-space: pre-wrap">Any ICID i in the interval [icid-base, icid-base + length) is
associated with the listed IOMMU, with the iommu-specifier
(i - icid-base + iommu-base).</p>
</div>

<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 an ICID to a GIC ITS and associated msi-specifier
data.</p>
<p style="white-space: pre-wrap">The property is an arbitrary number of tuples of
(icid-base,gic-its,msi-base,length).</p>
<p style="white-space: pre-wrap">Any ICID in the interval [icid-base, icid-base + length) is
associated with the listed GIC ITS, with the msi-specifier
(i - icid-base + msi-base).</p>
</div>

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

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

**Deprecated (<code>deprecated</code>):** <span id="dt-9afe7b45f2a9782451a4"><code>true</code></span>

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

<div id="dt-1ceeaa301b582d73ee88">
<p style="white-space: pre-wrap">Describes the MSI controller node handling message interrupts for the MC. When there is no translation between the ICID and deviceID this property can be used to describe the MSI controller used by the devices on the mc-bus. The use of this property for mc-bus is deprecated. Please use msi-map.</p>
</div>

<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-7b6503566061887e0ecc"></a>

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

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

<div id="dt-3d6410072ec54c31955c">
<p style="white-space: pre-wrap">The fsl-mc node may optionally have dpmac sub-nodes that describe the relationship between the Ethernet MACs which belong to the MC and the Ethernet PHYs on the system board.</p>
</div>

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

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

<a id="dt-75c9a71cafc8b7ebca97"></a>

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

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

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

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

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

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

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

<a id="dt-9385f8f737c093fd15d1"></a>

**<code>&#94;ethernet&#64;&#91;a&#45;f0&#45;9&#93;&#43;&#36;</code> — name matches this regular expression**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5342f384d7ad1014b16c">[<code>&#47;schemas&#47;net&#47;fsl&#44;qoriq&#45;mc&#45;dpmac&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-net/fsl-qoriq-mc-dpmac.md#dt-root>)</span>

<a id="dt-72f87d816d949c2debad"></a>

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

<code>false</code>

Not allowed by this rule.

**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>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><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">fsl-mc@80c000000 {
    compatible = "fsl,qoriq-mc";
    reg = &lt;0x0c000000 0x40&gt;,    /* MC portal base */
          &lt;0x08340000 0x40000&gt;; /* MC control reg */
    /*
     * Region type 0x0 - MC portals
     * Region type 0x1 - QBMAN portals
     */
    ranges = &lt;0x0 0x0 0x8 0x0c000000 0x4000000
             0x1 0x0 0x8 0x18000000 0x8000000&gt;;
    
    /* define map for ICIDs 23-64 */
    iommu-map = &lt;23 &amp;smmu 23 41&gt;;
    /* define msi map for ICIDs 23-64 */
    msi-map = &lt;23 &amp;its 23 41&gt;;
    #address-cells = &lt;3&gt;;
    #size-cells = &lt;1&gt;;

    dpmacs {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        ethernet@1 {
            compatible = "fsl,qoriq-mc-dpmac";
            reg = &lt;1&gt;;
            phy-handle = &lt;&amp;mdio0_phy0&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>

</details>
