1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/rfkill-gpio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: GPIO controlled rfkill switch
8
9maintainers:
10  - Johannes Berg <johannes@sipsolutions.net>
11  - Philipp Zabel <p.zabel@pengutronix.de>
12
13properties:
14  compatible:
15    const: rfkill-gpio
16
17  label:
18    description: rfkill switch name, defaults to node name
19
20  radio-type:
21    description: rfkill radio type
22    enum:
23      - bluetooth
24      - fm
25      - gps
26      - nfc
27      - ultrawideband
28      - wimax
29      - wlan
30      - wwan
31
32  shutdown-gpios:
33    maxItems: 1
34
35  default-blocked:
36    $ref: /schemas/types.yaml#/definitions/flag
37    description: configure rfkill state as blocked at boot
38
39required:
40  - compatible
41  - radio-type
42  - shutdown-gpios
43
44additionalProperties: false
45
46examples:
47  - |
48    #include <dt-bindings/gpio/gpio.h>
49
50    rfkill {
51        compatible = "rfkill-gpio";
52        label = "rfkill-pcie-wlan";
53        radio-type = "wlan";
54        shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
55        default-blocked;
56    };
57