xref: /freebsd-src/sys/contrib/device-tree/Bindings/net/rfkill-gpio.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1*cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*cb7aa33aSEmmanuel Vadot%YAML 1.2
3*cb7aa33aSEmmanuel Vadot---
4*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/net/rfkill-gpio.yaml#
5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*cb7aa33aSEmmanuel Vadot
7*cb7aa33aSEmmanuel Vadottitle: GPIO controlled rfkill switch
8*cb7aa33aSEmmanuel Vadot
9*cb7aa33aSEmmanuel Vadotmaintainers:
10*cb7aa33aSEmmanuel Vadot  - Johannes Berg <johannes@sipsolutions.net>
11*cb7aa33aSEmmanuel Vadot  - Philipp Zabel <p.zabel@pengutronix.de>
12*cb7aa33aSEmmanuel Vadot
13*cb7aa33aSEmmanuel Vadotproperties:
14*cb7aa33aSEmmanuel Vadot  compatible:
15*cb7aa33aSEmmanuel Vadot    const: rfkill-gpio
16*cb7aa33aSEmmanuel Vadot
17*cb7aa33aSEmmanuel Vadot  label:
18*cb7aa33aSEmmanuel Vadot    description: rfkill switch name, defaults to node name
19*cb7aa33aSEmmanuel Vadot
20*cb7aa33aSEmmanuel Vadot  radio-type:
21*cb7aa33aSEmmanuel Vadot    description: rfkill radio type
22*cb7aa33aSEmmanuel Vadot    enum:
23*cb7aa33aSEmmanuel Vadot      - bluetooth
24*cb7aa33aSEmmanuel Vadot      - fm
25*cb7aa33aSEmmanuel Vadot      - gps
26*cb7aa33aSEmmanuel Vadot      - nfc
27*cb7aa33aSEmmanuel Vadot      - ultrawideband
28*cb7aa33aSEmmanuel Vadot      - wimax
29*cb7aa33aSEmmanuel Vadot      - wlan
30*cb7aa33aSEmmanuel Vadot      - wwan
31*cb7aa33aSEmmanuel Vadot
32*cb7aa33aSEmmanuel Vadot  shutdown-gpios:
33*cb7aa33aSEmmanuel Vadot    maxItems: 1
34*cb7aa33aSEmmanuel Vadot
35*cb7aa33aSEmmanuel Vadotrequired:
36*cb7aa33aSEmmanuel Vadot  - compatible
37*cb7aa33aSEmmanuel Vadot  - radio-type
38*cb7aa33aSEmmanuel Vadot  - shutdown-gpios
39*cb7aa33aSEmmanuel Vadot
40*cb7aa33aSEmmanuel VadotadditionalProperties: false
41*cb7aa33aSEmmanuel Vadot
42*cb7aa33aSEmmanuel Vadotexamples:
43*cb7aa33aSEmmanuel Vadot  - |
44*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
45*cb7aa33aSEmmanuel Vadot
46*cb7aa33aSEmmanuel Vadot    rfkill {
47*cb7aa33aSEmmanuel Vadot        compatible = "rfkill-gpio";
48*cb7aa33aSEmmanuel Vadot        label = "rfkill-pcie-wlan";
49*cb7aa33aSEmmanuel Vadot        radio-type = "wlan";
50*cb7aa33aSEmmanuel Vadot        shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
51*cb7aa33aSEmmanuel Vadot    };
52