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