From patchwork Wed Jan 11 20:02:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 9511137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6552F60762 for ; Wed, 11 Jan 2017 20:02:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51EB128681 for ; Wed, 11 Jan 2017 20:02:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42CB92868C; Wed, 11 Jan 2017 20:02:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBC4128681 for ; Wed, 11 Jan 2017 20:02:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757480AbdAKUCU (ORCPT ); Wed, 11 Jan 2017 15:02:20 -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 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=0/E5J1U6tC0ZfE6GslePq1croxJq/VBYidZAzLGBkTU=; b=ykeCMuLu+OJAq5MfVvsOk52sT 2QdQ6c7XULZDSzkSbnpwbZKqn2rr+cfmJD+bRvXhbxA+q+opvgyRWsuHt7ozvOWw0+BnqKEhT+01Q bYccsLmfsksTr58rGS0teq2RlwOIBx3keDdjJ7fywo/SKb72A72wwu965u19BlKD7mHMO9fyzHqNK TySbrgTTxjhfZyeZjLA/fMr6LiEPAz3J7yDopCUg9ihLYozHOp9P11UQ1ftKldQECWdhg+g/dgoRR /RrYhxlNbElmuqJKKauBM8z51ew8TJkiX6DZNU6oVrhlo2GI/Bej1WOF7E+GxIFuiT17u72FX/sIk ct67IOBDw==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:52454 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.87) (envelope-from ) id 1cRP65-001Exb-C1; Wed, 11 Jan 2017 15:02:14 -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-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Rob Herring --- 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>; +};