1*d2912cb1SThomas Gleixner// SPDX-License-Identifier: GPL-2.0-only 2eba92953SDoug Anderson/* 3eba92953SDoug Anderson * Keyboard dts fragment for devices that use cros-ec-keyboard 4eba92953SDoug Anderson * 5eba92953SDoug Anderson * Copyright (c) 2014 Google, Inc 6eba92953SDoug Anderson*/ 7eba92953SDoug Anderson 8eba92953SDoug Anderson#include <dt-bindings/input/input.h> 9eba92953SDoug Anderson 10eba92953SDoug Anderson&cros_ec { 11eba92953SDoug Anderson keyboard-controller { 12eba92953SDoug Anderson compatible = "google,cros-ec-keyb"; 13eba92953SDoug Anderson keypad,num-rows = <8>; 14eba92953SDoug Anderson keypad,num-columns = <13>; 15eba92953SDoug Anderson google,needs-ghost-filter; 16eba92953SDoug Anderson 17eba92953SDoug Anderson linux,keymap = < 18eba92953SDoug Anderson MATRIX_KEY(0x00, 0x01, KEY_LEFTMETA) 19eba92953SDoug Anderson MATRIX_KEY(0x00, 0x02, KEY_F1) 20eba92953SDoug Anderson MATRIX_KEY(0x00, 0x03, KEY_B) 21eba92953SDoug Anderson MATRIX_KEY(0x00, 0x04, KEY_F10) 22b2b9dc60SChris Zhong MATRIX_KEY(0x00, 0x05, KEY_RO) 23eba92953SDoug Anderson MATRIX_KEY(0x00, 0x06, KEY_N) 24eba92953SDoug Anderson MATRIX_KEY(0x00, 0x08, KEY_EQUAL) 25eba92953SDoug Anderson MATRIX_KEY(0x00, 0x0a, KEY_RIGHTALT) 26eba92953SDoug Anderson 27eba92953SDoug Anderson MATRIX_KEY(0x01, 0x01, KEY_ESC) 28eba92953SDoug Anderson MATRIX_KEY(0x01, 0x02, KEY_F4) 29eba92953SDoug Anderson MATRIX_KEY(0x01, 0x03, KEY_G) 30eba92953SDoug Anderson MATRIX_KEY(0x01, 0x04, KEY_F7) 31eba92953SDoug Anderson MATRIX_KEY(0x01, 0x06, KEY_H) 32eba92953SDoug Anderson MATRIX_KEY(0x01, 0x08, KEY_APOSTROPHE) 33eba92953SDoug Anderson MATRIX_KEY(0x01, 0x09, KEY_F9) 34eba92953SDoug Anderson MATRIX_KEY(0x01, 0x0b, KEY_BACKSPACE) 35b2b9dc60SChris Zhong MATRIX_KEY(0x01, 0x0c, KEY_HENKAN) 36eba92953SDoug Anderson 37eba92953SDoug Anderson MATRIX_KEY(0x02, 0x00, KEY_LEFTCTRL) 38eba92953SDoug Anderson MATRIX_KEY(0x02, 0x01, KEY_TAB) 39eba92953SDoug Anderson MATRIX_KEY(0x02, 0x02, KEY_F3) 40eba92953SDoug Anderson MATRIX_KEY(0x02, 0x03, KEY_T) 41eba92953SDoug Anderson MATRIX_KEY(0x02, 0x04, KEY_F6) 42eba92953SDoug Anderson MATRIX_KEY(0x02, 0x05, KEY_RIGHTBRACE) 43eba92953SDoug Anderson MATRIX_KEY(0x02, 0x06, KEY_Y) 44eba92953SDoug Anderson MATRIX_KEY(0x02, 0x07, KEY_102ND) 45eba92953SDoug Anderson MATRIX_KEY(0x02, 0x08, KEY_LEFTBRACE) 46eba92953SDoug Anderson MATRIX_KEY(0x02, 0x09, KEY_F8) 47b2b9dc60SChris Zhong MATRIX_KEY(0x02, 0x0a, KEY_YEN) 48eba92953SDoug Anderson 49eba92953SDoug Anderson MATRIX_KEY(0x03, 0x01, KEY_GRAVE) 50eba92953SDoug Anderson MATRIX_KEY(0x03, 0x02, KEY_F2) 51eba92953SDoug Anderson MATRIX_KEY(0x03, 0x03, KEY_5) 52eba92953SDoug Anderson MATRIX_KEY(0x03, 0x04, KEY_F5) 53eba92953SDoug Anderson MATRIX_KEY(0x03, 0x06, KEY_6) 54eba92953SDoug Anderson MATRIX_KEY(0x03, 0x08, KEY_MINUS) 55741d3b0cSJames Chao MATRIX_KEY(0x03, 0x09, KEY_F13) 56eba92953SDoug Anderson MATRIX_KEY(0x03, 0x0b, KEY_BACKSLASH) 57b2b9dc60SChris Zhong MATRIX_KEY(0x03, 0x0c, KEY_MUHENKAN) 58eba92953SDoug Anderson 59eba92953SDoug Anderson MATRIX_KEY(0x04, 0x00, KEY_RIGHTCTRL) 60eba92953SDoug Anderson MATRIX_KEY(0x04, 0x01, KEY_A) 61eba92953SDoug Anderson MATRIX_KEY(0x04, 0x02, KEY_D) 62eba92953SDoug Anderson MATRIX_KEY(0x04, 0x03, KEY_F) 63eba92953SDoug Anderson MATRIX_KEY(0x04, 0x04, KEY_S) 64eba92953SDoug Anderson MATRIX_KEY(0x04, 0x05, KEY_K) 65eba92953SDoug Anderson MATRIX_KEY(0x04, 0x06, KEY_J) 66eba92953SDoug Anderson MATRIX_KEY(0x04, 0x08, KEY_SEMICOLON) 67eba92953SDoug Anderson MATRIX_KEY(0x04, 0x09, KEY_L) 68eba92953SDoug Anderson MATRIX_KEY(0x04, 0x0a, KEY_BACKSLASH) 69eba92953SDoug Anderson MATRIX_KEY(0x04, 0x0b, KEY_ENTER) 70eba92953SDoug Anderson 71eba92953SDoug Anderson MATRIX_KEY(0x05, 0x01, KEY_Z) 72eba92953SDoug Anderson MATRIX_KEY(0x05, 0x02, KEY_C) 73eba92953SDoug Anderson MATRIX_KEY(0x05, 0x03, KEY_V) 74eba92953SDoug Anderson MATRIX_KEY(0x05, 0x04, KEY_X) 75eba92953SDoug Anderson MATRIX_KEY(0x05, 0x05, KEY_COMMA) 76eba92953SDoug Anderson MATRIX_KEY(0x05, 0x06, KEY_M) 77eba92953SDoug Anderson MATRIX_KEY(0x05, 0x07, KEY_LEFTSHIFT) 78eba92953SDoug Anderson MATRIX_KEY(0x05, 0x08, KEY_SLASH) 79eba92953SDoug Anderson MATRIX_KEY(0x05, 0x09, KEY_DOT) 80eba92953SDoug Anderson MATRIX_KEY(0x05, 0x0b, KEY_SPACE) 81eba92953SDoug Anderson 82eba92953SDoug Anderson MATRIX_KEY(0x06, 0x01, KEY_1) 83eba92953SDoug Anderson MATRIX_KEY(0x06, 0x02, KEY_3) 84eba92953SDoug Anderson MATRIX_KEY(0x06, 0x03, KEY_4) 85eba92953SDoug Anderson MATRIX_KEY(0x06, 0x04, KEY_2) 86eba92953SDoug Anderson MATRIX_KEY(0x06, 0x05, KEY_8) 87eba92953SDoug Anderson MATRIX_KEY(0x06, 0x06, KEY_7) 88eba92953SDoug Anderson MATRIX_KEY(0x06, 0x08, KEY_0) 89eba92953SDoug Anderson MATRIX_KEY(0x06, 0x09, KEY_9) 90eba92953SDoug Anderson MATRIX_KEY(0x06, 0x0a, KEY_LEFTALT) 91eba92953SDoug Anderson MATRIX_KEY(0x06, 0x0b, KEY_DOWN) 92eba92953SDoug Anderson MATRIX_KEY(0x06, 0x0c, KEY_RIGHT) 93eba92953SDoug Anderson 94eba92953SDoug Anderson MATRIX_KEY(0x07, 0x01, KEY_Q) 95eba92953SDoug Anderson MATRIX_KEY(0x07, 0x02, KEY_E) 96eba92953SDoug Anderson MATRIX_KEY(0x07, 0x03, KEY_R) 97eba92953SDoug Anderson MATRIX_KEY(0x07, 0x04, KEY_W) 98eba92953SDoug Anderson MATRIX_KEY(0x07, 0x05, KEY_I) 99eba92953SDoug Anderson MATRIX_KEY(0x07, 0x06, KEY_U) 100eba92953SDoug Anderson MATRIX_KEY(0x07, 0x07, KEY_RIGHTSHIFT) 101eba92953SDoug Anderson MATRIX_KEY(0x07, 0x08, KEY_P) 102eba92953SDoug Anderson MATRIX_KEY(0x07, 0x09, KEY_O) 103eba92953SDoug Anderson MATRIX_KEY(0x07, 0x0b, KEY_UP) 104eba92953SDoug Anderson MATRIX_KEY(0x07, 0x0c, KEY_LEFT) 105eba92953SDoug Anderson >; 106eba92953SDoug Anderson }; 107eba92953SDoug Anderson}; 108