From patchwork Wed Mar 13 05:08:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2261601 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 ED5DF3FD8C for ; Wed, 13 Mar 2013 05:19:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751333Ab3CMFTB (ORCPT ); Wed, 13 Mar 2013 01:19:01 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:33609 "EHLO mail-pb0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147Ab3CMFTB (ORCPT ); Wed, 13 Mar 2013 01:19:01 -0400 Received: by mail-pb0-f44.google.com with SMTP id wz12so628600pbc.3 for ; Tue, 12 Mar 2013 22:19:00 -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=dHNriSixumdK25s2dpWwJz302YDZVaW5VK/VIG8em4I=; b=ldJ5q5tbW1Z2sl0t7hAXIC88pONJnxVVVkyMBE1mgLGoQ1vEuZMHsuNKBlhjw7Dsuf 5b2YXylZxbWV1hfUaxJts0qfwFHFWWMzgo7a76I1kvPlnwkshXxBZf/2BNQxhdFK5UYy 2OnucKHdNXOVgGwE4WSK623YPo4Kl7/qQNQF2n/M2SdFadrve36saUQVWV3kpeMZykIS CmAClfZ22nGz8NVMp+IM5juqz8mwFju6d/l6K07KVfDG77piwPEkkfP1DQC1Pask8ust Z6zALN1P4zjWxdiW2+NVDRj5BnbCZ060swbMJmyZNWiD+3vShKlqxwQdZEeYy8r2oX17 7xaQ== X-Received: by 10.68.225.40 with SMTP id rh8mr43358806pbc.137.1363151940488; Tue, 12 Mar 2013 22:19:00 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ip8sm27988437pbc.39.2013.03.12.22.18.57 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 12 Mar 2013 22:18:59 -0700 (PDT) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/3] ARM: dts: Add keypad entries to Exynos4412 based Origen Date: Wed, 13 Mar 2013 10:38:08 +0530 Message-Id: <1363151289-685-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1363151289-685-1-git-send-email-sachin.kamat@linaro.org> References: <1363151289-685-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQk1SFRlTsaef2LSNgh2lLleyduNp93A8r5Dm2qiNpC+gYNuJs/x5O/xlNCfPI4tmZFsrZzN Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Added keypad node entries to Exynos4412 based Origen board DT file. Signed-off-by: Sachin Kamat --- arch/arm/boot/dts/exynos4412-origen.dts | 62 +++++++++++++++++++++++++++++++ 1 files changed, 62 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/exynos4412-origen.dts b/arch/arm/boot/dts/exynos4412-origen.dts index 31e14c4..65e6039 100644 --- a/arch/arm/boot/dts/exynos4412-origen.dts +++ b/arch/arm/boot/dts/exynos4412-origen.dts @@ -36,6 +36,68 @@ enable-active-high; }; + pinctrl@11000000 { + keypad_rows: keypad-rows { + samsung,pins = "gpx2-0", "gpx2-1", "gpx2-2"; + samsung,pin-function = <3>; + samsung,pin-pud = <3>; + samsung,pin-drv = <0>; + }; + + keypad_cols: keypad-cols { + samsung,pins = "gpx1-0", "gpx1-1"; + samsung,pin-function = <3>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; + }; + + keypad@100A0000 { + samsung,keypad-num-rows = <3>; + samsung,keypad-num-columns = <2>; + linux,keypad-no-autorepeat; + linux,keypad-wakeup; + pinctrl-0 = <&keypad_rows &keypad_cols>; + pinctrl-names = "default"; + status = "okay"; + + key_home { + keypad,row = <0>; + keypad,column = <0>; + linux,code = <102>; + }; + + key_down { + keypad,row = <0>; + keypad,column = <1>; + linux,code = <108>; + }; + + key_up { + keypad,row = <1>; + keypad,column = <0>; + linux,code = <103>; + }; + + key_menu { + keypad,row = <1>; + keypad,column = <1>; + linux,code = <139>; + }; + + key_back { + keypad,row = <2>; + keypad,column = <0>; + linux,code = <158>; + }; + + key_enter { + keypad,row = <2>; + keypad,column = <1>; + linux,code = <28>; + }; + }; + sdhci@12530000 { bus-width = <4>; pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sd2_cd>;