xref: /freebsd/sys/contrib/device-tree/src/arm64/mediatek/mt8192-asurada-hayato-r5-sku2.dts (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright 2022 Google LLC
4 */
5/dts-v1/;
6#include "mt8192-asurada.dtsi"
7
8/ {
9	model = "Google Hayato rev5";
10	compatible = "google,hayato-rev5-sku2", "google,hayato-sku2",
11		     "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&rt5682 {
44	compatible = "realtek,rt5682s";
45};
46
47&sound {
48	compatible = "mediatek,mt8192_mt6359_rt1015p_rt5682s";
49
50	speaker-codecs {
51		sound-dai = <&rt1015p>;
52	};
53
54	headset-codec {
55		sound-dai = <&rt5682 0>;
56	};
57};
58
59&touchscreen {
60	compatible = "hid-over-i2c";
61	post-power-on-delay-ms = <10>;
62	hid-descr-addr = <0x0001>;
63	vdd-supply = <&pp3300_u>;
64};
65