xref: /freebsd/sys/contrib/device-tree/src/arm64/mediatek/mt8192-asurada-hayato-r1.dts (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright 2020 Google LLC
4 */
5/dts-v1/;
6#include "mt8192-asurada.dtsi"
7#include "mt8192-asurada-audio-rt1015p-rt5682.dtsi"
8
9/ {
10	model = "Google Hayato rev1";
11	compatible = "google,hayato-rev1", "google,hayato", "mediatek,mt8192";
12};
13
14&keyboard_controller {
15	function-row-physmap = <
16		MATRIX_KEY(0x00, 0x02, 0)	/* T1 */
17		MATRIX_KEY(0x03, 0x02, 0)	/* T2 */
18		MATRIX_KEY(0x02, 0x02, 0)	/* T3 */
19		MATRIX_KEY(0x01, 0x02, 0)	/* T4 */
20		MATRIX_KEY(0x03, 0x04, 0)	/* T5 */
21		MATRIX_KEY(0x02, 0x04, 0)	/* T6 */
22		MATRIX_KEY(0x01, 0x04, 0)	/* T7 */
23		MATRIX_KEY(0x02, 0x09, 0)	/* T8 */
24		MATRIX_KEY(0x01, 0x09, 0)	/* T9 */
25		MATRIX_KEY(0x00, 0x04, 0)	/* T10 */
26	>;
27	linux,keymap = <
28		MATRIX_KEY(0x00, 0x02, KEY_BACK)
29		MATRIX_KEY(0x03, 0x02, KEY_FORWARD)
30		MATRIX_KEY(0x02, 0x02, KEY_REFRESH)
31		MATRIX_KEY(0x01, 0x02, KEY_FULL_SCREEN)
32		MATRIX_KEY(0x03, 0x04, KEY_SCALE)
33		MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN)
34		MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP)
35		MATRIX_KEY(0x02, 0x09, KEY_MUTE)
36		MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN)
37		MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP)
38
39		CROS_STD_MAIN_KEYMAP
40	>;
41};
42
43&touchscreen {
44	compatible = "hid-over-i2c";
45	post-power-on-delay-ms = <10>;
46	hid-descr-addr = <0x0001>;
47	vdd-supply = <&pp3300_u>;
48};
49