ARM: tegra: convert device tree files to use key defines
Use key code macros for all key code refernced for keys. For tegra20-seaboard.dts and tegra20-harmony.dts: The key comment for key (16th row and 1st column) is KEY_KPSLASH but code is 0x004e which is the key code for KEY_KPPLUS. As there other key exist with KY_KPPLUS, I am assuming key code is wrong and comment is fine. With this assumption, I am keeping the key code as KEY_KPSLASH. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:

committed by
Stephen Warren

parent
e013485d12
commit
6bccbd5e18
@@ -1,5 +1,6 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include "tegra20.dtsi"
|
||||
|
||||
/ {
|
||||
@@ -502,10 +503,10 @@
|
||||
nvidia,kbc-row-pins = <0 1 2>;
|
||||
nvidia,kbc-col-pins = <16 17>;
|
||||
nvidia,wakeup-source;
|
||||
linux,keymap = <0x00000074 /* KEY_POWER */
|
||||
0x01000066 /* KEY_HOME */
|
||||
0x0101009E /* KEY_BACK */
|
||||
0x0201008B>; /* KEY_MENU */
|
||||
linux,keymap = <MATRIX_KEY(0x00, 0x00, KEY_POWER)
|
||||
MATRIX_KEY(0x01, 0x00, KEY_HOME)
|
||||
MATRIX_KEY(0x01, 0x01, KEY_BACK)
|
||||
MATRIX_KEY(0x02, 0x01, KEY_MENU)>;
|
||||
};
|
||||
|
||||
pmc@7000e400 {
|
||||
|
Reference in New Issue
Block a user