xref: /linux/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327681.dts (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1*8855d01fSChen-Yu Tsai// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2*8855d01fSChen-Yu Tsai/*
3*8855d01fSChen-Yu Tsai * Copyright 2022 Google LLC
4*8855d01fSChen-Yu Tsai */
5*8855d01fSChen-Yu Tsai
6*8855d01fSChen-Yu Tsai/dts-v1/;
7*8855d01fSChen-Yu Tsai#include "mt8186-corsola-krabby.dtsi"
8*8855d01fSChen-Yu Tsai
9*8855d01fSChen-Yu Tsai/ {
10*8855d01fSChen-Yu Tsai	model = "Google Tentacool board";
11*8855d01fSChen-Yu Tsai	compatible = "google,tentacruel-sku327681", "google,tentacruel", "mediatek,mt8186";
12*8855d01fSChen-Yu Tsai	chassis-type = "laptop";
13*8855d01fSChen-Yu Tsai};
14*8855d01fSChen-Yu Tsai
15*8855d01fSChen-Yu Tsai/* Tentacool omits the pen. */
16*8855d01fSChen-Yu Tsai&gpio_keys {
17*8855d01fSChen-Yu Tsai	status = "disabled";
18*8855d01fSChen-Yu Tsai};
19*8855d01fSChen-Yu Tsai
20*8855d01fSChen-Yu Tsai/* Tentacool omits the touchscreen; nothing else is on i2c1. */
21*8855d01fSChen-Yu Tsai&i2c1 {
22*8855d01fSChen-Yu Tsai	status = "disabled";
23*8855d01fSChen-Yu Tsai};
24*8855d01fSChen-Yu Tsai
25*8855d01fSChen-Yu Tsai&keyboard_controller {
26*8855d01fSChen-Yu Tsai	function-row-physmap = <
27*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x00, 0x02, 0)	/* T1 */
28*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x03, 0x02, 0)	/* T2 */
29*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x02, 0x02, 0)	/* T3 */
30*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x01, 0x02, 0)	/* T4 */
31*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x03, 0x04, 0)	/* T5 */
32*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x02, 0x04, 0)	/* T6 */
33*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x01, 0x04, 0)	/* T7 */
34*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x02, 0x09, 0)	/* T8 */
35*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x01, 0x09, 0)	/* T9 */
36*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x00, 0x04, 0)	/* T10 */
37*8855d01fSChen-Yu Tsai	>;
38*8855d01fSChen-Yu Tsai
39*8855d01fSChen-Yu Tsai	linux,keymap = <
40*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x00, 0x02, KEY_BACK)
41*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x03, 0x02, KEY_REFRESH)
42*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x02, 0x02, KEY_ZOOM)
43*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x01, 0x02, KEY_SCALE)
44*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x03, 0x04, KEY_SYSRQ)
45*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN)
46*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP)
47*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x02, 0x09, KEY_MUTE)
48*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN)
49*8855d01fSChen-Yu Tsai		MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP)
50*8855d01fSChen-Yu Tsai		CROS_STD_MAIN_KEYMAP
51*8855d01fSChen-Yu Tsai	>;
52*8855d01fSChen-Yu Tsai};
53*8855d01fSChen-Yu Tsai
54*8855d01fSChen-Yu Tsai/* Tentacool omits the touchscreen. */
55*8855d01fSChen-Yu Tsai&touchscreen {
56*8855d01fSChen-Yu Tsai	status = "disabled";
57*8855d01fSChen-Yu Tsai};
58