1
0

gpio-trigger.yaml 811 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/trigger-source/gpio-trigger.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Generic trigger source using GPIO
  7. description: A GPIO used as a trigger source.
  8. maintainers:
  9. - Jonathan Santos <Jonathan.Santos@analog.com>
  10. properties:
  11. compatible:
  12. const: gpio-trigger
  13. '#trigger-source-cells':
  14. const: 0
  15. gpios:
  16. maxItems: 1
  17. description: GPIO to be used as a trigger source.
  18. required:
  19. - compatible
  20. - '#trigger-source-cells'
  21. - gpios
  22. additionalProperties: false
  23. examples:
  24. - |
  25. #include <dt-bindings/gpio/gpio.h>
  26. trigger {
  27. compatible = "gpio-trigger";
  28. #trigger-source-cells = <0>;
  29. gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
  30. };