gpio-beeper.yaml 617 B

123456789101112131415161718192021222324252627282930313233
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/gpio-beeper.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: GPIO controlled beeper
  7. maintainers:
  8. - Fabio Estevam <festevam@denx.de>
  9. properties:
  10. compatible:
  11. const: gpio-beeper
  12. gpios:
  13. maxItems: 1
  14. description:
  15. GPIO that drives the beeper.
  16. required:
  17. - compatible
  18. - gpios
  19. additionalProperties: false
  20. examples:
  21. - |
  22. #include <dt-bindings/gpio/gpio.h>
  23. beeper {
  24. compatible = "gpio-beeper";
  25. gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
  26. };