mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v2 1/2] dt-bindings: net: rfkill-gpio: enable booting in blocked state
@ 2025-01-16  8:47 Catalin Popescu
  2025-01-16  8:47 ` [PATCH net-next v2 2/2] net: rfkill: gpio: allow " Catalin Popescu
  2025-01-17  8:56 ` [PATCH net-next v2 1/2] dt-bindings: net: rfkill-gpio: enable " Krzysztof Kozlowski
  0 siblings, 2 replies; 4+ messages in thread
From: Catalin Popescu @ 2025-01-16  8:47 UTC (permalink / raw)
  To: andrew+netdev, davem, edumazet, kuba, pabeni, robh, krzk+dt,
	conor+dt, johannes, p.zabel
  Cc: netdev, devicetree, linux-kernel, linux-wireless, m.felsch,
	bsp-development.geo, Catalin Popescu

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>
---
Changes in v2:
 - change "default-blocked" type from boolean to flag
---
 Documentation/devicetree/bindings/net/rfkill-gpio.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/rfkill-gpio.yaml b/Documentation/devicetree/bindings/net/rfkill-gpio.yaml
index 9630c8466fac..4a706a41ab38 100644
--- a/Documentation/devicetree/bindings/net/rfkill-gpio.yaml
+++ b/Documentation/devicetree/bindings/net/rfkill-gpio.yaml
@@ -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;
     };

base-commit: 25cc469d6d344f5772e9fb6a5cf9d82a690afe68
prerequisite-patch-id: 0000000000000000000000000000000000000000
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-17 10:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-16  8:47 [PATCH net-next v2 1/2] dt-bindings: net: rfkill-gpio: enable booting in blocked state Catalin Popescu
2025-01-16  8:47 ` [PATCH net-next v2 2/2] net: rfkill: gpio: allow " Catalin Popescu
2025-01-17  8:56 ` [PATCH net-next v2 1/2] dt-bindings: net: rfkill-gpio: enable " Krzysztof Kozlowski
2025-01-17 10:03   ` POPESCU Catalin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®