gpio-vibrator.yaml 769 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/gpio-vibrator.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: GPIO vibrator
  7. maintainers:
  8. - Luca Weiss <luca@z3ntu.xyz>
  9. description: |+
  10. Registers a GPIO device as vibrator, where the on/off capability is controlled by a GPIO.
  11. properties:
  12. compatible:
  13. const: gpio-vibrator
  14. enable-gpios:
  15. maxItems: 1
  16. vcc-supply:
  17. description: Regulator that provides power
  18. required:
  19. - compatible
  20. - enable-gpios
  21. additionalProperties: false
  22. examples:
  23. - |
  24. #include <dt-bindings/gpio/gpio.h>
  25. vibrator {
  26. compatible = "gpio-vibrator";
  27. enable-gpios = <&msmgpio 86 GPIO_ACTIVE_HIGH>;
  28. vcc-supply = <&pm8941_l18>;
  29. };