]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: net: rfkill-gpio: enable booting in blocked state
authorCatalin Popescu <catalin.popescu@leica-geosystems.com>
Thu, 16 Jan 2025 08:47:01 +0000 (09:47 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Feb 2025 10:55:55 +0000 (11:55 +0100)
By default, rfkill state is set to unblocked. Sometimes, we want to boot
in blocked state and let the application unblock the rfkill.

Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250116084702.3473176-1-catalin.popescu@leica-geosystems.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Documentation/devicetree/bindings/net/rfkill-gpio.yaml

index 9630c8466fac06b68fdc1d0b25c20d1434185b88..4a706a41ab38c82f4f08db4e43d15a381272a3a6 100644 (file)
@@ -32,6 +32,10 @@ properties:
   shutdown-gpios:
     maxItems: 1
 
+  default-blocked:
+    $ref: /schemas/types.yaml#/definitions/flag
+    description: configure rfkill state as blocked at boot
+
 required:
   - compatible
   - radio-type
@@ -48,4 +52,5 @@ examples:
         label = "rfkill-pcie-wlan";
         radio-type = "wlan";
         shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
+        default-blocked;
     };