From patchwork Wed Mar 13 05:08:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 15324 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 163AA23E10 for ; Wed, 13 Mar 2013 05:19:06 +0000 (UTC) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by fiordland.canonical.com (Postfix) with ESMTP id C15CFA181D8 for ; Wed, 13 Mar 2013 05:19:05 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id fl15so320640vcb.18 for ; Tue, 12 Mar 2013 22:19:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=lONveKT4CIRrmuc57brtARwb/SSRHidrx//LAVkTWxc=; b=PCTNF9yCvO2awivtHhFMn8sJ6mTWrj3yPXe6mrE+XUveNwWmBp/nuBnUUsGk9AvXX2 +zkcoLfo5lQe4B3W+REf4+BPO7lvSOcZ/oKn4+5RLNyWGQET70dcaa6jyk+NX5GqT2Rw jGIr06qbKlPVa1IldI/ADKvqmi22scnh3FVWVCDrjAZolzFybsyG/AjssRXk1h/MvbYG gwDBVKR0ry8QVm/O1LUcT25JeZ7qW0XJkUiEF2Y+RQD3F43w2mDEpf9I3S9AGgtDtaNN dGZQUNZnGUSBdCHACjas6//QihbcuWcSaKI0UCkigmZjRS534b8oPsM04rOM7MS0hYgj Rh/A== X-Received: by 10.220.242.73 with SMTP id lh9mr7255543vcb.49.1363151945314; Tue, 12 Mar 2013 22:19:05 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp1926veb; Tue, 12 Mar 2013 22:19:04 -0700 (PDT) X-Received: by 10.68.11.135 with SMTP id q7mr42554347pbb.5.1363151944250; Tue, 12 Mar 2013 22:19:04 -0700 (PDT) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by mx.google.com with ESMTPS id xp9si23488085pbc.340.2013.03.12.22.19.03 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Mar 2013 22:19:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.43 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.43; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.43 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f43.google.com with SMTP id md12so627380pbc.30 for ; Tue, 12 Mar 2013 22:19:03 -0700 (PDT) X-Received: by 10.68.198.34 with SMTP id iz2mr42365427pbc.148.1363151943244; Tue, 12 Mar 2013 22:19:03 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ip8sm27988437pbc.39.2013.03.12.22.19.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 12 Mar 2013 22:19:02 -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 3/3] ARM: dts: Add keypad entries to SMDK4412 Date: Wed, 13 Mar 2013 10:38:09 +0530 Message-Id: <1363151289-685-3-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: ALoCoQnOeep8Pai/r35aome+GdhlaT/iUmqjmgqgU/99DTzfqzB9x0qHQ5TkofuZs2T1DPUNjwcO Added keypad node entries to SMDK4412 board DT file. Signed-off-by: Sachin Kamat --- arch/arm/boot/dts/exynos4412-smdk4412.dts | 87 +++++++++++++++++++++++++++++ 1 files changed, 87 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/exynos4412-smdk4412.dts b/arch/arm/boot/dts/exynos4412-smdk4412.dts index 539670b..1ee565c 100644 --- a/arch/arm/boot/dts/exynos4412-smdk4412.dts +++ b/arch/arm/boot/dts/exynos4412-smdk4412.dts @@ -35,6 +35,93 @@ status = "okay"; }; + 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", "gpx1-2", "gpx1-3", + "gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7"; + samsung,pin-function = <3>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; + }; + + keypad@100A0000 { + samsung,keypad-num-rows = <3>; + samsung,keypad-num-columns = <8>; + linux,keypad-no-autorepeat; + linux,keypad-wakeup; + pinctrl-0 = <&keypad_rows &keypad_cols>; + pinctrl-names = "default"; + status = "okay"; + + key_1 { + keypad,row = <1>; + keypad,column = <3>; + linux,code = <2>; + }; + + key_2 { + keypad,row = <1>; + keypad,column = <4>; + linux,code = <3>; + }; + + key_3 { + keypad,row = <1>; + keypad,column = <5>; + linux,code = <4>; + }; + + key_4 { + keypad,row = <1>; + keypad,column = <6>; + linux,code = <5>; + }; + + key_5 { + keypad,row = <1>; + keypad,column = <7>; + linux,code = <6>; + }; + + key_A { + keypad,row = <2>; + keypad,column = <6>; + linux,code = <30>; + }; + + key_B { + keypad,row = <2>; + keypad,column = <7>; + linux,code = <48>; + }; + + key_C { + keypad,row = <0>; + keypad,column = <5>; + linux,code = <46>; + }; + + key_D { + keypad,row = <2>; + keypad,column = <5>; + linux,code = <32>; + }; + + key_E { + keypad,row = <0>; + keypad,column = <7>; + linux,code = <18>; + }; + }; + sdhci@12530000 { bus-width = <4>; pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sd2_cd>;