From patchwork Tue Jun 20 05:09:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Faiz Abbas X-Patchwork-Id: 9798499 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 1F69960329 for ; Tue, 20 Jun 2017 05:10:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1739D262AE for ; Tue, 20 Jun 2017 05:10:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C1B42844E; Tue, 20 Jun 2017 05:10:39 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E9F4828445 for ; Tue, 20 Jun 2017 05:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cRILCHPLiUgeEFdqEwvFFTdLapEGZIgqoK4RrEUuSX8=; b=r0Koq9G7DImgl0 xi+wr2ZfJqxI4Nrt9hobTrUORLB6RxnekJLtd3gtZAjT7O8wnI6EaCorYUGdEJmiKCBflp9Qvjf/t tshfvp++HgrmCHbzDDNuIaxz/igmZfk/4bZ6vJGHeKTBckefSB+RHOCgHDjpqcB+46kyNuN63WuqG uzTAdApXLWHUYSTkvYJP/e9GP+wNCrkKbdCKyb7U+vqnUuEAPizZtuUXT/vCZMHgh7AKvHpWnb4Pm cETjZXqAFR0BCMLf+BmJiCcrUSYWqffLu69/4KznAlUjkJYfpHRxLCmXM6b/BQuemXEu5tgL3o/P4 Z+ejbWTSlRqQhYXGQAKg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dNBQw-00054u-E6; Tue, 20 Jun 2017 05:10:34 +0000 Received: from fllnx210.ext.ti.com ([198.47.19.17]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNBQt-0004qa-7D for linux-arm-kernel@lists.infradead.org; Tue, 20 Jun 2017 05:10:33 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v5K59oJ1005752; Tue, 20 Jun 2017 00:09:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1497935390; bh=AFrrbHeg/5jcCsL/jSSI3VqDZP4QM3Fz2cNo3U7WlK0=; h=From:To:CC:Subject:Date; b=iSUMYFoZaCB2Hvud9oBBOmT+dzfPKE+c85hWySHnhrJLUFaczF9++75/N9rp5aGGQ Ra7qfGEBtlmAfemWonUf9qNvuaI3XMrmMv9HXJlRlAcCdjH2R1X8c42UV868EFzULF +/FJaiDTP6aMJ8PnaHg7odMt7KqJW9pcFnEgZro4= Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v5K59oR4013544; Tue, 20 Jun 2017 00:09:50 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Tue, 20 Jun 2017 00:09:49 -0500 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v5K59kkb015652; Tue, 20 Jun 2017 00:09:47 -0500 From: Faiz Abbas To: Subject: [PATCH] ARM: dts: am437x-gp-evm: Add support for buzzer Date: Tue, 20 Jun 2017 10:39:21 +0530 Message-ID: <1497935361-11019-1-git-send-email-faiz_abbas@ti.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170619_221031_465748_099CAC75 X-CRM114-Status: UNSURE ( 6.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux@armlinux.org.uk, linux-kernel@vger.kernel.org, robh+dt@kernel.org, bcousson@baylibre.com, Faiz Abbas , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for onboard gpio buzzer. It works using the gpio-beeper driver. Pinmux entries for GPIO controlling the buzzer are also added. Signed-off-by: Faiz Abbas --- arch/arm/boot/dts/am437x-gp-evm.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts index 397e98b..24cdf6d 100644 --- a/arch/arm/boot/dts/am437x-gp-evm.dts +++ b/arch/arm/boot/dts/am437x-gp-evm.dts @@ -149,6 +149,13 @@ system-clock-frequency = <12000000>; }; }; + + beeper: beeper { + compatible = "gpio-beeper"; + pinctrl-names = "default"; + pinctrl-0 = <&beeper_pins>; + gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; + }; }; &am43xx_pinmux { @@ -510,6 +517,13 @@ AM4372_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ >; }; + + beeper_pins: beeper_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0x9e0, PIN_OUTPUT_PULLUP | MUX_MODE7) /* cam1_field.gpio4_12 */ + >; + }; + }; &uart0 {