[PATCH v2 1/5] dt-bindings: net: rfkill-gpio: document reset-gpios property
From: Dmitry Yashin
Date: Fri Oct 16 2026 - 06:34:08 EST
rfkill-gpio driver requiers at-least one of the gpios to be defined:
shutdown-gpios or reset-gpios. Document missing reset-gpios property.
Also add example for wwan with both gpios.
Signed-off-by: Dmitry Yashin <dmt.yashin@xxxxxxxxx>
---
.../devicetree/bindings/net/rfkill-gpio.yaml | 23 +++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/net/rfkill-gpio.yaml b/Documentation/devicetree/bindings/net/rfkill-gpio.yaml
index 4a706a41ab38..66f6ad2872ff 100644
--- a/Documentation/devicetree/bindings/net/rfkill-gpio.yaml
+++ b/Documentation/devicetree/bindings/net/rfkill-gpio.yaml
@@ -29,7 +29,12 @@ properties:
- wlan
- wwan
+ reset-gpios:
+ description: GPIO connected to device's reset pin (RESET#)
+ maxItems: 1
+
shutdown-gpios:
+ description: GPIO connected to device's shutdown pin (W_DISABLE1#, etc.)
maxItems: 1
default-blocked:
@@ -39,7 +44,12 @@ properties:
required:
- compatible
- radio-type
- - shutdown-gpios
+
+anyOf:
+ - required:
+ - reset-gpios
+ - required:
+ - shutdown-gpios
additionalProperties: false
@@ -54,3 +64,14 @@ examples:
shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
default-blocked;
};
+
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ rfkill-wwan {
+ compatible = "rfkill-gpio";
+ label = "m2 usb wwan";
+ radio-type = "wwan";
+ reset-gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>;
+ shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
+ };
--
2.56.0