diff options
author | Sebastian Reichel <sre@kernel.org> | 2014-05-06 09:14:28 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-05-06 13:22:51 -0400 |
commit | 3fdb77174a2c173e0e69f2499b836a0e412f6c4d (patch) | |
tree | 40b3a975f509e405a93804ede5bcee2f0846426e /arch/arm/boot/dts/omap3-n900.dts | |
parent | dc2dd5b8cb03ee3c4754af2442c9426e9948654a (diff) |
ARM: dts: omap3-n900: use MATRIX_KEY for keymap
Use MATRIX_KEY macro from dt-bindings/input/input.h
to make the keyboard matrix human readable.
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/omap3-n900.dts')
-rw-r--r-- | arch/arm/boot/dts/omap3-n900.dts | 103 |
1 files changed, 52 insertions, 51 deletions
diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index a8292de8f22b..f9fbb0315808 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts | |||
@@ -10,6 +10,7 @@ | |||
10 | /dts-v1/; | 10 | /dts-v1/; |
11 | 11 | ||
12 | #include "omap34xx-hs.dtsi" | 12 | #include "omap34xx-hs.dtsi" |
13 | #include <dt-bindings/input/input.h> | ||
13 | 14 | ||
14 | / { | 15 | / { |
15 | model = "Nokia N900"; | 16 | model = "Nokia N900"; |
@@ -312,57 +313,57 @@ | |||
312 | }; | 313 | }; |
313 | 314 | ||
314 | &twl_keypad { | 315 | &twl_keypad { |
315 | linux,keymap = < 0x00000010 /* KEY_Q */ | 316 | linux,keymap = < MATRIX_KEY(0x00, 0x00, KEY_Q) |
316 | 0x00010018 /* KEY_O */ | 317 | MATRIX_KEY(0x00, 0x01, KEY_O) |
317 | 0x00020019 /* KEY_P */ | 318 | MATRIX_KEY(0x00, 0x02, KEY_P) |
318 | 0x00030033 /* KEY_COMMA */ | 319 | MATRIX_KEY(0x00, 0x03, KEY_COMMA) |
319 | 0x0004000e /* KEY_BACKSPACE */ | 320 | MATRIX_KEY(0x00, 0x04, KEY_BACKSPACE) |
320 | 0x0006001e /* KEY_A */ | 321 | MATRIX_KEY(0x00, 0x06, KEY_A) |
321 | 0x0007001f /* KEY_S */ | 322 | MATRIX_KEY(0x00, 0x07, KEY_S) |
322 | 323 | ||
323 | 0x01000011 /* KEY_W */ | 324 | MATRIX_KEY(0x01, 0x00, KEY_W) |
324 | 0x01010020 /* KEY_D */ | 325 | MATRIX_KEY(0x01, 0x01, KEY_D) |
325 | 0x01020021 /* KEY_F */ | 326 | MATRIX_KEY(0x01, 0x02, KEY_F) |
326 | 0x01030022 /* KEY_G */ | 327 | MATRIX_KEY(0x01, 0x03, KEY_G) |
327 | 0x01040023 /* KEY_H */ | 328 | MATRIX_KEY(0x01, 0x04, KEY_H) |
328 | 0x01050024 /* KEY_J */ | 329 | MATRIX_KEY(0x01, 0x05, KEY_J) |
329 | 0x01060025 /* KEY_K */ | 330 | MATRIX_KEY(0x01, 0x06, KEY_K) |
330 | 0x01070026 /* KEY_L */ | 331 | MATRIX_KEY(0x01, 0x07, KEY_L) |
331 | 332 | ||
332 | 0x02000012 /* KEY_E */ | 333 | MATRIX_KEY(0x02, 0x00, KEY_E) |
333 | 0x02010034 /* KEY_DOT */ | 334 | MATRIX_KEY(0x02, 0x01, KEY_DOT) |
334 | 0x02020067 /* KEY_UP */ | 335 | MATRIX_KEY(0x02, 0x02, KEY_UP) |
335 | 0x0203001c /* KEY_ENTER */ | 336 | MATRIX_KEY(0x02, 0x03, KEY_ENTER) |
336 | 0x0205002c /* KEY_Z */ | 337 | MATRIX_KEY(0x02, 0x05, KEY_Z) |
337 | 0x0206002d /* KEY_X */ | 338 | MATRIX_KEY(0x02, 0x06, KEY_X) |
338 | 0x0207002e /* KEY_C */ | 339 | MATRIX_KEY(0x02, 0x07, KEY_C) |
339 | 0x02080043 /* KEY_F9 */ | 340 | MATRIX_KEY(0x02, 0x08, KEY_F9) |
340 | 341 | ||
341 | 0x03000013 /* KEY_R */ | 342 | MATRIX_KEY(0x03, 0x00, KEY_R) |
342 | 0x0301002f /* KEY_V */ | 343 | MATRIX_KEY(0x03, 0x01, KEY_V) |
343 | 0x03020030 /* KEY_B */ | 344 | MATRIX_KEY(0x03, 0x02, KEY_B) |
344 | 0x03030031 /* KEY_N */ | 345 | MATRIX_KEY(0x03, 0x03, KEY_N) |
345 | 0x03040032 /* KEY_M */ | 346 | MATRIX_KEY(0x03, 0x04, KEY_M) |
346 | 0x03050039 /* KEY_SPACE */ | 347 | MATRIX_KEY(0x03, 0x05, KEY_SPACE) |
347 | 0x03060039 /* KEY_SPACE */ | 348 | MATRIX_KEY(0x03, 0x06, KEY_SPACE) |
348 | 0x03070069 /* KEY_LEFT */ | 349 | MATRIX_KEY(0x03, 0x07, KEY_LEFT) |
349 | 350 | ||
350 | 0x04000014 /* KEY_T */ | 351 | MATRIX_KEY(0x04, 0x00, KEY_T) |
351 | 0x0401006c /* KEY_DOWN */ | 352 | MATRIX_KEY(0x04, 0x01, KEY_DOWN) |
352 | 0x0402006a /* KEY_RIGHT */ | 353 | MATRIX_KEY(0x04, 0x02, KEY_RIGHT) |
353 | 0x0404001d /* KEY_LEFTCTRL */ | 354 | MATRIX_KEY(0x04, 0x04, KEY_LEFTCTRL) |
354 | 0x04050064 /* KEY_RIGHTALT */ | 355 | MATRIX_KEY(0x04, 0x05, KEY_RIGHTALT) |
355 | 0x0406002a /* KEY_LEFTSHIFT */ | 356 | MATRIX_KEY(0x04, 0x06, KEY_LEFTSHIFT) |
356 | 0x04080044 /* KEY_F10 */ | 357 | MATRIX_KEY(0x04, 0x08, KEY_F10) |
357 | 358 | ||
358 | 0x05000015 /* KEY_Y */ | 359 | MATRIX_KEY(0x05, 0x00, KEY_Y) |
359 | 0x05080057 /* KEY_F11 */ | 360 | MATRIX_KEY(0x05, 0x08, KEY_F11) |
360 | 361 | ||
361 | 0x06000016 /* KEY_U */ | 362 | MATRIX_KEY(0x06, 0x00, KEY_U) |
362 | 363 | ||
363 | 0x07000017 /* KEY_I */ | 364 | MATRIX_KEY(0x07, 0x00, KEY_I) |
364 | 0x07010041 /* KEY_F7 */ | 365 | MATRIX_KEY(0x07, 0x01, KEY_F7) |
365 | 0x07020042 /* KEY_F8 */ | 366 | MATRIX_KEY(0x07, 0x02, KEY_F8) |
366 | >; | 367 | >; |
367 | }; | 368 | }; |
368 | 369 | ||