About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / input / pwm-beeper.txt




Custom Search

Based on kernel version 4.13.3. Page generated on 2017-09-23 13:55 EST.

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

Information is copyright its respective author. All material is available from the Linux Kernel Source distributed under a GPL License. This page is provided as a free service by mjmwired.net.