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