# Silicon Labs WFxxx

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

> Device-tree binding reference for Silicon Labs WFxxx.

<!-- SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -->


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

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;net&#47;wireless&#47;silabs&#44;wfx&#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érôme Pouiller &#60;jerome&#46;pouiller&#64;silabs&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>Support for the Wifi chip WFxxx from Silicon Labs. Currently, the only device from the WFxxx series is the WF200 described here:
   https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf</code></pre>
<p style="white-space: pre-wrap">The WF200 can be connected via SPI or via SDIO.
For SDIO:</p>
<pre><code>  Declaring the WFxxx chip in device tree is mandatory (usually, the VID/PID is
  sufficient for the SDIO devices).</code></pre>
<pre><code>  It is recommended to declare a mmc-pwrseq on SDIO host above WFx. Without
  it, you may encounter issues during reboot. The mmc-pwrseq should be
  compatible with mmc-pwrseq-simple. Please consult
  Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml for more
  information.</code></pre>
</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;prt&#44;prtt1c&#45;wfm200&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;silabs&#44;brd4001a&#34;</code></span>, <span id="dt-9802844ed4869452d348"><code>&#34;silabs&#44;brd8022a&#34;</code></span>, <span id="dt-24a1253e29125294194d"><code>&#34;silabs&#44;brd8023a&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;silabs&#44;wf200&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">When used on SDIO bus, &lt;reg&gt; must be set to 1. When used on SPI bus, it is the chip select address of the device as defined in the SPI devices bindings.</p>
</div>

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">The interrupt line. Should be IRQ_TYPE_EDGE_RISING. When SPI is used, this property is required. When SDIO is used, the "in-band" interrupt provided by the SDIO bus is used unless an interrupt is defined in the Device Tree.</p>
</div>

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

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

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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">(SPI only) Phandle of gpio that will be used to reset chip during probe. Without this property, you may encounter issues with warm boot.
For SDIO, the reset gpio should declared using a mmc-pwrseq.</p>
</div>

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

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

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

<div id="dt-e2a9d50d054d568a473d">
<p style="white-space: pre-wrap">Phandle of gpio that will be used to wake-up chip. Without this property, driver will disable most of power saving features.</p>
</div>

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

<a id="dt-168f05379d60a9341b0f"></a>

### <code>silabs&#44;antenna&#45;config&#45;file</code> — not listed as required here

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

<div id="dt-312fe26a0fa23a1f72de">
<p style="white-space: pre-wrap">Use an alternative file for antenna configuration (aka "Platform Data Set" in Silabs jargon). Default depends of "compatible" string. For "silabs,wf200", the default is 'wf200.pds'.</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>

<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;net&#47;wireless&#47;wireless&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-net/wireless/wireless-controller.md#dt-root>)</span>

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

### Rule 2

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8549616abc3b04702c51">[<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">#include &lt;dt-bindings/gpio/gpio.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

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

    wifi@0 {
        compatible = "silabs,brd8022a", "silabs,wf200";
        pinctrl-names = "default";
        pinctrl-0 = &lt;&amp;wfx_irq &amp;wfx_gpios&gt;;
        reg = &lt;0&gt;;
        interrupts-extended = &lt;&amp;gpio 16 IRQ_TYPE_EDGE_RISING&gt;;
        wakeup-gpios = &lt;&amp;gpio 12 GPIO_ACTIVE_HIGH&gt;;
        reset-gpios = &lt;&amp;gpio 13 GPIO_ACTIVE_LOW&gt;;
        spi-max-frequency = &lt;42000000&gt;;
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/gpio/gpio.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

wfx_pwrseq: wfx_pwrseq {
    compatible = "mmc-pwrseq-simple";
    pinctrl-names = "default";
    pinctrl-0 = &lt;&amp;wfx_reset&gt;;
    reset-gpios = &lt;&amp;gpio 13 GPIO_ACTIVE_LOW&gt;;
};

mmc {
    mmc-pwrseq = &lt;&amp;wfx_pwrseq&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    wifi@1 {
        compatible = "silabs,brd8022a", "silabs,wf200";
        pinctrl-names = "default";
        pinctrl-0 = &lt;&amp;wfx_wakeup&gt;;
        reg = &lt;1&gt;;
        wakeup-gpios = &lt;&amp;gpio 12 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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (c) 2020, Silicon Laboratories, Inc.</span></p>

<p id="dt-comment-2"><strong>Line 35:</strong> <span> Protonic PRTT1C Board</span></p>

<p id="dt-comment-3"><strong>Line 36:</strong> <span> WGM160P Evaluation Board</span></p>

<p id="dt-comment-4"><strong>Line 37:</strong> <span> WF200 Evaluation Board</span></p>

<p id="dt-comment-5"><strong>Line 38:</strong> <span> WFM200 Evaluation Board</span></p>

<p id="dt-comment-6"><strong>Line 39:</strong> <span> Chip alone without antenna</span></p>

</details>
