From patchwork Mon Dec 19 09:53:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9479961 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6C04960237 for ; Mon, 19 Dec 2016 09:56:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63CCF283F8 for ; Mon, 19 Dec 2016 09:56:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56E4C284A2; Mon, 19 Dec 2016 09:56:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id DDE76283F8 for ; Mon, 19 Dec 2016 09:56:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cIueS-0001ko-MF; Mon, 19 Dec 2016 09:54:36 +0000 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cIueL-0001cX-He for linux-arm-kernel@lists.infradead.org; Mon, 19 Dec 2016 09:54:31 +0000 Received: by mail-wm0-x22b.google.com with SMTP id t79so95697715wmt.0 for ; Mon, 19 Dec 2016 01:54:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=cxWpdDQHCwTVWt4jNtM+hGZ3TebDOooKSW+EG3ub9QU=; b=WVu+uKAe3PFy0Liu+S8jg/mmrgNiNCOjEDy2H96gD+ajGQmH/+Ghy1Dxrlqq2VzRse NbTliBHvhKq99c4rdj3zR1vcFZwu6siCKrBsEA8ULpeDHH63zvPAJ2GCUR94Hu9PdIpJ /DtwOOVEQMtkdSWhMMY77+n5xIZWG4egM5odFRyZte62SALYfbMG/T1P5tZciLN3gEZo LR0LGnK/J1EvKKia77Vyo85/XPSQaKyYYfbFKs5ZTEl0KbiNi97qvTNebxW6VViLKVrr 3KzTQaiSvUJ4BBkzyN/3qBuuBH0cJbVjvp6gptiMULKYYPTNcngimKBh0cvS7x6zmIEo I6PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cxWpdDQHCwTVWt4jNtM+hGZ3TebDOooKSW+EG3ub9QU=; b=LldtG4z9K9NTXot3aml93LMb642IXxsqXOiyduRsYJC2w4lbxrBzGY+O0vCRi5Y7PF L+zxrbUQfh+XMsSXCEjbCpoBB0qgTNeqFYFk7M9i4vRI6b2hWZCrt4KTOaVnqigH/j5L Q/21mBhGobfY3McBPxp80B4YYojx0JDGl84CUpXohZEJRglTDI7fgPeBYOeMo0071Qp1 PlehBBzNC+Tce3mAcJdauO2JgEdTfCAquVvSjmWzleqs3q5GEvwfWtPnafKz/l/mcaqN PPsAJGjw86z30EDE2U43PC6Vzrfa3zEDMlJulb2/1ksPSVSXBlE0G8ldKllKQwzJraHV zz8Q== X-Gm-Message-State: AIkVDXIK2MsAB5trcjcauBVvVp6HB7MNHCbyqPaSUIQ7M48PirTFSF1hX/8QzWZA7+ukUHI8 X-Received: by 10.28.103.134 with SMTP id b128mr12237032wmc.54.1482141247173; Mon, 19 Dec 2016 01:54:07 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id u81sm16392545wmu.10.2016.12.19.01.54.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Dec 2016 01:54:06 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Michael Turquette , Rob Herring , Frank Rowand , Mark Rutland , Russell King 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161219_015429_829417_A50BB193 X-CRM114-Status: GOOD ( 10.07 ) 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: linux-devicetree , LKML , arm-soc , Bartosz Golaszewski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 {