# Freescale SoC SEC Security Engines versions 1.x-2.x-3.x

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

> Device-tree binding reference for Freescale SoC SEC Security Engines versions 1.x-2.x-3.x.

<!-- 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;crypto&#47;fsl&#44;sec2&#46;0&#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;J&#46; Neuschäfer &#60;j&#46;ne&#64;posteo&#46;net&#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

<div id="dt-e84064a2d568e9bcb9c3">
<p style="white-space: pre-wrap">Should contain entries for this and backward compatible SEC versions, high to low. Warning - SEC1 and SEC2 are mutually exclusive.</p>
</div>

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-5deec2612224d8d915da"><code>&#34;fsl&#44;sec3&#46;3&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;fsl&#44;sec3&#46;1&#34;</code></span>
>
> <a id="dt-8aea0680b70f72ffdfb0"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-a8216d5f954c632b59e8"><code>&#34;fsl&#44;sec3&#46;0&#34;</code></span>
>
> <a id="dt-6163056df22749f1421a"></a>
>
> **Item 4**
>
> > **Exact value (<code>const</code>):** <span id="dt-7311bfd4c0bd25093f8d"><code>&#34;fsl&#44;sec2&#46;4&#34;</code></span>
>
> <a id="dt-973ad3018abc156c83f8"></a>
>
> **Item 5**
>
> > **Exact value (<code>const</code>):** <span id="dt-7816cf3d4d4bc855f7c1"><code>&#34;fsl&#44;sec2&#46;2&#34;</code></span>
>
> <a id="dt-e9f2a0f5951b95d3c58e"></a>
>
> **Item 6**
>
> > **Exact value (<code>const</code>):** <span id="dt-2ee1b2178abc26ecfac0"><code>&#34;fsl&#44;sec2&#46;1&#34;</code></span>
>
> <a id="dt-60bdcf7c4cd67f70f0c3"></a>
>
> **Item 7**
>
> > **Exact value (<code>const</code>):** <span id="dt-f98df9141815e5e34fbc"><code>&#34;fsl&#44;sec2&#46;0&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;fsl&#44;sec3&#46;1&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;fsl&#44;sec3&#46;0&#34;</code></span>
>
> <a id="dt-1655c7bc2063a21f60f8"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-7c57653c6bcac024338a"><code>&#34;fsl&#44;sec2&#46;4&#34;</code></span>
>
> <a id="dt-57437c0d10782bde958a"></a>
>
> **Item 4**
>
> > **Exact value (<code>const</code>):** <span id="dt-248a236f88d4e7d4de92"><code>&#34;fsl&#44;sec2&#46;2&#34;</code></span>
>
> <a id="dt-3f529ba40fabaab1c08d"></a>
>
> **Item 5**
>
> > **Exact value (<code>const</code>):** <span id="dt-e207150d7bf6d3824b22"><code>&#34;fsl&#44;sec2&#46;1&#34;</code></span>
>
> <a id="dt-cfd7d4338bb9aabafd90"></a>
>
> **Item 6**
>
> > **Exact value (<code>const</code>):** <span id="dt-a38546b2aec867eca8d4"><code>&#34;fsl&#44;sec2&#46;0&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <a id="dt-e626d61e9d5d76cc48f9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6b46935eab08de6d1f0a"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-b4cf31a5f463012e1429"><code>&#34;fsl&#44;sec3&#46;0&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-e9c55cb91230c7ee5a28"><code>&#34;fsl&#44;sec2&#46;4&#34;</code></span>
>
> <a id="dt-3acd265d2314f4be0bd4"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-d09fdb468825e586f676"><code>&#34;fsl&#44;sec2&#46;2&#34;</code></span>
>
> <a id="dt-9dc62c1b017137f17215"></a>
>
> **Item 4**
>
> > **Exact value (<code>const</code>):** <span id="dt-96ab7ffbdab919bc107a"><code>&#34;fsl&#44;sec2&#46;1&#34;</code></span>
>
> <a id="dt-d210d02b6da0edf888c0"></a>
>
> **Item 5**
>
> > **Exact value (<code>const</code>):** <span id="dt-8ec0ac5703b05237d225"><code>&#34;fsl&#44;sec2&#46;0&#34;</code></span>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> <a id="dt-a1b1c435b08c85ff96c7"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4758c8f9c99bfa28b10c"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-4c3894ced8f7125f7050"><code>&#34;fsl&#44;sec2&#46;4&#34;</code></span>
>
> <a id="dt-c99d921c49bf15e79633"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-9e0f2ef968dd632f09b7"><code>&#34;fsl&#44;sec2&#46;2&#34;</code></span>
>
> <a id="dt-a173ae1b2bc94ef6d3cd"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-fa32c9ce3acc1f92990a"><code>&#34;fsl&#44;sec2&#46;1&#34;</code></span>
>
> <a id="dt-dda64f8dac7dddd1d9f5"></a>
>
> **Item 4**
>
> > **Exact value (<code>const</code>):** <span id="dt-326780ebf194b807e1ae"><code>&#34;fsl&#44;sec2&#46;0&#34;</code></span>

