xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sc7180-trogdor-coachz.dtsi (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
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	skin-temp-thermistor@4e {
123		reg = <ADC5_AMUX_THM2_100K_PU>;
124		qcom,ratiometric;
125		qcom,hw-settle-time = <200>;
126	};
127};
128
129&pm6150_adc_tm {
130	status = "okay";
131
132	skin-temp-thermistor@1 {
133		reg = <1>;
134		io-channels = <&pm6150_adc ADC5_AMUX_THM2_100K_PU>;
135		qcom,ratiometric;
136		qcom,hw-settle-time-us = <200>;
137	};
138};
139
140&pp1800_uf_cam {
141	status = "okay";
142};
143
144&pp1800_wf_cam {
145	status = "okay";
146};
147
148&pp2800_uf_cam {
149	status = "okay";
150};
151
152&pp2800_wf_cam {
153	status = "okay";
154};
155
156&pp3300_dx_edp {
157	gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>;
158};
159
160&sdhc_2 {
161	status = "okay";
162};
163
164&sn65dsi86_out {
165	data-lanes = <0 1 2 3>;
166};
167
168&sound {
169	compatible = "google,sc7180-coachz";
170	model = "sc7180-adau7002-max98357a";
171	audio-routing = "PDM_DAT", "DMIC";
172
173	pinctrl-names = "default";
174	pinctrl-0 = <&dmic_clk_en>;
175};
176
177&sound_multimedia0_codec {
178	sound-dai = <&adau7002>;
179};
180
181/* PINCTRL - modifications to sc7180-trogdor.dtsi */
182
183&en_pp3300_dx_edp {
184	pins = "gpio67";
185};
186
187&ts_reset_l {
188	/*
189	 * We want reset state by default and it will be up to the
190	 * driver to disable this when it's ready.
191	 */
192	output-low;
193};
194
195/* PINCTRL - board-specific pinctrl */
196
197&tlmm {
198	gpio-line-names = "HUB_RST_L",
199			  "AP_RAM_ID0",
200			  "AP_SKU_ID2",
201			  "AP_RAM_ID1",
202			  "FP_TO_AP_IRQ_L",
203			  "AP_RAM_ID2",
204			  "UF_CAM_EN",
205			  "WF_CAM_EN",
206			  "TS_RESET_L",
207			  "TS_INT_L",
208			  "FPMCU_BOOT0",
209			  "EDP_BRIJ_IRQ",
210			  "AP_EDP_BKLTEN",
211			  "UF_CAM_MCLK",
212			  "WF_CAM_CLK",
213			  "EDP_BRIJ_I2C_SDA",
214			  "EDP_BRIJ_I2C_SCL",
215			  "UF_CAM_SDA",
216			  "UF_CAM_SCL",
217			  "WF_CAM_SDA",
218			  "WF_CAM_SCL",
219			  "WLC_IRQ",
220			  "FP_RST_L",
221			  "AMP_EN",
222			  "WLC_NRST",
223			  "AP_SAR_SENSOR_SDA",
224			  "AP_SAR_SENSOR_SCL",
225			  "",
226			  "",
227			  "WF_CAM_RST_L",
228			  "UF_CAM_RST_L",
229			  "AP_BRD_ID2",
230			  "BRIJ_SUSPEND",
231			  "AP_BRD_ID0",
232			  "AP_H1_SPI_MISO",
233			  "AP_H1_SPI_MOSI",
234			  "AP_H1_SPI_CLK",
235			  "AP_H1_SPI_CS_L",
236			  "",
237			  "",
238			  "",
239			  "",
240			  "H1_AP_INT_ODL",
241			  "",
242			  "UART_AP_TX_DBG_RX",
243			  "UART_DBG_TX_AP_RX",
244			  "",
245			  "",
246			  "FORCED_USB_BOOT",
247			  "AMP_BCLK",
248			  "AMP_LRCLK",
249			  "AMP_DIN",
250			  "",
251			  "HP_BCLK",
252			  "HP_LRCLK",
253			  "HP_DOUT",
254			  "HP_DIN",
255			  "HP_MCLK",
256			  "AP_SKU_ID0",
257			  "AP_EC_SPI_MISO",
258			  "AP_EC_SPI_MOSI",
259			  "AP_EC_SPI_CLK",
260			  "AP_EC_SPI_CS_L",
261			  "AP_SPI_CLK",
262			  "AP_SPI_MOSI",
263			  "AP_SPI_MISO",
264			  /*
265			   * AP_FLASH_WP_L is crossystem ABI. Schematics
266			   * call it BIOS_FLASH_WP_L.
267			   */
268			  "AP_FLASH_WP_L",
269			  "EN_PP3300_DX_EDP",
270			  "AP_SPI_CS0_L",
271			  "SD_CD_ODL",
272			  "",
273			  "",
274			  "",
275			  "",
276			  "EN_FP_RAILS",
277			  "UIM2_DATA",
278			  "UIM2_CLK",
279			  "UIM2_RST",
280			  "UIM2_PRESENT_L",
281			  "UIM1_DATA",
282			  "UIM1_CLK",
283			  "UIM1_RST",
284			  "",
285			  "",
286			  "HUB_EN",
287			  "",
288			  "AP_SPI_FP_MISO",
289			  "AP_SPI_FP_MOSI",
290			  "AP_SPI_FP_CLK",
291			  "AP_SPI_FP_CS_L",
292			  "AP_SKU_ID1",
293			  "AP_RST_REQ",
294			  "",
295			  "AP_BRD_ID1",
296			  "AP_EC_INT_L",
297			  "",
298			  "",
299			  "",
300			  "",
301			  "",
302			  "",
303			  "",
304			  "",
305			  "",
306			  "EDP_BRIJ_EN",
307			  "",
308			  "",
309			  "",
310			  "",
311			  "",
312			  "",
313			  "",
314			  "",
315			  "",
316			  "",
317			  "AP_TS_PEN_I2C_SDA",
318			  "AP_TS_PEN_I2C_SCL",
319			  "DP_HOT_PLUG_DET",
320			  "EC_IN_RW_ODL";
321
322	dmic_clk_en: dmic-clk-en-state {
323		pins = "gpio83";
324		function = "gpio";
325		drive-strength = <8>;
326		bias-pull-up;
327	};
328};
329