xref: /linux/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi (revision bb9ae1a66c85eeb626864efd812c62026e126ec0)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Google Pompom board device tree source
4 *
5 * Copyright 2020 Google LLC.
6 */
7
8#include "sc7180-trogdor.dtsi"
9#include "sc7180-trogdor-clamshell.dtsi"
10#include "sc7180-trogdor-rt5682i-sku.dtsi"
11#include "sc7180-trogdor-ti-sn65dsi86.dtsi"
12
13/ {
14	thermal-zones {
15		5v-choke-thermal {
16			thermal-sensors = <&pm6150_adc_tm 1>;
17
18			trips {
19				5v-choke-crit {
20					temperature = <125000>;
21					hysteresis = <1000>;
22					type = "critical";
23				};
24			};
25		};
26	};
27};
28
29&alc5682 {
30	realtek,dmic-clk-driving-high;
31};
32
33&ap_tp_i2c {
34	status = "okay";
35};
36
37&cpu6_alert0 {
38	temperature = <60000>;
39};
40
41&cpu6_alert1 {
42	temperature = <65000>;
43};
44
45&cpu6_thermal {
46	sustainable-power = <1124>;
47};
48
49&cpu7_alert0 {
50	temperature = <60000>;
51};
52
53&cpu7_alert1 {
54	temperature = <65000>;
55};
56
57&cpu7_thermal {
58	sustainable-power = <1124>;
59};
60
61&cpu8_alert0 {
62	temperature = <60000>;
63};
64
65&cpu8_alert1 {
66	temperature = <65000>;
67};
68
69&cpu8_thermal {
70	sustainable-power = <1124>;
71};
72
73&cpu9_alert0 {
74	temperature = <60000>;
75};
76
77&cpu9_alert1 {
78	temperature = <65000>;
79};
80
81&cpu9_thermal {
82	sustainable-power = <1124>;
83};
84
85&gpio_keys {
86	status = "okay";
87};
88
89ap_ts_pen_1v8: &i2c4 {
90	status = "okay";
91	clock-frequency = <400000>;
92
93	ap_ts: touchscreen@10 {
94		compatible = "hid-over-i2c";
95		reg = <0x10>;
96		pinctrl-names = "default";
97		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
98
99		interrupt-parent = <&tlmm>;
100		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
101
102		panel = <&panel>;
103		post-power-on-delay-ms = <20>;
104		hid-descr-addr = <0x0001>;
105
106		vdd-supply = <&pp3300_ts>;
107	};
108};
109
110&keyboard_controller {
111	function-row-physmap = <
112		MATRIX_KEY(0x00, 0x02, 0)	/* T1 */
113		MATRIX_KEY(0x03, 0x02, 0)	/* T2 */
114		MATRIX_KEY(0x02, 0x02, 0)	/* T3 */
115		MATRIX_KEY(0x01, 0x02, 0)	/* T4 */
116		MATRIX_KEY(0x03, 0x04, 0)	/* T5 */
117		MATRIX_KEY(0x02, 0x04, 0)	/* T6 */
118		MATRIX_KEY(0x01, 0x04, 0)	/* T7 */
119		MATRIX_KEY(0x02, 0x09, 0)	/* T8 */
120		MATRIX_KEY(0x01, 0x09, 0)	/* T9 */
121		MATRIX_KEY(0x00, 0x04, 0)	/* T10 */
122	>;
123	linux,keymap = <
124		MATRIX_KEY(0x00, 0x02, KEY_BACK)
125		MATRIX_KEY(0x03, 0x02, KEY_REFRESH)
126		MATRIX_KEY(0x02, 0x02, KEY_ZOOM)
127		MATRIX_KEY(0x01, 0x02, KEY_SCALE)
128		MATRIX_KEY(0x03, 0x04, KEY_SYSRQ)
129		MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN)
130		MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP)
131		MATRIX_KEY(0x02, 0x09, KEY_MUTE)
132		MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN)
133		MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP)
134
135		CROS_STD_MAIN_KEYMAP
136	>;
137};
138
139&panel {
140	compatible = "edp-panel";
141};
142
143&pen_insert {
144	/* Insert = high, eject = low */
145	gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>;
146};
147
148&pm6150_adc {
149	channel@4e {
150		reg = <ADC5_AMUX_THM2_100K_PU>;
151		qcom,ratiometric;
152		qcom,hw-settle-time = <200>;
153		label = "5v_choke_therm";
154	};
155};
156
157&pm6150_adc_tm {
158	status = "okay";
159
160	5v-choke-thermistor@1 {
161		reg = <1>;
162		io-channels = <&pm6150_adc ADC5_AMUX_THM2_100K_PU>;
163		qcom,ratiometric;
164		qcom,hw-settle-time-us = <200>;
165	};
166};
167
168&sdhc_2 {
169	status = "okay";
170};
171
172&sound {
173	model = "sc7180-rt5682-max98357a-2mic";
174	pinctrl-names = "default";
175	pinctrl-0 = <&dmic_sel>;
176	dmic-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>;
177};
178
179&usb_c1 {
180	status = "disabled";
181};
182
183&wifi {
184	qcom,ath10k-calibration-variant = "GO_POMPOM";
185};
186
187/* PINCTRL - board-specific pinctrl */
188
189&tlmm {
190	gpio-line-names = "TP_INT_ODL",
191			  "AP_RAM_ID0",
192			  "AP_SKU_ID2",
193			  "AP_RAM_ID1",
194			  "",
195			  "AP_RAM_ID2",
196			  "AP_TP_I2C_SDA",
197			  "AP_TP_I2C_SCL",
198			  "TS_RESET_L",
199			  "TS_INT_L",
200			  "",
201			  "EDP_BRIJ_IRQ",
202			  "AP_EDP_BKLTEN",
203			  "",
204			  "",
205			  "EDP_BRIJ_I2C_SDA",
206			  "EDP_BRIJ_I2C_SCL",
207			  "HUB_RST_L",
208			  "",
209			  "",
210			  "",
211			  "",
212			  "",
213			  "AMP_EN",
214			  "P_SENSOR_INT_L",
215			  "AP_SAR_SENSOR_SDA",
216			  "AP_SAR_SENSOR_SCL",
217			  "",
218			  "HP_IRQ",
219			  "",
220			  "EN_PP3300_DX_EDP",
221			  "AP_BRD_ID2",
222			  "BRIJ_SUSPEND",
223			  "AP_BRD_ID0",
224			  "AP_H1_SPI_MISO",
225			  "AP_H1_SPI_MOSI",
226			  "AP_H1_SPI_CLK",
227			  "AP_H1_SPI_CS_L",
228			  "",
229			  "",
230			  "",
231			  "",
232			  "H1_AP_INT_ODL",
233			  "",
234			  "UART_AP_TX_DBG_RX",
235			  "UART_DBG_TX_AP_RX",
236			  "HP_I2C_SDA",
237			  "HP_I2C_SCL",
238			  "FORCED_USB_BOOT",
239			  "AMP_BCLK",
240			  "AMP_LRCLK",
241			  "AMP_DIN",
242			  "PEN_PDCT_L",
243			  "HP_BCLK",
244			  "HP_LRCLK",
245			  "HP_DOUT",
246			  "HP_DIN",
247			  "HP_MCLK",
248			  "AP_SKU_ID0",
249			  "AP_EC_SPI_MISO",
250			  "AP_EC_SPI_MOSI",
251			  "AP_EC_SPI_CLK",
252			  "AP_EC_SPI_CS_L",
253			  "AP_SPI_CLK",
254			  "AP_SPI_MOSI",
255			  "AP_SPI_MISO",
256			  /*
257			   * AP_FLASH_WP_L is crossystem ABI. Schematics
258			   * call it BIOS_FLASH_WP_L.
259			   */
260			  "AP_FLASH_WP_L",
261			  "",
262			  "AP_SPI_CS0_L",
263			  "SD_CD_ODL",
264			  "",
265			  "",
266			  "",
267			  "",
268			  "",
269			  "UIM2_DATA",
270			  "UIM2_CLK",
271			  "UIM2_RST",
272			  "UIM2_PRESENT",
273			  "UIM1_DATA",
274			  "UIM1_CLK",
275			  "UIM1_RST",
276			  "",
277			  "EN_PP3300_CODEC",
278			  "EN_PP3300_HUB",
279			  "",
280			  "DMIC_SEL",
281			  "",
282			  "",
283			  "",
284			  "AP_SKU_ID1",
285			  "AP_RST_REQ",
286			  "",
287			  "AP_BRD_ID1",
288			  "AP_EC_INT_R_L",
289			  "",
290			  "",
291			  "",
292			  "",
293			  "",
294			  "",
295			  "",
296			  "",
297			  "",
298			  "EDP_BRIJ_EN",
299			  "",
300			  "",
301			  "",
302			  "",
303			  "",
304			  "",
305			  "",
306			  "",
307			  "",
308			  "",
309			  "AP_TS_PEN_I2C_SDA",
310			  "AP_TS_PEN_I2C_SCL",
311			  "DP_HOT_PLUG_DET",
312			  "EC_IN_RW_ODL";
313
314	dmic_sel: dmic-sel-state {
315		pins = "gpio86";
316		function = "gpio";
317		bias-pull-down;
318	};
319};
320