pwm-beeper.txt 502 B

123456789101112131415161718192021222324
  1. * PWM beeper device tree bindings
  2. Registers a PWM device as beeper.
  3. Required properties:
  4. - compatible: should be "pwm-beeper"
  5. - pwms: phandle to the physical PWM device
  6. Optional properties:
  7. - amp-supply: phandle to a regulator that acts as an amplifier for the beeper
  8. - beeper-hz: bell frequency in Hz
  9. Example:
  10. beeper_amp: amplifier {
  11. compatible = "fixed-regulator";
  12. gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  13. };
  14. beeper {
  15. compatible = "pwm-beeper";
  16. pwms = <&pwm0>;
  17. amp-supply = <&beeper_amp>;
  18. };