# Freescale Frame Manager Device

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

> Device-tree binding reference for Freescale Frame Manager Device.

<!-- 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;net&#47;fsl&#44;fman&#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">Due to the fact that the FMan is an aggregation of sub-engines (ports, MACs, etc.) the FMan node will have child nodes for each of them.</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;fman&#34;</code></span>

<div id="dt-e84064a2d568e9bcb9c3">
<p style="white-space: pre-wrap">FMan version can be determined via FM_IP_REV_1 register in the FMan block. The offset is 0xc4 from the beginning of the Frame Processing Manager memory map (0xc3000 from the beginning of the FMan node).</p>
</div>

<a id="dt-19cbc5b7e5dabb16c580"></a>

### <code>cell&#45;index</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-096684b9829d7fb87075">[<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-8d4ab3d90cbbdd65cb67">
<p style="white-space: pre-wrap">Specifies the index of the FMan unit.</p>
<p style="white-space: pre-wrap">The cell-index value may be used by the SoC, to identify the
FMan unit in the SoC memory map. In the table below,
there's a description of the cell-index use in each SoC:</p>
<p style="white-space: pre-wrap">- P1023:
register[bit]      FMan unit  cell-index
============================================================
DEVDISR[1]      1    0</p>
<pre><code>- P2041, P3041, P4080 P5020, P5040:
register[bit]      FMan unit  cell-index
============================================================
DCFG_DEVDISR2[6]    1    0
DCFG_DEVDISR2[14]    2    1
  (Second FM available only in P4080 and P5040)</code></pre>
<pre><code>- B4860, T1040, T2080, T4240:
register[bit]      FMan unit  cell-index
============================================================
DCFG_CCSR_DEVDISR2[24]    1    0
DCFG_CCSR_DEVDISR2[25]    2    1
  (Second FM available only in T4240)</code></pre>
<p style="white-space: pre-wrap">DEVDISR, DCFG_DEVDISR2 and DCFG_CCSR_DEVDISR2 are located in
the specific SoC "Device Configuration/Pin Control" Memory
Map.</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">BMI configuration registers.</p>
> </div>

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

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">QMI configuration registers.</p>
> </div>

<a id="dt-80d36cb915ffeff5364a"></a>

**Item 3**

> <div id="dt-5151e97c331b693ee0dd">
> <p style="white-space: pre-wrap">DMA configuration registers.</p>
> </div>

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

**Item 4**

> <div id="dt-e7b71b4619e949c538b1">
> <p style="white-space: pre-wrap">FPM configuration registers.</p>
> </div>

<a id="dt-55b482bd3ef74ad8e49c"></a>

**Item 5**

> <div id="dt-9034b08616e8a84a1200">
> <p style="white-space: pre-wrap">FMan controller configuration registers.</p>
> </div>

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

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

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

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

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

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

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

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — required here

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;fmanclk&#34;</code></span>

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

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

<a id="dt-985aed94c3a5de8e946a"></a>

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

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

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">The first element is associated with the event interrupts.</p>
> </div>

<a id="dt-14fdf3275cf454d3c593"></a>

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">the second element is associated with the error interrupts.</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-34373592cd164c46e743"></a>

### <code>ptimer&#45;handle</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5035e0316cdfa0fa19e5">[<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-7945dc0c9994eb380c66">
<p style="white-space: pre-wrap">see ptp/fsl,ptp.yaml</p>
</div>

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

### <code>fsl&#44;qman&#45;channel&#45;range</code> — required here

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

<div id="dt-ac043b6306e8e7d227f4">
<p style="white-space: pre-wrap">Specifies the range of the available dedicated channels in the FMan. The first cell specifies the beginning of the range and the second cell specifies the number of channels</p>
</div>

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

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

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

**Item 1**

> <div id="dt-5b6ed18593fc8135c5b4">
> <p style="white-space: pre-wrap">The first cell specifies the beginning of the range.</p>
> </div>

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

**Item 2**

> <div id="dt-8659a5bf728dfb6db59f">
> <p style="white-space: pre-wrap">The second cell specifies the number of channels.
> Further information available at:
> "Work Queue (WQ) Channel Assignments in the QMan" section
> in DPAA Reference Manual.</p>
> </div>

<a id="dt-09da713f24ef373df48b"></a>

