GPIO controlled rfkill switch
Schema identifier ($id): "http://devicetree.org/schemas/net/rfkill-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Johannes Berg <johannes@sipsolutions.net>", "Philipp Zabel <p.zabel@pengutronix.de>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rfkill-gpio"
label — not listed as required here #
rfkill switch name, defaults to node name
radio-type — required here #
rfkill radio type
Allowed values (enum): "bluetooth", "fm", "gps", "nfc", "ultrawideband", "wimax", "wlan", "wwan"
shutdown-gpios — required here #
Maximum number of items (maxItems): 1
default-blocked — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
configure rfkill state as blocked at boot
Required in this object (required): "compatible", "radio-type", "shutdown-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
rfkill {
compatible = "rfkill-gpio";
label = "rfkill-pcie-wlan";
radio-type = "wlan";
shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
default-blocked;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)