Sascha Hauer | d56a289 | 2012-11-03 12:05:52 -0700 | [diff] [blame] | 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 |
David Lechner | 9e54924 | 2017-01-15 17:09:43 -0800 | [diff] [blame] | 8 | |
| 9 | Optional properties: |
| 10 | - amp-supply: phandle to a regulator that acts as an amplifier for the beeper |
Guan Ben | fad358a | 2017-03-07 10:25:27 -0800 | [diff] [blame] | 11 | - beeper-hz: bell frequency in Hz |
David Lechner | 9e54924 | 2017-01-15 17:09:43 -0800 | [diff] [blame] | 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 | }; |