blob: 5f101a20a20a23a1364a9ecc05cb8b5f6cd5d8bc [file] [log] [blame]
Joonwoo Park4807c712018-09-03 22:01:16 -07001// SPDX-License-Identifier: GPL-2.0
2/* Copyright (c) 2016, The Linux Foundation. All rights reserved. */
3
4#include "msm8998.dtsi"
Bjorn Anderssonb1227232018-09-03 22:01:19 -07005#include "pm8998.dtsi"
6#include "pmi8998.dtsi"
7#include "pm8005.dtsi"
Joonwoo Park4807c712018-09-03 22:01:16 -07008
9/ {
10 aliases {
11 serial0 = &blsp2_uart1;
12 };
13
14 chosen {
15 stdout-path = "serial0:115200n8";
16 };
Bjorn Andersson31c1f0e2018-09-03 22:01:17 -070017
18 vph_pwr: vph-pwr-regulator {
19 compatible = "regulator-fixed";
20 regulator-name = "vph_pwr";
21 regulator-always-on;
22 regulator-boot-on;
23 };
Joonwoo Park4807c712018-09-03 22:01:16 -070024};
25
Jeffrey Hugo4cffb9f2019-10-17 15:18:42 -070026&blsp1_uart3 {
27 status = "okay";
28
29 bluetooth {
30 compatible = "qcom,wcn3990-bt";
31
32 vddio-supply = <&vreg_s4a_1p8>;
33 vddxo-supply = <&vreg_l7a_1p8>;
34 vddrf-supply = <&vreg_l17a_1p3>;
35 vddch0-supply = <&vreg_l25a_3p3>;
36 max-speed = <3200000>;
37 };
38};
39
Joonwoo Park4807c712018-09-03 22:01:16 -070040&blsp2_uart1 {
41 status = "okay";
42};
Bjorn Andersson31c1f0e2018-09-03 22:01:17 -070043
Sai Prakash Ranjana636f932019-10-03 12:14:49 +053044&etf {
45 status = "okay";
46};
47
48&etm1 {
49 status = "okay";
50};
51
52&etm2 {
53 status = "okay";
54};
55
56&etm3 {
57 status = "okay";
58};
59
60&etm4 {
61 status = "okay";
62};
63
64&etm5 {
65 status = "okay";
66};
67
68&etm6 {
69 status = "okay";
70};
71
72&etm7 {
73 status = "okay";
74};
75
76&etm8 {
77 status = "okay";
78};
79
80&etr {
81 status = "okay";
82};
83
84&funnel1 {
85 status = "okay";
86};
87
88&funnel2 {
89 status = "okay";
90};
91
92&funnel3 {
93 status = "okay";
94};
95
96&funnel4 {
97 status = "okay";
98};
99
100&funnel5 {
101 status = "okay";
102};
103
Jeffrey Hugo1c3f37d2019-06-17 11:37:58 -0700104&pm8005_lsid1 {
105 pm8005-regulators {
106 compatible = "qcom,pm8005-regulators";
107
108 vdd_s1-supply = <&vph_pwr>;
109
110 pm8005_s1: s1 { /* VDD_GFX supply */
111 regulator-min-microvolt = <524000>;
112 regulator-max-microvolt = <1100000>;
113 regulator-enable-ramp-delay = <500>;
114
115 /* hack until we rig up the gpu consumer */
116 regulator-always-on;
117 };
118 };
119};
120
Jeffrey Hugo026dad82019-01-21 14:33:28 -0700121&qusb2phy {
122 status = "okay";
123
124 vdda-pll-supply = <&vreg_l12a_1p8>;
125 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
126};
127
Sai Prakash Ranjana636f932019-10-03 12:14:49 +0530128&replicator1 {
129 status = "okay";
130};
131
Bjorn Andersson31c1f0e2018-09-03 22:01:17 -0700132&rpm_requests {
133 pm8998-regulators {
134 compatible = "qcom,rpm-pm8998-regulators";
135
136 vdd_s1-supply = <&vph_pwr>;
137 vdd_s2-supply = <&vph_pwr>;
138 vdd_s3-supply = <&vph_pwr>;
139 vdd_s4-supply = <&vph_pwr>;
140 vdd_s5-supply = <&vph_pwr>;
141 vdd_s6-supply = <&vph_pwr>;
142 vdd_s7-supply = <&vph_pwr>;
143 vdd_s8-supply = <&vph_pwr>;
144 vdd_s9-supply = <&vph_pwr>;
145 vdd_s10-supply = <&vph_pwr>;
146 vdd_s11-supply = <&vph_pwr>;
147 vdd_s12-supply = <&vph_pwr>;
148 vdd_s13-supply = <&vph_pwr>;
149 vdd_l1_l27-supply = <&vreg_s7a_1p025>;
150 vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>;
151 vdd_l3_l11-supply = <&vreg_s7a_1p025>;
152 vdd_l4_l5-supply = <&vreg_s7a_1p025>;
153 vdd_l6-supply = <&vreg_s5a_2p04>;
154 vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>;
155 vdd_l9-supply = <&vreg_bob>;
156 vdd_l10_l23_l25-supply = <&vreg_bob>;
157 vdd_l13_l19_l21-supply = <&vreg_bob>;
158 vdd_l16_l28-supply = <&vreg_bob>;
159 vdd_l18_l22-supply = <&vreg_bob>;
160 vdd_l20_l24-supply = <&vreg_bob>;
161 vdd_l26-supply = <&vreg_s3a_1p35>;
162 vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>;
163
164 vreg_s3a_1p35: s3 {
165 regulator-min-microvolt = <1352000>;
166 regulator-max-microvolt = <1352000>;
167 };
168 vreg_s4a_1p8: s4 {
169 regulator-min-microvolt = <1800000>;
170 regulator-max-microvolt = <1800000>;
Marc Gonzalez695942d2019-02-25 13:17:44 +0100171 regulator-allow-set-load;
Bjorn Andersson31c1f0e2018-09-03 22:01:17 -0700172 };
173 vreg_s5a_2p04: s5 {
174 regulator-min-microvolt = <1904000>;
175 regulator-max-microvolt = <2040000>;
176 };
177 vreg_s7a_1p025: s7 {
178 regulator-min-microvolt = <900000>;
179 regulator-max-microvolt = <1028000>;
180 };
181 vreg_l1a_0p875: l1 {
182 regulator-min-microvolt = <880000>;
183 regulator-max-microvolt = <880000>;
184 };
185 vreg_l2a_1p2: l2 {
186 regulator-min-microvolt = <1200000>;
187 regulator-max-microvolt = <1200000>;
188 };
189 vreg_l3a_1p0: l3 {
190 regulator-min-microvolt = <1000000>;
191 regulator-max-microvolt = <1000000>;
192 };
193 vreg_l5a_0p8: l5 {
194 regulator-min-microvolt = <800000>;
195 regulator-max-microvolt = <800000>;
196 };
197 vreg_l6a_1p8: l6 {
198 regulator-min-microvolt = <1808000>;
199 regulator-max-microvolt = <1808000>;
200 };
201 vreg_l7a_1p8: l7 {
202 regulator-min-microvolt = <1800000>;
203 regulator-max-microvolt = <1800000>;
204 };
205 vreg_l8a_1p2: l8 {
206 regulator-min-microvolt = <1200000>;
207 regulator-max-microvolt = <1200000>;
208 };
209 vreg_l9a_1p8: l9 {
210 regulator-min-microvolt = <1808000>;
211 regulator-max-microvolt = <2960000>;
212 };
213 vreg_l10a_1p8: l10 {
214 regulator-min-microvolt = <1808000>;
215 regulator-max-microvolt = <2960000>;
216 };
217 vreg_l11a_1p0: l11 {
218 regulator-min-microvolt = <1000000>;
219 regulator-max-microvolt = <1000000>;
220 };
221 vreg_l12a_1p8: l12 {
222 regulator-min-microvolt = <1800000>;
223 regulator-max-microvolt = <1800000>;
224 };
225 vreg_l13a_2p95: l13 {
226 regulator-min-microvolt = <1808000>;
227 regulator-max-microvolt = <2960000>;
228 };
229 vreg_l14a_1p88: l14 {
230 regulator-min-microvolt = <1880000>;
231 regulator-max-microvolt = <1880000>;
232 };
233 vreg_15a_1p8: l15 {
234 regulator-min-microvolt = <1800000>;
235 regulator-max-microvolt = <1800000>;
236 };
237 vreg_l16a_2p7: l16 {
238 regulator-min-microvolt = <2704000>;
239 regulator-max-microvolt = <2704000>;
240 };
241 vreg_l17a_1p3: l17 {
242 regulator-min-microvolt = <1304000>;
243 regulator-max-microvolt = <1304000>;
244 };
245 vreg_l18a_2p7: l18 {
246 regulator-min-microvolt = <2704000>;
247 regulator-max-microvolt = <2704000>;
248 };
249 vreg_l19a_3p0: l19 {
250 regulator-min-microvolt = <3008000>;
251 regulator-max-microvolt = <3008000>;
252 };
253 vreg_l20a_2p95: l20 {
254 regulator-min-microvolt = <2960000>;
255 regulator-max-microvolt = <2960000>;
Marc Gonzalez695942d2019-02-25 13:17:44 +0100256 regulator-allow-set-load;
Bjorn Andersson31c1f0e2018-09-03 22:01:17 -0700257 };
258 vreg_l21a_2p95: l21 {
259 regulator-min-microvolt = <2960000>;
260 regulator-max-microvolt = <2960000>;
Jeffrey Hugod558f4c22018-12-18 11:04:43 -0700261 regulator-allow-set-load;
262 regulator-system-load = <800000>;
Bjorn Andersson31c1f0e2018-09-03 22:01:17 -0700263 };
264 vreg_l22a_2p85: l22 {
265 regulator-min-microvolt = <2864000>;
266 regulator-max-microvolt = <2864000>;
267 };
268 vreg_l23a_3p3: l23 {
269 regulator-min-microvolt = <3312000>;
270 regulator-max-microvolt = <3312000>;
271 };
272 vreg_l24a_3p075: l24 {
273 regulator-min-microvolt = <3088000>;
274 regulator-max-microvolt = <3088000>;
275 };
276 vreg_l25a_3p3: l25 {
277 regulator-min-microvolt = <3104000>;
278 regulator-max-microvolt = <3312000>;
279 };
280 vreg_l26a_1p2: l26 {
281 regulator-min-microvolt = <1200000>;
282 regulator-max-microvolt = <1200000>;
Marc Gonzalez695942d2019-02-25 13:17:44 +0100283 regulator-allow-set-load;
Bjorn Andersson31c1f0e2018-09-03 22:01:17 -0700284 };
285 vreg_l28_3p0: l28 {
286 regulator-min-microvolt = <3008000>;
287 regulator-max-microvolt = <3008000>;
288 };
289
290 vreg_lvs1a_1p8: lvs1 {
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
293 };
294
295 vreg_lvs2a_1p8: lvs2 {
296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <1800000>;
298 };
299
300 };
301
302 pmi8998-regulators {
303 compatible = "qcom,rpm-pmi8998-regulators";
304
305 vdd_bob-supply = <&vph_pwr>;
306
307 vreg_bob: bob {
308 regulator-min-microvolt = <3312000>;
309 regulator-max-microvolt = <3600000>;
310 };
311 };
312};
Bjorn Andersson91345862018-10-29 22:45:54 -0700313
314&tlmm {
315 gpio-reserved-ranges = <0 4>, <81 4>;
316};
Jeffrey Hugo23bd4f72018-11-15 10:18:11 -0700317
318&sdhc2 {
319 status = "okay";
320 cd-gpios = <&tlmm 95 GPIO_ACTIVE_LOW>;
321
322 vmmc-supply = <&vreg_l21a_2p95>;
323 vqmmc-supply = <&vreg_l13a_2p95>;
324
325 pinctrl-names = "default", "sleep";
326 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
327 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
328};
Jeffrey Hugo026dad82019-01-21 14:33:28 -0700329
Sai Prakash Ranjana636f932019-10-03 12:14:49 +0530330&stm {
331 status = "okay";
332};
333
Marc Gonzalezcd3dbe22019-02-25 13:18:43 +0100334&ufshc {
335 vcc-supply = <&vreg_l20a_2p95>;
336 vccq-supply = <&vreg_l26a_1p2>;
337 vccq2-supply = <&vreg_s4a_1p8>;
338 vcc-max-microamp = <750000>;
339 vccq-max-microamp = <560000>;
340 vccq2-max-microamp = <750000>;
341};
342
343&ufsphy {
344 vdda-phy-supply = <&vreg_l1a_0p875>;
345 vdda-pll-supply = <&vreg_l2a_1p2>;
346 vddp-ref-clk-supply = <&vreg_l26a_1p2>;
347 vdda-phy-max-microamp = <51400>;
348 vdda-pll-max-microamp = <14600>;
349 vddp-ref-clk-max-microamp = <100>;
350 vddp-ref-clk-always-on;
351};
352
Jeffrey Hugo026dad82019-01-21 14:33:28 -0700353&usb3 {
354 status = "okay";
355};
356
357&usb3_dwc3 {
358 dr_mode = "host"; /* Force to host until we have Type-C hooked up */
359};
360
361&usb3phy {
362 status = "okay";
363
364 vdda-phy-supply = <&vreg_l1a_0p875>;
365 vdda-pll-supply = <&vreg_l2a_1p2>;
366};