xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sc7180-trogdor-pazquel360.dtsi (revision 02e9120893770924227138ba49df1edb3896112a)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Google Pazquel board device tree source
4 *
5 * Copyright 2021 Google LLC.
6 */
7
8/* This file must be included after sc7180-trogdor.dtsi */
9#include "sc7180-trogdor-pazquel.dtsi"
10
11&alc5682 {
12	compatible = "realtek,rt5682s";
13	realtek,dmic1-clk-pin = <2>;
14	realtek,dmic-clk-rate-hz = <2048000>;
15	/delete-property/ VBAT-supply;
16};
17
18ap_ts_pen_1v8: &i2c4 {
19	clock-frequency = <400000>;
20	status = "okay";
21
22	ap_ts: touchscreen@10 {
23		compatible = "elan,ekth3915", "elan,ekth3500";
24		reg = <0x10>;
25		pinctrl-names = "default";
26		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
27
28		interrupt-parent = <&tlmm>;
29		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
30
31		vcc33-supply = <&pp3300_ts>;
32		vccio-supply = <&pp1800_l10a>;
33		reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
34	};
35};
36
37&keyboard_controller {
38	function-row-physmap = <
39		MATRIX_KEY(0x00, 0x02, 0)	/* T1 */
40		MATRIX_KEY(0x03, 0x02, 0)	/* T2 */
41		MATRIX_KEY(0x02, 0x02, 0)	/* T3 */
42		MATRIX_KEY(0x01, 0x02, 0)	/* T4 */
43		MATRIX_KEY(0x03, 0x04, 0)	/* T5 */
44		MATRIX_KEY(0x02, 0x04, 0)	/* T6 */
45		MATRIX_KEY(0x01, 0x04, 0)	/* T7 */
46		MATRIX_KEY(0x02, 0x09, 0)	/* T8 */
47		MATRIX_KEY(0x01, 0x09, 0)	/* T9 */
48		MATRIX_KEY(0x00, 0x04, 0)	/* T10 */
49		MATRIX_KEY(0x03, 0x09, 0)       /* T11 */
50	>;
51	linux,keymap = <
52		MATRIX_KEY(0x00, 0x02, KEY_BACK)
53		MATRIX_KEY(0x03, 0x02, KEY_REFRESH)
54		MATRIX_KEY(0x02, 0x02, KEY_ZOOM)
55		MATRIX_KEY(0x01, 0x02, KEY_SCALE)
56		MATRIX_KEY(0x03, 0x04, KEY_SYSRQ)
57		MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN)
58		MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP)
59		MATRIX_KEY(0x02, 0x09, KEY_MUTE)
60		MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN)
61		MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP)
62		MATRIX_KEY(0x03, 0x09, KEY_SLEEP)
63		CROS_STD_MAIN_KEYMAP
64	>;
65};
66
67&sound {
68	compatible = "google,sc7180-trogdor";
69	model = "sc7180-rt5682s-max98357a-1mic";
70};
71
72&wifi {
73	qcom,ath10k-calibration-variant = "GO_PAZQUEL360";
74};
75