From patchwork Tue Apr 2 08:15:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 2376271 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id A037240214 for ; Tue, 2 Apr 2013 08:27:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761297Ab3DBI1D (ORCPT ); Tue, 2 Apr 2013 04:27:03 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:54756 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760798Ab3DBI1A (ORCPT ); Tue, 2 Apr 2013 04:27:00 -0400 Received: by mail-pd0-f182.google.com with SMTP id 3so112618pdj.27 for ; Tue, 02 Apr 2013 01:26:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=4+7nOgKm3BwWKLJtCQaAojZ30pgfMDT1w8mfYw48POQ=; b=BciQ/Co9GpqHn3C/7NhRGLkhdlrcZALjvFo4Sa3DgmN3Psc2pjR2tdLGPika+7U4NN 1YOLABFbEoek7WvJ7m6E6GgS1IosXENfCGsIIrPQ1nt6eM7lbQDXqWR7R9T2LPFXuWfW PKWJtF2RdXTCKBqVhhyU82h6KZc2tmBRdb5cfhlXm7BNso5t40coGZyrOz/ZdPW2r8qS f9ntzw2KQ3bKSoexrOBC3tnwKxPEeOhRQySxv6nPiRNDY0pJptTV8mjAXNPc11Ln9pME 1zAq/0S0YuO94I73lWXixR3XJcrkRrC/+w7o5mxGTUtEAX3ens6RG1FJ4KZUGZ8+LKq6 9sZQ== X-Received: by 10.68.143.167 with SMTP id sf7mr22823818pbb.21.1364891219463; Tue, 02 Apr 2013 01:26:59 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPS id qh4sm1448781pac.8.2013.04.02.01.26.55 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Apr 2013 01:26:57 -0700 (PDT) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Cc: kgene.kim@samsung.com, patches@linaro.org Subject: [PATCH V3 3/7] ARM: dts: Add gpio-button entries for Arndale board Date: Tue, 2 Apr 2013 13:45:03 +0530 Message-Id: <1364890507-19261-4-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364890507-19261-1-git-send-email-tushar.behera@linaro.org> References: <1364890507-19261-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQnGmevq4T64NjEyWNhNSZzklqSKLfx576ncRM6VD86EBq4srhPeKHjlyjuwrT7OHV+x9+l/ Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Added GPIO buttons DT node to Arndale board file. Signed-off-by: Tushar Behera Signed-off-by: Sachin Kamat --- Changes for V3: * Removed redundant #address-cells and #size-cells * Pin-control related modifications. arch/arm/boot/dts/exynos5250-arndale.dts | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts b/arch/arm/boot/dts/exynos5250-arndale.dts index d07a21f..03c9ad5 100644 --- a/arch/arm/boot/dts/exynos5250-arndale.dts +++ b/arch/arm/boot/dts/exynos5250-arndale.dts @@ -122,4 +122,50 @@ clock-frequency = <24000000>; }; }; + + gpio_keys { + compatible = "gpio-keys"; + + menu { + label = "SW-TACT2"; + gpios = <&gpx1 4 1>; + linux,code = <139>; + gpio-key,wakeup; + }; + + home { + label = "SW-TACT3"; + gpios = <&gpx1 5 1>; + linux,code = <102>; + gpio-key,wakeup; + }; + + up { + label = "SW-TACT4"; + gpios = <&gpx1 6 1>; + linux,code = <103>; + gpio-key,wakeup; + }; + + down { + label = "SW-TACT5"; + gpios = <&gpx1 7 1>; + linux,code = <108>; + gpio-key,wakeup; + }; + + back { + label = "SW-TACT6"; + gpios = <&gpx2 0 1>; + linux,code = <158>; + gpio-key,wakeup; + }; + + wakeup { + label = "SW-TACT7"; + gpios = <&gpx2 1 1>; + linux,code = <143>; + gpio-key,wakeup; + }; + }; };