From patchwork Fri Dec 13 01:49:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 3335671 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 384CA9F2A9 for ; Fri, 13 Dec 2013 02:20:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B240207D3 for ; Fri, 13 Dec 2013 02:20:03 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D146C207D1 for ; Fri, 13 Dec 2013 02:20:01 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrHuT-0001pC-N0; Fri, 13 Dec 2013 01:51:23 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrHtf-0007Nm-JQ; Fri, 13 Dec 2013 01:50:31 +0000 Received: from mail-pd0-f170.google.com ([209.85.192.170]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrHs2-0007E0-Ml for linux-arm-kernel@lists.infradead.org; Fri, 13 Dec 2013 01:48:58 +0000 Received: by mail-pd0-f170.google.com with SMTP id g10so1537151pdj.1 for ; Thu, 12 Dec 2013 17:48:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=haw/qr5kS+gtm0SxJabFH8V5q6ZlBGUtF3T3Vy0Orkc=; b=mU7g0+51W/HP82/LZLQt38nV1l5MJ4e0qQAsU8zERLxMgqBzvSaIfX5E81zEtpFzDT k6UmkFKlZMhp3RwFWZ8T0incn2hedbR+XyQ6lm+T3MD/6P5u1OuXEkSKhPFUl71CTVeJ ZaaV7KWSfHcANSTXYqDPYblCB8Z7SY0+ifXZyn5M+X6bSkmkXWPJe+N09/Qn7dUe0J1/ 4YZ65G+CC1hifHZfjyVdPWAUVYYegrSKqc93Kn5n2U6QufZ4hCuB5vAaUXI0t+xcwz3R ugQTF9tuSPUFbZqmRoFFKCawYagxZpXgJCx74hzbg0M2C2eJiZpovnXGKI0CTZZrgZe6 F1Xw== X-Gm-Message-State: ALoCoQlsM45ZGHT05BtYloMU69KlEXAvCqFGIISmMfXBXimrLlWO5cGS+8SSZejHo5xSXjbVQDk0 X-Received: by 10.68.99.99 with SMTP id ep3mr17004495pbb.107.1386899304634; Thu, 12 Dec 2013 17:48:24 -0800 (PST) Received: from officeserver-2 ([63.226.49.26]) by mx.google.com with ESMTPSA id hu10sm510995pbc.11.2013.12.12.17.48.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 12 Dec 2013 17:48:23 -0800 (PST) Received: from tkisky by officeserver-2 with local (Exim 4.80) (envelope-from ) id 1VrHsU-0004XV-2A; Thu, 12 Dec 2013 18:49:18 -0700 From: Troy Kisky To: shawn.guo@linaro.org Subject: [PATCH V1 06/11] ARM: dts: imx6qdl-sabrelite: add gpio-keys Date: Thu, 12 Dec 2013 18:49:10 -0700 Message-Id: <1386899355-17379-7-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1386899355-17379-1-git-send-email-troy.kisky@boundarydevices.com> References: <1386899355-17379-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131212_204851_113105_C04FAED7 X-CRM114-Status: UNSURE ( 8.94 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.3 (/) Cc: marex@denx.de, eric.nelson@boundarydevices.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org, Troy Kisky X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, URIBL_SBL autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add power, menu, home, back, volume up, and volume down buttons. Signed-off-by: Troy Kisky --- arch/arm/boot/dts/imx6qdl-sabrelite.dtsi | 47 ++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi index b548647..fa10ded 100644 --- a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi @@ -9,6 +9,7 @@ * http://www.opensource.org/licenses/gpl-license.html * http://www.gnu.org/copyleft/gpl.html */ +#include / { memory { @@ -49,6 +50,46 @@ }; }; + gpio-keys { + compatible = "gpio-keys"; + power { + label = "Power Button"; + gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; + linux,code = <116>; /* KEY_POWER, or search */ + gpio-key,wakeup; + }; + + menu { + label = "Menu"; + gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; + linux,code = <139>; /* KEY_MENU */ + }; + + home { + label = "Home"; + gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; + linux,code = <102>; /* KEY_HOME */ + }; + + back { + label = "Back"; + gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; + linux,code = <158>; /* KEY_BACK */ + }; + + volume-up { + label = "Volume Up"; + gpios = <&gpio7 13 GPIO_ACTIVE_LOW>; + linux,code = <115>; /* KEY_VOLUMEUP */ + }; + + volume-down { + label = "Volume Down"; + gpios = <&gpio4 5 GPIO_ACTIVE_LOW>; + linux,code = <114>; /* KEY_VOLUMEDOWN */ + }; + }; + sound { compatible = "fsl,imx6q-sabrelite-sgtl5000", "fsl,imx-audio-sgtl5000"; @@ -121,6 +162,12 @@ /* USDHC3 CD */ MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x1b0b0 /* USDHC3 WP */ MX6QDL_PAD_SD3_DAT4__GPIO7_IO01 0x1f0b0 /* SGTL5000 sys_mclk */ MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x000b0 +/* Power Button */ MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x1b0b0 +/* Menu Button */ MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0 +/* Home Button */ MX6QDL_PAD_NANDF_D4__GPIO2_IO04 0x1b0b0 +/* Back Button */ MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0 +/* Volume Up Button */ MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b0 +/* Volume Down Button */ MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x1b0b0 >; };