### <code>fsl&#44;qman</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-642a304d1066d281af0e">[<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-95ba24665be4483a8363">
<p style="white-space: pre-wrap">See soc/fsl/qman.txt</p>
</div>

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

### <code>fsl&#44;bman</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-43eb43df15affa166dac">[<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-8f4e964e908d600b16a5">
<p style="white-space: pre-wrap">See soc/fsl/bman.txt</p>
</div>

<a id="dt-555e148d67f7d6c46d80"></a>

### <code>fsl&#44;erratum&#45;a050385</code> — not listed as required here

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

<div id="dt-5b4da7a53c1234d9a459">
<p style="white-space: pre-wrap">A boolean property. Indicates the presence of the erratum A050385 which indicates that DMA transactions that are split can result in a FMan lock.</p>
</div>

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

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

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

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

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

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

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

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

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

### <code>&#94;muram&#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-d6fcf84eba65133e60f6">[<code>fsl&#44;fman&#45;muram&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-net/fsl-fman-muram.md#dt-root>)</span>

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

### <code>&#94;port&#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-61bae03b2fd10a0d0d64">[<code>fsl&#44;fman&#45;port&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-net/fsl-fman-port.md#dt-root>)</span>

<a id="dt-d205e1b20933beb563ef"></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-bb37a672f451a97f81ad">[<code>fsl&#44;fman&#45;dtsec&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-net/fsl-fman-dtsec.md#dt-root>)</span>

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

### <code>&#94;mdio&#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-b6c2ac89b9e81aee2bb4">[<code>fsl&#44;fman&#45;mdio&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-net/fsl-fman-mdio.md#dt-root>)</span>

<a id="dt-9567994e353d2e9bfa72"></a>

### <code>&#94;phc&#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-07cc6b374d1938362224">[<code>&#47;schemas&#47;ptp&#47;fsl&#44;ptp&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-ptp/fsl-ptp.md#dt-root>)</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;cell&#45;index&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;reg&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ranges&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;clocks&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;interrupts&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;fsl&#44;qman&#45;channel&#45;range&#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">#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

fman@400000 {
    compatible = "fsl,fman";
    reg = &lt;0x400000 0x100000&gt;;
    ranges = &lt;0 0x400000 0x100000&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    cell-index = &lt;1&gt;;
    clocks = &lt;&amp;fman_clk&gt;;
    clock-names = "fmanclk";
    interrupts = &lt;96 IRQ_TYPE_EDGE_FALLING&gt;,
                 &lt;16 IRQ_TYPE_EDGE_FALLING&gt;;
    fsl,qman-channel-range = &lt;0x40 0xc&gt;;

    muram@0 {
        compatible = "fsl,fman-muram";
        reg = &lt;0x0 0x28000&gt;;
    };

    port@81000 {
        cell-index = &lt;1&gt;;
        compatible = "fsl,fman-v2-port-oh";
        reg = &lt;0x81000 0x1000&gt;;
    };

    fman1_rx_0x8: port@88000 {
        cell-index = &lt;0x8&gt;;
        compatible = "fsl,fman-v2-port-rx";
        reg = &lt;0x88000 0x1000&gt;;
    };

    fman1_tx_0x28: port@a8000 {
        cell-index = &lt;0x28&gt;;
        compatible = "fsl,fman-v2-port-tx";
        reg = &lt;0xa8000 0x1000&gt;;
    };

    ethernet@e0000 {
        compatible = "fsl,fman-dtsec";
        cell-index = &lt;0&gt;;
        reg = &lt;0xe0000 0x1000&gt;;
        ptp-timer = &lt;&amp;ptp_timer&gt;;
        fsl,fman-ports = &lt;&amp;fman1_rx_0x8 &amp;fman1_tx_0x28&gt;;
        tbi-handle = &lt;&amp;tbi5&gt;;
    };

    ptp_timer: phc@fe000 {
        compatible = "fsl,fman-ptp-timer";
        reg = &lt;0xfe000 0x1000&gt;;
        interrupts = &lt;12 IRQ_TYPE_LEVEL_LOW&gt;;
    };

    mdio@f1000 {
        compatible = "fsl,fman-xmdio";
        reg = &lt;0xf1000 0x1000&gt;;
        interrupts = &lt;101 IRQ_TYPE_EDGE_FALLING&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>
