dt-bindings: net: rfkill-gpio: Add edge-triggered option 40/316140/2
authorMichal Wilczynski <m.wilczynski@samsung.com>
Tue, 10 Dec 2024 18:07:56 +0000 (19:07 +0100)
committerMichal Wilczynski <m.wilczynski@samsung.com>
Thu, 12 Dec 2024 15:43:17 +0000 (16:43 +0100)
Some wireless chips react only to the state change in the GPIO, instead
of the value itself. Support this mode operation in the rfkill-gpio.

Change-Id: If52a0f707eae8ab3d89918007dba83ce3e4e5060
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Documentation/devicetree/bindings/net/rfkill-gpio.yaml

index 9630c8466fac06b68fdc1d0b25c20d1434185b88..621e4ad8bf8a83b0a56eef58fdf49f7b0a7deda6 100644 (file)
@@ -32,6 +32,12 @@ properties:
   shutdown-gpios:
     maxItems: 1
 
+  edge-triggered:
+    type: boolean
+    description: |
+      Support for an edge-triggered GPIO operation where the GPIO state is
+      toggled (LOW to HIGH or HIGH to LOW) to activate the device.
+
 required:
   - compatible
   - radio-type
@@ -49,3 +55,11 @@ examples:
         radio-type = "wlan";
         shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
     };
+
+    rfkill-bluetooth {
+        compatible = "rfkill-gpio";
+        label = "rfkill-bluetooth";
+        radio-type = "bluetooth";
+        shutdown-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
+        edge-triggered;
+    };