xref: /linux/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi (revision 78964fcac47fc1525ecb4c37cd5fbc873c28320b)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Google CoachZ board device tree source
4 *
5 * Copyright 2020 Google LLC.
6 */
7
8#include "sc7180-trogdor.dtsi"
9#include "sc7180-trogdor-ti-sn65dsi86.dtsi"
10
11/* Deleted nodes from sc7180-trogdor.dtsi */
12
13/delete-node/ &alc5682;
14/delete-node/ &pp3300_codec;
15
16/ {
17	/* BOARD-SPECIFIC TOP LEVEL NODES */
18
19	adau7002: audio-codec-1 {
20		compatible = "adi,adau7002";
21		IOVDD-supply = <&pp1800_l15a>;
22		wakeup-delay-ms = <80>;
23		#sound-dai-cells = <0>;
24	};
25
26	thermal-zones {
27		skin_temp_thermal: skin-temp-thermal {
28			polling-delay-passive = <250>;
29			polling-delay = <0>;
30
31			thermal-sensors = <&pm6150_adc_tm 1>;
32			sustainable-power = <965>;
33
34			trips {
35				skin_temp_alert0: trip-point0 {
36					temperature = <42000>;
37					hysteresis = <1000>;
38					type = "passive";
39				};
40
41				skin_temp_alert1: trip-point1 {
42					temperature = <45000>;
43					hysteresis = <1000>;
44					type = "passive";
45				};
46
47				skin-temp-crit {
48					temperature = <60000>;
49					hysteresis = <1000>;
50					type = "critical";
51				};
52			};
53
54			cooling-maps {
55				map0 {
56					trip = <&skin_temp_alert0>;
57					cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
58							 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
59				};
60
61				map1 {
62					trip = <&skin_temp_alert1>;
63					cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
64							 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
65				};
66			};
67		};
68	};
69};
70
71&ap_spi_fp {
72	status = "okay";
73};
74
75&backlight {
76	pwms = <&cros_ec_pwm 0>;
77};
78
79&camcc {
80	status = "okay";
81};
82
83&cros_ec {
84	keyboard-controller {
85		compatible = "google,cros-ec-keyb-switches";
86	};
87
88	cros_ec_proximity: proximity {
89		compatible = "google,cros-ec-mkbp-proximity";
90		label = "proximity-wifi";
91	};
92};
93
94ap_ts_pen_1v8: &i2c4 {
95	status = "okay";
96	clock-frequency = <400000>;
97
98	ap_ts: touchscreen@5d {
99		compatible = "goodix,gt7375p";
100		reg = <0x5d>;
101		pinctrl-names = "default";
102		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
103
104		interrupt-parent = <&tlmm>;
105		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
106
107		reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
108
109		vdd-supply = <&pp3300_ts>;
110	};
111};
112
113&i2c9 {
114	status = "disabled";
115};
116
117&panel {
118	compatible = "boe,nv110wtm-n61";
119};
120
121&pm6150_adc {
122	channel@4e {
123		reg = <ADC5_AMUX_THM2_100K_PU>;
124		qcom,ratiometric;
125		qcom,hw-settle-time = <200>;
126		label = "skin_therm";
127	};
128};
129
130&pm6150_adc_tm {
131	status = "okay";
132
133	skin-temp-thermistor@1 {
134		reg = <1>;
135		io-channels = <&pm6150_adc ADC5_AMUX_THM2_100K_PU>;
136		qcom,ratiometric;
137		qcom,hw-settle-time-us = <200>;
138	};
139};
140
141&pp1800_uf_cam {
142	status = "okay";
143};
144
145&pp1800_wf_cam {
146	status = "okay";
147};
148
149&pp2800_uf_cam {
150	status = "okay";
151};
152
153&pp2800_wf_cam {
154	status = "okay";
155};
156
157&pp3300_dx_edp {
158	gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>;
159};
160
161&sdhc_2 {
162	status = "okay";
163};
164
165&sn65dsi86_out {
166	data-lanes = <0 1 2 3>;
167};
168
169&sound {
170	compatible = "google,sc7180-coachz";
171	model = "sc7180-adau7002-max98357a";
172	audio-routing = "PDM_DAT", "DMIC";
173
174	pinctrl-names = "default";
175	pinctrl-0 = <&dmic_clk_en>;
176};
177
178&sound_multimedia0_codec {
179	sound-dai = <&adau7002>;
180};
181
182/* PINCTRL - modifications to sc7180-trogdor.dtsi */
183
184&en_pp3300_dx_edp {
185	pins = "gpio67";
186};
187
188&ts_reset_l {
189	/*
190	 * We want reset state by default and it will be up to the
191	 * driver to disable this when it's ready.
192	 */
193	output-low;
194};
195
196/* PINCTRL - board-specific pinctrl */
197
198&tlmm {
199	gpio-line-names = "HUB_RST_L",
200			  "AP_RAM_ID0",
201			  "AP_SKU_ID2",
202			  "AP_RAM_ID1",
203			  "FP_TO_AP_IRQ_L",
204			  "AP_RAM_ID2",
205			  "UF_CAM_EN",
206			  "WF_CAM_EN",
207			  "TS_RESET_L",
208			  "TS_INT_L",
209			  "FPMCU_BOOT0",
210			  "EDP_BRIJ_IRQ",
211			  "AP_EDP_BKLTEN",
212			  "UF_CAM_MCLK",
213			  "WF_CAM_CLK",
214			  "EDP_BRIJ_I2C_SDA",
215			  "EDP_BRIJ_I2C_SCL",
216			  "UF_CAM_SDA",
217			  "UF_CAM_SCL",
218			  "WF_CAM_SDA",
219			  "WF_CAM_SCL",
220			  "WLC_IRQ",
221			  "FP_RST_L",
222			  "AMP_EN",
223			  "WLC_NRST",
224			  "AP_SAR_SENSOR_SDA",
225			  "AP_SAR_SENSOR_SCL",
226			  "",
227			  "",
228			  "WF_CAM_RST_L",
229			  "UF_CAM_RST_L",
230			  "AP_BRD_ID2",
231			  "BRIJ_SUSPEND",
232			  "AP_BRD_ID0",
233			  "AP_H1_SPI_MISO",
234			  "AP_H1_SPI_MOSI",
235			  "AP_H1_SPI_CLK",
236			  "AP_H1_SPI_CS_L",
237			  "",
238			  "",
239			  "",
240			  "",
241			  "H1_AP_INT_ODL",
242			  "",
243			  "UART_AP_TX_DBG_RX",
244			  "UART_DBG_TX_AP_RX",
245			  "",
246			  "",
247			  "FORCED_USB_BOOT",
248			  "AMP_BCLK",
249			  "AMP_LRCLK",
250			  "AMP_DIN",
251			  "",
252			  "HP_BCLK",
253			  "HP_LRCLK",
254			  "HP_DOUT",
255			  "HP_DIN",
256			  "HP_MCLK",
257			  "AP_SKU_ID0",
258			  "AP_EC_SPI_MISO",
259			  "AP_EC_SPI_MOSI",
260			  "AP_EC_SPI_CLK",
261			  "AP_EC_SPI_CS_L",
262			  "AP_SPI_CLK",
263			  "AP_SPI_MOSI",
264			  "AP_SPI_MISO",
265			  /*
266			   * AP_FLASH_WP_L is crossystem ABI. Schematics
267			   * call it BIOS_FLASH_WP_L.
268			   */
269			  "AP_FLASH_WP_L",
270			  "EN_PP3300_DX_EDP",
271			  "AP_SPI_CS0_L",
272			  "SD_CD_ODL",
273			  "",
274			  "",
275			  "",
276			  "",
277			  "EN_FP_RAILS",
278			  "UIM2_DATA",
279			  "UIM2_CLK",
280			  "UIM2_RST",
281			  "UIM2_PRESENT_L",
282			  "UIM1_DATA",
283			  "UIM1_CLK",
284			  "UIM1_RST",
285			  "",
286			  "",
287			  "HUB_EN",
288			  "",
289			  "AP_SPI_FP_MISO",
290			  "AP_SPI_FP_MOSI",
291			  "AP_SPI_FP_CLK",
292			  "AP_SPI_FP_CS_L",
293			  "AP_SKU_ID1",
294			  "AP_RST_REQ",
295			  "",
296			  "AP_BRD_ID1",
297			  "AP_EC_INT_L",
298			  "",
299			  "",
300			  "",
301			  "",
302			  "",
303			  "",
304			  "",
305			  "",
306			  "",
307			  "EDP_BRIJ_EN",
308			  "",
309			  "",
310			  "",
311			  "",
312			  "",
313			  "",
314			  "",
315			  "",
316			  "",
317			  "",
318			  "AP_TS_PEN_I2C_SDA",
319			  "AP_TS_PEN_I2C_SCL",
320			  "DP_HOT_PLUG_DET",
321			  "EC_IN_RW_ODL";
322
323	dmic_clk_en: dmic-clk-en-state {
324		pins = "gpio83";
325		function = "gpio";
326		drive-strength = <8>;
327		bias-pull-up;
328	};
329};
330