| // SPDX-License-Identifier: (GPL-2.0 OR MIT) |
| /* |
| * Copyright 2022 Google LLC |
| */ |
| |
| /dts-v1/; |
| #include "mt8186-corsola-krabby.dtsi" |
| |
| / { |
| model = "Google Tentacool board"; |
| compatible = "google,tentacruel-sku327681", "google,tentacruel", "mediatek,mt8186"; |
| chassis-type = "laptop"; |
| }; |
| |
| /* Tentacool omits the pen. */ |
| &gpio_keys { |
| status = "disabled"; |
| }; |
| |
| /* Tentacool omits the touchscreen; nothing else is on i2c1. */ |
| &i2c1 { |
| status = "disabled"; |
| }; |
| |
| &keyboard_controller { |
| function-row-physmap = < |
| MATRIX_KEY(0x00, 0x02, 0) /* T1 */ |
| MATRIX_KEY(0x03, 0x02, 0) /* T2 */ |
| MATRIX_KEY(0x02, 0x02, 0) /* T3 */ |
| MATRIX_KEY(0x01, 0x02, 0) /* T4 */ |
| MATRIX_KEY(0x03, 0x04, 0) /* T5 */ |
| MATRIX_KEY(0x02, 0x04, 0) /* T6 */ |
| MATRIX_KEY(0x01, 0x04, 0) /* T7 */ |
| MATRIX_KEY(0x02, 0x09, 0) /* T8 */ |
| MATRIX_KEY(0x01, 0x09, 0) /* T9 */ |
| MATRIX_KEY(0x00, 0x04, 0) /* T10 */ |
| >; |
| |
| linux,keymap = < |
| MATRIX_KEY(0x00, 0x02, KEY_BACK) |
| MATRIX_KEY(0x03, 0x02, KEY_REFRESH) |
| MATRIX_KEY(0x02, 0x02, KEY_ZOOM) |
| MATRIX_KEY(0x01, 0x02, KEY_SCALE) |
| MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) |
| MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) |
| MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) |
| MATRIX_KEY(0x02, 0x09, KEY_MUTE) |
| MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) |
| MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) |
| CROS_STD_MAIN_KEYMAP |
| >; |
| }; |
| |
| /* Tentacool omits the touchscreen. */ |
| &touchscreen { |
| status = "disabled"; |
| }; |