pwm-beeper.yaml 745 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/pwm-beeper.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: PWM beeper
  7. maintainers:
  8. - Sascha Hauer <s.hauer@pengutronix.de>
  9. properties:
  10. compatible:
  11. const: pwm-beeper
  12. pwms:
  13. maxItems: 1
  14. amp-supply:
  15. description: an amplifier for the beeper
  16. beeper-hz:
  17. description: bell frequency in Hz
  18. minimum: 10
  19. maximum: 10000
  20. required:
  21. - compatible
  22. - pwms
  23. unevaluatedProperties: false
  24. examples:
  25. - |
  26. #include <dt-bindings/gpio/gpio.h>
  27. beeper {
  28. compatible = "pwm-beeper";
  29. pwms = <&pwm0>;
  30. amp-supply = <&beeper_amp>;
  31. beeper-hz = <1000>;
  32. };