Debian Codegraph @

scripts/dtc/include-prefixes/arm64/qcom/qrb5165-rb5.dts

raw
1 // SPDX-License-Identifier: BSD-3-Clause
2 /*
3 * Copyright (c) 2020, Linaro Ltd.
4 */
5
6 /dts-v1/;
7
8 #include <dt-bindings/leds/common.h>
9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
10 #include <dt-bindings/sound/qcom,q6afe.h>
11 #include <dt-bindings/sound/qcom,q6asm.h>
12 #include <dt-bindings/usb/pd.h>
13 #include "sm8250.dtsi"
14 #include "pm8150.dtsi"
15 #include "pm8150b.dtsi"
16 #include "pm8150l.dtsi"
17
18 / {
19 model = "Qualcomm Technologies, Inc. Robotics RB5";
20 compatible = "qcom,qrb5165-rb5", "qcom,sm8250";
21 qcom,msm-id = <455 0x20001>;
22 qcom,board-id = <11 3>;
23
24 aliases {
25 serial0 = &uart12;
26 serial1 = &uart6;
27 sdhc2 = &sdhc_2;
28 };
29
30 chosen {
31 stdout-path = "serial0:115200n8";
32 };
33
34 /* Fixed crystal oscillator dedicated to MCP2518FD */
35 clk40m: can-clock {
36 compatible = "fixed-clock";
37 #clock-cells = <0>;
38 clock-frequency = <40000000>;
39 };
40
41 dc12v: dc12v-regulator {
42 compatible = "regulator-fixed";
43 regulator-name = "DC12V";
44 regulator-min-microvolt = <12000000>;
45 regulator-max-microvolt = <12000000>;
46 regulator-always-on;
47 };
48
49 hdmi-out {
50 compatible = "hdmi-connector";
51 type = "a";
52
53 port {
54 hdmi_con: endpoint {
55 remote-endpoint = <&lt9611_out>;
56 };
57 };
58 };
59
60 leds {
61 compatible = "gpio-leds";
62
63 led-user4 {
64 label = "green:user4";
65 function = LED_FUNCTION_INDICATOR;
66 color = <LED_COLOR_ID_GREEN>;
67 gpios = <&pm8150_gpios 10 GPIO_ACTIVE_HIGH>;
68 default-state = "off";
69 panic-indicator;
70 };
71
72 led-wlan {
73 label = "yellow:wlan";
74 function = LED_FUNCTION_WLAN;
75 color = <LED_COLOR_ID_YELLOW>;
76 gpios = <&pm8150_gpios 9 GPIO_ACTIVE_HIGH>;
77 linux,default-trigger = "phy0tx";
78 default-state = "off";
79 };
80
81 led-bt {
82 label = "blue:bt";
83 function = LED_FUNCTION_BLUETOOTH;
84 color = <LED_COLOR_ID_BLUE>;
85 gpios = <&pm8150_gpios 7 GPIO_ACTIVE_HIGH>;
86 linux,default-trigger = "bluetooth-power";
87 default-state = "off";
88 };
89 };
90
91 lt9611_1v2: lt9611-vdd12-regulator {
92 compatible = "regulator-fixed";
93 regulator-name = "LT9611_1V2";
94
95 vin-supply = <&vdc_3v3>;
96 regulator-min-microvolt = <1200000>;
97 regulator-max-microvolt = <1200000>;
98 };
99
100 lt9611_3v3: lt9611-3v3 {
101 compatible = "regulator-fixed";
102 regulator-name = "LT9611_3V3";
103
104 vin-supply = <&vdc_3v3>;
105 regulator-min-microvolt = <3300000>;
106 regulator-max-microvolt = <3300000>;
107 regulator-boot-on;
108 regulator-always-on;
109 };
110
111 qca6390-pmu {
112 compatible = "qcom,qca6390-pmu";
113
114 pinctrl-names = "default";
115 pinctrl-0 = <&bt_en_state>, <&wlan_en_state>;
116
117 vddaon-supply = <&vreg_s6a_0p95>;
118 vddpmu-supply = <&vreg_s2f_0p95>;
119 vddrfa0p95-supply = <&vreg_s2f_0p95>;
120 vddrfa1p3-supply = <&vreg_s8c_1p3>;
121 vddrfa1p9-supply = <&vreg_s5a_1p9>;
122 vddpcie1p3-supply = <&vreg_s8c_1p3>;
123 vddpcie1p9-supply = <&vreg_s5a_1p9>;
124 vddio-supply = <&vreg_s4a_1p8>;
125
126 wlan-enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
127 bt-enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
128
129 regulators {
130 vreg_pmu_rfa_cmn: ldo0 {
131 regulator-name = "vreg_pmu_rfa_cmn";
132 };
133
134 vreg_pmu_aon_0p59: ldo1 {
135 regulator-name = "vreg_pmu_aon_0p59";
136 };
137
138 vreg_pmu_wlcx_0p8: ldo2 {
139 regulator-name = "vreg_pmu_wlcx_0p8";
140 };
141
142 vreg_pmu_wlmx_0p85: ldo3 {
143 regulator-name = "vreg_pmu_wlmx_0p85";
144 };
145
146 vreg_pmu_btcmx_0p85: ldo4 {
147 regulator-name = "vreg_pmu_btcmx_0p85";
148 };
149
150 vreg_pmu_rfa_0p8: ldo5 {
151 regulator-name = "vreg_pmu_rfa_0p8";
152 };
153
154 vreg_pmu_rfa_1p2: ldo6 {
155 regulator-name = "vreg_pmu_rfa_1p2";
156 };
157
158 vreg_pmu_rfa_1p7: ldo7 {
159 regulator-name = "vreg_pmu_rfa_1p7";
160 };
161
162 vreg_pmu_pcie_0p9: ldo8 {
163 regulator-name = "vreg_pmu_pcie_0p9";
164 };
165
166 vreg_pmu_pcie_1p8: ldo9 {
167 regulator-name = "vreg_pmu_pcie_1p8";
168 };
169 };
170 };
171
172 thermal-zones {
173 conn-thermal {
174 thermal-sensors = <&pm8150b_adc_tm 0>;
175
176 trips {
177 active-config0 {
178 temperature = <125000>;
179 hysteresis = <1000>;
180 type = "critical";
181 };
182 };
183 };
184
185 pm8150l-pcb-thermal {
186 thermal-sensors = <&pm8150l_adc_tm 1>;
187
188 trips {
189 active-config0 {
190 temperature = <50000>;
191 hysteresis = <4000>;
192 type = "passive";
193 };
194 };
195 };
196
197 skin-msm-thermal {
198 thermal-sensors = <&pm8150l_adc_tm 0>;
199
200 trips {
201 active-config0 {
202 temperature = <50000>;
203 hysteresis = <4000>;
204 type = "passive";
205 };
206 };
207 };
208
209 wifi-thermal {
210 thermal-sensors = <&pm8150_adc_tm 1>;
211
212 trips {
213 active-config0 {
214 temperature = <52000>;
215 hysteresis = <4000>;
216 type = "passive";
217 };
218 };
219 };
220
221 xo-thermal {
222 thermal-sensors = <&pm8150_adc_tm 0>;
223
224 trips {
225 active-config0 {
226 temperature = <50000>;
227 hysteresis = <4000>;
228 type = "passive";
229 };
230 };
231 };
232 };
233
234 vbat: vbat-regulator {
235 compatible = "regulator-fixed";
236 regulator-name = "VBAT";
237 vin-supply = <&vreg_l11c_3p3>;
238 regulator-min-microvolt = <4200000>;
239 regulator-max-microvolt = <4200000>;
240 regulator-always-on;
241 };
242
243 vbat_som: vbat-som-regulator {
244 compatible = "regulator-fixed";
245 regulator-name = "VBAT_SOM";
246 vin-supply = <&dc12v>;
247 regulator-min-microvolt = <4200000>;
248 regulator-max-microvolt = <4200000>;
249 regulator-always-on;
250 };
251
252 vdc_3v3: vdc-3v3-regulator {
253 compatible = "regulator-fixed";
254 regulator-name = "VDC_3V3";
255 vin-supply = <&vreg_l11c_3p3>;
256 regulator-min-microvolt = <3300000>;
257 regulator-max-microvolt = <3300000>;
258 regulator-always-on;
259 };
260
261 vdc_5v: vdc-5v-regulator {
262 compatible = "regulator-fixed";
263 regulator-name = "VDC_5V";
264
265 regulator-min-microvolt = <5000000>;
266 regulator-max-microvolt = <5000000>;
267 regulator-always-on;
268 vin-supply = <&vreg_l11c_3p3>;
269 };
270
271 vph_pwr: vph-pwr-regulator {
272 compatible = "regulator-fixed";
273 regulator-name = "vph_pwr";
274 regulator-min-microvolt = <3700000>;
275 regulator-max-microvolt = <3700000>;
276 regulator-always-on;
277 };
278
279 vreg_s4a_1p8: vreg-s4a-1p8 {
280 compatible = "regulator-fixed";
281 regulator-name = "vreg_s4a_1p8";
282 regulator-min-microvolt = <1800000>;
283 regulator-max-microvolt = <1800000>;
284 regulator-always-on;
285 };
286 };
287
288 &adsp {
289 status = "okay";
290 firmware-name = "qcom/sm8250/adsp.mbn";
291 };
292
293 &apps_rsc {
294 regulators-0 {
295 compatible = "qcom,pm8009-1-rpmh-regulators";
296 qcom,pmic-id = "f";
297
298 vdd-s1-supply = <&vph_pwr>;
299 vdd-s2-supply = <&vph_pwr>;
300 vdd-l2-supply = <&vreg_s8c_1p3>;
301 vdd-l5-l6-supply = <&vreg_bob>;
302 vdd-l7-supply = <&vreg_s4a_1p8>;
303
304 vreg_s2f_0p95: smps2 {
305 regulator-name = "vreg_s2f_0p95";
306 regulator-min-microvolt = <900000>;
307 regulator-max-microvolt = <952000>;
308 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
309 };
310
311 vreg_l1f_1p1: ldo1 {
312 regulator-name = "vreg_l1f_1p1";
313 regulator-min-microvolt = <1104000>;
314 regulator-max-microvolt = <1104000>;
315 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
316 };
317
318 vreg_l2f_1p2: ldo2 {
319 regulator-name = "vreg_l2f_1p2";
320 regulator-min-microvolt = <1200000>;
321 regulator-max-microvolt = <1200000>;
322 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
323 };
324
325 vreg_l6f_2p8: ldo6 {
326 regulator-name = "vreg_l6f_2p8";
327 regulator-min-microvolt = <2800000>;
328 regulator-max-microvolt = <2800000>;
329 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
330 };
331
332 vreg_l7f_1p8: ldo7 {
333 regulator-name = "vreg_l7f_1p8";
334 regulator-min-microvolt = <1800000>;
335 regulator-max-microvolt = <1800000>;
336 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
337 };
338 };
339
340 regulators-1 {
341 compatible = "qcom,pm8150-rpmh-regulators";
342 qcom,pmic-id = "a";
343
344 vdd-s1-supply = <&vph_pwr>;
345 vdd-s2-supply = <&vph_pwr>;
346 vdd-s3-supply = <&vph_pwr>;
347 vdd-s4-supply = <&vph_pwr>;
348 vdd-s5-supply = <&vph_pwr>;
349 vdd-s6-supply = <&vph_pwr>;
350 vdd-s7-supply = <&vph_pwr>;
351 vdd-s8-supply = <&vph_pwr>;
352 vdd-s9-supply = <&vph_pwr>;
353 vdd-s10-supply = <&vph_pwr>;
354 vdd-l2-l10-supply = <&vreg_bob>;
355 vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p95>;
356 vdd-l6-l9-supply = <&vreg_s8c_1p3>;
357 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_1p9>;
358 vdd-l13-l16-l17-supply = <&vreg_bob>;
359
360 vreg_l2a_3p1: ldo2 {
361 regulator-name = "vreg_l2a_3p1";
362 regulator-min-microvolt = <3072000>;
363 regulator-max-microvolt = <3072000>;
364 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
365 };
366
367 vreg_l3a_0p9: ldo3 {
368 regulator-name = "vreg_l3a_0p9";
369 regulator-min-microvolt = <928000>;
370 regulator-max-microvolt = <932000>;
371 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
372 };
373
374 vreg_l5a_0p88: ldo5 {
375 regulator-name = "vreg_l5a_0p88";
376 regulator-min-microvolt = <880000>;
377 regulator-max-microvolt = <880000>;
378 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
379 };
380
381 vreg_l6a_1p2: ldo6 {
382 regulator-name = "vreg_l6a_1p2";
383 regulator-min-microvolt = <1200000>;
384 regulator-max-microvolt = <1200000>;
385 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
386 };
387
388 vreg_l7a_1p7: ldo7 {
389 regulator-name = "vreg_l7a_1p7";
390 regulator-min-microvolt = <1704000>;
391 regulator-max-microvolt = <1800000>;
392 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
393 };
394
395 vreg_l9a_1p2: ldo9 {
396 regulator-name = "vreg_l9a_1p2";
397 regulator-min-microvolt = <1200000>;
398 regulator-max-microvolt = <1200000>;
399 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
400 };
401
402 vreg_l10a_1p8: ldo10 {
403 regulator-name = "vreg_l10a_1p8";
404 regulator-min-microvolt = <1800000>;
405 regulator-max-microvolt = <1800000>;
406 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
407 };
408
409 vreg_l12a_1p8: ldo12 {
410 regulator-name = "vreg_l12a_1p8";
411 regulator-min-microvolt = <1800000>;
412 regulator-max-microvolt = <1800000>;
413 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
414 };
415
416 vreg_l13a_ts_3p0: ldo13 {
417 regulator-name = "vreg_l13a_ts_3p0";
418 regulator-min-microvolt = <3008000>;
419 regulator-max-microvolt = <3008000>;
420 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
421 };
422
423 vreg_l14a_1p8: ldo14 {
424 regulator-name = "vreg_l14a_1p8";
425 regulator-min-microvolt = <1800000>;
426 regulator-max-microvolt = <1880000>;
427 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
428 };
429
430 vreg_l15a_1p8: ldo15 {
431 regulator-name = "vreg_l15a_1p8";
432 regulator-min-microvolt = <1800000>;
433 regulator-max-microvolt = <1800000>;
434 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
435 };
436
437 vreg_l16a_2p7: ldo16 {
438 regulator-name = "vreg_l16a_2p7";
439 regulator-min-microvolt = <2704000>;
440 regulator-max-microvolt = <2960000>;
441 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
442 };
443
444 vreg_l17a_3p0: ldo17 {
445 regulator-name = "vreg_l17a_3p0";
446 regulator-min-microvolt = <2856000>;
447 regulator-max-microvolt = <3008000>;
448 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
449 };
450
451 vreg_l18a_0p92: ldo18 {
452 regulator-name = "vreg_l18a_0p92";
453 regulator-min-microvolt = <800000>;
454 regulator-max-microvolt = <912000>;
455 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
456 };
457
458 vreg_s5a_1p9: smps5 {
459 regulator-name = "vreg_s5a_1p9";
460 regulator-min-microvolt = <1904000>;
461 regulator-max-microvolt = <2000000>;
462 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
463 };
464
465 vreg_s6a_0p95: smps6 {
466 regulator-name = "vreg_s6a_0p95";
467 regulator-min-microvolt = <920000>;
468 regulator-max-microvolt = <1128000>;
469 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
470 };
471 };
472
473 regulators-2 {
474 compatible = "qcom,pm8150l-rpmh-regulators";
475 qcom,pmic-id = "c";
476
477 vdd-s1-supply = <&vph_pwr>;
478 vdd-s2-supply = <&vph_pwr>;
479 vdd-s3-supply = <&vph_pwr>;
480 vdd-s4-supply = <&vph_pwr>;
481 vdd-s5-supply = <&vph_pwr>;
482 vdd-s6-supply = <&vph_pwr>;
483 vdd-s7-supply = <&vph_pwr>;
484 vdd-s8-supply = <&vph_pwr>;
485 vdd-l1-l8-supply = <&vreg_s4a_1p8>;
486 vdd-l2-l3-supply = <&vreg_s8c_1p3>;
487 vdd-l4-l5-l6-supply = <&vreg_bob>;
488 vdd-l7-l11-supply = <&vreg_bob>;
489 vdd-l9-l10-supply = <&vreg_bob>;
490 vdd-bob-supply = <&vph_pwr>;
491
492 vreg_bob: bob {
493 regulator-name = "vreg_bob";
494 regulator-min-microvolt = <3008000>;
495 regulator-max-microvolt = <4000000>;
496 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
497 };
498
499 vreg_l1c_1p8: ldo1 {
500 regulator-name = "vreg_l1c_1p8";
501 regulator-min-microvolt = <1800000>;
502 regulator-max-microvolt = <1800000>;
503 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
504 };
505
506 vreg_l2c_1p2: ldo2 {
507 regulator-name = "vreg_l2c_1p2";
508 regulator-min-microvolt = <1200000>;
509 regulator-max-microvolt = <1200000>;
510 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
511 };
512
513 vreg_l3c_0p8: ldo3 {
514 regulator-name = "vreg_l3c_0p8";
515 regulator-min-microvolt = <800000>;
516 regulator-max-microvolt = <800000>;
517 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
518 };
519
520 vreg_l4c_1p7: ldo4 {
521 regulator-name = "vreg_l4c_1p7";
522 regulator-min-microvolt = <1704000>;
523 regulator-max-microvolt = <2928000>;
524 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
525 };
526
527 vreg_l5c_1p8: ldo5 {
528 regulator-name = "vreg_l5c_1p8";
529 regulator-min-microvolt = <1800000>;
530 regulator-max-microvolt = <2928000>;
531 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
532 };
533
534 vreg_l6c_2p96: ldo6 {
535 regulator-name = "vreg_l6c_2p96";
536 regulator-min-microvolt = <1800000>;
537 regulator-max-microvolt = <2960000>;
538 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
539 };
540
541 vreg_l7c_cam_vcm0_2p85: ldo7 {
542 regulator-name = "vreg_l7c_cam_vcm0_2p85";
543 regulator-min-microvolt = <2856000>;
544 regulator-max-microvolt = <3104000>;
545 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
546 };
547
548 vreg_l8c_1p8: ldo8 {
549 regulator-name = "vreg_l8c_1p8";
550 regulator-min-microvolt = <1800000>;
551 regulator-max-microvolt = <1800000>;
552 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
553 };
554
555 vreg_l9c_2p96: ldo9 {
556 regulator-name = "vreg_l9c_2p96";
557 regulator-min-microvolt = <2704000>;
558 regulator-max-microvolt = <2960000>;
559 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
560 };
561
562 vreg_l10c_3p0: ldo10 {
563 regulator-name = "vreg_l10c_3p0";
564 regulator-min-microvolt = <3000000>;
565 regulator-max-microvolt = <3000000>;
566 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
567 };
568
569 vreg_l11c_3p3: ldo11 {
570 regulator-name = "vreg_l11c_3p3";
571 regulator-min-microvolt = <3296000>;
572 regulator-max-microvolt = <3296000>;
573 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
574 regulator-always-on;
575 };
576
577 vreg_s8c_1p3: smps8 {
578 regulator-name = "vreg_s8c_1p3";
579 regulator-min-microvolt = <1352000>;
580 regulator-max-microvolt = <1352000>;
581 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
582 };
583 };
584 };
585
586 &cdsp {
587 status = "okay";
588 firmware-name = "qcom/sm8250/cdsp.mbn";
589 };
590
591 &gmu {
592 status = "okay";
593 };
594
595 &gpu {
596 status = "okay";
597 };
598
599 &gpu_zap_shader {
600 firmware-name = "qcom/sm8250/a650_zap.mbn";
601 };
602
603 /* LS-I2C0 */
604 &i2c4 {
605 status = "okay";
606 };
607
608 &i2c5 {
609 status = "okay";
610 clock-frequency = <400000>;
611
612 lt9611_codec: hdmi-bridge@2b {
613 compatible = "lontium,lt9611uxc";
614 reg = <0x2b>;
615 #sound-dai-cells = <1>;
616
617 interrupts-extended = <&tlmm 63 IRQ_TYPE_EDGE_FALLING>;
618
619 reset-gpios = <&pm8150l_gpios 5 GPIO_ACTIVE_HIGH>;
620
621 vdd-supply = <&lt9611_1v2>;
622 vcc-supply = <&lt9611_3v3>;
623
624 pinctrl-names = "default";
625 pinctrl-0 = <&lt9611_irq_pin &lt9611_rst_pin>;
626
627 ports {
628 #address-cells = <1>;
629 #size-cells = <0>;
630
631 port@0 {
632 reg = <0>;
633
634 lt9611_a: endpoint {
635 remote-endpoint = <&mdss_dsi0_out>;
636 };
637 };
638
639 #if 0
640 port@1 {
641 reg = <1>;
642
643 lt9611_b: endpoint {
644 remote-endpoint = <&mdss_dsi1_out>;
645 };
646 };
647 #endif
648
649 port@2 {
650 reg = <2>;
651
652 lt9611_out: endpoint {
653 remote-endpoint = <&hdmi_con>;
654 };
655 };
656
657 };
658 };
659 };
660
661 /* LS-I2C1 */
662 &i2c15 {
663 status = "okay";
664
665 typec-mux@1c {
666 compatible = "onnn,nb7vpq904m";
667 reg = <0x1c>;
668
669 vcc-supply = <&vreg_s4a_1p8>;
670
671 retimer-switch;
672 orientation-switch;
673
674 ports {
675 #address-cells = <1>;
676 #size-cells = <0>;
677
678 port@0 {
679 reg = <0>;
680
681 redriver_usb_con_ss: endpoint {
682 remote-endpoint = <&pm8150b_typec_mux_in>;
683 };
684 };
685
686 port@1 {
687 reg = <1>;
688
689 redriver_phy_con_ss: endpoint {
690 remote-endpoint = <&usb_1_qmpphy_out>;
691 data-lanes = <0 1 2 3>;
692 };
693 };
694
695 port@2 {
696 reg = <2>;
697
698 redriver_usb_con_sbu: endpoint {
699 remote-endpoint = <&pm8150b_typec_sbu_out>;
700 };
701 };
702 };
703 };
704 };
705
706 &mdss {
707 status = "okay";
708 };
709
710 &mdss_dp {
711 status = "okay";
712 };
713
714 &mdss_dp_out {
715 data-lanes = <0 1>;
716 remote-endpoint = <&usb_1_qmpphy_dp_in>;
717 };
718
719 &mdss_dsi0 {
720 status = "okay";
721 vdda-supply = <&vreg_l9a_1p2>;
722
723 #if 0
724 qcom,dual-dsi-mode;
725 qcom,master-dsi;
726 #endif
727 };
728
729 &mdss_dsi0_out {
730 remote-endpoint = <&lt9611_a>;
731 data-lanes = <0 1 2 3>;
732 };
733
734 &mdss_dsi0_phy {
735 status = "okay";
736 vdds-supply = <&vreg_l5a_0p88>;
737 };
738
739 &pm8150_adc {
740 channel@4c {
741 reg = <ADC5_XO_THERM_100K_PU>;
742 qcom,ratiometric;
743 qcom,hw-settle-time = <200>;
744 label = "xo_therm";
745 };
746
747 channel@4e {
748 reg = <ADC5_AMUX_THM2_100K_PU>;
749 qcom,ratiometric;
750 qcom,hw-settle-time = <200>;
751 label = "wifi_therm";
752 };
753 };
754
755 &pm8150_adc_tm {
756 status = "okay";
757
758 xo-therm@0 {
759 reg = <0>;
760 io-channels = <&pm8150_adc ADC5_XO_THERM_100K_PU>;
761 qcom,ratiometric;
762 qcom,hw-settle-time-us = <200>;
763 };
764
765 wifi-therm@1 {
766 reg = <1>;
767 io-channels = <&pm8150_adc ADC5_AMUX_THM2_100K_PU>;
768 qcom,ratiometric;
769 qcom,hw-settle-time-us = <200>;
770 };
771 };
772
773 &pcie0 {
774 status = "okay";
775 };
776
777 &pcie0_phy {
778 status = "okay";
779 vdda-phy-supply = <&vreg_l5a_0p88>;
780 vdda-pll-supply = <&vreg_l9a_1p2>;
781 };
782
783 &pcieport0 {
784 wifi@0 {
785 compatible = "pci17cb,1101";
786 reg = <0x10000 0x0 0x0 0x0 0x0>;
787
788 vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
789 vddaon-supply = <&vreg_pmu_aon_0p59>;
790 vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
791 vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
792 vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
793 vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
794 vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>;
795 vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
796 vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
797 };
798 };
799
800 &pcie1 {
801 status = "okay";
802 };
803
804 &pcie1_phy {
805 status = "okay";
806 vdda-phy-supply = <&vreg_l5a_0p88>;
807 vdda-pll-supply = <&vreg_l9a_1p2>;
808 };
809
810 &pcie2 {
811 status = "okay";
812 };
813
814 &pcie2_phy {
815 status = "okay";
816 vdda-phy-supply = <&vreg_l5a_0p88>;
817 vdda-pll-supply = <&vreg_l9a_1p2>;
818 };
819
820 &pm8150_gpios {
821 gpio-reserved-ranges = <1 1>, <3 2>, <7 1>;
822 gpio-line-names =
823 "NC",
824 "OPTION2",
825 "PM_GPIO-F",
826 "PM_SLP_CLK_IN",
827 "OPTION1",
828 "VOL_UP_N",
829 "PM8250_GPIO7", /* Blue LED */
830 "SP_ARI_PWR_ALARM",
831 "GPIO_9_P", /* Yellow LED */
832 "GPIO_10_P"; /* Green LED */
833 };
834
835 &pm8150b_adc {
836 channel@4f {
837 reg = <ADC5_AMUX_THM3_100K_PU>;
838 qcom,ratiometric;
839 qcom,hw-settle-time = <200>;
840 label = "conn_therm";
841 };
842 };
843
844 &pm8150b_adc_tm {
845 status = "okay";
846
847 conn-therm@0 {
848 reg = <0>;
849 io-channels = <&pm8150b_adc ADC5_AMUX_THM3_100K_PU>;
850 qcom,ratiometric;
851 qcom,hw-settle-time-us = <200>;
852 };
853 };
854
855 &pm8150b_gpios {
856 gpio-line-names =
857 "NC",
858 "NC",
859 "NC",
860 "NC",
861 "HAP_BOOST_EN", /* SOM */
862 "SMB_STAT", /* SOM */
863 "NC",
864 "NC",
865 "SDM_FORCE_USB_BOOT",
866 "NC",
867 "NC",
868 "NC";
869 };
870
871 &pm8150l_adc {
872 channel@4e {
873 reg = <ADC5_AMUX_THM2_100K_PU>;
874 qcom,ratiometric;
875 qcom,hw-settle-time = <200>;
876 label = "skin_msm_therm";
877 };
878
879 channel@4f {
880 reg = <ADC5_AMUX_THM3_100K_PU>;
881 qcom,ratiometric;
882 qcom,hw-settle-time = <200>;
883 label = "pm8150l_therm";
884 };
885 };
886
887 &pm8150l_adc_tm {
888 status = "okay";
889
890 skin-msm-therm@0 {
891 reg = <0>;
892 io-channels = <&pm8150l_adc ADC5_AMUX_THM2_100K_PU>;
893 qcom,ratiometric;
894 qcom,hw-settle-time-us = <200>;
895 };
896
897 pm8150l-therm@1 {
898 reg = <1>;
899 io-channels = <&pm8150l_adc ADC5_AMUX_THM3_100K_PU>;
900 qcom,ratiometric;
901 qcom,hw-settle-time-us = <200>;
902 };
903 };
904
905 &pm8150l_gpios {
906 gpio-line-names =
907 "NC",
908 "PM3003A_EN",
909 "NC",
910 "NC",
911 "PM_GPIO5", /* HDMI RST_N */
912 "PM_GPIO-A", /* PWM */
913 "PM_GPIO7",
914 "NC",
915 "NC",
916 "PM_GPIO-B",
917 "NC",
918 "PM3003A_MODE";
919
920 lt9611_rst_pin: lt9611-rst-state {
921 pins = "gpio5";
922 function = "normal";
923
924 output-high;
925 input-disable;
926 power-source = <0>;
927 };
928 };
929
930 &pm8150l_lpg {
931 status = "okay";
932
933 #address-cells = <1>;
934 #size-cells = <0>;
935
936 led@1 {
937 reg = <1>;
938 color = <LED_COLOR_ID_GREEN>;
939 function = LED_FUNCTION_HEARTBEAT;
940 function-enumerator = <3>;
941
942 linux,default-trigger = "heartbeat";
943 default-state = "on";
944 };
945
946 led@2 {
947 reg = <2>;
948 color = <LED_COLOR_ID_GREEN>;
949 function = LED_FUNCTION_INDICATOR;
950 function-enumerator = <2>;
951 default-state = "on";
952 };
953
954 led@3 {
955 reg = <3>;
956 color = <LED_COLOR_ID_GREEN>;
957 function = LED_FUNCTION_INDICATOR;
958 function-enumerator = <1>;
959 };
960 };
961
962 &pon {
963 mode-bootloader = <0x2>;
964 mode-recovery = <0x1>;
965 };
966
967 &pon_pwrkey {
968 status = "okay";
969 };
970
971 &pon_resin {
972 status = "okay";
973
974 linux,code = <KEY_VOLUMEDOWN>;
975 };
976
977 &qupv3_id_0 {
978 status = "okay";
979 };
980
981 &qupv3_id_1 {
982 status = "okay";
983 };
984
985 &qupv3_id_2 {
986 status = "okay";
987 };
988
989 &q6afedai {
990 dai@16 {
991 reg = <PRIMARY_MI2S_RX>;
992 qcom,sd-lines = <0 1 2 3>;
993 };
994 };
995
996 /* TERT I2S Uses 1 I2S SD Lines for audio on LT9611 HDMI Bridge */
997 &q6afedai {
998 dai@20 {
999 reg = <TERTIARY_MI2S_RX>;
1000 qcom,sd-lines = <0>;
1001 };
1002 };
1003
1004 &q6asmdai {
1005 dai@0 {
1006 reg = <MSM_FRONTEND_DAI_MULTIMEDIA1>;
1007 };
1008
1009 dai@1 {
1010 reg = <MSM_FRONTEND_DAI_MULTIMEDIA2>;
1011 };
1012
1013 dai@2 {
1014 reg = <MSM_FRONTEND_DAI_MULTIMEDIA3>;
1015 };
1016
1017 dai@3 {
1018 direction = <Q6ASM_DAI_RX>;
1019 is-compress-dai;
1020 reg = <MSM_FRONTEND_DAI_MULTIMEDIA4>;
1021 };
1022 };
1023
1024 &sdhc_2 {
1025 status = "okay";
1026 pinctrl-names = "default";
1027 pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>;
1028 vmmc-supply = <&vreg_l9c_2p96>;
1029 vqmmc-supply = <&vreg_l6c_2p96>;
1030 cd-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
1031 bus-width = <4>;
1032 no-sdio;
1033 no-mmc;
1034 };
1035
1036 &slpi {
1037 firmware-name = "qcom/sm8250/Thundercomm/RB5/slpi.mbn";
1038
1039 status = "okay";
1040 };
1041
1042 &sound {
1043 compatible = "qcom,qrb5165-rb5-sndcard";
1044 pinctrl-0 = <&tert_mi2s_active>;
1045 pinctrl-names = "default";
1046 model = "Qualcomm-RB5-WSA8815-Speakers-DMIC0";
1047 audio-routing =
1048 "SpkrLeft IN", "WSA_SPK1 OUT",
1049 "SpkrRight IN", "WSA_SPK2 OUT",
1050 "VA DMIC0", "vdd-micb",
1051 "VA DMIC1", "vdd-micb";
1052
1053 mm1-dai-link {
1054 link-name = "MultiMedia1";
1055 cpu {
1056 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
1057 };
1058 };
1059
1060 mm2-dai-link {
1061 link-name = "MultiMedia2";
1062 cpu {
1063 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
1064 };
1065 };
1066
1067 mm3-dai-link {
1068 link-name = "MultiMedia3";
1069 cpu {
1070 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
1071 };
1072 };
1073
1074 mm4-dai-link {
1075 link-name = "MultiMedia4";
1076
1077 cpu {
1078 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>;
1079 };
1080 };
1081
1082 hdmi-dai-link {
1083 link-name = "HDMI Playback";
1084 cpu {
1085 sound-dai = <&q6afedai TERTIARY_MI2S_RX>;
1086 };
1087
1088 platform {
1089 sound-dai = <&q6routing>;
1090 };
1091
1092 codec {
1093 sound-dai = <&lt9611_codec 0>;
1094 };
1095 };
1096
1097 dma-dai-link {
1098 link-name = "WSA Playback";
1099 cpu {
1100 sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>;
1101 };
1102
1103 platform {
1104 sound-dai = <&q6routing>;
1105 };
1106
1107 codec {
1108 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro 0>;
1109 };
1110 };
1111
1112 va-dai-link {
1113 link-name = "VA Capture";
1114 cpu {
1115 sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>;
1116 };
1117
1118 platform {
1119 sound-dai = <&q6routing>;
1120 };
1121
1122 codec {
1123 sound-dai = <&vamacro 0>;
1124 };
1125 };
1126 };
1127
1128 /* CAN */
1129 &spi0 {
1130 status = "okay";
1131 pinctrl-names = "default";
1132 pinctrl-0 = <&qup_spi0_data_clk>, <&qup_spi0_cs_gpio>;
1133 cs-gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
1134
1135 can@0 {
1136 compatible = "microchip,mcp2518fd";
1137 reg = <0>;
1138 clocks = <&clk40m>;
1139 interrupts-extended = <&tlmm 15 IRQ_TYPE_LEVEL_LOW>;
1140 spi-max-frequency = <10000000>;
1141 vdd-supply = <&vdc_5v>;
1142 xceiver-supply = <&vdc_5v>;
1143 };
1144 };
1145
1146 &swr0 {
1147 status = "okay";
1148
1149 left_spkr: speaker@0,3 {
1150 compatible = "sdw10217211000";
1151 reg = <0 3>;
1152 powerdown-gpios = <&tlmm 130 GPIO_ACTIVE_LOW>;
1153 #thermal-sensor-cells = <0>;
1154 sound-name-prefix = "SpkrLeft";
1155 #sound-dai-cells = <0>;
1156 };
1157
1158 right_spkr: speaker@0,4 {
1159 compatible = "sdw10217211000";
1160 reg = <0 4>;
1161 powerdown-gpios = <&tlmm 130 GPIO_ACTIVE_LOW>;
1162 #thermal-sensor-cells = <0>;
1163 sound-name-prefix = "SpkrRight";
1164 #sound-dai-cells = <0>;
1165 };
1166 };
1167
1168 &tlmm {
1169 gpio-reserved-ranges = <40 4>;
1170 gpio-line-names =
1171 "GPIO-MM",
1172 "GPIO-NN",
1173 "GPIO-OO",
1174 "GPIO-PP",
1175 "GPIO-A",
1176 "GPIO-C",
1177 "GPIO-E",
1178 "GPIO-D",
1179 "I2C0-SDA",
1180 "I2C0-SCL",
1181 "GPIO-TT", /* GPIO_10 */
1182 "NC",
1183 "GPIO_12_I2C_SDA",
1184 "GPIO_13_I2C_SCL",
1185 "GPIO-X",
1186 "GPIO_15_RGMII_INT",
1187 "HST_BT_UART_CTS",
1188 "HST_BT_UART_RFR",
1189 "HST_BT_UART_TX",
1190 "HST_BT_UART_RX",
1191 "HST_WLAN_EN", /* GPIO_20 */
1192 "HST_BT_EN",
1193 "GPIO-AAA",
1194 "GPIO-BBB",
1195 "GPIO-CCC",
1196 "GPIO-Z",
1197 "GPIO-DDD",
1198 "GPIO-BB",
1199 "GPIO_28_CAN_SPI_MISO",
1200 "GPIO_29_CAN_SPI_MOSI",
1201 "GPIO_30_CAN_SPI_CLK", /* GPIO_30 */
1202 "GPIO_31_CAN_SPI_CS",
1203 "GPIO-UU",
1204 "NC",
1205 "UART1_TXD_SOM",
1206 "UART1_RXD_SOM",
1207 "UART0_CTS",
1208 "UART0_RTS",
1209 "UART0_TXD",
1210 "UART0_RXD",
1211 "SPI1_MISO", /* GPIO_40 */
1212 "SPI1_MOSI",
1213 "SPI1_CLK",
1214 "SPI1_CS",
1215 "I2C1_SDA",
1216 "I2C1_SCL",
1217 "GPIO-F",
1218 "GPIO-JJ",
1219 "Board_ID1",
1220 "Board_ID2",
1221 "NC", /* GPIO_50 */
1222 "NC",
1223 "SPI0_MISO",
1224 "SPI0_MOSI",
1225 "SPI0_SCLK",
1226 "SPI0_CS",
1227 "GPIO-QQ",
1228 "GPIO-RR",
1229 "USB2LAN_RESET",
1230 "USB2LAN_EXTWAKE",
1231 "NC", /* GPIO_60 */
1232 "NC",
1233 "NC",
1234 "LT9611_INT",
1235 "GPIO-AA",
1236 "USB_CC_DIR",
1237 "GPIO-G",
1238 "GPIO-LL",
1239 "USB_DP_HPD_1P8",
1240 "NC",
1241 "NC", /* GPIO_70 */
1242 "SD_CMD",
1243 "SD_DAT3",
1244 "SD_SCLK",
1245 "SD_DAT2",
1246 "SD_DAT1",
1247 "SD_DAT0", /* BOOT_CFG3 */
1248 "SD_UFS_CARD_DET_N",
1249 "GPIO-II",
1250 "PCIE0_RST_N",
1251 "PCIE0_CLK_REQ_N", /* GPIO_80 */
1252 "PCIE0_WAKE_N",
1253 "GPIO-CC",
1254 "GPIO-DD",
1255 "GPIO-EE",
1256 "GPIO-FF",
1257 "GPIO-GG",
1258 "GPIO-HH",
1259 "GPIO-VV",
1260 "GPIO-WW",
1261 "NC", /* GPIO_90 */
1262 "NC",
1263 "GPIO-K",
1264 "GPIO-I",
1265 "CSI0_MCLK",
1266 "CSI1_MCLK",
1267 "CSI2_MCLK",
1268 "CSI3_MCLK",
1269 "GPIO-AA", /* CSI4_MCLK */
1270 "GPIO-BB", /* CSI5_MCLK */
1271 "GPIO-KK", /* GPIO_100 */
1272 "CCI_I2C_SDA0",
1273 "CCI_I2C_SCL0",
1274 "CCI_I2C_SDA1",
1275 "CCI_I2C_SCL1",
1276 "CCI_I2C_SDA2",
1277 "CCI_I2C_SCL2",
1278 "CCI_I2C_SDA3",
1279 "CCI_I2C_SCL3",
1280 "GPIO-L",
1281 "NC", /* GPIO_110 */
1282 "NC",
1283 "ACCEL_INT",
1284 "GYRO_INT",
1285 "GPIO-J",
1286 "GPIO-YY",
1287 "GPIO-H",
1288 "GPIO-ZZ",
1289 "NC",
1290 "NC",
1291 "NC", /* GPIO_120 */
1292 "NC",
1293 "MAG_INT",
1294 "MAG_DRDY_INT",
1295 "HST_SW_CTRL",
1296 "GPIO-M",
1297 "GPIO-N",
1298 "GPIO-O",
1299 "GPIO-P",
1300 "PS_INT",
1301 "WSA1_EN", /* GPIO_130 */
1302 "USB_HUB_RESET",
1303 "SDM_FORCE_USB_BOOT",
1304 "I2S1_CLK_HDMI",
1305 "I2S1_DATA0_HDMI",
1306 "I2S1_WS_HDMI",
1307 "GPIO-B",
1308 "GPIO_137", /* To LT9611_I2S_MCLK_3V3 */
1309 "PCM_CLK",
1310 "PCM_DI",
1311 "PCM_DO", /* GPIO_140 */
1312 "PCM_FS",
1313 "HST_SLIM_CLK",
1314 "HST_SLIM_DATA",
1315 "GPIO-U",
1316 "GPIO-Y",
1317 "GPIO-R",
1318 "GPIO-Q",
1319 "GPIO-S",
1320 "GPIO-T",
1321 "GPIO-V", /* GPIO_150 */
1322 "GPIO-W",
1323 "DMIC_CLK1",
1324 "DMIC_DATA1",
1325 "DMIC_CLK2",
1326 "DMIC_DATA2",
1327 "WSA_SWR_CLK",
1328 "WSA_SWR_DATA",
1329 "DMIC_CLK3",
1330 "DMIC_DATA3",
1331 "I2C4_SDA", /* GPIO_160 */
1332 "I2C4_SCL",
1333 "SPI3_CS1",
1334 "SPI3_CS2",
1335 "SPI2_MISO_LS3",
1336 "SPI2_MOSI_LS3",
1337 "SPI2_CLK_LS3",
1338 "SPI2_ACCEL_CS_LS3",
1339 "SPI2_CS1",
1340 "NC",
1341 "GPIO-SS", /* GPIO_170 */
1342 "GPIO-XX",
1343 "SPI3_MISO",
1344 "SPI3_MOSI",
1345 "SPI3_CLK",
1346 "SPI3_CS",
1347 "HST_BLE_SNS_UART_TX",
1348 "HST_BLE_SNS_UART_RX",
1349 "HST_WLAN_UART_TX",
1350 "HST_WLAN_UART_RX";
1351
1352 bt_en_state: bt-default-state {
1353 pins = "gpio21";
1354 function = "gpio";
1355 drive-strength = <16>;
1356 output-low;
1357 bias-pull-up;
1358 };
1359
1360 lt9611_irq_pin: lt9611-irq-state {
1361 pins = "gpio63";
1362 function = "gpio";
1363 bias-disable;
1364 };
1365
1366 sdc2_default_state: sdc2-default-state {
1367 clk-pins {
1368 pins = "sdc2_clk";
1369 bias-disable;
1370 drive-strength = <16>;
1371 };
1372
1373 cmd-pins {
1374 pins = "sdc2_cmd";
1375 bias-pull-up;
1376 drive-strength = <10>;
1377 };
1378
1379 data-pins {
1380 pins = "sdc2_data";
1381 bias-pull-up;
1382 drive-strength = <10>;
1383 };
1384 };
1385
1386 sdc2_card_det_n: sd-card-det-n-state {
1387 pins = "gpio77";
1388 function = "gpio";
1389 bias-pull-up;
1390 };
1391
1392 wlan_en_state: wlan-default-state {
1393 pins = "gpio20";
1394 function = "gpio";
1395 drive-strength = <16>;
1396 output-low;
1397 bias-pull-up;
1398 };
1399 };
1400
1401 &uart6 {
1402 status = "okay";
1403
1404 bluetooth {
1405 compatible = "qcom,qca6390-bt";
1406
1407 vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
1408 vddaon-supply = <&vreg_pmu_aon_0p59>;
1409 vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>;
1410 vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
1411 vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
1412 vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>;
1413 };
1414 };
1415
1416 &uart12 {
1417 status = "okay";
1418 };
1419
1420 &ufs_mem_hc {
1421 status = "okay";
1422
1423 vcc-supply = <&vreg_l17a_3p0>;
1424 vcc-max-microamp = <800000>;
1425 vccq-supply = <&vreg_l6a_1p2>;
1426 vccq-max-microamp = <800000>;
1427 vccq2-supply = <&vreg_s4a_1p8>;
1428 vccq2-max-microamp = <800000>;
1429 };
1430
1431 &ufs_mem_phy {
1432 status = "okay";
1433
1434 vdda-phy-supply = <&vreg_l5a_0p88>;
1435 vdda-pll-supply = <&vreg_l9a_1p2>;
1436 };
1437
1438 &usb_1 {
1439 status = "okay";
1440 };
1441
1442 &usb_1_dwc3 {
1443 dr_mode = "otg";
1444 usb-role-switch;
1445 };
1446
1447 &usb_1_dwc3_hs_out {
1448 remote-endpoint = <&pm8150b_hs_in>;
1449 };
1450
1451 &usb_1_hsphy {
1452 status = "okay";
1453
1454 vdda-pll-supply = <&vreg_l5a_0p88>;
1455 vdda33-supply = <&vreg_l2a_3p1>;
1456 vdda18-supply = <&vreg_l12a_1p8>;
1457 };
1458
1459 &usb_1_qmpphy {
1460 status = "okay";
1461
1462 vdda-phy-supply = <&vreg_l9a_1p2>;
1463 vdda-pll-supply = <&vreg_l18a_0p92>;
1464 };
1465
1466 &usb_1_qmpphy_out {
1467 remote-endpoint = <&redriver_phy_con_ss>;
1468 };
1469
1470 &usb_2 {
1471 status = "okay";
1472 };
1473
1474 &usb_2_dwc3 {
1475 dr_mode = "host";
1476 };
1477
1478 &usb_2_hsphy {
1479 status = "okay";
1480
1481 vdda-pll-supply = <&vreg_l5a_0p88>;
1482 vdda33-supply = <&vreg_l2a_3p1>;
1483 vdda18-supply = <&vreg_l12a_1p8>;
1484 };
1485
1486 &usb_2_qmpphy {
1487 status = "okay";
1488
1489 vdda-phy-supply = <&vreg_l9a_1p2>;
1490 vdda-pll-supply = <&vreg_l18a_0p92>;
1491 };
1492
1493 &vamacro {
1494 pinctrl-0 = <&dmic01_active>;
1495 pinctrl-names = "default";
1496 vdd-micb-supply = <&vreg_s4a_1p8>;
1497 qcom,dmic-sample-rate = <600000>;
1498 };
1499
1500 &venus {
1501 status = "okay";
1502 };
1503
1504 &wsamacro {
1505 status = "okay";
1506 };
1507
1508 /* PINCTRL - additions to nodes defined in sm8250.dtsi */
1509 &qup_spi0_cs_gpio {
1510 drive-strength = <6>;
1511 bias-disable;
1512 };
1513
1514 &qup_spi0_data_clk {
1515 drive-strength = <6>;
1516 bias-disable;
1517 };
1518
1519 &pm8150b_vbus {
1520 regulator-min-microamp = <500000>;
1521 regulator-max-microamp = <3000000>;
1522 status = "okay";
1523 };
1524
1525 &pm8150b_typec {
1526 status = "okay";
1527
1528 vdd-pdphy-supply = <&vreg_l2a_3p1>;
1529
1530 connector {
1531 compatible = "usb-c-connector";
1532
1533 power-role = "source";
1534 data-role = "dual";
1535 self-powered;
1536
1537 source-pdos = <PDO_FIXED(5000, 3000,
1538 PDO_FIXED_DUAL_ROLE |
1539 PDO_FIXED_USB_COMM |
1540 PDO_FIXED_DATA_SWAP)>;
1541
1542 altmodes {
1543 displayport {
1544 svid = /bits/ 16 <0xff01>;
1545 vdo = <0x00001c46>;
1546 };
1547 };
1548
1549 ports {
1550 #address-cells = <1>;
1551 #size-cells = <0>;
1552
1553 port@0 {
1554 reg = <0>;
1555 pm8150b_hs_in: endpoint {
1556 remote-endpoint = <&usb_1_dwc3_hs_out>;
1557 };
1558 };
1559
1560 port@1 {
1561 reg = <1>;
1562 pm8150b_typec_mux_in: endpoint {
1563 remote-endpoint = <&redriver_usb_con_ss>;
1564 };
1565 };
1566
1567 port@2 {
1568 reg = <2>;
1569
1570 pm8150b_typec_sbu_out: endpoint {
1571 remote-endpoint = <&redriver_usb_con_sbu>;
1572 };
1573 };
1574 };
1575 };
1576 };
1577
1578 &usb_1_qmpphy_dp_in {
1579 remote-endpoint = <&mdss_dp_out>;
1580 };