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: 2261611 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 7DD283FD8C for ; Wed, 13 Mar 2013 05:19:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751353Ab3CMFTF (ORCPT ); Wed, 13 Mar 2013 01:19:05 -0400 Received: from mail-pb0-f54.google.com ([209.85.160.54]:47908 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147Ab3CMFTE (ORCPT ); Wed, 13 Mar 2013 01:19:04 -0400 Received: by mail-pb0-f54.google.com with SMTP id rr4so623839pbb.27 for ; Tue, 12 Mar 2013 22:19:03 -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=lONveKT4CIRrmuc57brtARwb/SSRHidrx//LAVkTWxc=; b=ASAYiliLhz9mBxhJwhhsSBP/tCuB1kZV/B2xl3/KCsZeEG2dz4Vf6NQIDqJSmKWbxw aDhmXBbY+8EeaIednPkj+KaC2d4PWKjP9OCZAxnz5zSEnU5khqSqD+NGmxFC1F0ljFyo 7iwmKGNDpT2RSy7x0R91j6xD2gTru0eg1AXLcQsQ/YvcfdGPi9iEgVF5Y9Fl2JnhPW11 tdBuCTjmSlHlMG1dBeZVloO278c48QwIh5kiDZhJhDUfgzCHYBdYd8dcmIMj6mWSd9fc ihtN7h7DIZlN/RpAjNGzZNBDuapo0pjMhg+9JVycRr3oUVp4x/tJgSAMfumFazOwqMzs ZiGg== 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: ALoCoQmTFtdy+QsJOqdwQzaNFn0ctrhLpvrrxnWEvFPJ/1PZ/PWAbQwiaeXhZEr5ReiqhC6w60F8 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 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>;