From patchwork Fri Jan 6 02:43:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 9499925 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 6499060236 for ; Fri, 6 Jan 2017 02:45:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B1B12848A for ; Fri, 6 Jan 2017 02:45:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4FC4A2848C; Fri, 6 Jan 2017 02:45:16 +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 533E02848A for ; Fri, 6 Jan 2017 02:45:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S939276AbdAFCox (ORCPT ); Thu, 5 Jan 2017 21:44:53 -0500 Received: from vern.gendns.com ([206.190.152.46]:56119 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754290AbdAFCoA (ORCPT ); Thu, 5 Jan 2017 21:44:00 -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=Or3vPJ0nsnvkQVcz+1hz2UX1RLF7aRxnRoq/QVd1+cc=; b=ezUlyEEAymE0lnFMXOAVjfBjc 4+ZJK0vMCdHS3zgZ7rUPoCotx6Vpz6VDMS8ziu2oZNzHUFtDC1zNPLmvCWG7Ou2f8RDVvB8Qun0e2 t3bnFiWKqWhz+tnU1zpVvK96ouAOEVeIR4zkDDsXfVRfqREFtUKj0lLJwRWy8rT7el6EWQptSpUWJ W7ztrjmhGW1+qk0HC5hf5WTYfnsrlnrEdkPkawcERJuAr9neJqQ2X4gW87d4+zcigmkcKaXOrVXI4 /sYdC0aolaDVw0Mq8f9GCtuaTIaTfbfUUeVjQDdvtZW/x5CYivCvPPOMQrnGtL7BqBRf07n1k9iIx erFuuHyiw==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:47742 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.87) (envelope-from ) id 1cPKVY-000JaJ-TF; Thu, 05 Jan 2017 21:43:57 -0500 From: David Lechner To: Dmitry Torokhov , Rob Herring , Mark Rutland Cc: David Lechner , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: Input: Add enable-gpios to pwm-beeper Date: Thu, 5 Jan 2017 20:43:53 -0600 Message-Id: <1483670635-25060-3-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483670635-25060-1-git-send-email-david@lechnology.com> References: <1483670635-25060-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 enable-gpios property to pwm-beeper. This gpio is used to enable the beeper. For example, the beeper may have an amplifier that needs to be switched on. Signed-off-by: David Lechner --- Documentation/devicetree/bindings/input/pwm-beeper.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/input/pwm-beeper.txt b/Documentation/devicetree/bindings/input/pwm-beeper.txt index be332ae..1c6bcf8 100644 --- a/Documentation/devicetree/bindings/input/pwm-beeper.txt +++ b/Documentation/devicetree/bindings/input/pwm-beeper.txt @@ -5,3 +5,14 @@ Registers a PWM device as beeper. Required properties: - compatible: should be "pwm-beeper" - pwms: phandle to the physical PWM device + +Optional properties: +- enable-gpios: phandle to gpio to enable the beeper + +Example: + +beeper { + compatible = "pwm-beeper"; + pwms = <&pwm0>; + enable-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; +};