diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-01-15 02:24:49 -0500 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-01-28 13:24:08 -0500 |
commit | beb0e325bea1118abe63d21f41825904d86b6fb6 (patch) | |
tree | 37ce41e535f0031a444c0d4843c21607b8e7f390 /arch/arm/boot/dts/tegra20-seaboard.dts | |
parent | 699ed4b94c6278ab0f629fde261af78cd1458f73 (diff) |
ARM: tegra: seaboard: enable keyboard in DT
Enable Tegra based keyboard controller and populate the key matrix for
seaboard. The key matrix was originally on driver code which is removed
to have clean driver. The key mapping is now passed through dts file.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/boot/dts/tegra20-seaboard.dts')
-rw-r--r-- | arch/arm/boot/dts/tegra20-seaboard.dts | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/tegra20-seaboard.dts b/arch/arm/boot/dts/tegra20-seaboard.dts index f9e3ad45e518..d4e4ff231366 100644 --- a/arch/arm/boot/dts/tegra20-seaboard.dts +++ b/arch/arm/boot/dts/tegra20-seaboard.dts | |||
@@ -612,6 +612,145 @@ | |||
612 | }; | 612 | }; |
613 | }; | 613 | }; |
614 | 614 | ||
615 | kbc { | ||
616 | status = "okay"; | ||
617 | nvidia,debounce-delay-ms = <32>; | ||
618 | nvidia,repeat-delay-ms = <160>; | ||
619 | nvidia,ghost-filter; | ||
620 | nvidia,kbc-row-pins = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15>; | ||
621 | nvidia,kbc-col-pins = <16 17 18 19 20 21 22 23>; | ||
622 | linux,keymap = <0x00020011 /* KEY_W */ | ||
623 | 0x0003001F /* KEY_S */ | ||
624 | 0x0004001E /* KEY_A */ | ||
625 | 0x0005002C /* KEY_Z */ | ||
626 | 0x000701d0 /* KEY_FN */ | ||
627 | |||
628 | 0x0107007D /* KEY_LEFTMETA */ | ||
629 | 0x02060064 /* KEY_RIGHTALT */ | ||
630 | 0x02070038 /* KEY_LEFTALT */ | ||
631 | |||
632 | 0x03000006 /* KEY_5 */ | ||
633 | 0x03010005 /* KEY_4 */ | ||
634 | 0x03020013 /* KEY_R */ | ||
635 | 0x03030012 /* KEY_E */ | ||
636 | 0x03040021 /* KEY_F */ | ||
637 | 0x03050020 /* KEY_D */ | ||
638 | 0x0306002D /* KEY_X */ | ||
639 | |||
640 | 0x04000008 /* KEY_7 */ | ||
641 | 0x04010007 /* KEY_6 */ | ||
642 | 0x04020014 /* KEY_T */ | ||
643 | 0x04030023 /* KEY_H */ | ||
644 | 0x04040022 /* KEY_G */ | ||
645 | 0x0405002F /* KEY_V */ | ||
646 | 0x0406002E /* KEY_C */ | ||
647 | 0x04070039 /* KEY_SPACE */ | ||
648 | |||
649 | 0x0500000A /* KEY_9 */ | ||
650 | 0x05010009 /* KEY_8 */ | ||
651 | 0x05020016 /* KEY_U */ | ||
652 | 0x05030015 /* KEY_Y */ | ||
653 | 0x05040024 /* KEY_J */ | ||
654 | 0x05050031 /* KEY_N */ | ||
655 | 0x05060030 /* KEY_B */ | ||
656 | 0x0507002B /* KEY_BACKSLASH */ | ||
657 | |||
658 | 0x0600000C /* KEY_MINUS */ | ||
659 | 0x0601000B /* KEY_0 */ | ||
660 | 0x06020018 /* KEY_O */ | ||
661 | 0x06030017 /* KEY_I */ | ||
662 | 0x06040026 /* KEY_L */ | ||
663 | 0x06050025 /* KEY_K */ | ||
664 | 0x06060033 /* KEY_COMMA */ | ||
665 | 0x06070032 /* KEY_M */ | ||
666 | |||
667 | 0x0701000D /* KEY_EQUAL */ | ||
668 | 0x0702001B /* KEY_RIGHTBRACE */ | ||
669 | 0x0703001C /* KEY_ENTER */ | ||
670 | 0x0707008B /* KEY_MENU */ | ||
671 | |||
672 | 0x08040036 /* KEY_RIGHTSHIFT */ | ||
673 | 0x0805002A /* KEY_LEFTSHIFT */ | ||
674 | |||
675 | 0x09050061 /* KEY_RIGHTCTRL */ | ||
676 | 0x0907001D /* KEY_LEFTCTRL */ | ||
677 | |||
678 | 0x0B00001A /* KEY_LEFTBRACE */ | ||
679 | 0x0B010019 /* KEY_P */ | ||
680 | 0x0B020028 /* KEY_APOSTROPHE */ | ||
681 | 0x0B030027 /* KEY_SEMICOLON */ | ||
682 | 0x0B040035 /* KEY_SLASH */ | ||
683 | 0x0B050034 /* KEY_DOT */ | ||
684 | |||
685 | 0x0C000044 /* KEY_F10 */ | ||
686 | 0x0C010043 /* KEY_F9 */ | ||
687 | 0x0C02000E /* KEY_BACKSPACE */ | ||
688 | 0x0C030004 /* KEY_3 */ | ||
689 | 0x0C040003 /* KEY_2 */ | ||
690 | 0x0C050067 /* KEY_UP */ | ||
691 | 0x0C0600D2 /* KEY_PRINT */ | ||
692 | 0x0C070077 /* KEY_PAUSE */ | ||
693 | |||
694 | 0x0D00006E /* KEY_INSERT */ | ||
695 | 0x0D01006F /* KEY_DELETE */ | ||
696 | 0x0D030068 /* KEY_PAGEUP */ | ||
697 | 0x0D04006D /* KEY_PAGEDOWN */ | ||
698 | 0x0D05006A /* KEY_RIGHT */ | ||
699 | 0x0D06006C /* KEY_DOWN */ | ||
700 | 0x0D070069 /* KEY_LEFT */ | ||
701 | |||
702 | 0x0E000057 /* KEY_F11 */ | ||
703 | 0x0E010058 /* KEY_F12 */ | ||
704 | 0x0E020042 /* KEY_F8 */ | ||
705 | 0x0E030010 /* KEY_Q */ | ||
706 | 0x0E04003E /* KEY_F4 */ | ||
707 | 0x0E05003D /* KEY_F3 */ | ||
708 | 0x0E060002 /* KEY_1 */ | ||
709 | 0x0E070041 /* KEY_F7 */ | ||
710 | |||
711 | 0x0F000001 /* KEY_ESC */ | ||
712 | 0x0F010029 /* KEY_GRAVE */ | ||
713 | 0x0F02003F /* KEY_F5 */ | ||
714 | 0x0F03000F /* KEY_TAB */ | ||
715 | 0x0F04003B /* KEY_F1 */ | ||
716 | 0x0F05003C /* KEY_F2 */ | ||
717 | 0x0F06003A /* KEY_CAPSLOCK */ | ||
718 | 0x0F070040 /* KEY_F6 */ | ||
719 | |||
720 | /* Software Handled Function Keys */ | ||
721 | 0x14000047 /* KEY_KP7 */ | ||
722 | |||
723 | 0x15000049 /* KEY_KP9 */ | ||
724 | 0x15010048 /* KEY_KP8 */ | ||
725 | 0x1502004B /* KEY_KP4 */ | ||
726 | 0x1504004F /* KEY_KP1 */ | ||
727 | |||
728 | 0x1601004E /* KEY_KPSLASH */ | ||
729 | 0x1602004D /* KEY_KP6 */ | ||
730 | 0x1603004C /* KEY_KP5 */ | ||
731 | 0x16040051 /* KEY_KP3 */ | ||
732 | 0x16050050 /* KEY_KP2 */ | ||
733 | 0x16070052 /* KEY_KP0 */ | ||
734 | |||
735 | 0x1B010037 /* KEY_KPASTERISK */ | ||
736 | 0x1B03004A /* KEY_KPMINUS */ | ||
737 | 0x1B04004E /* KEY_KPPLUS */ | ||
738 | 0x1B050053 /* KEY_KPDOT */ | ||
739 | |||
740 | 0x1C050073 /* KEY_VOLUMEUP */ | ||
741 | |||
742 | 0x1D030066 /* KEY_HOME */ | ||
743 | 0x1D04006B /* KEY_END */ | ||
744 | 0x1D0500E0 /* KEY_BRIGHTNESSDOWN */ | ||
745 | 0x1D060072 /* KEY_VOLUMEDOWN */ | ||
746 | 0x1D0700E1 /* KEY_BRIGHTNESSUP */ | ||
747 | |||
748 | 0x1E000045 /* KEY_NUMLOCK */ | ||
749 | 0x1E010046 /* KEY_SCROLLLOCK */ | ||
750 | 0x1E020071 /* KEY_MUTE */ | ||
751 | |||
752 | 0x1F04008A>; /* KEY_HELP */ | ||
753 | }; | ||
615 | regulators { | 754 | regulators { |
616 | compatible = "simple-bus"; | 755 | compatible = "simple-bus"; |
617 | #address-cells = <1>; | 756 | #address-cells = <1>; |