summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/input/pwm-beeper.txt
diff options
context:
space:
mode:
Diffstat (limited to 'dts/Bindings/input/pwm-beeper.txt')
-rw-r--r--dts/Bindings/input/pwm-beeper.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/dts/Bindings/input/pwm-beeper.txt b/dts/Bindings/input/pwm-beeper.txt
index be332ae4f2..529408b443 100644
--- a/dts/Bindings/input/pwm-beeper.txt
+++ b/dts/Bindings/input/pwm-beeper.txt
@@ -5,3 +5,19 @@ 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
+
+Example:
+
+beeper_amp: amplifier {
+ compatible = "fixed-regulator";
+ gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+};
+
+beeper {
+ compatible = "pwm-beeper";
+ pwms = <&pwm0>;
+ amp-supply = <&beeper_amp>;
+};