rfkill-gpio.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/rfkill-gpio.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: GPIO controlled rfkill switch
  7. maintainers:
  8. - Johannes Berg <johannes@sipsolutions.net>
  9. - Philipp Zabel <p.zabel@pengutronix.de>
  10. properties:
  11. compatible:
  12. const: rfkill-gpio
  13. label:
  14. description: rfkill switch name, defaults to node name
  15. radio-type:
  16. description: rfkill radio type
  17. enum:
  18. - bluetooth
  19. - fm
  20. - gps
  21. - nfc
  22. - ultrawideband
  23. - wimax
  24. - wlan
  25. - wwan
  26. shutdown-gpios:
  27. maxItems: 1
  28. default-blocked:
  29. $ref: /schemas/types.yaml#/definitions/flag
  30. description: configure rfkill state as blocked at boot
  31. required:
  32. - compatible
  33. - radio-type
  34. - shutdown-gpios
  35. additionalProperties: false
  36. examples:
  37. - |
  38. #include <dt-bindings/gpio/gpio.h>
  39. rfkill {
  40. compatible = "rfkill-gpio";
  41. label = "rfkill-pcie-wlan";
  42. radio-type = "wlan";
  43. shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
  44. default-blocked;
  45. };