<a id="dt-6932ba24e194ea67730d"></a>

**Rule 5**

> <a id="dt-196210d7e8a5e94e1226"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-4b7c967de45ba4ead27f"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-3f49949a764b6257a77a"><code>&#34;fsl&#44;sec2&#46;2&#34;</code></span>
>
> <a id="dt-caf6ce7d7f34e1e8d173"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-4a97b7e5e83d59103118"><code>&#34;fsl&#44;sec2&#46;1&#34;</code></span>
>
> <a id="dt-b60e8035dcb49b4d9b83"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-22ab81fe233b88f4cb1e"><code>&#34;fsl&#44;sec2&#46;0&#34;</code></span>

<a id="dt-264a99ec2691e9f8d8d2"></a>

**Rule 6**

> <a id="dt-4dad5affd79a503edb55"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-d020c8ab76f112be7460"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-871cc0788ba4de3e95d6"><code>&#34;fsl&#44;sec2&#46;1&#34;</code></span>
>
> <a id="dt-ad0f80061981c404704b"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-bc7bfc6606ce7d2bcbe4"><code>&#34;fsl&#44;sec2&#46;0&#34;</code></span>

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

**Rule 7**

> <a id="dt-12134cfffbae030c1559"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-0f098b450772c8e28b15"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-98fb02bf6c2d83a04ca9"><code>&#34;fsl&#44;sec2&#46;0&#34;</code></span>

<a id="dt-60b24f68de01e59cfd70"></a>

**Rule 8**

> <a id="dt-a91f11e3ee56eb619882"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-611ad0263e50f540b36a"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-ad3f680e1047a7885dd7"><code>&#34;fsl&#44;sec1&#46;2&#34;</code></span>
>
> <a id="dt-d3f9d0dbf0af675db82a"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-6abcaea81f09b95281a2"><code>&#34;fsl&#44;sec1&#46;0&#34;</code></span>

<a id="dt-840363fe85852843a5d5"></a>

**Rule 9**

> <a id="dt-ff4224cf7f5631129c4c"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-0c8abd288d8f759ad679"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-1f45163265c31da42806"><code>&#34;fsl&#44;sec1&#46;0&#34;</code></span>

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

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

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

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

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

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

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

### <code>fsl&#44;num&#45;channels</code> — required here

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

**Allowed values (<code>enum</code>):** <a id="dt-3edc460836e2fbd52952"></a> <span id="dt-6613b1a3f6dd2df3aa9a"><code>1</code></span>, <span id="dt-6d3df4f99a31e7c8becd"><code>4</code></span>

<div id="dt-a9b31db3f7e6ecafae20">
<p style="white-space: pre-wrap">An integer representing the number of channels available.</p>
</div>

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

