xref: /linux/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku262144.dts (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright 2022 Google LLC
4 */
5
6/dts-v1/;
7#include "mt8186-corsola-krabby.dtsi"
8
9/ {
10	model = "Google Tentacruel board";
11	compatible = "google,tentacruel-sku262147", "google,tentacruel-sku262146",
12		     "google,tentacruel-sku262145", "google,tentacruel-sku262144",
13		     "google,tentacruel", "mediatek,mt8186";
14	chassis-type = "convertible";
15};
16
17&keyboard_controller {
18	function-row-physmap = <
19		MATRIX_KEY(0x00, 0x02, 0)	/* T1 */
20		MATRIX_KEY(0x03, 0x02, 0)	/* T2 */
21		MATRIX_KEY(0x02, 0x02, 0)	/* T3 */
22		MATRIX_KEY(0x01, 0x02, 0)	/* T4 */
23		MATRIX_KEY(0x03, 0x04, 0)	/* T5 */
24		MATRIX_KEY(0x02, 0x04, 0)	/* T6 */
25		MATRIX_KEY(0x01, 0x04, 0)	/* T7 */
26		MATRIX_KEY(0x02, 0x09, 0)	/* T8 */
27		MATRIX_KEY(0x01, 0x09, 0)	/* T9 */
28		MATRIX_KEY(0x00, 0x04, 0)	/* T10 */
29	>;
30
31	linux,keymap = <
32		MATRIX_KEY(0x00, 0x02, KEY_BACK)
33		MATRIX_KEY(0x03, 0x02, KEY_REFRESH)
34		MATRIX_KEY(0x02, 0x02, KEY_ZOOM)
35		MATRIX_KEY(0x01, 0x02, KEY_SCALE)
36		MATRIX_KEY(0x03, 0x04, KEY_SYSRQ)
37		MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN)
38		MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP)
39		MATRIX_KEY(0x02, 0x09, KEY_MUTE)
40		MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN)
41		MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP)
42		CROS_STD_MAIN_KEYMAP
43	>;
44};
45