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: 15323 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 EDA4823E10 for ; Wed, 13 Mar 2013 05:19:02 +0000 (UTC) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by fiordland.canonical.com (Postfix) with ESMTP id A641DA181D8 for ; Wed, 13 Mar 2013 05:19:02 +0000 (UTC) Received: by mail-vc0-f170.google.com with SMTP id p16so325712vcq.1 for ; Tue, 12 Mar 2013 22:19:02 -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=dHNriSixumdK25s2dpWwJz302YDZVaW5VK/VIG8em4I=; b=PdBThTxJzBWBe0QD30q8tq6NdOtBJ+OWkjqFxlRdEV4AH1kmG4jrpHnM3UH0gPQW2H GEQffb9PBY+CKa69pSoOhPnJeN1kKi0Zin5JlZvMpczniTboVLcnihnVx9rwR2CHTqV4 riR2Lmch+G5Pz9a6zCjxs+Kq+R1TfJ1CBjcN/D743rRaHTMttU/fnW97IM/yb3h/Hflc 96k/bICZlOevQJrPlQcZUQdaz58tRVYteYFpdVL+Na+Ya6AIds82XiUnLK1Vr/k/dNHT 5U7xkMcJEiTa8qBTOEJWMeWBVnTXe0rxkVZ1tRVZ6cJR+M7uH5S+z4fULFSnadu+zlU0 uQiA== X-Received: by 10.52.29.18 with SMTP id f18mr6601290vdh.57.1363151942197; Tue, 12 Mar 2013 22:19:02 -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 nf2csp1923veb; Tue, 12 Mar 2013 22:19:01 -0700 (PDT) X-Received: by 10.68.212.170 with SMTP id nl10mr10056863pbc.39.1363151941530; Tue, 12 Mar 2013 22:19:01 -0700 (PDT) Received: from mail-da0-x234.google.com (mail-da0-x234.google.com [2607:f8b0:400e:c00::234]) by mx.google.com with ESMTPS id yl4si15834882pbc.27.2013.03.12.22.19.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Mar 2013 22:19:01 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c00::234 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=2607:f8b0:400e:c00::234; Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400e:c00::234 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-da0-f52.google.com with SMTP id f10so250003dak.11 for ; Tue, 12 Mar 2013 22:19:00 -0700 (PDT) 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: ALoCoQlxuwHwHd9GelSoHrN80O1WNI0wX+PpKoEDZkBjIH3PqoNLci7/6GHJ5wDitzb8fXG/1NfW 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>;