xref: /linux/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi (revision e7d759f31ca295d589f7420719c311870bb3166f)
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/ &pp3300_codec;
14
15/ {
16	/* BOARD-SPECIFIC TOP LEVEL NODES */
17
18	adau7002: audio-codec-1 {
19		compatible = "adi,adau7002";
20		IOVDD-supply = <&pp1800_l15a>;
21		wakeup-delay-ms = <80>;
22		#sound-dai-cells = <0>;
23	};
24
25	thermal-zones {
26		skin_temp_thermal: skin-temp-thermal {
27			polling-delay-passive = <250>;
28			polling-delay = <0>;
29
30			thermal-sensors = <&pm6150_adc_tm 1>;
31			sustainable-power = <965>;
32
33			trips {
34				skin_temp_alert0: trip-point0 {
35					temperature = <42000>;
36					hysteresis = <1000>;
37					type = "passive";
38				};
39
40				skin_temp_alert1: trip-point1 {
41					temperature = <45000>;
42					hysteresis = <1000>;
43					type = "passive";
44				};
45
46				skin-temp-crit {
47					temperature = <60000>;
48					hysteresis = <1000>;
49					type = "critical";
50				};
51			};
52
53			cooling-maps {
54				map0 {
55					trip = <&skin_temp_alert0>;
56					cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
57							 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
58				};
59
60				map1 {
61					trip = <&skin_temp_alert1>;
62					cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
63							 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
64				};
65			};
66		};
67	};
68};
69
70&ap_spi_fp {
71	status = "okay";
72};
73
74&backlight {
75	pwms = <&cros_ec_pwm 0>;
76};
77
78&camcc {
79	status = "okay";
80};
81
82&cros_ec {
83	keyboard-controller {
84		compatible = "google,cros-ec-keyb-switches";
85	};
86
87	cros_ec_proximity: proximity {
88		compatible = "google,cros-ec-mkbp-proximity";
89		label = "proximity-wifi";
90	};
91};
92
93ap_ts_pen_1v8: &i2c4 {
94	status = "okay";
95	clock-frequency = <400000>;
96
97	ap_ts: touchscreen@5d {
98		compatible = "goodix,gt7375p";
99		reg = <0x5d>;
100		pinctrl-names = "default";
101		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
102
103		interrupt-parent = <&tlmm>;
104		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
105
106		panel = <&panel>;
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