Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758859AbcLSJyU (ORCPT ); Mon, 19 Dec 2016 04:54:20 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:33762 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758578AbcLSJyI (ORCPT ); Mon, 19 Dec 2016 04:54:08 -0500 From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Michael Turquette , Rob Herring , Frank Rowand , Mark Rutland , Russell King Cc: arm-soc , linux-devicetree , LKML , Bartosz Golaszewski Subject: [PATCH] ARM: dts: da850-lcdk: add gpio-keys Date: Mon, 19 Dec 2016 10:53:54 +0100 Message-Id: <1482141234-11546-1-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 947 Lines: 45 Add a gpio-keys node for two user buttons present on the board. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850-lcdk.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index 397c77a..628f4de 100644 --- a/arch/arm/boot/dts/da850-lcdk.dts +++ b/arch/arm/boot/dts/da850-lcdk.dts @@ -6,6 +6,7 @@ /dts-v1/; #include "da850.dtsi" #include +#include / { model = "DA850/AM1808/OMAP-L138 LCDK"; @@ -90,6 +91,23 @@ }; }; }; + + gpio-keys { + compatible = "gpio-keys"; + autorepeat; + + user1 { + label = "GPIO Key USER1"; + linux,code = ; + gpios = <&gpio 36 GPIO_ACTIVE_LOW>; + }; + + user2 { + label = "GPIO Key USER2"; + linux,code = ; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; + }; + }; }; &pmx_core { -- 2.9.3