0001 * PWM beeper device tree bindings
0002
0003 Registers a PWM device as beeper.
0004
0005 Required properties:
0006 - compatible: should be "pwm-beeper"
0007 - pwms: phandle to the physical PWM device
0008
0009 Optional properties:
0010 - amp-supply: phandle to a regulator that acts as an amplifier for the beeper
0011 - beeper-hz: bell frequency in Hz
0012
0013 Example:
0014
0015 beeper_amp: amplifier {
0016 compatible = "fixed-regulator";
0017 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
0018 };
0019
0020 beeper {
0021 compatible = "pwm-beeper";
0022 pwms = <&pwm0>;
0023 amp-supply = <&beeper_amp>;
0024 };