From patchwork Tue Aug 4 20:53:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthoine Bourgeois X-Patchwork-Id: 6944051 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 052D99F373 for ; Tue, 4 Aug 2015 20:51:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2DF5B203E3 for ; Tue, 4 Aug 2015 20:51:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8BE55205CA for ; Tue, 4 Aug 2015 20:51:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753716AbbHDUvr (ORCPT ); Tue, 4 Aug 2015 16:51:47 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:34148 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753482AbbHDUvq (ORCPT ); Tue, 4 Aug 2015 16:51:46 -0400 Received: by wibud3 with SMTP id ud3so193087654wib.1 for ; Tue, 04 Aug 2015 13:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QtUILHT/tWcmmLMPyP7z3zy8lJUd/jhIkOcx7V1zirw=; b=l/Ikl0G26omP8NUIJtr5L5+4JaWMbHtv+he+PAPpmKS2QDcHHvWh7vt1R01T25rwDp 2ElCetExn+AjnGoPfId6oXJLAk4J2ea2YoOTJr/QVl93Jkfn30Zql1aEBY/Bu/BIBCM2 HIZjw+EZtf7EbuJQNsSMvW/n21obwYXAFOl8reSGvpFNkV8mZv5l2ue9SIAuCnDBVeu+ /uSLa2DmpNoY7TN5OyFyEYi84G5c4p3NAU9iAgvWJ3rUxZRsCAWR5FMxSgiyeJv6AfgD 3W0cZ9v+HCmG4/SmZMVCBP7BhsLxSllhh4fL3rkJQG7LA1XwN/qgkzrtGKgr0bhO1qwt XuQw== X-Received: by 10.194.172.8 with SMTP id ay8mr12011294wjc.106.1438721504985; Tue, 04 Aug 2015 13:51:44 -0700 (PDT) Received: from localhost.localdomain (cvl92-3-82-247-219-120.fbx.proxad.net. [82.247.219.120]) by smtp.gmail.com with ESMTPSA id fs8sm697631wjb.7.2015.08.04.13.51.43 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 04 Aug 2015 13:51:44 -0700 (PDT) From: Anthoine Bourgeois To: linux-omap@vger.kernel.org, Tony Lindgren , Benoit Cousson , Anil Kumar Cc: Anthoine Bourgeois Subject: [PATCH 1/7] ARM: dts: omap3-devkit8000: Add user button support Date: Tue, 4 Aug 2015 22:53:26 +0200 Message-Id: <1438721612-7529-2-git-send-email-anthoine.bourgeois@gmail.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1438721612-7529-1-git-send-email-anthoine.bourgeois@gmail.com> References: <1438721612-7529-1-git-send-email-anthoine.bourgeois@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 This patch links the user button to the BTN_EXTRA action. --- arch/arm/boot/dts/omap3-devkit8000.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts index 2af54cb..07b0f5a 100644 --- a/arch/arm/boot/dts/omap3-devkit8000.dts +++ b/arch/arm/boot/dts/omap3-devkit8000.dts @@ -7,6 +7,8 @@ */ /dts-v1/; +#include + #include "omap34xx.dtsi" / { model = "TimLL OMAP3 Devkit8000"; @@ -55,6 +57,17 @@ "MAINMIC", "Main Mic", "Main Mic", "Mic Bias 1"; }; + + gpio_keys { + compatible = "gpio-keys"; + + user { + label = "user"; + gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; + linux,code = ; + gpio-key,wakeup; + }; + }; }; &i2c1 {