# GPIO controlled rfkill switch

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

> Device-tree binding reference for GPIO controlled rfkill switch.

<!-- 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;rfkill&#45;gpio&#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;Johannes Berg &#60;johannes&#64;sipsolutions&#46;net&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Philipp Zabel &#60;p&#46;zabel&#64;pengutronix&#46;de&#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;rfkill&#45;gpio&#34;</code></span>

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

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

<div id="dt-f7c1a813bb0d2e9dd066">
<p style="white-space: pre-wrap">rfkill switch name, defaults to node name</p>
</div>

<a id="dt-572edaf0a759394c91e9"></a>

### <code>radio&#45;type</code> — required here

<div id="dt-6c83604cc643a8144dd6">
<p style="white-space: pre-wrap">rfkill radio type</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-3b45ddcc3aabf29d228f"></a> <span id="dt-68d7e3ae4965090d5e56"><code>&#34;bluetooth&#34;</code></span>, <span id="dt-9fb346ebf0cb67c74bdb"><code>&#34;fm&#34;</code></span>, <span id="dt-71355d22013cb4bf0f7e"><code>&#34;gps&#34;</code></span>, <span id="dt-93704f464d8c200ce415"><code>&#34;nfc&#34;</code></span>, <span id="dt-e596cdb4bc87edf8b9e0"><code>&#34;ultrawideband&#34;</code></span>, <span id="dt-c98c43e041e278109735"><code>&#34;wimax&#34;</code></span>, <span id="dt-6263dbb52a674cdc1108"><code>&#34;wlan&#34;</code></span>, <span id="dt-75a4bd7e1b3a0bde4cbb"><code>&#34;wwan&#34;</code></span>

<a id="dt-45e267b98287a9b9f697"></a>

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

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

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

### <code>default&#45;blocked</code> — not listed as required here

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

<div id="dt-4e540bc0c4cd1d3f2ec7">
<p style="white-space: pre-wrap">configure rfkill state as blocked at boot</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;radio&#45;type&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;shutdown&#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;

rfkill {
    compatible = "rfkill-gpio";
    label = "rfkill-pcie-wlan";
    radio-type = "wlan";
    shutdown-gpios = &lt;&amp;gpio2 25 GPIO_ACTIVE_HIGH&gt;;
    default-blocked;
};
</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>
