From patchwork Thu Jan 23 15:57:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Jacques Hiblot X-Patchwork-Id: 3529831 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1913DC02DC for ; Thu, 23 Jan 2014 16:19:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1C43920179 for ; Thu, 23 Jan 2014 16:19:33 +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 DA0C820181 for ; Thu, 23 Jan 2014 16:19:31 +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 1W6MkT-0006dp-Fx; Thu, 23 Jan 2014 16:03:22 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W6Mjj-0005DL-Fs; Thu, 23 Jan 2014 16:02:35 +0000 Received: from mail-we0-f172.google.com ([74.125.82.172]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W6MiQ-00052v-AT for linux-arm-kernel@lists.infradead.org; Thu, 23 Jan 2014 16:01:17 +0000 Received: by mail-we0-f172.google.com with SMTP id q58so1406093wes.3 for ; Thu, 23 Jan 2014 08:00:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ytdrmRZyJARwQlNZcO+I8IgZCCnWbvJ4D7pDwIep+5E=; b=PLIRwRruMc7rTSuOtRlDP1U9F8E5fpl5ykVBCc90wHYpbrN5AA5qP9KPaQvRwC3UEB oImb2rZiSOXH7txrnPAyAyImm/mQ5QTr9BG3R/XXZXyImRPAa4QiRvPP+z4bYI280G17 mhKuGlqn14FLhk/g3sc1NMEGGEQgAT4EWnztD/ZYsZNg30Yc9pZuunQv+2V5fyFxqVyc 3A/r3nvejq+KK2h7fMCjV8y14/aLb7MSSl3F0ge7FgnDW602cCeOMb/8Gz14f+xcZO+g GwPlFKaszteinnqTYulAK04e1J2oc1qrrOtYM+ew9K1DIiOJSo1Oco63IjpaBlTPXwY3 IAjQ== X-Received: by 10.180.105.65 with SMTP id gk1mr25434399wib.12.1390492850971; Thu, 23 Jan 2014 08:00:50 -0800 (PST) Received: from stedf17-labo202.ds.jdsu.net. (4-161.80-90.static-ip.oleane.fr. [90.80.161.4]) by mx.google.com with ESMTPSA id fz5sm16760691wic.11.2014.01.23.08.00.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Jan 2014 08:00:49 -0800 (PST) From: Jean-Jacques Hiblot To: nicolas.ferre@atmel.com, plagnioj@jcrosoft.com, b.brezillon@overkiz.com Subject: [PATCH v3 06/15] at91: dt: at91sam9261ek: Adds DT entries for the 4 user buttons Date: Thu, 23 Jan 2014 16:57:10 +0100 Message-Id: <1390492639-7299-7-git-send-email-jjhiblot@traphandler.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1390492639-7299-1-git-send-email-jjhiblot@traphandler.com> References: <1390492639-7299-1-git-send-email-jjhiblot@traphandler.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140123_110114_622389_B745719B X-CRM114-Status: UNSURE ( 8.22 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: Jean-Jacques Hiblot , linux-arm-kernel@lists.infradead.org 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=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Signed-off-by: Jean-Jacques Hiblot --- arch/arm/boot/dts/at91sam9261ek.dts | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9261ek.dts b/arch/arm/boot/dts/at91sam9261ek.dts index 8909217..5555e9f5 100644 --- a/arch/arm/boot/dts/at91sam9261ek.dts +++ b/arch/arm/boot/dts/at91sam9261ek.dts @@ -83,6 +83,15 @@ AT91_PIOA 23 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; }; }; + + keys { + pinctrl_keys: keys-0 { + atmel,pins = ; + }; + }; }; watchdog@fffffd40 { @@ -109,4 +118,34 @@ linux,default-trigger = "heartbeat"; }; }; + + gpio_keys { + compatible = "gpio-keys"; + pinctrl-0 = <&pinctrl_keys>; + + button_0 { + label = "button_0"; + gpios = <&pioA 27 GPIO_ACTIVE_LOW>; + linux,code = <256>; + gpio-key,wakeup; + }; + button_1 { + label = "button_1"; + gpios = <&pioA 26 GPIO_ACTIVE_LOW>; + linux,code = <257>; + gpio-key,wakeup; + }; + button_2 { + label = "button_2"; + gpios = <&pioA 25 GPIO_ACTIVE_LOW>; + linux,code = <258>; + gpio-key,wakeup; + }; + button_3 { + label = "button_3"; + gpios = <&pioA 24 GPIO_ACTIVE_LOW>; + linux,code = <259>; + gpio-key,wakeup; + }; + }; };