# Intel Service Layer Driver for Stratix10 SoC

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

> Device-tree binding reference for Intel Service Layer Driver for Stratix10 SoC.

<!-- 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;firmware&#47;intel&#44;stratix10&#45;svc&#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;Dinh Nguyen &#60;dinguyen&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Mahesh Rao &#60;mahesh&#46;rao&#64;altera&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Intel Stratix10 SoC is composed of a 64 bit quad-core ARM Cortex A53 hard processor system (HPS) and Secure Device Manager (SDM). When the FPGA is configured from HPS, there needs to be a way for HPS to notify SDM the location and size of the configuration data. Then SDM will get the configuration data from that location and perform the FPGA configuration.
To meet the whole system security needs and support virtual machine requesting communication with SDM, only the secure world of software (EL3, Exception Layer 3) can interface with SDM. All software entities running on other exception layers must channel through the EL3 software whenever it needs service from SDM.
Intel Stratix10 service layer driver, running at privileged exception level (EL1, Exception Layer 1), interfaces with the service providers and provides the services for FPGA configuration, QSPI, Crypto and warm reset. Service layer driver also manages secure monitor call (SMC) to communicate with secure monitor code running in EL3.</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;intel&#44;stratix10&#45;svc&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;intel&#44;agilex&#45;svc&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;intel&#44;agilex5&#45;svc&#34;</code></span>

<a id="dt-56d20c2fbc412b1c7185"></a>

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

<div id="dt-d44c6019d774fabafa96">
<p style="white-space: pre-wrap">Supervisory call method to be used to communicate with the
secure service layer.
Permitted values are:
- "smc" : SMC #0, following the SMCCC
- "hvc" : HVC #0, following the SMCCC</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-bcc5905647f9af4090ca"></a> <span id="dt-ddec530f7ba7620ddc6a"><code>&#34;smc&#34;</code></span>, <span id="dt-ce2659a732a2104a0842"><code>&#34;hvc&#34;</code></span>

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

### <code>memory&#45;region</code> — required here

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

<div id="dt-b794f979757a4fadd5eb">
<p style="white-space: pre-wrap">reserved memory region for the service layer driver to communicate with the secure device manager.</p>
</div>

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

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

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

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

### <code>fpga&#45;mgr</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-847d1c4ce9f795ec916c">[<code>&#47;schemas&#47;fpga&#47;intel&#44;stratix10&#45;soc&#45;fpga&#45;mgr&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-fpga/intel-stratix10-soc-fpga-mgr.md#dt-root>)</span>

<div id="dt-735704247a31eb105dd2">
<p style="white-space: pre-wrap">Optional child node for fpga manager to perform fabric configuration.</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;method&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;memory&#45;region&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-b5c9dbe70762f9ad7bb5"></a> <span id="dt-d017b1b1b5a0bb01c549"><code>&#34;intel&#44;agilex5&#45;svc&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-b0b2f2243ff9a854f151"></a> <span id="dt-4e9ead0e861b67997dec"><code>&#34;iommus&#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">reserved-memory {
  #address-cells = &lt;2&gt;;
  #size-cells = &lt;2&gt;;

  service_reserved: svcbuffer@0 {
          compatible = "shared-dma-pool";
          reg = &lt;0x0 0x0 0x0 0x1000000&gt;;
          alignment = &lt;0x1000&gt;;
          no-map;
  };
};

firmware {
  svc {
    compatible = "intel,stratix10-svc";
    method = "smc";
    memory-region = &lt;&amp;service_reserved&gt;;

    fpga-mgr {
      compatible = "intel,stratix10-soc-fpga-mgr";
    };
  };
};
</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>
