xref: /linux/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright 2021 Google LLC
4 */
5/dts-v1/;
6#include "mt8192-asurada.dtsi"
7#include <dt-bindings/leds/common.h>
8
9/ {
10	model = "Google Spherion (rev0 - 3)";
11	compatible = "google,spherion-rev3", "google,spherion-rev2",
12		     "google,spherion-rev1", "google,spherion-rev0",
13		     "google,spherion", "mediatek,mt8192";
14
15	pwmleds {
16		compatible = "pwm-leds";
17
18		led {
19			function = LED_FUNCTION_KBD_BACKLIGHT;
20			color = <LED_COLOR_ID_WHITE>;
21			pwms = <&cros_ec_pwm 0>;
22			max-brightness = <1023>;
23		};
24	};
25};
26
27&cros_ec_pwm {
28	status = "okay";
29};
30
31&keyboard_controller {
32	function-row-physmap = <
33		MATRIX_KEY(0x00, 0x02, 0)	/* T1 */
34		MATRIX_KEY(0x03, 0x02, 0)	/* T2 */
35		MATRIX_KEY(0x02, 0x02, 0)	/* T3 */
36		MATRIX_KEY(0x01, 0x02, 0)	/* T4 */
37		MATRIX_KEY(0x03, 0x04, 0)	/* T5 */
38		MATRIX_KEY(0x02, 0x04, 0)	/* T6 */
39		MATRIX_KEY(0x01, 0x04, 0)	/* T7 */
40		MATRIX_KEY(0x02, 0x09, 0)	/* T8 */
41		MATRIX_KEY(0x01, 0x09, 0)	/* T9 */
42		MATRIX_KEY(0x00, 0x04, 0)	/* T10 */
43	>;
44	linux,keymap = <
45		MATRIX_KEY(0x00, 0x02, KEY_BACK)
46		MATRIX_KEY(0x03, 0x02, KEY_REFRESH)
47		MATRIX_KEY(0x02, 0x02, KEY_FULL_SCREEN)
48		MATRIX_KEY(0x01, 0x02, KEY_SCALE)
49		MATRIX_KEY(0x03, 0x04, KEY_SYSRQ)
50		MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN)
51		MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP)
52		MATRIX_KEY(0x02, 0x09, KEY_MUTE)
53		MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN)
54		MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP)
55
56		CROS_STD_MAIN_KEYMAP
57	>;
58};
59
60&rt5682 {
61	compatible = "realtek,rt5682i";
62	realtek,btndet-delay = <16>;
63	VBAT-supply = <&pp3300_ldo_z>;
64};
65
66&sound {
67	compatible = "mediatek,mt8192_mt6359_rt1015p_rt5682";
68
69	speaker-codecs {
70		sound-dai = <&rt1015p>;
71	};
72
73	headset-codec {
74		sound-dai = <&rt5682 0>;
75	};
76};
77
78&touchscreen {
79	compatible = "elan,ekth3500";
80};
81