2012-11-04 03:05:52 +08:00
|
|
|
* PWM beeper device tree bindings
|
|
|
|
|
|
|
|
Registers a PWM device as beeper.
|
|
|
|
|
|
|
|
Required properties:
|
|
|
|
- compatible: should be "pwm-beeper"
|
|
|
|
- pwms: phandle to the physical PWM device
|
2017-01-16 09:09:43 +08:00
|
|
|
|
|
|
|
Optional properties:
|
|
|
|
- amp-supply: phandle to a regulator that acts as an amplifier for the beeper
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
beeper_amp: amplifier {
|
|
|
|
compatible = "fixed-regulator";
|
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
beeper {
|
|
|
|
compatible = "pwm-beeper";
|
|
|
|
pwms = <&pwm0>;
|
|
|
|
amp-supply = <&beeper_amp>;
|
|
|
|
};
|