mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 04:55:16 +07:00
fad358a06c
Extend the pwm-beeper driver to support customized frequency for SND_BELL from device properties. Signed-off-by: Guan Ben <ben.guan@cn.bosch.com> Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com> Signed-off-by: Heiko Schocher <hs@denx.de> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
25 lines
502 B
Plaintext
25 lines
502 B
Plaintext
* 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
|
|
|
|
Optional properties:
|
|
- amp-supply: phandle to a regulator that acts as an amplifier for the beeper
|
|
- beeper-hz: bell frequency in Hz
|
|
|
|
Example:
|
|
|
|
beeper_amp: amplifier {
|
|
compatible = "fixed-regulator";
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
beeper {
|
|
compatible = "pwm-beeper";
|
|
pwms = <&pwm0>;
|
|
amp-supply = <&beeper_amp>;
|
|
};
|