Patchwork [1/2] ARM: tegra: dalmore: populate key mapping

login
register
mail settings
Submitter Laxman Dewangan
Date April 10, 2013, 11:47 a.m.
Message ID <1365594454-20614-1-git-send-email-ldewangan@nvidia.com>
Download mbox | patch
Permalink /patch/235373/
State Rejected, archived
Headers show

Comments

Laxman Dewangan - April 10, 2013, 11:47 a.m.
Keys on Dalmore 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 Dalmore SKU1000 with the fastboot.

 arch/arm/boot/dts/tegra114-dalmore.dts |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
Stephen Warren - May 13, 2013, 7:29 p.m.
On 04/10/2013 05:47 AM, Laxman Dewangan wrote:
> Keys on Dalmore 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 Dalmore SKU1000 with the fastboot.

I don't intend applying these two patches.

For Dalmore, there are two SKUs, one using KBC and one using GPIOs for
the buttons/keys. The SKU that uses GPIOs is far more common, so we've
decided to support that one upstream.

We aren't actively pursuing Pluto support upstream; it's likely that
I'll send a patch to remove tegra114-pluto.dts in the near future.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
index 72c1f27..12198d1 100644
--- a/arch/arm/boot/dts/tegra114-dalmore.dts
+++ b/arch/arm/boot/dts/tegra114-dalmore.dts
@@ -823,6 +823,18 @@ 
 		};
 	};
 
+	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 */
+				 0x00010066	/* KEY_HOME */
+				 0x01010072	/* KEY_VOLUMEDOWN */
+				 0x02010073>;	/* KEY_VOLUMEUP */
+	};
+
 	pmc {
 		nvidia,invert-interrupt;
 	};