# Fpga bindings

---

# Altera Passive Serial SPI FPGA Manager

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

> Device-tree binding reference for Altera Passive Serial SPI FPGA Manager.

<!-- 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;fpga&#47;altr&#44;fpga&#45;passive&#45;serial&#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;Fabio Estevam &#60;festevam&#64;denx&#46;de&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Altera FPGAs support a method of loading the bitstream over what is
referred to as "passive serial".
The passive serial link is not technically SPI, and might require extra
circuits in order to play nicely with other SPI slaves on the same bus.</p>
<p style="white-space: pre-wrap">See https://www.altera.com/literature/hb/cyc/cyc_c51013.pdf</p>
</div>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</span>

<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;altr&#44;fpga&#45;passive&#45;serial&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;altr&#44;fpga&#45;arria10&#45;passive&#45;serial&#34;</code></span>

<a id="dt-03a3b4f56bf191dde680"></a>

### <code>spi&#45;max&#45;frequency</code> — not listed as required here

**Maximum value (<code>maximum</code>):** <span id="dt-f17e1c3bb71259096275"><code>20000000</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-38fba127ed1950054741"></a>

### <code>nconfig&#45;gpios</code> — required here

<div id="dt-556057e64c9fc21ee394">
<p style="white-space: pre-wrap">Config pin (referred to as nCONFIG in the manual).</p>
</div>

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

<a id="dt-51b6ece384597fc8461e"></a>

### <code>nstat&#45;gpios</code> — required here

<div id="dt-93253dd594bd9f60a28f">
<p style="white-space: pre-wrap">Status pin (referred to as nSTATUS in the manual).</p>
</div>

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

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

### <code>confd&#45;gpios</code> — not listed as required here

