From patchwork Thu Mar 31 15:09:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 8714261 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 448579F30C for ; Thu, 31 Mar 2016 15:14:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6E0FE20272 for ; Thu, 31 Mar 2016 15:14:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A31722028D for ; Thu, 31 Mar 2016 15:14:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aleGb-0001nF-6K; Thu, 31 Mar 2016 15:12:13 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aleEh-0007Wc-UM for linux-arm-kernel@lists.infradead.org; Thu, 31 Mar 2016 15:10:16 +0000 Received: by mail-wm0-x244.google.com with SMTP id p65so24482277wmp.1 for ; Thu, 31 Mar 2016 08:09:57 -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=oeOwEYucRGRvAl8Mahd6VcgQ59dn516wYWsfCLfuK6I=; b=Mu29WAHVqdG7TKRMwnEOrrO+N9/imuZP7PTVaYvxHZ4M7U1gSgl0og27wFG4wnQ8T5 bMlXxlVOcsQ21W2K8J1MfDNSq3woKybBeH9p5pNBZHQLvEtiN2CV8DKhbn8E2EKDe2p/ 6mrqDq+GL27BtEAqIebAxYjt30Qdi6JKcrP/qlhK6BGPIDwI56CExwYHVvOAINVCDdif F+zSW1kiLPr4rfrlsPJmkibW5qSJPeYc924uFbBcJMtGb/DCC2xfYfdRfLO8z6kOANG8 EyaZrw1A5RZdOidp/x1l8RYHdYUH7w+57PeBuHbjNP8EuHsTY9cIc7i4eAgadozp+uGj /RXQ== 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=oeOwEYucRGRvAl8Mahd6VcgQ59dn516wYWsfCLfuK6I=; b=Z+lrZNum3nCUJhr4mw2LfBr/Sl7231o1mAnMqJe4OB981dQV4JoLSSobXRyvitMkAa FgRh4pez661oyQbNLCGQsLuvO79vS0zhnfjf1SGqnTBPD2SLKYPXJi3m9jviIUpsXIDH WwH6s5Naake4aOodJyXkEohgsuaLFVHgh196uqj2gpz85y3dTsPu5y6CC/4xHQ5U7zqP JXFU7bbeNU3J+StlqrEcrXu1XTMnFgallEixnIPjbrHp+h8ZJ5LXEG+NwXoRzB7gYqBU Pu1kX2n+oHrLflXDR3VoWUytgl/GNAIfco5/ji9x4OANe8mf+FmUQdqolO1HIEH3xLm2 7HNQ== X-Gm-Message-State: AD7BkJJ7g6T5CI7PAk7+SF8fRkCfpKRwhaOnStUjjipMUeJnr6kJtuYFYeKLBiC1PcuM1Q== X-Received: by 10.28.95.131 with SMTP id t125mr3269378wmb.80.1459436995998; Thu, 31 Mar 2016 08:09:55 -0700 (PDT) Received: from lmecul0520.st.com. (241.204.154.77.rev.sfr.net. [77.154.204.241]) by smtp.gmail.com with ESMTPSA id i5sm9505781wjx.15.2016.03.31.08.09.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Mar 2016 08:09:55 -0700 (PDT) From: Maxime Coquelin To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Mark Rutland , Rob Herring , linux-gpio@vger.kernel.org, arnd@arndb.de Subject: [PATCH v2 8/9] ARM: dts: Declare push button as GPIO key on stm32f429 Disco board Date: Thu, 31 Mar 2016 17:09:38 +0200 Message-Id: <1459436979-17275-9-git-send-email-mcoquelin.stm32@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459436979-17275-1-git-send-email-mcoquelin.stm32@gmail.com> References: <1459436979-17275-1-git-send-email-mcoquelin.stm32@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160331_081016_243238_5D56B97C X-CRM114-Status: GOOD ( 10.62 ) X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Daniel Thompson , bruherrera@gmail.com, linux-kernel@vger.kernel.org, lee.jones@linaro.org, linux-arm-kernel@lists.infradead.org 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=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, 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 Signed-off-by: Maxime Coquelin --- arch/arm/boot/dts/stm32429i-eval.dts | 18 ++++++++++++++++++ arch/arm/boot/dts/stm32f429-disco.dts | 13 +++++++++++++ 2 files changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 6bfc5959dac3..0fd78e4e8a45 100644 --- a/arch/arm/boot/dts/stm32429i-eval.dts +++ b/arch/arm/boot/dts/stm32429i-eval.dts @@ -47,6 +47,7 @@ /dts-v1/; #include "stm32f429.dtsi" +#include / { model = "STMicroelectronics STM32429i-EVAL board"; @@ -82,6 +83,23 @@ }; }; + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + button@0 { + label = "Wake up"; + linux,code = ; + gpios = <&gpioa 0 0>; + }; + button@1 { + label = "Tamper"; + linux,code = ; + gpios = <&gpioc 13 0>; + }; + }; + usbotg_hs_phy: usbphy { #phy-cells = <0>; compatible = "usb-nop-xceiv"; diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts index 01408073dd53..7d0415e80668 100644 --- a/arch/arm/boot/dts/stm32f429-disco.dts +++ b/arch/arm/boot/dts/stm32f429-disco.dts @@ -47,6 +47,7 @@ /dts-v1/; #include "stm32f429.dtsi" +#include / { model = "STMicroelectronics STM32F429i-DISCO board"; @@ -75,6 +76,18 @@ linux,default-trigger = "heartbeat"; }; }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + button@0 { + label = "User"; + linux,code = ; + gpios = <&gpioa 0 0>; + }; + }; }; &clk_hse {