xref: /freebsd/sys/contrib/device-tree/Bindings/net/rfkill-gpio.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
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
35required:
36  - compatible
37  - radio-type
38  - shutdown-gpios
39
40additionalProperties: false
41
42examples:
43  - |
44    #include <dt-bindings/gpio/gpio.h>
45
46    rfkill {
47        compatible = "rfkill-gpio";
48        label = "rfkill-pcie-wlan";
49        radio-type = "wlan";
50        shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
51    };
52