From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757598AbdAKUCW (ORCPT ); Wed, 11 Jan 2017 15:02:22 -0500 Received: from vern.gendns.com ([206.190.152.46]:49955 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757355AbdAKUCT (ORCPT ); Wed, 11 Jan 2017 15:02:19 -0500 From: David Lechner To: linux-input@vger.kernel.org, devicetree@vger.kernel.org Cc: David Lechner , Dmitry Torokhov , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] dt-bindings: Input: Add optional amp-supply property to pwm-beeper Date: Wed, 11 Jan 2017 14:02:00 -0600 Message-Id: <1484164921-30587-3-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484164921-30587-1-git-send-email-david@lechnology.com> References: <1484164921-30587-1-git-send-email-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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