pmaports/device/linux-samsung-i927/0035-ARM-dts-tegra20-glide-Change-keyboard-keycodes.patch
Sergey Larin 53d13cb4c8
samsung-i927: various improvements (!238)
- Bluetooth is now working
- Audio works too (speaker/headphones/earpiece/mic - internal and headset)
- Keyboard layout for X11
- Xorg config for rotated screen
- Suspend issues fixed (tested on MATE)
- OTG bindings updated - not working yet
2019-02-28 15:18:50 +01:00

76 lines
2.4 KiB
Diff

From bb7a98455d6ea2ec660621ff047060a4a9816f3e Mon Sep 17 00:00:00 2001
From: Sergey Larin <cerg2010cerg2010@mail.ru>
Date: Sun, 17 Feb 2019 17:05:40 +0300
Subject: [PATCH] ARM: dts: tegra20-glide: Change keyboard keycodes
This is required to make proper XKB keymap
Signed-off-by: Sergey Larin <cerg2010cerg2010@mail.ru>
---
arch/arm/boot/dts/tegra20-glide.dts | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/arm/boot/dts/tegra20-glide.dts b/arch/arm/boot/dts/tegra20-glide.dts
index ab30b1b8cc29..f2b1805fc8cf 100644
--- a/arch/arm/boot/dts/tegra20-glide.dts
+++ b/arch/arm/boot/dts/tegra20-glide.dts
@@ -1009,7 +1009,7 @@
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(Q, 4) IRQ_TYPE_EDGE_FALLING>;
key_maxval = <4>;
- linux,code = <KEY_MENU KEY_HOME KEY_BACK KEY_SEARCH>;
+ linux,code = <KEY_MENU KEY_HOMEPAGE KEY_BACK KEY_SEARCH>;
};
};
@@ -1040,16 +1040,16 @@
MATRIX_KEY(0, 0, KEY_R)
MATRIX_KEY(0, 1, KEY_G)
MATRIX_KEY(0, 2, KEY_V)
- MATRIX_KEY(0, 3, KEY_LEFTCTRL /* KEY_LEFTMETA */)
+ MATRIX_KEY(0, 3, KEY_LEFTMETA)
MATRIX_KEY(0, 4, KEY_MENU)
MATRIX_KEY(0, 5, KEY_HOME)
MATRIX_KEY(1, 0, KEY_T)
MATRIX_KEY(1, 1, KEY_H)
MATRIX_KEY(1, 2, KEY_B)
- MATRIX_KEY(1, 3, KEY_TAB /* KEY_RIGHTMETA */)
+ MATRIX_KEY(1, 3, KEY_RIGHTMETA)
MATRIX_KEY(1, 4, KEY_Q)
- MATRIX_KEY(1, 5, KEY_FN)
+ MATRIX_KEY(1, 5, KEY_RIGHTALT /* KEY_FN */)
MATRIX_KEY(2, 0, KEY_Y)
MATRIX_KEY(2, 1, KEY_J)
@@ -1074,13 +1074,13 @@
MATRIX_KEY(5, 0, KEY_O)
MATRIX_KEY(5, 1, KEY_UP)
- MATRIX_KEY(5, 2, KEY_OK)
+ MATRIX_KEY(5, 2, KEY_ENTER /* KEY_OK */)
MATRIX_KEY(5, 3, KEY_QUESTION)
MATRIX_KEY(5, 4, KEY_E)
MATRIX_KEY(5, 5, KEY_C)
MATRIX_KEY(6, 0, KEY_P)
- MATRIX_KEY(6, 1, KEY_ENTER)
+ MATRIX_KEY(6, 1, KEY_KPENTER /* KEY_ENTER */)
MATRIX_KEY(6, 2, KEY_RIGHT)
MATRIX_KEY(6, 3, KEY_DOWN)
MATRIX_KEY(6, 4, KEY_D)
@@ -1088,9 +1088,9 @@
MATRIX_KEY(7, 0, KEY_BACKSPACE /* KEY_DELETE */)
MATRIX_KEY(7, 1, KEY_BACK)
MATRIX_KEY(7, 2, KEY_SEARCH)
- MATRIX_KEY(7, 3, KEY_SLASH /* KEY_WWW */)
+ MATRIX_KEY(7, 3, KEY_WWW)
MATRIX_KEY(7, 4, KEY_F)
- MATRIX_KEY(7, 5, KEY_FN) >;
+ MATRIX_KEY(7, 5, KEY_RIGHTALT /* KEY_FN */) >;
};
stmpegpio: stmpe_gpio {
--
2.20.1