From patchwork Sat Oct 17 17:23:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 531812 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 104AF1402B0 for ; Sun, 18 Oct 2015 04:24:36 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=vH97f72x; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932379AbbJQRYQ (ORCPT ); Sat, 17 Oct 2015 13:24:16 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:33730 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753332AbbJQRYO (ORCPT ); Sat, 17 Oct 2015 13:24:14 -0400 Received: by wijp11 with SMTP id p11so47962812wij.0; Sat, 17 Oct 2015 10:24:12 -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=kSFApE7DNxfT5qGR/4PKkbQJg1eV7otHraTY11J98J0=; b=vH97f72xk1CTu0BWFZUALMm3l46QBQ7rdxMr9KSC4W0WUfYdyJJfAp/NoEZHTlfuAQ D5O3JnS+DOrjuLqY1omtZSNilfRHMKrcVdH/gD7rOIfUfPl9o+CSyNYJAy7NvxQnmmy6 dG4wBsAMnbuGl5O9gex21ycnwKYO893yFgYEb8CTynCe+BpRpbgeuAzNHRuSkZSFUKYP ifvsryh0lLLvglNzPsJ3tRQGQ1pCxtD2UfePbSz6E8SHh+z3VbS6oLi0UtDp0EPt28tj JKB53tqCB/EUuD2uh3Ua+T8MQh+zLc/HlKLCZWyfF8UBBgBcUqNnDH+MM6zqlJgsa+DA AasQ== X-Received: by 10.194.187.72 with SMTP id fq8mr24097239wjc.131.1445102652522; Sat, 17 Oct 2015 10:24:12 -0700 (PDT) Received: from lmecul0520.st.com. (101.210.139.88.rev.sfr.net. [88.139.210.101]) by smtp.gmail.com with ESMTPSA id gh9sm29409201wjb.27.2015.10.17.10.24.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Oct 2015 10:24:12 -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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, afaerber@suse.de, devicetree@vger.kernel.org, Daniel Thompson , bruherrera@gmail.com Subject: [PATCH 8/9] ARM: dts: Declare push button as GPIO key on stm32f429 Disco board Date: Sat, 17 Oct 2015 19:23:57 +0200 Message-Id: <1445102638-11575-9-git-send-email-mcoquelin.stm32@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445102638-11575-1-git-send-email-mcoquelin.stm32@gmail.com> References: <1445102638-11575-1-git-send-email-mcoquelin.stm32@gmail.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Signed-off-by: Maxime Coquelin --- arch/arm/boot/dts/stm32429i-eval.dts | 19 +++++++++++++++++++ arch/arm/boot/dts/stm32f429-disco.dts | 13 +++++++++++++ 2 files changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 71fe17a..be21931 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"; @@ -64,6 +65,24 @@ aliases { serial0 = &usart1; }; + + 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>; + }; + + }; }; &clk_hse { diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts index 532c499..2cb4c9e 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"; @@ -74,6 +75,18 @@ gpios = <&gpiog 13 0>; }; }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + button@0 { + label = "User"; + linux,code = ; + gpios = <&gpioa 0 0>; + }; + }; }; &clk_hse {