xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sm8550-qrd.dts (revision 734e82fe33aa764367791a7d603b383996c6b40b)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2023 Linaro Limited
4 */
5
6/dts-v1/;
7
8#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
9#include "sm8550.dtsi"
10#include "pm8010.dtsi"
11#include "pm8550.dtsi"
12#include "pm8550b.dtsi"
13#include "pm8550ve.dtsi"
14#include "pm8550vs.dtsi"
15#include "pmk8550.dtsi"
16#include "pmr735d.dtsi"
17
18/ {
19	model = "Qualcomm Technologies, Inc. SM8550 QRD";
20	compatible = "qcom,sm8550-qrd", "qcom,sm8550";
21
22	aliases {
23		serial0 = &uart7;
24	};
25
26	chosen {
27		stdout-path = "serial0:115200n8";
28	};
29
30	vph_pwr: vph-pwr-regulator {
31		compatible = "regulator-fixed";
32		regulator-name = "vph_pwr";
33		regulator-min-microvolt = <3700000>;
34		regulator-max-microvolt = <3700000>;
35
36		regulator-always-on;
37		regulator-boot-on;
38	};
39};
40
41&apps_rsc {
42	regulators-0 {
43		compatible = "qcom,pm8550-rpmh-regulators";
44		qcom,pmic-id = "b";
45
46		vdd-bob1-supply = <&vph_pwr>;
47		vdd-bob2-supply = <&vph_pwr>;
48		vdd-l1-l4-l10-supply = <&vreg_s6g_1p86>;
49		vdd-l2-l13-l14-supply = <&vreg_bob1>;
50		vdd-l3-supply = <&vreg_s4g_1p25>;
51		vdd-l5-l16-supply = <&vreg_bob1>;
52		vdd-l6-l7-supply = <&vreg_bob1>;
53		vdd-l8-l9-supply = <&vreg_bob1>;
54		vdd-l11-supply = <&vreg_s4g_1p25>;
55		vdd-l12-supply = <&vreg_s6g_1p86>;
56		vdd-l15-supply = <&vreg_s6g_1p86>;
57		vdd-l17-supply = <&vreg_bob2>;
58
59		vreg_bob1: bob1 {
60			regulator-name = "vreg_bob1";
61			regulator-min-microvolt = <3296000>;
62			regulator-max-microvolt = <3960000>;
63			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
64		};
65
66		vreg_bob2: bob2 {
67			regulator-name = "vreg_bob2";
68			regulator-min-microvolt = <2720000>;
69			regulator-max-microvolt = <3960000>;
70			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
71		};
72
73		vreg_l1b_1p8: ldo1 {
74			regulator-name = "vreg_l1b_1p8";
75			regulator-min-microvolt = <1800000>;
76			regulator-max-microvolt = <1800000>;
77			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
78		};
79
80		vreg_l2b_3p0: ldo2 {
81			regulator-name = "vreg_l2b_3p0";
82			regulator-min-microvolt = <3008000>;
83			regulator-max-microvolt = <3008000>;
84			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
85		};
86
87		vreg_l5b_3p1: ldo5 {
88			regulator-name = "vreg_l5b_3p1";
89			regulator-min-microvolt = <3104000>;
90			regulator-max-microvolt = <3104000>;
91			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
92		};
93
94		vreg_l6b_1p8: ldo6 {
95			regulator-name = "vreg_l6b_1p8";
96			regulator-min-microvolt = <1800000>;
97			regulator-max-microvolt = <3008000>;
98			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
99		};
100
101		vreg_l7b_1p8: ldo7 {
102			regulator-name = "vreg_l7b_1p8";
103			regulator-min-microvolt = <1800000>;
104			regulator-max-microvolt = <3008000>;
105			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
106		};
107
108		vreg_l8b_1p8: ldo8 {
109			regulator-name = "vreg_l8b_1p8";
110			regulator-min-microvolt = <1800000>;
111			regulator-max-microvolt = <3008000>;
112			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
113		};
114
115		vreg_l9b_2p9: ldo9 {
116			regulator-name = "vreg_l9b_2p9";
117			regulator-min-microvolt = <2960000>;
118			regulator-max-microvolt = <3008000>;
119			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
120		};
121
122		vreg_l11b_1p2: ldo11 {
123			regulator-name = "vreg_l11b_1p2";
124			regulator-min-microvolt = <1200000>;
125			regulator-max-microvolt = <1504000>;
126			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
127		};
128
129		vreg_l12b_1p8: ldo12 {
130			regulator-name = "vreg_l12b_1p8";
131			regulator-min-microvolt = <1800000>;
132			regulator-max-microvolt = <1800000>;
133			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
134		};
135
136		vreg_l13b_3p0: ldo13 {
137			regulator-name = "vreg_l13b_3p0";
138			regulator-min-microvolt = <3000000>;
139			regulator-max-microvolt = <3000000>;
140			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
141		};
142
143		vreg_l14b_3p2: ldo14 {
144			regulator-name = "vreg_l14b_3p2";
145			regulator-min-microvolt = <3200000>;
146			regulator-max-microvolt = <3200000>;
147			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
148		};
149
150		vreg_l15b_1p8: ldo15 {
151			regulator-name = "vreg_l15b_1p8";
152			regulator-min-microvolt = <1800000>;
153			regulator-max-microvolt = <1800000>;
154			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
155		};
156
157		vreg_l16b_2p8: ldo16 {
158			regulator-name = "vreg_l16b_2p8";
159			regulator-min-microvolt = <2800000>;
160			regulator-max-microvolt = <2800000>;
161			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
162		};
163
164		vreg_l17b_2p5: ldo17 {
165			regulator-name = "vreg_l17b_2p5";
166			regulator-min-microvolt = <2504000>;
167			regulator-max-microvolt = <2504000>;
168			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
169		};
170	};
171
172	regulators-1 {
173		compatible = "qcom,pm8550vs-rpmh-regulators";
174		qcom,pmic-id = "c";
175
176		vdd-l1-supply = <&vreg_s4g_1p25>;
177		vdd-l2-supply = <&vreg_s4e_0p95>;
178		vdd-l3-supply = <&vreg_s4e_0p95>;
179
180		vreg_l3c_0p9: ldo3 {
181			regulator-name = "vreg_l3c_0p9";
182			regulator-min-microvolt = <880000>;
183			regulator-max-microvolt = <912000>;
184			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
185		};
186	};
187
188	regulators-2 {
189		compatible = "qcom,pm8550vs-rpmh-regulators";
190		qcom,pmic-id = "d";
191
192		vdd-l1-supply = <&vreg_s4e_0p95>;
193		vdd-l2-supply = <&vreg_s4e_0p95>;
194		vdd-l3-supply = <&vreg_s4e_0p95>;
195
196		vreg_l1d_0p88: ldo1 {
197			regulator-name = "vreg_l1d_0p88";
198			regulator-min-microvolt = <880000>;
199			regulator-max-microvolt = <920000>;
200			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
201		};
202
203		/* ldo2 supplies SM8550 VDD_LPI_MX */
204	};
205
206	regulators-3 {
207		compatible = "qcom,pm8550vs-rpmh-regulators";
208		qcom,pmic-id = "e";
209
210		vdd-l1-supply = <&vreg_s4e_0p95>;
211		vdd-l2-supply = <&vreg_s4e_0p95>;
212		vdd-l3-supply = <&vreg_s4g_1p25>;
213		vdd-s4-supply = <&vph_pwr>;
214		vdd-s5-supply = <&vph_pwr>;
215
216		vreg_s4e_0p95: smps4 {
217			regulator-name = "vreg_s4e_0p95";
218			regulator-min-microvolt = <904000>;
219			regulator-max-microvolt = <984000>;
220			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
221		};
222
223		vreg_s5e_1p08: smps5 {
224			regulator-name = "vreg_s5e_1p08";
225			regulator-min-microvolt = <1080000>;
226			regulator-max-microvolt = <1120000>;
227			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
228		};
229
230		vreg_l1e_0p88: ldo1 {
231			regulator-name = "vreg_l1e_0p88";
232			regulator-min-microvolt = <880000>;
233			regulator-max-microvolt = <880000>;
234			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
235		};
236
237		vreg_l2e_0p9: ldo2 {
238			regulator-name = "vreg_l2e_0p9";
239			regulator-min-microvolt = <904000>;
240			regulator-max-microvolt = <970000>;
241			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
242		};
243
244		vreg_l3e_1p2: ldo3 {
245			regulator-name = "vreg_l3e_1p2";
246			regulator-min-microvolt = <1200000>;
247			regulator-max-microvolt = <1200000>;
248			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
249		};
250	};
251
252	regulators-4 {
253		compatible = "qcom,pm8550ve-rpmh-regulators";
254		qcom,pmic-id = "f";
255
256		vdd-l1-supply = <&vreg_s4e_0p95>;
257		vdd-l2-supply = <&vreg_s4e_0p95>;
258		vdd-l3-supply = <&vreg_s4e_0p95>;
259		vdd-s4-supply = <&vph_pwr>;
260
261		vreg_s4f_0p5: smps4 {
262			regulator-name = "vreg_s4f_0p5";
263			regulator-min-microvolt = <500000>;
264			regulator-max-microvolt = <700000>;
265			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
266		};
267
268		vreg_l1f_0p9: ldo1 {
269			regulator-name = "vreg_l1f_0p9";
270			regulator-min-microvolt = <912000>;
271			regulator-max-microvolt = <912000>;
272			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
273		};
274
275		vreg_l2f_0p88: ldo2 {
276			regulator-name = "vreg_l2f_0p88";
277			regulator-min-microvolt = <880000>;
278			regulator-max-microvolt = <912000>;
279			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
280		};
281
282		vreg_l3f_0p88: ldo3 {
283			regulator-name = "vreg_l3f_0p88";
284			regulator-min-microvolt = <880000>;
285			regulator-max-microvolt = <912000>;
286			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
287		};
288	};
289
290	regulators-5 {
291		compatible = "qcom,pm8550vs-rpmh-regulators";
292		qcom,pmic-id = "g";
293
294		vdd-l1-supply = <&vreg_s4g_1p25>;
295		vdd-l2-supply = <&vreg_s4g_1p25>;
296		vdd-l3-supply = <&vreg_s4g_1p25>;
297		vdd-s1-supply = <&vph_pwr>;
298		vdd-s2-supply = <&vph_pwr>;
299		vdd-s3-supply = <&vph_pwr>;
300		vdd-s4-supply = <&vph_pwr>;
301		vdd-s5-supply = <&vph_pwr>;
302		vdd-s6-supply = <&vph_pwr>;
303
304		vreg_s1g_1p25: smps1 {
305			regulator-name = "vreg_s1g_1p25";
306			regulator-min-microvolt = <1200000>;
307			regulator-max-microvolt = <1300000>;
308			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
309		};
310
311		vreg_s2g_0p85: smps2 {
312			regulator-name = "vreg_s2g_0p85";
313			regulator-min-microvolt = <800000>;
314			regulator-max-microvolt = <1000000>;
315			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
316		};
317
318		vreg_s3g_0p8: smps3 {
319			regulator-name = "vreg_s3g_0p8";
320			regulator-min-microvolt = <300000>;
321			regulator-max-microvolt = <1004000>;
322			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
323		};
324
325		vreg_s4g_1p25: smps4 {
326			regulator-name = "vreg_s4g_1p25";
327			regulator-min-microvolt = <1200000>;
328			regulator-max-microvolt = <1352000>;
329			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
330		};
331
332		vreg_s5g_0p85: smps5 {
333			regulator-name = "vreg_s5g_0p85";
334			regulator-min-microvolt = <500000>;
335			regulator-max-microvolt = <1004000>;
336			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
337		};
338
339		vreg_s6g_1p86: smps6 {
340			regulator-name = "vreg_s6g_1p86";
341			regulator-min-microvolt = <1800000>;
342			regulator-max-microvolt = <2000000>;
343			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
344		};
345
346		vreg_l1g_1p2: ldo1 {
347			regulator-name = "vreg_l1g_1p2";
348			regulator-min-microvolt = <1200000>;
349			regulator-max-microvolt = <1200000>;
350			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
351		};
352
353		vreg_l3g_1p2: ldo3 {
354			regulator-name = "vreg_l3g_1p2";
355			regulator-min-microvolt = <1200000>;
356			regulator-max-microvolt = <1200000>;
357			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
358		};
359	};
360};
361
362&qupv3_id_0 {
363	status = "okay";
364};
365
366&remoteproc_adsp {
367	firmware-name = "qcom/sm8550/adsp.mbn",
368			"qcom/sm8550/adsp_dtb.mbn";
369	status = "okay";
370};
371
372&remoteproc_cdsp {
373	firmware-name = "qcom/sm8550/cdsp.mbn",
374			"qcom/sm8550/cdsp_dtb.mbn";
375	status = "okay";
376};
377
378&remoteproc_mpss {
379	firmware-name = "qcom/sm8550/modem.mbn",
380			"qcom/sm8550/modem_dtb.mbn";
381	status = "okay";
382};
383
384&sleep_clk {
385	clock-frequency = <32000>;
386};
387
388&tlmm {
389	gpio-reserved-ranges = <32 8>;
390};
391
392&uart7 {
393	status = "okay";
394};
395
396&ufs_mem_hc {
397	reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>;
398	vcc-supply = <&vreg_l17b_2p5>;
399	vcc-max-microamp = <1300000>;
400	vccq-supply = <&vreg_l1g_1p2>;
401	vccq-max-microamp = <1200000>;
402	vccq2-supply = <&vreg_l3g_1p2>;
403	vccq2-max-microamp = <100>;
404
405	status = "okay";
406};
407
408&ufs_mem_phy {
409	vdda-phy-supply = <&vreg_l1d_0p88>;
410	vdda-pll-supply = <&vreg_l3e_1p2>;
411
412	status = "okay";
413};
414
415&usb_1 {
416	status = "okay";
417};
418
419&usb_1_dwc3 {
420	dr_mode = "peripheral";
421};
422
423&usb_1_hsphy {
424	vdd-supply = <&vreg_l1e_0p88>;
425	vdda12-supply = <&vreg_l3e_1p2>;
426
427	status = "okay";
428};
429
430&usb_dp_qmpphy {
431	vdda-phy-supply = <&vreg_l3e_1p2>;
432	vdda-pll-supply = <&vreg_l3f_0p88>;
433
434	status = "okay";
435};
436
437&xo_board {
438	clock-frequency = <76800000>;
439};
440