### <code>fsl&#44;channel&#45;fifo&#45;len</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-46a96580eee02cd50b54">[<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-64702a4e135124718a52"><code>100</code></span>

<div id="dt-a56ee8a3c3ece03251be">
<p style="white-space: pre-wrap">An integer representing the number of descriptor pointers each channel fetch fifo can hold.</p>
</div>

<a id="dt-0acb9f8f793413837846"></a>

### <code>fsl&#44;exec&#45;units&#45;mask</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c7a3497d3ca63e5bebb7">[<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-6ecbf2f337bfc5062221"><code>4095</code></span>

<div id="dt-e9511bca17bc976b4df5">
<p style="white-space: pre-wrap">The bitmask representing what execution units (EUs) are available.
EU information should be encoded following the SEC's Descriptor Header
Dword EU_SEL0 field documentation, i.e. as follows:</p>
<pre><code>  bit 0  = reserved - should be 0
  bit 1  = set if SEC has the ARC4 EU (AFEU)
  bit 2  = set if SEC has the DES/3DES EU (DEU)
  bit 3  = set if SEC has the message digest EU (MDEU/MDEU-A)
  bit 4  = set if SEC has the random number generator EU (RNG)
  bit 5  = set if SEC has the public key EU (PKEU)
  bit 6  = set if SEC has the AES EU (AESU)
  bit 7  = set if SEC has the Kasumi EU (KEU)
  bit 8  = set if SEC has the CRC EU (CRCU)
  bit 11 = set if SEC has the message digest EU extended alg set (MDEU-B)</code></pre>
<p style="white-space: pre-wrap">remaining bits are reserved for future SEC EUs.</p>
</div>

<a id="dt-90179b6a5c1e2bfe8f90"></a>

### <code>fsl&#44;descriptor&#45;types&#45;mask</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1b4ba229ec38de8abc68">[<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-c8aa37326fa5d255ef7f">
<p style="white-space: pre-wrap">The bitmask representing what descriptors are available. Descriptor type
information should be encoded following the SEC's Descriptor Header Dword
DESC_TYPE field documentation, i.e. as follows:</p>
<pre><code>  bit 0  = SEC supports descriptor type aesu_ctr_nonsnoop
  bit 1  = SEC supports descriptor type ipsec_esp
  bit 2  = SEC supports descriptor type common_nonsnoop
  bit 3  = SEC supports descriptor type 802.11i AES ccmp
  bit 4  = SEC supports descriptor type hmac_snoop_no_afeu
  bit 5  = SEC supports descriptor type srtp
  bit 6  = SEC supports descriptor type non_hmac_snoop_no_afeu
  bit 7  = SEC supports descriptor type pkeu_assemble
  bit 8  = SEC supports descriptor type aesu_key_expand_output
  bit 9  = SEC supports descriptor type pkeu_ptmul
  bit 10 = SEC supports descriptor type common_nonsnoop_afeu
  bit 11 = SEC supports descriptor type pkeu_ptadd_dbl</code></pre>
<p style="white-space: pre-wrap">..and so on and so forth.</p>
</div>

**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;fsl&#44;num&#45;channels&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;fsl&#44;channel&#45;fifo&#45;len&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;fsl&#44;exec&#45;units&#45;mask&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;fsl&#44;descriptor&#45;types&#45;mask&#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">/* MPC8548E */
crypto@30000 {
    compatible = "fsl,sec2.1", "fsl,sec2.0";
    reg = &lt;0x30000 0x10000&gt;;
    interrupts = &lt;29 2&gt;;
    interrupt-parent = &lt;&amp;mpic&gt;;
    fsl,num-channels = &lt;4&gt;;
    fsl,channel-fifo-len = &lt;24&gt;;
    fsl,exec-units-mask = &lt;0xfe&gt;;
    fsl,descriptor-types-mask = &lt;0x12b0ebf&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>
