From: Michal Wilczynski Date: Tue, 10 Dec 2024 18:07:56 +0000 (+0100) Subject: dt-bindings: net: rfkill-gpio: Add edge-triggered option X-Git-Tag: accepted/tizen/unified/20241216.185838~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fac5a4c76555db29460488f7a74169ba4326435f;p=platform%2Fkernel%2Flinux-thead.git dt-bindings: net: rfkill-gpio: Add edge-triggered option 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 --- diff --git a/Documentation/devicetree/bindings/net/rfkill-gpio.yaml b/Documentation/devicetree/bindings/net/rfkill-gpio.yaml index 9630c8466fac..621e4ad8bf8a 100644 --- a/Documentation/devicetree/bindings/net/rfkill-gpio.yaml +++ b/Documentation/devicetree/bindings/net/rfkill-gpio.yaml @@ -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; + };