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