<div id="dt-49dbf208bbf1cca7e91e">
<p style="white-space: pre-wrap">confd pin (referred to as CONF_DONE in the manual)</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-e24768af9fe705a4132e"><code>1</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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;nconfig&#45;gpios&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;nstat&#45;gpios&#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/gpio/gpio.h&gt;

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

  fpga@0 {
    compatible = "altr,fpga-passive-serial";
    reg = &lt;0&gt;;
    nconfig-gpios = &lt;&amp;gpio4 18 GPIO_ACTIVE_LOW&gt;;
    nstat-gpios = &lt;&amp;gpio4 19 GPIO_ACTIVE_LOW&gt;;
    confd-gpios = &lt;&amp;gpio1 6 GPIO_ACTIVE_HIGH&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>

---

# Altera Freeze Bridge Controller

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

> Device-tree binding reference for Altera Freeze Bridge Controller.

<!-- 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;fpga&#47;altr&#44;freeze&#45;bridge&#45;controller&#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">The Altera Freeze Bridge Controller manages one or more freeze bridges. The controller can freeze/disable the bridges which prevents signal changes from passing through the bridge. The controller can also unfreeze/enable the bridges which allows traffic to pass through the bridge normally.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Xu Yilun &#60;yilun&#46;xu&#64;intel&#46;com&#62;&#34;</code></span>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>fpga&#45;bridge&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-fpga/fpga-bridge.md#dt-root>)</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;altr&#44;freeze&#45;bridge&#45;controller&#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>

**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>

<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">fpga-bridge@100000450 {
    compatible = "altr,freeze-bridge-controller";
    reg = &lt;0x1000 0x10&gt;;
    bridge-enable = &lt;0&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>

---

# Altera FPGA To SDRAM Bridge

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

> Device-tree binding reference for Altera FPGA To SDRAM Bridge.

<!-- 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;fpga&#47;altr&#44;socfpga&#45;fpga2sdram&#45;bridge&#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;Xu Yilun &#60;yilun&#46;xu&#64;intel&#46;com&#62;&#34;</code></span>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>fpga&#45;bridge&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-fpga/fpga-bridge.md#dt-root>)</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;altr&#44;socfpga&#45;fpga2sdram&#45;bridge&#34;</code></span>

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

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

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

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#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">fpga-bridge@ffc25080 {
    compatible = "altr,socfpga-fpga2sdram-bridge";
    reg = &lt;0xffc25080 0x4&gt;;
    bridge-enable = &lt;0&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>

---

# Altera FPGA/HPS Bridge

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

> Device-tree binding reference for Altera FPGA/HPS Bridge.

<!-- 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;fpga&#47;altr&#44;socfpga&#45;hps2fpga&#45;bridge&#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;Xu Yilun &#60;yilun&#46;xu&#64;intel&#46;com&#62;&#34;</code></span>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>fpga&#45;bridge&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-fpga/fpga-bridge.md#dt-root>)</span>

<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;altr&#44;socfpga&#45;lwhps2fpga&#45;bridge&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;altr&#44;socfpga&#45;hps2fpga&#45;bridge&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;altr&#44;socfpga&#45;fpga2hps&#45;bridge&#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-df397b2b98a8cf834e89"></a>

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

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

<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>

**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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;resets&#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">#include &lt;dt-bindings/reset/altr,rst-mgr.h&gt;

fpga-bridge@ff400000 {
  compatible = "altr,socfpga-lwhps2fpga-bridge";
  reg = &lt;0xff400000 0x100000&gt;;
  bridge-enable = &lt;0&gt;;
  clocks = &lt;&amp;l4_main_clk&gt;;
  resets = &lt;&amp;rst LWHPS2FPGA_RESET&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>

---

# FPGA Bridge

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

> Device-tree binding reference for FPGA Bridge.

<!-- 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;fpga&#47;fpga&#45;bridge&#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;Michal Simek &#60;michal&#46;simek&#64;amd&#46;com&#62;&#34;</code></span>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;fpga&#45;bridge&#40;&#64;&#46;&#42;&#124;&#45;&#40;&#91;0&#45;9&#93;&#124;&#91;1&#45;9&#93;&#91;0&#45;9&#93;&#43;&#41;&#41;&#63;&#36;&#34;</code></span>

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

### <code>bridge&#45;enable</code> — not listed as required here

<div id="dt-53238dc7cca20c6cd484">
<p style="white-space: pre-wrap">0 if driver should disable bridge at startup
1 if driver should enable bridge at startup
Default is to leave bridge in current state.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-2743413f5b74ba7082f1">[<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-db3fb27ac9668ab13231"></a> <span id="dt-d41576653de394c78a67"><code>0</code></span>, <span id="dt-94a2b477d317b63ed77e"><code>1</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

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

<code>true</code>

Allowed by this rule.

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">fpga-bridge {
    bridge-enable = &lt;0&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 OR BSD-2-Clause)</span></p>

</details>

---

# FPGA Region

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

> Device-tree binding reference for FPGA Region.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;fpga&#47;fpga&#45;region&#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;Michal Simek &#60;michal&#46;simek&#64;amd&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">CONTENTS
 - Introduction
 - Terminology
 - Sequence
 - FPGA Region
 - Supported Use Models
 - Constraints</p>
<p style="white-space: pre-wrap">Introduction
============</p>
<p style="white-space: pre-wrap">FPGA Regions represent FPGA's and partial reconfiguration regions of FPGA's in
the Device Tree.  FPGA Regions provide a way to program FPGAs under device tree
control.</p>
<p style="white-space: pre-wrap">The documentation hits some of the high points of FPGA usage and
attempts to include terminology used by both major FPGA manufacturers.  This
document isn't a replacement for any manufacturers specifications for FPGA
usage.</p>
<p style="white-space: pre-wrap">Terminology
===========</p>
<p style="white-space: pre-wrap">Full Reconfiguration
 * The entire FPGA is programmed.</p>
<pre><code>Partial Reconfiguration (PR)
 * A section of an FPGA is reprogrammed while the rest of the FPGA is not
   affected.
 * Not all FPGA's support PR.</code></pre>
<pre><code>Partial Reconfiguration Region (PRR)
 * Also called a "reconfigurable partition"
 * A PRR is a specific section of an FPGA reserved for reconfiguration.
 * A base (or static) FPGA image may create a set of PRR's that later may
   be independently reprogrammed many times.
 * The size and specific location of each PRR is fixed.
 * The connections at the edge of each PRR are fixed.  The image that is loaded
   into a PRR must fit and must use a subset of the region's connections.
 * The busses within the FPGA are split such that each region gets its own
   branch that may be gated independently.</code></pre>
<pre><code>Persona
 * Also called a "partial bit stream"
 * An FPGA image that is designed to be loaded into a PRR.  There may be
   any number of personas designed to fit into a PRR, but only one at a time
   may be loaded.
 * A persona may create more regions.</code></pre>
<pre><code>FPGA Bridge
 * FPGA Bridges gate bus signals between a host and FPGA.
 * FPGA Bridges should be disabled while the FPGA is being programmed to
   prevent spurious signals on the cpu bus and to the soft logic.
 * FPGA bridges may be actual hardware or soft logic on an FPGA.
 * During Full Reconfiguration, hardware bridges between the host and FPGA
   will be disabled.
 * During Partial Reconfiguration of a specific region, that region's bridge
   will be used to gate the busses.  Traffic to other regions is not affected.
 * In some implementations, the FPGA Manager transparently handles gating the
   buses, eliminating the need to show the hardware FPGA bridges in the
   device tree.
 * An FPGA image may create a set of reprogrammable regions, each having its
   own bridge and its own split of the busses in the FPGA.</code></pre>
<pre><code>FPGA Manager
 * An FPGA Manager is a hardware block that programs an FPGA under the control
   of a host processor.</code></pre>
<pre><code>Base Image
 * Also called the "static image"
 * An FPGA image that is designed to do full reconfiguration of the FPGA.
 * A base image may set up a set of partial reconfiguration regions that may
   later be reprogrammed.</code></pre>
<pre><code>    ----------------       ----------------------------------
    |  Host CPU    |       |             FPGA               |
    |              |       |                                |
    |          ----|       |       -----------    --------  |
    |          | H |       |   |==&gt;| Bridge0 |&lt;==&gt;| PRR0 |  |
    |          | W |       |   |   -----------    --------  |
    |          |   |       |   |                            |
    |          | B |&lt;=====&gt;|&lt;==|   -----------    --------  |
    |          | R |       |   |==&gt;| Bridge1 |&lt;==&gt;| PRR1 |  |
    |          | I |       |   |   -----------    --------  |
    |          | D |       |   |                            |
    |          | G |       |   |   -----------    --------  |
    |          | E |       |   |==&gt;| Bridge2 |&lt;==&gt;| PRR2 |  |
    |          ----|       |       -----------    --------  |
    |              |       |                                |
    ----------------       ----------------------------------</code></pre>
<p style="white-space: pre-wrap">Figure 1: An FPGA set up with a base image that created three regions.  Each
region (PRR0-2) gets its own split of the busses that is independently gated by
a soft logic bridge (Bridge0-2) in the FPGA.  The contents of each PRR can be
reprogrammed independently while the rest of the system continues to function.</p>
<p style="white-space: pre-wrap">Sequence
========</p>
<p style="white-space: pre-wrap">When a DT overlay that targets an FPGA Region is applied, the FPGA Region will
do the following:</p>
<p style="white-space: pre-wrap"> 1. Disable appropriate FPGA bridges.
 2. Program the FPGA using the FPGA manager.
 3. Enable the FPGA bridges.
 4. The Device Tree overlay is accepted into the live tree.
 5. Child devices are populated.</p>
<p style="white-space: pre-wrap">When the overlay is removed, the child nodes will be removed and the FPGA Region
will disable the bridges.</p>
<p style="white-space: pre-wrap">FPGA Region
===========</p>
<p style="white-space: pre-wrap">FPGA Regions represent FPGA's and FPGA PR regions in the device tree.  An FPGA
Region brings together the elements needed to program on a running system and
add the child devices:</p>
<p style="white-space: pre-wrap"> * FPGA Manager
 * FPGA Bridges
 * image-specific information needed to the programming.
 * child nodes</p>
<p style="white-space: pre-wrap">The intended use is that a Device Tree overlay (DTO) can be used to reprogram an
FPGA while an operating system is running.</p>
<p style="white-space: pre-wrap">An FPGA Region that exists in the live Device Tree reflects the current state.
If the live tree shows a "firmware-name" property or child nodes under an FPGA
Region, the FPGA already has been programmed.  A DTO that targets an FPGA Region
and adds the "firmware-name" property is taken as a request to reprogram the
FPGA.  After reprogramming is successful, the overlay is accepted into the live
tree.</p>
<p style="white-space: pre-wrap">The base FPGA Region in the device tree represents the FPGA and supports full
reconfiguration.  It must include a phandle to an FPGA Manager.  The base
FPGA region will be the child of one of the hardware bridges (the bridge that
allows register access) between the cpu and the FPGA.  If there are more than
one bridge to control during FPGA programming, the region will also contain a
list of phandles to the additional hardware FPGA Bridges.</p>
<p style="white-space: pre-wrap">For partial reconfiguration (PR), each PR region will have an FPGA Region.
These FPGA regions are children of FPGA bridges which are then children of the
base FPGA region.  The "Full Reconfiguration to add PRR's" example below shows
this.</p>
<p style="white-space: pre-wrap">If an FPGA Region does not specify an FPGA Manager, it will inherit the FPGA
Manager specified by its ancestor FPGA Region.  This supports both the case
where the same FPGA Manager is used for all of an FPGA as well the case where
a different FPGA Manager is used for each region.</p>
<p style="white-space: pre-wrap">FPGA Regions do not inherit their ancestor FPGA regions' bridges.  This prevents
shutting down bridges that are upstream from the other active regions while one
region is getting reconfigured (see Figure 1 above).  During PR, the FPGA's
hardware bridges remain enabled.  The PR regions' bridges will be FPGA bridges
within the static image of the FPGA.</p>
<p style="white-space: pre-wrap">Supported Use Models
====================</p>
<p style="white-space: pre-wrap">In all cases the live DT must have the FPGA Manager, FPGA Bridges (if any), and
a FPGA Region.  The target of the Device Tree Overlay is the FPGA Region.  Some
uses are specific to an FPGA device.</p>
<pre><code> * No FPGA Bridges
   In this case, the FPGA Manager which programs the FPGA also handles the
   bridges behind the scenes.  No FPGA Bridge devices are needed for full
   reconfiguration.</code></pre>
<pre><code> * Full reconfiguration with hardware bridges
   In this case, there are hardware bridges between the processor and FPGA that
   need to be controlled during full reconfiguration.  Before the overlay is
   applied, the live DT must include the FPGA Manager, FPGA Bridges, and a
   FPGA Region.  The FPGA Region is the child of the bridge that allows
   register access to the FPGA.  Additional bridges may be listed in a
   fpga-bridges property in the FPGA region or in the device tree overlay.</code></pre>
<pre><code> * Partial reconfiguration with bridges in the FPGA
   In this case, the FPGA will have one or more PRR's that may be programmed
   separately while the rest of the FPGA can remain active.  To manage this,
   bridges need to exist in the FPGA that can gate the buses going to each FPGA
   region while the buses are enabled for other sections.  Before any partial
   reconfiguration can be done, a base FPGA image must be loaded which includes
   PRR's with FPGA bridges.  The device tree should have an FPGA region for each
   PRR.</code></pre>
<p style="white-space: pre-wrap">Constraints
===========</p>
<p style="white-space: pre-wrap">It is beyond the scope of this document to fully describe all the FPGA design
constraints required to make partial reconfiguration work[1] [2] [3], but a few
deserve quick mention.</p>
<p style="white-space: pre-wrap">A persona must have boundary connections that line up with those of the partition
or region it is designed to go into.</p>
<p style="white-space: pre-wrap">During programming, transactions through those connections must be stopped and
the connections must be held at a fixed logic level.  This can be achieved by
FPGA Bridges that exist on the FPGA fabric prior to the partial reconfiguration.</p>
<p style="white-space: pre-wrap">--
[1] https://www.intel.com/programmable/technical-pdfs/683404.pdf
[2] tspace.library.utoronto.ca/bitstream/1807/67932/1/Byma_Stuart_A_201411_MAS_thesis.pdf
[3] https://docs.amd.com/v/u/en-US/ug702</p>
</div>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;fpga&#45;region&#40;&#64;&#46;&#42;&#124;&#45;&#40;&#91;0&#45;9&#93;&#124;&#91;1&#45;9&#93;&#91;0&#45;9&#93;&#43;&#41;&#41;&#63;&#36;&#34;</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;fpga&#45;region&#34;</code></span>

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

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

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

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

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

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

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

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

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

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

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

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

<a id="dt-41486407d6ce4fb322d3"></a>

### <code>config&#45;complete&#45;timeout&#45;us</code> — not listed as required here

<div id="dt-f5f63f15dca7cfa977a0">
<p style="white-space: pre-wrap">The maximum time in microseconds time for the FPGA to go to operating mode after the region has been programmed.</p>
</div>

<a id="dt-64e2d6eac7f4ae497d6e"></a>

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

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

<div id="dt-8fe3fc3efbb89ec019ea">
<p style="white-space: pre-wrap">Set if the bitstream is encrypted.</p>
</div>

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

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

**Value type (<code>type</code>):** <span id="dt-96b90572593792ec057a"><code>&#34;boolean&#34;</code></span>

<div id="dt-20f75518931862eb57ec">
<p style="white-space: pre-wrap">Set if the FPGA has already been configured prior to OS boot up.</p>
</div>

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

### <code>firmware&#45;name</code> — not listed as required here

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

<div id="dt-0b76b2c415d449884d95">
<p style="white-space: pre-wrap">Should contain the name of an FPGA image file located on the firmware search path. If this property shows up in a live device tree it indicates that the FPGA has already been programmed with this image. If this property is in an overlay targeting an FPGA region, it is a request to program the FPGA with that image.</p>
</div>

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

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

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

<div id="dt-edc3e16cfe2792f366c2">
<p style="white-space: pre-wrap">Should contain a list of phandles to FPGA Bridges that must be controlled during FPGA programming along with the parent FPGA bridge. This property is optional if the FPGA Manager handles the bridges. If the fpga-region is  the child of an fpga-bridge, the list should not contain the parent bridge.</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-847d1c4ce9f795ec916c">[<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-735704247a31eb105dd2">
<p style="white-space: pre-wrap">Should contain a phandle to an FPGA Manager.  Child FPGA Regions inherit this property from their ancestor regions.  An fpga-mgr property in a region will override any inherited FPGA manager.</p>
</div>

<a id="dt-2434717b8356aea1b77e"></a>

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

**Value type (<code>type</code>):** <span id="dt-0074d7f17d1fcd70246a"><code>&#34;boolean&#34;</code></span>

<div id="dt-a9a37bd48f33d13a01b9">
<p style="white-space: pre-wrap">Set if partial reconfiguration is to be done, otherwise full reconfiguration is done.</p>
</div>

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

### <code>region&#45;freeze&#45;timeout&#45;us</code> — not listed as required here

<div id="dt-8c82401f97e256cf6b36">
<p style="white-space: pre-wrap">The maximum time in microseconds to wait for bridges to successfully become disabled before the region has been programmed.</p>
</div>

<a id="dt-06ec638b23153d438cbb"></a>

### <code>region&#45;unfreeze&#45;timeout&#45;us</code> — not listed as required here

<div id="dt-28ee87ce338d52a9f107">
<p style="white-space: pre-wrap">The maximum time in microseconds to wait for bridges to successfully become enabled after the region has been programmed.</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;fpga&#45;mgr&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

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

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

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">/*
 * Full Reconfiguration without Bridges with DT overlay
 */
fpga_region0: fpga-region@0 {
  compatible = "fpga-region";
  reg = &lt;0 0&gt;;
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;1&gt;;
  fpga-mgr = &lt;&amp;fpga_mgr0&gt;;
  ranges = &lt;0x10000000 0x20000000 0x10000000&gt;;

  /* DT Overlay contains: &amp;fpga_region0 */
  firmware-name = "zynq-gpio.bin";
  gpio@40000000 {
    compatible = "xlnx,xps-gpio-1.00.a";
    reg = &lt;0x40000000 0x10000&gt;;
    gpio-controller;
    #gpio-cells = &lt;2&gt;;
    clocks = &lt;&amp;clk&gt;;
  };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">/*
 * Partial reconfiguration with bridge
 */
fpga_region1: fpga-region@0 {
  compatible = "fpga-region";
  reg = &lt;0 0&gt;;
  ranges;
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;1&gt;;
  fpga-mgr = &lt;&amp;fpga_mgr1&gt;;
  fpga-bridges = &lt;&amp;fpga_bridge1&gt;;
  partial-fpga-config;

  /* DT Overlay contains: &amp;fpga_region1 */
  firmware-name = "zynq-gpio-partial.bin";
  clk: clock {
    compatible = "fixed-factor-clock";
    clocks = &lt;&amp;parentclk&gt;;
    #clock-cells = &lt;0&gt;;
    clock-div = &lt;2&gt;;
    clock-mult = &lt;1&gt;;
  };
  axi {
    compatible = "simple-bus";
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges;
    gpio@40000000 {
      compatible = "xlnx,xps-gpio-1.00.a";
      reg = &lt;0x40000000 0x10000&gt;;
      #gpio-cells = &lt;2&gt;;
      gpio-controller;
      clocks = &lt;&amp;clk&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</span></p>

</details>

---

# Intel Stratix10 SoC FPGA Manager

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

> Device-tree binding reference for Intel Stratix10 SoC FPGA Manager.

<!-- 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;fpga&#47;intel&#44;stratix10&#45;soc&#45;fpga&#45;mgr&#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;Mahesh Rao &#60;mahesh&#46;rao&#64;altera&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Adrian Ng Ho Yin &#60;adrian&#46;ho&#46;yin&#46;ng&#64;altera&#46;com&#62;&#34;</code></span>, <span id="dt-2f1516674166ff6e66b8"><code>&#34;Niravkumar L Rabara &#60;nirav&#46;rabara&#64;altera&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Intel Stratix10 SoC consists of a 64-bit quad-core ARM Cortex A53 hard processor system (HPS) and a Secure Device Manager (SDM). The Stratix10 SoC FPGA Manager driver is used to configure/reconfigure the FPGA fabric on the die.The driver communicates with SDM/ATF via the stratix10-svc platform driver for performing its operations.</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;soc&#45;fpga&#45;mgr&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;intel&#44;agilex&#45;soc&#45;fpga&#45;mgr&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#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">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>

---

# Lattice iCE40 FPGA Manager

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

> Device-tree binding reference for Lattice iCE40 FPGA Manager.

<!-- 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;fpga&#47;lattice&#44;ice40&#45;fpga&#45;mgr&#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;Joel Holdsworth &#60;joel&#64;airwebreathe&#46;org&#46;uk&#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;lattice&#44;ice40&#45;fpga&#45;mgr&#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-03a3b4f56bf191dde680"></a>

### <code>spi&#45;max&#45;frequency</code> — required here

**Minimum value (<code>minimum</code>):** <span id="dt-22b96bf7aa38a7142f52"><code>1000000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-f17e1c3bb71259096275"><code>25000000</code></span>

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

### <code>cdone&#45;gpios</code> — required here

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

<div id="dt-e2c0d432680a304f5838">
<p style="white-space: pre-wrap">GPIO input connected to CDONE pin</p>
</div>

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

### <code>reset&#45;gpios</code> — required here

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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">Active-low GPIO output connected to CRESET_B pin. Note that unless the GPIO is held low during startup, the FPGA will enter Master SPI mode and drive SCK with a clock signal potentially jamming other devices on the bus until the firmware is loaded.</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;spi&#45;max&#45;frequency&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;cdone&#45;gpios&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;reset&#45;gpios&#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/gpio/gpio.h&gt;

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

    fpga@0 {
        compatible = "lattice,ice40-fpga-mgr";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;1000000&gt;;
        cdone-gpios = &lt;&amp;gpio 24 GPIO_ACTIVE_HIGH&gt;;
        reset-gpios = &lt;&amp;gpio 22 GPIO_ACTIVE_LOW&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>

---

# Lattice Slave SPI sysCONFIG FPGA manager

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

> Device-tree binding reference for Lattice Slave SPI sysCONFIG FPGA manager.

<!-- 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;fpga&#47;lattice&#44;sysconfig&#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;Vladimir Georgiev &#60;v&#46;georgiev&#64;metrotek&#46;ru&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Lattice sysCONFIG port, which is used for FPGA configuration, among others,
have Slave Serial Peripheral Interface. Only full reconfiguration is
supported.</p>
<p style="white-space: pre-wrap">Programming of ECP5 is done by writing uncompressed bitstream image in .bit
format into FPGA's SRAM configuration memory.</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;lattice&#44;sysconfig&#45;ecp5&#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-26b3456782dd74da3e87"></a>

### <code>program&#45;gpios</code> — not listed as required here

<div id="dt-750bcc2414edc06b780a">
<p style="white-space: pre-wrap">A GPIO line connected to PROGRAMN (active low) pin of the device. Initiates configuration sequence.</p>
</div>

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

<a id="dt-2146a09113d46d0958bd"></a>

### <code>init&#45;gpios</code> — not listed as required here

<div id="dt-d32583c696663a793ce1">
<p style="white-space: pre-wrap">A GPIO line connected to INITN (active low) pin of the device. Indicates that the FPGA is ready to be configured.</p>
</div>

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

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

### <code>done&#45;gpios</code> — not listed as required here

<div id="dt-d8aca989fea34ed64241">
<p style="white-space: pre-wrap">A GPIO line connected to DONE (active high) pin of the device. Indicates that the configuration sequence is complete.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b2973c07073cf49915e8"><code>1</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;reg&#34;</code></span>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9b74ad9882646c4a5116"><code>&#34;lattice&#44;sysconfig&#45;ecp5&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-1b3105c3b929b1ab9741"></a>
> >
> > **<code>spi&#45;max&#45;frequency</code> — not listed as required here**
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-b5de97063cb4c30a984f"><code>60000000</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">#include &lt;dt-bindings/gpio/gpio.h&gt;

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

    fpga-mgr@0 {
        compatible = "lattice,sysconfig-ecp5";
        reg = &lt;0&gt;;
        spi-max-frequency = &lt;20000000&gt;;
        program-gpios = &lt;&amp;gpio3 4 GPIO_ACTIVE_LOW&gt;;
        init-gpios = &lt;&amp;gpio3 3 GPIO_ACTIVE_LOW&gt;;
        done-gpios = &lt;&amp;gpio3 2 GPIO_ACTIVE_HIGH&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>

---

# Microchip Polarfire FPGA manager.

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

> Device-tree binding reference for Microchip Polarfire FPGA manager..

<!-- 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;fpga&#47;microchip&#44;mpf&#45;spi&#45;fpga&#45;mgr&#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;Vladimir Georgiev &#60;v&#46;georgiev&#64;metrotek&#46;ru&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Device Tree Bindings for Microchip Polarfire FPGA Manager using slave SPI to load the bitstream in .dat format.</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;microchip&#44;mpf&#45;spi&#45;fpga&#45;mgr&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">SPI chip select</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</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;reg&#34;</code></span>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</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">spi {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        fpga_mgr@0 {
                compatible = "microchip,mpf-spi-fpga-mgr";
                spi-max-frequency = &lt;20000000&gt;;
                reg = &lt;0&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>

---

# Xilinx Zynq FPGA Manager

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

> Device-tree binding reference for Xilinx Zynq FPGA Manager.

<!-- 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;fpga&#47;xilinx&#45;zynq&#45;fpga&#45;mgr&#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;Michal Simek &#60;michal&#46;simek&#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;zynq&#45;devcfg&#45;1&#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-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;ref&#95;clk&#34;</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e9a926f7400630e8b664">[<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-94e0d14f31e0ec14b27a">
<p style="white-space: pre-wrap">Phandle to syscon block which provide access to SLCR registers</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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;syscon&#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">devcfg: devcfg@f8007000 {
  compatible = "xlnx,zynq-devcfg-1.0";
  reg = &lt;0xf8007000 0x100&gt;;
  interrupts = &lt;0 8 4&gt;;
  clocks = &lt;&amp;clkc 12&gt;;
  clock-names = "ref_clk";
  syscon = &lt;&amp;slcr&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 OR BSD-2-Clause)</span></p>

</details>

---

# Xilinx SelectMAP FPGA interface

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

> Device-tree binding reference for Xilinx SelectMAP FPGA interface.

<!-- 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;fpga&#47;xlnx&#44;fpga&#45;selectmap&#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;Charles Perry &#60;charles&#46;perry&#64;savoirfairelinux&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Xilinx 7 Series FPGAs support a method of loading the bitstream over a
parallel port named the SelectMAP interface in the documentation. Only
the x8 mode is supported where data is loaded at one byte per rising edge of
the clock, with the MSB of each byte presented to the D0 pin.</p>
<pre><code>Datasheets:
  https://www.xilinx.com/support/documentation/user_guides/ug470_7Series_Config.pdf</code></pre>
</div>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>&#47;schemas&#47;memory&#45;controllers&#47;mc&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-memory-controllers/mc-peripheral-props.md#dt-root>)</span>

<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;xlnx&#44;fpga&#45;xc7s&#45;selectmap&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;xlnx&#44;fpga&#45;xc7a&#45;selectmap&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;xlnx&#44;fpga&#45;xc7k&#45;selectmap&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;xlnx&#44;fpga&#45;xc7v&#45;selectmap&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">At least 1 byte of memory mapped IO</p>
</div>

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

<a id="dt-318b3544ab890d686506"></a>

### <code>prog&#45;gpios</code> — required here

<div id="dt-4fafe281eeb924a05d54">
<p style="white-space: pre-wrap">config pin (referred to as PROGRAM_B in the manual)</p>
</div>

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

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

### <code>done&#45;gpios</code> — required here

<div id="dt-d8aca989fea34ed64241">
<p style="white-space: pre-wrap">config status pin (referred to as DONE in the manual)</p>
</div>

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

<a id="dt-2146a09113d46d0958bd"></a>

### <code>init&#45;gpios</code> — required here

<div id="dt-d32583c696663a793ce1">
<p style="white-space: pre-wrap">initialization status and configuration error pin (referred to as INIT_B in the manual)</p>
</div>

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

<a id="dt-46b2322eb3118ccacc42"></a>

### <code>csi&#45;gpios</code> — not listed as required here

<div id="dt-98ecade82e74bfe27344">
<p style="white-space: pre-wrap">chip select pin (referred to as CSI_B in the manual) Optional gpio for if the bus controller does not provide a chip select.</p>
</div>

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

<a id="dt-65cb46baf43d3a9686bb"></a>

### <code>rdwr&#45;gpios</code> — not listed as required here

<div id="dt-90256eb36bb21e08e0f4">
<p style="white-space: pre-wrap">read/write select pin (referred to as RDWR_B in the manual) Optional gpio for if the bus controller does not provide this pin.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-187024b36856e135330c"><code>1</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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;prog&#45;gpios&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;done&#45;gpios&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;init&#45;gpios&#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">#include &lt;dt-bindings/gpio/gpio.h&gt;
fpga-mgr@8000000 {
  compatible = "xlnx,fpga-xc7s-selectmap";
  reg = &lt;0x8000000 0x4&gt;;
  prog-gpios = &lt;&amp;gpio5 5 GPIO_ACTIVE_LOW&gt;;
  init-gpios = &lt;&amp;gpio5 8 GPIO_ACTIVE_LOW&gt;;
  done-gpios = &lt;&amp;gpio2 30 GPIO_ACTIVE_HIGH&gt;;
  csi-gpios = &lt;&amp;gpio3 19 GPIO_ACTIVE_LOW&gt;;
  rdwr-gpios = &lt;&amp;gpio3 10 GPIO_ACTIVE_LOW&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>

---

# Xilinx Slave Serial SPI FPGA

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

> Device-tree binding reference for Xilinx Slave Serial SPI FPGA.

<!-- 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;fpga&#47;xlnx&#44;fpga&#45;slave&#45;serial&#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;Nava kishore Manne &#60;nava&#46;kishore&#46;manne&#64;amd&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Xilinx Spartan-6 and 7 Series FPGAs support a method of loading the bitstream
over what is referred to as slave serial interface.The slave serial link is
not technically SPI, and might require extra circuits in order to play nicely
with other SPI slaves on the same bus.</p>
<pre><code>Datasheets:
  https://www.xilinx.com/support/documentation/user_guides/ug380.pdf
  https://www.xilinx.com/support/documentation/user_guides/ug470_7Series_Config.pdf
  https://www.xilinx.com/support/documentation/application_notes/xapp583-fpga-configuration.pdf</code></pre>
</div>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</span>

<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;xlnx&#44;fpga&#45;slave&#45;serial&#34;</code></span>

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

### <code>spi&#45;cpha</code> — not listed as required here

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

<a id="dt-03a3b4f56bf191dde680"></a>

### <code>spi&#45;max&#45;frequency</code> — not listed as required here

**Maximum value (<code>maximum</code>):** <span id="dt-f17e1c3bb71259096275"><code>60000000</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-cf79d178e66f18e3c82d"></a>

### <code>prog&#95;b&#45;gpios</code> — required here

<div id="dt-43ba64317e30a37d4ffa">
<p style="white-space: pre-wrap">config pin (referred to as PROGRAM_B in the manual)</p>
</div>

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

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

### <code>done&#45;gpios</code> — required here

<div id="dt-d8aca989fea34ed64241">
<p style="white-space: pre-wrap">config status pin (referred to as DONE in the manual)</p>
</div>

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

<a id="dt-48f3355aa9f7f3ffb63f"></a>

### <code>init&#45;b&#45;gpios</code> — required here

<div id="dt-9aeea9eab86c7f3ff723">
<p style="white-space: pre-wrap">initialization status and configuration error pin (referred to as INIT_B in the manual)</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-4c8c4a0ea656050baab8"><code>1</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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;prog&#95;b&#45;gpios&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;done&#45;gpios&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;init&#45;b&#45;gpios&#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/gpio/gpio.h&gt;
spi {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;
  fpga_mgr_spi: fpga-mgr@0 {
    compatible = "xlnx,fpga-slave-serial";
    spi-max-frequency = &lt;60000000&gt;;
    spi-cpha;
    reg = &lt;0&gt;;
    prog_b-gpios = &lt;&amp;gpio0 29 GPIO_ACTIVE_LOW&gt;;
    init-b-gpios = &lt;&amp;gpio0 28 GPIO_ACTIVE_LOW&gt;;
    done-gpios = &lt;&amp;gpio0 9 GPIO_ACTIVE_HIGH&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>

---

# Xilinx LogiCORE Partial Reconfig Decoupler/AXI shutdown manager Softcore

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

> Device-tree binding reference for Xilinx LogiCORE Partial Reconfig Decoupler/AXI shutdown manager Softcore.

<!-- 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;fpga&#47;xlnx&#44;pr&#45;decoupler&#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;Nava kishore Manne &#60;nava&#46;kishore&#46;manne&#64;amd&#46;com&#62;&#34;</code></span>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>fpga&#45;bridge&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-fpga/fpga-bridge.md#dt-root>)</span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Xilinx LogiCORE Partial Reconfig(PR) Decoupler manages one or more
decouplers/fpga bridges. The controller can decouple/disable the bridges
which prevents signal changes from passing through the bridge. The controller
can also couple / enable the bridges which allows traffic to pass through the
bridge normally.
Xilinx LogiCORE Dynamic Function eXchange(DFX) AXI shutdown manager Softcore
is compatible with the Xilinx LogiCORE pr-decoupler. The Dynamic Function
eXchange AXI shutdown manager prevents AXI traffic from passing through the
bridge. The controller safely handles AXI4MM and AXI4-Lite interfaces on a
Reconfigurable Partition when it is undergoing dynamic reconfiguration,
preventing the system deadlock that can occur if AXI transactions are
interrupted by DFX.
Please refer to fpga-region.txt and fpga-bridge.txt in this directory for
common binding part and usage.</p>
</div>

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

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

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

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

<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;xlnx&#44;pr&#45;decoupler&#45;1&#46;00&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;xlnx&#44;pr&#45;decoupler&#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;xlnx&#44;dfx&#45;axi&#45;shutdown&#45;manager&#45;1&#46;00&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;xlnx&#44;dfx&#45;axi&#45;shutdown&#45;manager&#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-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;aclk&#34;</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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#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">fpga-bridge@100000450 {
  compatible = "xlnx,pr-decoupler-1.00", "xlnx,pr-decoupler";
  reg = &lt;0x10000045 0x10&gt;;
  clocks = &lt;&amp;clkc 15&gt;;
  clock-names = "aclk";
};
</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>

---

# Xilinx Versal FPGA driver.

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

> Device-tree binding reference for Xilinx Versal FPGA driver..

<!-- 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;fpga&#47;xlnx&#44;versal&#45;fpga&#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;Nava kishore Manne &#60;nava&#46;kishore&#46;manne&#64;amd&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Device Tree Versal FPGA bindings for the Versal SoC, controlled
using firmware interface.</p>
</div>

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

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

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

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

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

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;xlnx&#44;versal&#45;fpga&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#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">versal_fpga: versal-fpga {
    compatible = "xlnx,versal-fpga";
};
</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>

---

# Xilinx Zynq Ultrascale MPSoC FPGA Manager

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

> Device-tree binding reference for Xilinx Zynq Ultrascale MPSoC FPGA Manager.

<!-- 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;fpga&#47;xlnx&#44;zynqmp&#45;pcap&#45;fpga&#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;Nava kishore Manne &#60;nava&#46;kishore&#46;manne&#64;amd&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Device Tree Bindings for Zynq Ultrascale MPSoC FPGA Manager.
The ZynqMP SoC uses the PCAP (Processor Configuration Port) to
configure the Programmable Logic (PL). The configuration uses the
firmware interface.</p>
</div>

<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;zynqmp&#45;pcap&#45;fpga&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#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">firmware {
  zynqmp_firmware: zynqmp-firmware {
    zynqmp_pcap: pcap {
      compatible = "xlnx,zynqmp-pcap-fpga";
    };
  };
};
</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>
