xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/pwm-beeper.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* PWM beeper device tree bindings
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRegisters a PWM device as beeper.
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunRequired properties:
6*4882a593Smuzhiyun- compatible: should be "pwm-beeper"
7*4882a593Smuzhiyun- pwms: phandle to the physical PWM device
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunOptional properties:
10*4882a593Smuzhiyun- amp-supply: phandle to a regulator that acts as an amplifier for the beeper
11*4882a593Smuzhiyun- beeper-hz:  bell frequency in Hz
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunExample:
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunbeeper_amp: amplifier {
16*4882a593Smuzhiyun	compatible = "fixed-regulator";
17*4882a593Smuzhiyun	gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
18*4882a593Smuzhiyun};
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunbeeper {
21*4882a593Smuzhiyun	compatible = "pwm-beeper";
22*4882a593Smuzhiyun	pwms = <&pwm0>;
23*4882a593Smuzhiyun	amp-supply = <&beeper_amp>;
24*4882a593Smuzhiyun};
25