From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754090AbcCAOCx (ORCPT ); Tue, 1 Mar 2016 09:02:53 -0500 Received: from eusmtp01.atmel.com ([212.144.249.242]:21044 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753865AbcCAOCw (ORCPT ); Tue, 1 Mar 2016 09:02:52 -0500 From: Nicolas Ferre To: , Alexandre Belloni CC: Boris BREZILLON , Ludovic Desroches , Cyrille Pitchen , Wenyou Yang , Songjun Wu , , Jean-Christophe PLAGNIOL-VILLARD , Nicolas Ferre Subject: [PATCH 2/3] ARM: dts: at91: sama5d2 Xplained: add user push button Date: Tue, 1 Mar 2016 15:02:36 +0100 Message-ID: X-Mailer: git-send-email 2.1.3 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ludovic Desroches Add the push button named "PB USER" with code 0x104. Associated pinctrl node is also added. Signed-off-by: Ludovic Desroches Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts index 382ccfb4a2b6..d20d4033d64c 100644 --- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts @@ -302,6 +302,11 @@ bias-disable; }; + pinctrl_key_gpio_default: key_gpio_default { + pinmux = ; + bias-pull-up; + }; + pinctrl_macb0_default: macb0_default { pinmux = , , @@ -400,4 +405,17 @@ }; }; }; + + gpio_keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_key_gpio_default>; + + bp1 { + label = "PB_USER"; + gpios = <&pioA 41 GPIO_ACTIVE_LOW>; + linux,code = <0x104>; + }; + }; }; -- 2.1.3