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