diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-12-02 08:09:57 -0500 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-12-16 16:09:20 -0500 |
commit | 6bccbd5e18f65ca57b509ad25c9a8b0ad208627e (patch) | |
tree | a28f76d51f62232ac6c8305b9a2773bf2427b7b9 /arch/arm/boot/dts/tegra20-whistler.dts | |
parent | e013485d12456e83838687cb779aebf366fd4fa1 (diff) |
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>
Diffstat (limited to 'arch/arm/boot/dts/tegra20-whistler.dts')
-rw-r--r-- | arch/arm/boot/dts/tegra20-whistler.dts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/tegra20-whistler.dts b/arch/arm/boot/dts/tegra20-whistler.dts index 82037fe814ce..00ba97a916f8 100644 --- a/arch/arm/boot/dts/tegra20-whistler.dts +++ b/arch/arm/boot/dts/tegra20-whistler.dts | |||
@@ -1,5 +1,6 @@ | |||
1 | /dts-v1/; | 1 | /dts-v1/; |
2 | 2 | ||
3 | #include <dt-bindings/input/input.h> | ||
3 | #include "tegra20.dtsi" | 4 | #include "tegra20.dtsi" |
4 | 5 | ||
5 | / { | 6 | / { |
@@ -502,10 +503,10 @@ | |||
502 | nvidia,kbc-row-pins = <0 1 2>; | 503 | nvidia,kbc-row-pins = <0 1 2>; |
503 | nvidia,kbc-col-pins = <16 17>; | 504 | nvidia,kbc-col-pins = <16 17>; |
504 | nvidia,wakeup-source; | 505 | nvidia,wakeup-source; |
505 | linux,keymap = <0x00000074 /* KEY_POWER */ | 506 | linux,keymap = <MATRIX_KEY(0x00, 0x00, KEY_POWER) |
506 | 0x01000066 /* KEY_HOME */ | 507 | MATRIX_KEY(0x01, 0x00, KEY_HOME) |
507 | 0x0101009E /* KEY_BACK */ | 508 | MATRIX_KEY(0x01, 0x01, KEY_BACK) |
508 | 0x0201008B>; /* KEY_MENU */ | 509 | MATRIX_KEY(0x02, 0x01, KEY_MENU)>; |
509 | }; | 510 | }; |
510 | 511 | ||
511 | pmc@7000e400 { | 512 | pmc@7000e400 { |