xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sc7180-trogdor-pazquel360.dtsi (revision a90b9d0159070121c221b966469c3e36d912bf82)
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#include "sc7180-trogdor-rt5682s-sku.dtsi"
11
12ap_ts_pen_1v8: &i2c4 {
13	clock-frequency = <400000>;
14	status = "okay";
15
16	ap_ts: touchscreen@10 {
17		compatible = "elan,ekth3915", "elan,ekth3500";
18		reg = <0x10>;
19		pinctrl-names = "default";
20		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
21
22		interrupt-parent = <&tlmm>;
23		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
24
25		vcc33-supply = <&pp3300_ts>;
26		vccio-supply = <&pp1800_l10a>;
27		reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
28	};
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		MATRIX_KEY(0x03, 0x09, 0)       /* T11 */
44	>;
45	linux,keymap = <
46		MATRIX_KEY(0x00, 0x02, KEY_BACK)
47		MATRIX_KEY(0x03, 0x02, KEY_REFRESH)
48		MATRIX_KEY(0x02, 0x02, KEY_ZOOM)
49		MATRIX_KEY(0x01, 0x02, KEY_SCALE)
50		MATRIX_KEY(0x03, 0x04, KEY_SYSRQ)
51		MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN)
52		MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP)
53		MATRIX_KEY(0x02, 0x09, KEY_MUTE)
54		MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN)
55		MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP)
56		MATRIX_KEY(0x03, 0x09, KEY_SLEEP)
57		CROS_STD_MAIN_KEYMAP
58	>;
59};
60
61&wifi {
62	qcom,ath10k-calibration-variant = "GO_PAZQUEL360";
63};
64