Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1556881
| From | David Lechner <david@lechnology.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 2/3] dt-bindings: Input: Add optional amp-supply property to pwm-beeper |
| Date | 2017-01-11 21:10 +0100 |
| Message-ID | <sYxnz-2Us-21@gated-at.bofh.it> (permalink) |
| References | <sYxnz-2Us-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This adds an optional amp-supply property to pwm-beeper. This is a
regulator that acts as an amplifier for the beeper.
Signed-off-by: David Lechner <david@lechnology.com>
---
Documentation/devicetree/bindings/input/pwm-beeper.txt | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/Documentation/devicetree/bindings/input/pwm-beeper.txt b/Documentation/devicetree/bindings/input/pwm-beeper.txt
index be332ae..529408b 100644
--- a/Documentation/devicetree/bindings/input/pwm-beeper.txt
+++ b/Documentation/devicetree/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>;
+};
--
2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/3] Input: add optional amplifier regulator to pwm-beeper​ (previously "Input: add optional enable gpio to pwm-beeper​") David Lechner <david@lechnology.com> - 2017-01-11 21:10 +0100
[PATCH v2 1/3] Input: pwm-beeper: suppress error message on probe defer David Lechner <david@lechnology.com> - 2017-01-11 21:10 +0100
Re: [PATCH v2 1/3] Input: pwm-beeper: suppress error message on probe defer Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-01-14 20:20 +0100
[PATCH v2 2/3] dt-bindings: Input: Add optional amp-supply property to pwm-beeper David Lechner <david@lechnology.com> - 2017-01-11 21:10 +0100
[PATCH v2 3/3] Input: pwm-beeper: add optional amplifier regulator David Lechner <david@lechnology.com> - 2017-01-11 21:10 +0100
Re: [PATCH v2 3/3] Input: pwm-beeper: add optional amplifier regulator Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-01-14 20:20 +0100
Re: [PATCH v2 3/3] Input: pwm-beeper: add optional amplifier regulator David Lechner <david@lechnology.com> - 2017-01-16 01:20 +0100
Re: [PATCH v2 3/3] Input: pwm-beeper: add optional amplifier regulator Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-01-16 01:40 +0100
Re: [PATCH v2 3/3] Input: pwm-beeper: add optional amplifier regulator David Lechner <david@lechnology.com> - 2017-01-16 02:10 +0100
csiph-web