Message ID | 1484164921-30587-3-git-send-email-david@lechnology.com (mailing list archive) |
---|---|
State | Under Review |
Headers | show |
On Wed, Jan 11, 2017 at 02:02:00PM -0600, David Lechner wrote: > 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(+) Acked-by: Rob Herring <robh@kernel.org> -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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>; +};
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(+)