linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: ldewangan@nvidia.com (Laxman Dewangan)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: tegra: pluto: populate key mapping
Date: Wed, 10 Apr 2013 17:17:34 +0530	[thread overview]
Message-ID: <1365594454-20614-2-git-send-email-ldewangan@nvidia.com> (raw)
In-Reply-To: <1365594454-20614-1-git-send-email-ldewangan@nvidia.com>

Keys on Pluto interfaced through Tegra KBC controller
in key matrix topology.

Add the key mapping for the keys

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
The system is booted on Pluto with the fastboot.

 arch/arm/boot/dts/tegra114-pluto.dts |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/tegra114-pluto.dts b/arch/arm/boot/dts/tegra114-pluto.dts
index 6bbc8ef..290c9ce 100644
--- a/arch/arm/boot/dts/tegra114-pluto.dts
+++ b/arch/arm/boot/dts/tegra114-pluto.dts
@@ -14,6 +14,23 @@
 		status = "okay";
 	};
 
+	kbc {
+		status = "okay";
+		nvidia,debounce-delay-ms = <640>;
+		nvidia,repeat-delay-ms = <1>;
+		nvidia,kbc-row-pins = <0 1 2>;
+		nvidia,kbc-col-pins = <11 12 13>;
+		linux,keymap = < 0x00000074	/* KEY_POWER */
+				 0x00010073	/* KEY_VOLUMEUP */
+				 0x00020072	/* KEY_VOLUMEDOWN */
+				 0x010000D9	/* KEY_SEARCH */
+				 0x010100D4	/* KEY_CAMERA */
+				 0x010200D2	/* KEY_CAMERA_FOCUS */
+				 0x02000066	/* KEY_HOME */
+				 0x0201009E	/* KEY_BACK */
+				 0x0202008B>;	/* KEY_MENU */
+	};
+
 	pmc {
 		nvidia,invert-interrupt;
 	};
-- 
1.7.1.1

  reply	other threads:[~2013-04-10 11:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-10 11:47 [PATCH 1/2] ARM: tegra: dalmore: populate key mapping Laxman Dewangan
2013-04-10 11:47 ` Laxman Dewangan [this message]
2013-05-13 19:29 ` Stephen Warren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1365594454-20614-2-git-send-email-ldewangan@nvidia.com \
    --to=ldewangan@nvidia.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).