1 // SPDX-License-Identifier: GPL-2.0-only
4 #include "motorola-mapphone-common.dtsi"
8 compatible = "gpio-keys";
11 label = "Volume Down";
12 gpios = <&gpio5 26 GPIO_ACTIVE_LOW>; /* gpio154 */
13 linux,code = <KEY_VOLUMEDOWN>;
15 /* Value above 7.95ms for no GPIO hardware debounce */
16 debounce-interval = <10>;
20 label = "Keypad Slide";
21 gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>; /* gpio122 */
22 linux,input-type = <EV_SW>;
23 linux,code = <SW_KEYPAD_SLIDE>;
25 /* Value above 7.95ms for no GPIO hardware debounce */
26 debounce-interval = <10>;
32 model = "Motorola Droid 4 XT894";
33 compatible = "motorola,droid4", "ti,omap4430", "ti,omap4";
37 keypad,num-rows = <8>;
38 keypad,num-columns = <8>;
42 MATRIX_KEY(0, 2, KEY_1)
43 MATRIX_KEY(0, 6, KEY_2)
44 MATRIX_KEY(2, 3, KEY_3)
45 MATRIX_KEY(0, 7, KEY_4)
46 MATRIX_KEY(0, 4, KEY_5)
47 MATRIX_KEY(5, 5, KEY_6)
48 MATRIX_KEY(0, 1, KEY_7)
49 MATRIX_KEY(0, 5, KEY_8)
50 MATRIX_KEY(0, 0, KEY_9)
51 MATRIX_KEY(1, 6, KEY_0)
54 MATRIX_KEY(3, 4, KEY_APOSTROPHE)
55 MATRIX_KEY(7, 6, KEY_Q)
56 MATRIX_KEY(7, 7, KEY_W)
57 MATRIX_KEY(7, 2, KEY_E)
58 MATRIX_KEY(1, 0, KEY_R)
59 MATRIX_KEY(4, 4, KEY_T)
60 MATRIX_KEY(1, 2, KEY_Y)
61 MATRIX_KEY(6, 7, KEY_U)
62 MATRIX_KEY(2, 2, KEY_I)
63 MATRIX_KEY(5, 6, KEY_O)
64 MATRIX_KEY(3, 7, KEY_P)
65 MATRIX_KEY(6, 5, KEY_BACKSPACE)
68 MATRIX_KEY(5, 4, KEY_TAB)
69 MATRIX_KEY(5, 7, KEY_A)
70 MATRIX_KEY(2, 7, KEY_S)
71 MATRIX_KEY(7, 0, KEY_D)
72 MATRIX_KEY(2, 6, KEY_F)
73 MATRIX_KEY(6, 2, KEY_G)
74 MATRIX_KEY(6, 6, KEY_H)
75 MATRIX_KEY(1, 4, KEY_J)
76 MATRIX_KEY(3, 1, KEY_K)
77 MATRIX_KEY(2, 1, KEY_L)
78 MATRIX_KEY(4, 6, KEY_ENTER)
81 MATRIX_KEY(3, 6, KEY_LEFTSHIFT) /* KEY_CAPSLOCK */
82 MATRIX_KEY(6, 1, KEY_Z)
83 MATRIX_KEY(7, 4, KEY_X)
84 MATRIX_KEY(5, 1, KEY_C)
85 MATRIX_KEY(1, 7, KEY_V)
86 MATRIX_KEY(2, 4, KEY_B)
87 MATRIX_KEY(4, 1, KEY_N)
88 MATRIX_KEY(1, 1, KEY_M)
89 MATRIX_KEY(3, 5, KEY_COMMA)
90 MATRIX_KEY(5, 2, KEY_DOT)
91 MATRIX_KEY(6, 3, KEY_UP)
92 MATRIX_KEY(7, 3, KEY_OK)
95 MATRIX_KEY(2, 5, KEY_LEFTCTRL) /* KEY_LEFTSHIFT */
96 MATRIX_KEY(4, 5, KEY_LEFTALT) /* SYM */
97 MATRIX_KEY(6, 0, KEY_MINUS)
98 MATRIX_KEY(4, 7, KEY_EQUAL)
99 MATRIX_KEY(1, 5, KEY_SPACE)
100 MATRIX_KEY(3, 2, KEY_SLASH)
101 MATRIX_KEY(4, 3, KEY_LEFT)
102 MATRIX_KEY(5, 3, KEY_DOWN)
103 MATRIX_KEY(3, 3, KEY_RIGHT)
105 /* Side buttons, KEY_VOLUMEDOWN and KEY_PWER are on CPCAP? */
106 MATRIX_KEY(5, 0, KEY_VOLUMEUP)
112 compatible = "ti,lm3532";
113 #address-cells = <1>;
117 enable-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
120 ramp-down-us = <8193>;
122 backlight_led: led@0 {
126 label = ":backlight";
133 label = ":kbd_backlight";
139 lis3dh: accelerometer@18 {
140 compatible = "st,lis3dh-accel";
143 vdd-supply = <&vhvio>;
145 interrupt-parent = <&gpio2>;
146 interrupts = <2 IRQ_TYPE_EDGE_BOTH>; /* gpio34 */
148 rotation-matrix = "0", "-1", "0",