xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/msm8998-mtp.dtsi (revision 3110d4ebd6c0848cf5e25890d01791bb407e2a9b)
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright (c) 2016, The Linux Foundation. All rights reserved. */
3
4#include "msm8998.dtsi"
5#include "pm8998.dtsi"
6#include "pmi8998.dtsi"
7#include "pm8005.dtsi"
8
9/ {
10	aliases {
11		serial0 = &blsp2_uart1;
12		serial1 = &blsp1_uart3;
13	};
14
15	chosen {
16		stdout-path = "serial0:115200n8";
17	};
18
19	vph_pwr: vph-pwr-regulator {
20		compatible = "regulator-fixed";
21		regulator-name = "vph_pwr";
22		regulator-always-on;
23		regulator-boot-on;
24	};
25};
26
27&blsp1_uart3 {
28	status = "okay";
29
30	bluetooth {
31		compatible = "qcom,wcn3990-bt";
32
33		vddio-supply = <&vreg_s4a_1p8>;
34		vddxo-supply = <&vreg_l7a_1p8>;
35		vddrf-supply = <&vreg_l17a_1p3>;
36		vddch0-supply = <&vreg_l25a_3p3>;
37		max-speed = <3200000>;
38	};
39};
40
41&blsp2_uart1 {
42	status = "okay";
43};
44
45&etf {
46	status = "okay";
47};
48
49&etm1 {
50	status = "okay";
51};
52
53&etm2 {
54	status = "okay";
55};
56
57&etm3 {
58	status = "okay";
59};
60
61&etm4 {
62	status = "okay";
63};
64
65&etm5 {
66	status = "okay";
67};
68
69&etm6 {
70	status = "okay";
71};
72
73&etm7 {
74	status = "okay";
75};
76
77&etm8 {
78	status = "okay";
79};
80
81&etr {
82	status = "okay";
83};
84
85&funnel1 {
86	status = "okay";
87};
88
89&funnel2 {
90	status = "okay";
91};
92
93&funnel3 {
94	status = "okay";
95};
96
97&funnel4 {
98	// FIXME: Figure out why clock late_initcall crashes the board with
99	// this enabled.
100	// status = "okay";
101};
102
103&funnel5 {
104	// FIXME: Figure out why clock late_initcall crashes the board with
105	// this enabled.
106	// status = "okay";
107};
108
109&pm8005_lsid1 {
110	pm8005-regulators {
111		compatible = "qcom,pm8005-regulators";
112
113		vdd_s1-supply = <&vph_pwr>;
114
115		pm8005_s1: s1 { /* VDD_GFX supply */
116			regulator-min-microvolt = <524000>;
117			regulator-max-microvolt = <1100000>;
118			regulator-enable-ramp-delay = <500>;
119
120			/* hack until we rig up the gpu consumer */
121			regulator-always-on;
122		};
123	};
124};
125
126&qusb2phy {
127	status = "okay";
128
129	vdda-pll-supply = <&vreg_l12a_1p8>;
130	vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
131};
132
133&replicator1 {
134	status = "okay";
135};
136
137&rpm_requests {
138	pm8998-regulators {
139		compatible = "qcom,rpm-pm8998-regulators";
140
141		vdd_s1-supply = <&vph_pwr>;
142		vdd_s2-supply = <&vph_pwr>;
143		vdd_s3-supply = <&vph_pwr>;
144		vdd_s4-supply = <&vph_pwr>;
145		vdd_s5-supply = <&vph_pwr>;
146		vdd_s6-supply = <&vph_pwr>;
147		vdd_s7-supply = <&vph_pwr>;
148		vdd_s8-supply = <&vph_pwr>;
149		vdd_s9-supply = <&vph_pwr>;
150		vdd_s10-supply = <&vph_pwr>;
151		vdd_s11-supply = <&vph_pwr>;
152		vdd_s12-supply = <&vph_pwr>;
153		vdd_s13-supply = <&vph_pwr>;
154		vdd_l1_l27-supply = <&vreg_s7a_1p025>;
155		vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>;
156		vdd_l3_l11-supply = <&vreg_s7a_1p025>;
157		vdd_l4_l5-supply = <&vreg_s7a_1p025>;
158		vdd_l6-supply = <&vreg_s5a_2p04>;
159		vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>;
160		vdd_l9-supply = <&vreg_bob>;
161		vdd_l10_l23_l25-supply = <&vreg_bob>;
162		vdd_l13_l19_l21-supply = <&vreg_bob>;
163		vdd_l16_l28-supply = <&vreg_bob>;
164		vdd_l18_l22-supply = <&vreg_bob>;
165		vdd_l20_l24-supply = <&vreg_bob>;
166		vdd_l26-supply = <&vreg_s3a_1p35>;
167		vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>;
168
169		vreg_s3a_1p35: s3 {
170			regulator-min-microvolt = <1352000>;
171			regulator-max-microvolt = <1352000>;
172		};
173		vreg_s4a_1p8: s4 {
174			regulator-min-microvolt = <1800000>;
175			regulator-max-microvolt = <1800000>;
176			regulator-allow-set-load;
177		};
178		vreg_s5a_2p04: s5 {
179			regulator-min-microvolt = <1904000>;
180			regulator-max-microvolt = <2040000>;
181		};
182		vreg_s7a_1p025: s7 {
183			regulator-min-microvolt = <900000>;
184			regulator-max-microvolt = <1028000>;
185		};
186		vreg_l1a_0p875: l1 {
187			regulator-min-microvolt = <880000>;
188			regulator-max-microvolt = <880000>;
189		};
190		vreg_l2a_1p2: l2 {
191			regulator-min-microvolt = <1200000>;
192			regulator-max-microvolt = <1200000>;
193		};
194		vreg_l3a_1p0: l3 {
195			regulator-min-microvolt = <1000000>;
196			regulator-max-microvolt = <1000000>;
197		};
198		vreg_l5a_0p8: l5 {
199			regulator-min-microvolt = <800000>;
200			regulator-max-microvolt = <800000>;
201		};
202		vreg_l6a_1p8: l6 {
203			regulator-min-microvolt = <1808000>;
204			regulator-max-microvolt = <1808000>;
205		};
206		vreg_l7a_1p8: l7 {
207			regulator-min-microvolt = <1800000>;
208			regulator-max-microvolt = <1800000>;
209		};
210		vreg_l8a_1p2: l8 {
211			regulator-min-microvolt = <1200000>;
212			regulator-max-microvolt = <1200000>;
213		};
214		vreg_l9a_1p8: l9 {
215			regulator-min-microvolt = <1808000>;
216			regulator-max-microvolt = <2960000>;
217		};
218		vreg_l10a_1p8: l10 {
219			regulator-min-microvolt = <1808000>;
220			regulator-max-microvolt = <2960000>;
221		};
222		vreg_l11a_1p0: l11 {
223			regulator-min-microvolt = <1000000>;
224			regulator-max-microvolt = <1000000>;
225		};
226		vreg_l12a_1p8: l12 {
227			regulator-min-microvolt = <1800000>;
228			regulator-max-microvolt = <1800000>;
229		};
230		vreg_l13a_2p95: l13 {
231			regulator-min-microvolt = <1808000>;
232			regulator-max-microvolt = <2960000>;
233		};
234		vreg_l14a_1p88: l14 {
235			regulator-min-microvolt = <1880000>;
236			regulator-max-microvolt = <1880000>;
237		};
238		vreg_l15a_1p8: l15 {
239			regulator-min-microvolt = <1800000>;
240			regulator-max-microvolt = <1800000>;
241		};
242		vreg_l16a_2p7: l16 {
243			regulator-min-microvolt = <2704000>;
244			regulator-max-microvolt = <2704000>;
245		};
246		vreg_l17a_1p3: l17 {
247			regulator-min-microvolt = <1304000>;
248			regulator-max-microvolt = <1304000>;
249		};
250		vreg_l18a_2p7: l18 {
251			regulator-min-microvolt = <2704000>;
252			regulator-max-microvolt = <2704000>;
253		};
254		vreg_l19a_3p0: l19 {
255			regulator-min-microvolt = <3008000>;
256			regulator-max-microvolt = <3008000>;
257		};
258		vreg_l20a_2p95: l20 {
259			regulator-min-microvolt = <2960000>;
260			regulator-max-microvolt = <2960000>;
261			regulator-allow-set-load;
262		};
263		vreg_l21a_2p95: l21 {
264			regulator-min-microvolt = <2960000>;
265			regulator-max-microvolt = <2960000>;
266			regulator-allow-set-load;
267			regulator-system-load = <800000>;
268		};
269		vreg_l22a_2p85: l22 {
270			regulator-min-microvolt = <2864000>;
271			regulator-max-microvolt = <2864000>;
272		};
273		vreg_l23a_3p3: l23 {
274			regulator-min-microvolt = <3312000>;
275			regulator-max-microvolt = <3312000>;
276		};
277		vreg_l24a_3p075: l24 {
278			regulator-min-microvolt = <3088000>;
279			regulator-max-microvolt = <3088000>;
280		};
281		vreg_l25a_3p3: l25 {
282			regulator-min-microvolt = <3104000>;
283			regulator-max-microvolt = <3312000>;
284		};
285		vreg_l26a_1p2: l26 {
286			regulator-min-microvolt = <1200000>;
287			regulator-max-microvolt = <1200000>;
288			regulator-allow-set-load;
289		};
290		vreg_l28_3p0: l28 {
291			regulator-min-microvolt = <3008000>;
292			regulator-max-microvolt = <3008000>;
293		};
294
295		vreg_lvs1a_1p8: lvs1 {
296			regulator-min-microvolt = <1800000>;
297			regulator-max-microvolt = <1800000>;
298		};
299
300		vreg_lvs2a_1p8: lvs2 {
301			regulator-min-microvolt = <1800000>;
302			regulator-max-microvolt = <1800000>;
303		};
304
305	};
306
307	pmi8998-regulators {
308		compatible = "qcom,rpm-pmi8998-regulators";
309
310		vdd_bob-supply = <&vph_pwr>;
311
312		vreg_bob: bob {
313			regulator-min-microvolt = <3312000>;
314			regulator-max-microvolt = <3600000>;
315		};
316	};
317};
318
319&remoteproc_adsp {
320	status = "okay";
321};
322
323&remoteproc_slpi {
324	status = "okay";
325};
326
327&tlmm {
328	gpio-reserved-ranges = <0 4>, <81 4>;
329};
330
331&sdhc2 {
332	status = "okay";
333	cd-gpios = <&tlmm 95 GPIO_ACTIVE_LOW>;
334
335	vmmc-supply = <&vreg_l21a_2p95>;
336	vqmmc-supply = <&vreg_l13a_2p95>;
337
338	pinctrl-names = "default", "sleep";
339	pinctrl-0 = <&sdc2_clk_on  &sdc2_cmd_on  &sdc2_data_on  &sdc2_cd_on>;
340	pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
341};
342
343&stm {
344	status = "okay";
345};
346
347&ufshc {
348	vcc-supply = <&vreg_l20a_2p95>;
349	vccq-supply = <&vreg_l26a_1p2>;
350	vccq2-supply = <&vreg_s4a_1p8>;
351	vcc-max-microamp = <750000>;
352	vccq-max-microamp = <560000>;
353	vccq2-max-microamp = <750000>;
354};
355
356&ufsphy {
357	vdda-phy-supply = <&vreg_l1a_0p875>;
358	vdda-pll-supply = <&vreg_l2a_1p2>;
359	vddp-ref-clk-supply = <&vreg_l26a_1p2>;
360	vdda-phy-max-microamp = <51400>;
361	vdda-pll-max-microamp = <14600>;
362	vddp-ref-clk-max-microamp = <100>;
363	vddp-ref-clk-always-on;
364};
365
366&usb3 {
367	status = "okay";
368};
369
370&usb3_dwc3 {
371	dr_mode = "host"; /* Force to host until we have Type-C hooked up */
372};
373
374&usb3phy {
375	status = "okay";
376
377	vdda-phy-supply = <&vreg_l1a_0p875>;
378	vdda-pll-supply = <&vreg_l2a_1p2>;
379};
380
381&wifi {
382	status = "okay";
383
384	vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
385	vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
386	vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
387	vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
388};
389
390/* PINCTRL - board-specific pinctrl */
391&blsp1_uart3_on {
392	rx {
393		/delete-property/ bias-disable;
394		/*
395		 * Configure a pull-up on 45 (RX). This is needed to
396		 * avoid garbage data when the TX pin of the Bluetooth
397		 * module is in tri-state (module powered off or not
398		 * driving the signal yet).
399		 */
400		bias-pull-up;
401	};
402
403	cts {
404		/delete-property/ bias-disable;
405		/*
406		 * Configure a pull-down on 47 (CTS) to match the pull
407		 * of the Bluetooth module.
408		 */
409		bias-pull-down;
410	};
411};
412