Debian Codegraph @

scripts/dtc/include-prefixes/arm64/qcom/sdm845-db845c.dts

raw
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (c) 2019, Linaro Ltd.
4 */
5
6 /dts-v1/;
7
8 #include <dt-bindings/arm/qcom,ids.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
12 #include <dt-bindings/sound/qcom,q6afe.h>
13 #include <dt-bindings/sound/qcom,q6asm.h>
14 #include "sdm845.dtsi"
15 #include "sdm845-wcd9340.dtsi"
16 #include "pm8998.dtsi"
17 #include "pmi8998.dtsi"
18
19 / {
20 model = "Thundercomm Dragonboard 845c";
21 compatible = "thundercomm,db845c", "qcom,sdm845";
22 qcom,msm-id = <QCOM_ID_SDA845 0x20001>;
23 qcom,board-id = <8 0>;
24
25 aliases {
26 serial0 = &uart9;
27 serial1 = &uart6;
28 };
29
30 chosen {
31 stdout-path = "serial0:115200n8";
32 };
33
34 /* Fixed crystal oscillator dedicated to MCP2517FD */
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 gpio-keys {
50 compatible = "gpio-keys";
51 autorepeat;
52
53 pinctrl-names = "default";
54 pinctrl-0 = <&vol_up_pin_a>;
55
56 key-vol-up {
57 label = "Volume Up";
58 linux,code = <KEY_VOLUMEUP>;
59 gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>;
60 };
61 };
62
63 leds {
64 compatible = "gpio-leds";
65
66 led-0 {
67 label = "green:user4";
68 function = LED_FUNCTION_INDICATOR;
69 color = <LED_COLOR_ID_GREEN>;
70 gpios = <&pm8998_gpios 13 GPIO_ACTIVE_HIGH>;
71 default-state = "off";
72 panic-indicator;
73 };
74
75 led-1 {
76 label = "yellow:wlan";
77 function = LED_FUNCTION_WLAN;
78 color = <LED_COLOR_ID_YELLOW>;
79 gpios = <&pm8998_gpios 9 GPIO_ACTIVE_HIGH>;
80 linux,default-trigger = "phy0tx";
81 default-state = "off";
82 };
83
84 led-2 {
85 label = "blue:bt";
86 function = LED_FUNCTION_BLUETOOTH;
87 color = <LED_COLOR_ID_BLUE>;
88 gpios = <&pm8998_gpios 5 GPIO_ACTIVE_HIGH>;
89 linux,default-trigger = "bluetooth-power";
90 default-state = "off";
91 };
92 };
93
94 hdmi-out {
95 compatible = "hdmi-connector";
96 type = "a";
97
98 port {
99 hdmi_con: endpoint {
100 remote-endpoint = <&lt9611_out>;
101 };
102 };
103 };
104
105 reserved-memory {
106 /* Cont splash region set up by the bootloader */
107 cont_splash_mem: framebuffer@9d400000 {
108 reg = <0x0 0x9d400000 0x0 0x2400000>;
109 no-map;
110 };
111 };
112
113 lt9611_1v8: lt9611-vdd18-regulator {
114 compatible = "regulator-fixed";
115 regulator-name = "LT9611_1V8";
116
117 vin-supply = <&vdc_5v>;
118 regulator-min-microvolt = <1800000>;
119 regulator-max-microvolt = <1800000>;
120
121 gpio = <&tlmm 89 GPIO_ACTIVE_HIGH>;
122 enable-active-high;
123 };
124
125 lt9611_3v3: lt9611-3v3 {
126 compatible = "regulator-fixed";
127 regulator-name = "LT9611_3V3";
128
129 vin-supply = <&vdc_3v3>;
130 regulator-min-microvolt = <3300000>;
131 regulator-max-microvolt = <3300000>;
132
133 /*
134 * TODO: make it possible to drive same GPIO from two clients
135 * gpio = <&tlmm 89 GPIO_ACTIVE_HIGH>;
136 * enable-active-high;
137 */
138 };
139
140 pcie0_1p05v: pcie-0-1p05v-regulator {
141 compatible = "regulator-fixed";
142 regulator-name = "PCIE0_1.05V";
143
144 vin-supply = <&vbat>;
145 regulator-min-microvolt = <1050000>;
146 regulator-max-microvolt = <1050000>;
147
148 /*
149 * TODO: make it possible to drive same GPIO from two clients
150 * gpio = <&tlmm 90 GPIO_ACTIVE_HIGH>;
151 * enable-active-high;
152 */
153 };
154
155 cam0_dvdd_1v2: cam0-dvdd-1v2-regulator {
156 compatible = "regulator-fixed";
157 regulator-name = "CAM0_DVDD_1V2";
158 regulator-min-microvolt = <1200000>;
159 regulator-max-microvolt = <1200000>;
160 enable-active-high;
161 gpio = <&pm8998_gpios 12 GPIO_ACTIVE_HIGH>;
162 pinctrl-names = "default";
163 pinctrl-0 = <&cam0_dvdd_1v2_en_default>;
164 vin-supply = <&vbat>;
165 };
166
167 cam0_avdd_2v8: cam0-avdd-2v8-regulator {
168 compatible = "regulator-fixed";
169 regulator-name = "CAM0_AVDD_2V8";
170 regulator-min-microvolt = <2800000>;
171 regulator-max-microvolt = <2800000>;
172 enable-active-high;
173 gpio = <&pm8998_gpios 10 GPIO_ACTIVE_HIGH>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&cam0_avdd_2v8_en_default>;
176 vin-supply = <&vbat>;
177 };
178
179 /* This regulator is enabled when the VREG_LVS1A_1P8 trace is enabled */
180 cam3_avdd_2v8: cam3-avdd-2v8-regulator {
181 compatible = "regulator-fixed";
182 regulator-name = "CAM3_AVDD_2V8";
183 regulator-min-microvolt = <2800000>;
184 regulator-max-microvolt = <2800000>;
185 regulator-always-on;
186 vin-supply = <&vbat>;
187 };
188
189 pcie0_3p3v_dual: vldo-3v3-regulator {
190 compatible = "regulator-fixed";
191 regulator-name = "VLDO_3V3";
192
193 vin-supply = <&vbat>;
194 regulator-min-microvolt = <3300000>;
195 regulator-max-microvolt = <3300000>;
196
197 gpio = <&tlmm 90 GPIO_ACTIVE_HIGH>;
198 enable-active-high;
199 /*
200 * FIXME: this regulator is responsible for VBUS on the left USB
201 * port. Keep it always on until we can correctly model this
202 * relationship.
203 */
204 regulator-always-on;
205
206 pinctrl-names = "default";
207 pinctrl-0 = <&pcie0_pwren_state>;
208 };
209
210 v5p0_hdmiout: v5p0-hdmiout-regulator {
211 compatible = "regulator-fixed";
212 regulator-name = "V5P0_HDMIOUT";
213
214 vin-supply = <&vdc_5v>;
215 regulator-min-microvolt = <500000>;
216 regulator-max-microvolt = <500000>;
217
218 /*
219 * TODO: make it possible to drive same GPIO from two clients
220 * gpio = <&tlmm 89 GPIO_ACTIVE_HIGH>;
221 * enable-active-high;
222 */
223 };
224
225 vbat: vbat-regulator {
226 compatible = "regulator-fixed";
227 regulator-name = "VBAT";
228
229 vin-supply = <&dc12v>;
230 regulator-min-microvolt = <4200000>;
231 regulator-max-microvolt = <4200000>;
232 regulator-always-on;
233 };
234
235 vbat_som: vbat-som-regulator {
236 compatible = "regulator-fixed";
237 regulator-name = "VBAT_SOM";
238
239 vin-supply = <&dc12v>;
240 regulator-min-microvolt = <4200000>;
241 regulator-max-microvolt = <4200000>;
242 regulator-always-on;
243 };
244
245 vdc_3v3: vdc-3v3-regulator {
246 compatible = "regulator-fixed";
247 regulator-name = "VDC_3V3";
248 vin-supply = <&dc12v>;
249 regulator-min-microvolt = <3300000>;
250 regulator-max-microvolt = <3300000>;
251 regulator-always-on;
252 };
253
254 vdc_5v: vdc-5v-regulator {
255 compatible = "regulator-fixed";
256 regulator-name = "VDC_5V";
257
258 vin-supply = <&dc12v>;
259 regulator-min-microvolt = <500000>;
260 regulator-max-microvolt = <500000>;
261 regulator-always-on;
262 };
263
264 vreg_s4a_1p8: vreg-s4a-1p8 {
265 compatible = "regulator-fixed";
266 regulator-name = "vreg_s4a_1p8";
267
268 regulator-min-microvolt = <1800000>;
269 regulator-max-microvolt = <1800000>;
270 regulator-always-on;
271 };
272
273 vph_pwr: vph-pwr-regulator {
274 compatible = "regulator-fixed";
275 regulator-name = "vph_pwr";
276
277 vin-supply = <&vbat_som>;
278 };
279 };
280
281 &adsp_pas {
282 status = "okay";
283
284 firmware-name = "qcom/sdm845/adsp.mbn";
285 };
286
287 &apps_rsc {
288 regulators-0 {
289 compatible = "qcom,pm8998-rpmh-regulators";
290 qcom,pmic-id = "a";
291 vdd-s1-supply = <&vph_pwr>;
292 vdd-s2-supply = <&vph_pwr>;
293 vdd-s3-supply = <&vph_pwr>;
294 vdd-s4-supply = <&vph_pwr>;
295 vdd-s5-supply = <&vph_pwr>;
296 vdd-s6-supply = <&vph_pwr>;
297 vdd-s7-supply = <&vph_pwr>;
298 vdd-s8-supply = <&vph_pwr>;
299 vdd-s9-supply = <&vph_pwr>;
300 vdd-s10-supply = <&vph_pwr>;
301 vdd-s11-supply = <&vph_pwr>;
302 vdd-s12-supply = <&vph_pwr>;
303 vdd-s13-supply = <&vph_pwr>;
304 vdd-l1-l27-supply = <&vreg_s7a_1p025>;
305 vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>;
306 vdd-l3-l11-supply = <&vreg_s7a_1p025>;
307 vdd-l4-l5-supply = <&vreg_s7a_1p025>;
308 vdd-l6-supply = <&vph_pwr>;
309 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>;
310 vdd-l9-supply = <&vreg_bob>;
311 vdd-l10-l23-l25-supply = <&vreg_bob>;
312 vdd-l13-l19-l21-supply = <&vreg_bob>;
313 vdd-l16-l28-supply = <&vreg_bob>;
314 vdd-l18-l22-supply = <&vreg_bob>;
315 vdd-l20-l24-supply = <&vreg_bob>;
316 vdd-l26-supply = <&vreg_s3a_1p35>;
317 vin-lvs-1-2-supply = <&vreg_s4a_1p8>;
318
319 vreg_s3a_1p35: smps3 {
320 regulator-min-microvolt = <1352000>;
321 regulator-max-microvolt = <1352000>;
322 };
323
324 vreg_s5a_2p04: smps5 {
325 regulator-min-microvolt = <1904000>;
326 regulator-max-microvolt = <2040000>;
327 };
328
329 vreg_s7a_1p025: smps7 {
330 regulator-min-microvolt = <900000>;
331 regulator-max-microvolt = <1028000>;
332 };
333
334 vreg_l1a_0p875: ldo1 {
335 regulator-min-microvolt = <880000>;
336 regulator-max-microvolt = <880000>;
337 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
338 };
339
340 vreg_l5a_0p8: ldo5 {
341 regulator-min-microvolt = <800000>;
342 regulator-max-microvolt = <800000>;
343 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
344 };
345
346 vreg_l12a_1p8: ldo12 {
347 regulator-min-microvolt = <1800000>;
348 regulator-max-microvolt = <1800000>;
349 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
350 };
351
352 vreg_l7a_1p8: ldo7 {
353 regulator-min-microvolt = <1800000>;
354 regulator-max-microvolt = <1800000>;
355 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
356 };
357
358 vreg_l13a_2p95: ldo13 {
359 regulator-min-microvolt = <1800000>;
360 regulator-max-microvolt = <2960000>;
361 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
362 };
363
364 vreg_l17a_1p3: ldo17 {
365 regulator-min-microvolt = <1304000>;
366 regulator-max-microvolt = <1304000>;
367 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
368 };
369
370 vreg_l20a_2p95: ldo20 {
371 regulator-min-microvolt = <2960000>;
372 regulator-max-microvolt = <2968000>;
373 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
374 };
375
376 vreg_l21a_2p95: ldo21 {
377 regulator-min-microvolt = <2960000>;
378 regulator-max-microvolt = <2968000>;
379 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
380 };
381
382 vreg_l23a_3p3: ldo23 {
383 regulator-min-microvolt = <3300000>;
384 regulator-max-microvolt = <3312000>;
385 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
386 };
387
388 vreg_l24a_3p075: ldo24 {
389 regulator-min-microvolt = <3088000>;
390 regulator-max-microvolt = <3088000>;
391 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
392 };
393
394 vreg_l25a_3p3: ldo25 {
395 regulator-min-microvolt = <3300000>;
396 regulator-max-microvolt = <3312000>;
397 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
398 };
399
400 vreg_l26a_1p2: ldo26 {
401 regulator-min-microvolt = <1200000>;
402 regulator-max-microvolt = <1200000>;
403 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
404 };
405
406 vreg_lvs1a_1p8: lvs1 {
407 regulator-min-microvolt = <1800000>;
408 regulator-max-microvolt = <1800000>;
409 regulator-always-on;
410 };
411
412 vreg_lvs2a_1p8: lvs2 {
413 regulator-min-microvolt = <1800000>;
414 regulator-max-microvolt = <1800000>;
415 regulator-always-on;
416 };
417 };
418
419 regulators-1 {
420 compatible = "qcom,pmi8998-rpmh-regulators";
421 qcom,pmic-id = "b";
422
423 vdd-bob-supply = <&vph_pwr>;
424
425 vreg_bob: bob {
426 regulator-min-microvolt = <3312000>;
427 regulator-max-microvolt = <3600000>;
428 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
429 regulator-allow-bypass;
430 };
431 };
432 };
433
434 &camss {
435 status = "okay";
436
437 vdda-phy-supply = <&vreg_l1a_0p875>;
438 vdda-pll-supply = <&vreg_l26a_1p2>;
439 };
440
441 &cdsp_pas {
442 status = "okay";
443 firmware-name = "qcom/sdm845/cdsp.mbn";
444 };
445
446 &gcc {
447 protected-clocks = <GCC_QSPI_CORE_CLK>,
448 <GCC_QSPI_CORE_CLK_SRC>,
449 <GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
450 <GCC_LPASS_Q6_AXI_CLK>,
451 <GCC_LPASS_SWAY_CLK>;
452 };
453
454 &gpi_dma0 {
455 status = "okay";
456 };
457
458 &gpi_dma1 {
459 status = "okay";
460 };
461
462 &gpu {
463 status = "okay";
464 };
465
466 &gpu_zap_shader {
467 firmware-name = "qcom/sdm845/a630_zap.mbn";
468 };
469
470 &i2c10 {
471 status = "okay";
472 clock-frequency = <400000>;
473
474 lt9611_codec: hdmi-bridge@3b {
475 compatible = "lontium,lt9611";
476 reg = <0x3b>;
477 #sound-dai-cells = <1>;
478
479 interrupts-extended = <&tlmm 84 IRQ_TYPE_EDGE_FALLING>;
480
481 reset-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>;
482
483 vdd-supply = <&lt9611_1v8>;
484 vcc-supply = <&lt9611_3v3>;
485
486 pinctrl-names = "default";
487 pinctrl-0 = <&lt9611_irq_pin>, <&dsi_sw_sel>;
488
489 ports {
490 #address-cells = <1>;
491 #size-cells = <0>;
492
493 port@0 {
494 reg = <0>;
495
496 lt9611_a: endpoint {
497 remote-endpoint = <&mdss_dsi0_out>;
498 };
499 };
500
501 port@1 {
502 reg = <1>;
503
504 lt9611_b: endpoint {
505 remote-endpoint = <&mdss_dsi1_out>;
506 };
507 };
508
509 port@2 {
510 reg = <2>;
511
512 lt9611_out: endpoint {
513 remote-endpoint = <&hdmi_con>;
514 };
515 };
516 };
517 };
518 };
519
520 &i2c11 {
521 /* On Low speed expansion */
522 clock-frequency = <100000>;
523 status = "okay";
524 };
525
526 &i2c14 {
527 /* On Low speed expansion */
528 clock-frequency = <100000>;
529 status = "okay";
530 };
531
532 &mdss {
533 memory-region = <&cont_splash_mem>;
534 status = "okay";
535 };
536
537 &mdss_dsi0 {
538 status = "okay";
539 vdda-supply = <&vreg_l26a_1p2>;
540
541 qcom,dual-dsi-mode;
542 qcom,master-dsi;
543 };
544
545 &mdss_dsi0_out {
546 remote-endpoint = <&lt9611_a>;
547 data-lanes = <0 1 2 3>;
548 };
549
550 &mdss_dsi0_phy {
551 status = "okay";
552 vdds-supply = <&vreg_l1a_0p875>;
553 };
554
555 &mdss_dsi1 {
556 vdda-supply = <&vreg_l26a_1p2>;
557
558 qcom,dual-dsi-mode;
559
560 /* DSI1 is slave, so use DSI0 clocks */
561 assigned-clock-parents = <&mdss_dsi0_phy DSI_BYTE_PLL_CLK>,
562 <&mdss_dsi0_phy DSI_PIXEL_PLL_CLK>;
563
564 status = "okay";
565 };
566
567 &mdss_dsi1_out {
568 remote-endpoint = <&lt9611_b>;
569 data-lanes = <0 1 2 3>;
570 };
571
572 &mdss_dsi1_phy {
573 vdds-supply = <&vreg_l1a_0p875>;
574 status = "okay";
575 };
576
577 &mss_pil {
578 status = "okay";
579 firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mbn";
580 };
581
582 &pcie0 {
583 status = "okay";
584 perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
585 wake-gpios = <&tlmm 134 GPIO_ACTIVE_HIGH>;
586
587 vddpe-3v3-supply = <&pcie0_3p3v_dual>;
588
589 pinctrl-names = "default";
590 pinctrl-0 = <&pcie0_default_state>;
591 };
592
593 &pcie0_phy {
594 status = "okay";
595
596 vdda-phy-supply = <&vreg_l1a_0p875>;
597 vdda-pll-supply = <&vreg_l26a_1p2>;
598 };
599
600 &pcie1 {
601 status = "okay";
602 perst-gpios = <&tlmm 102 GPIO_ACTIVE_LOW>;
603
604 pinctrl-names = "default";
605 pinctrl-0 = <&pcie1_default_state>;
606 };
607
608 &pcie1_phy {
609 status = "okay";
610
611 vdda-phy-supply = <&vreg_l1a_0p875>;
612 vdda-pll-supply = <&vreg_l26a_1p2>;
613 };
614
615 &pm8998_gpios {
616 gpio-line-names =
617 "NC",
618 "NC",
619 "WLAN_SW_CTRL",
620 "NC",
621 "PM_GPIO5_BLUE_BT_LED",
622 "VOL_UP_N",
623 "NC",
624 "ADC_IN1",
625 "PM_GPIO9_YEL_WIFI_LED",
626 "CAM0_AVDD_EN",
627 "NC",
628 "CAM0_DVDD_EN",
629 "PM_GPIO13_GREEN_U4_LED",
630 "DIV_CLK2",
631 "NC",
632 "NC",
633 "NC",
634 "SMB_STAT",
635 "NC",
636 "NC",
637 "ADC_IN2",
638 "OPTION1",
639 "WCSS_PWR_REQ",
640 "PM845_GPIO24",
641 "OPTION2",
642 "PM845_SLB";
643
644 cam0_dvdd_1v2_en_default: cam0-dvdd-1v2-en-state {
645 pins = "gpio12";
646 function = "normal";
647
648 bias-pull-up;
649 drive-push-pull;
650 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
651 };
652
653 cam0_avdd_2v8_en_default: cam0-avdd-2v8-en-state {
654 pins = "gpio10";
655 function = "normal";
656
657 bias-pull-up;
658 drive-push-pull;
659 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
660 };
661
662 vol_up_pin_a: vol-up-active-state {
663 pins = "gpio6";
664 function = "normal";
665 input-enable;
666 bias-pull-up;
667 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
668 };
669 };
670
671 &pm8998_resin {
672 linux,code = <KEY_VOLUMEDOWN>;
673 status = "okay";
674 };
675
676 &pmi8998_lpg {
677 status = "okay";
678
679 qcom,power-source = <1>;
680
681 led@3 {
682 reg = <3>;
683 color = <LED_COLOR_ID_GREEN>;
684 function = LED_FUNCTION_HEARTBEAT;
685 function-enumerator = <3>;
686
687 linux,default-trigger = "heartbeat";
688 default-state = "on";
689 };
690
691 led@4 {
692 reg = <4>;
693 color = <LED_COLOR_ID_GREEN>;
694 function = LED_FUNCTION_INDICATOR;
695 function-enumerator = <2>;
696 };
697
698 led@5 {
699 reg = <5>;
700 color = <LED_COLOR_ID_GREEN>;
701 function = LED_FUNCTION_INDICATOR;
702 function-enumerator = <1>;
703 };
704 };
705
706 /* QUAT I2S Uses 4 I2S SD Lines for audio on LT9611 HDMI Bridge */
707 &q6afedai {
708 dai@22 {
709 reg = <QUATERNARY_MI2S_RX>;
710 qcom,sd-lines = <0 1 2 3>;
711 };
712 };
713
714 &q6asmdai {
715 dai@0 {
716 reg = <MSM_FRONTEND_DAI_MULTIMEDIA1>;
717 };
718
719 dai@1 {
720 reg = <MSM_FRONTEND_DAI_MULTIMEDIA2>;
721 };
722
723 dai@2 {
724 reg = <MSM_FRONTEND_DAI_MULTIMEDIA3>;
725 };
726
727 dai@3 {
728 reg = <MSM_FRONTEND_DAI_MULTIMEDIA4>;
729 direction = <2>;
730 is-compress-dai;
731 };
732 };
733
734 &qupv3_id_0 {
735 status = "okay";
736 };
737
738 &qupv3_id_1 {
739 status = "okay";
740 };
741
742 &sdhc_2 {
743 status = "okay";
744
745 pinctrl-names = "default";
746 pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>;
747
748 vmmc-supply = <&vreg_l21a_2p95>;
749 vqmmc-supply = <&vreg_l13a_2p95>;
750
751 bus-width = <4>;
752 cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
753 };
754
755 &slpi_pas {
756 firmware-name = "qcom/sdm845/Thundercomm/db845c/slpi.mbn";
757
758 status = "okay";
759 };
760
761 &sound {
762 compatible = "qcom,db845c-sndcard", "qcom,sdm845-sndcard";
763 pinctrl-0 = <&quat_mi2s_active
764 &quat_mi2s_sd0_active
765 &quat_mi2s_sd1_active
766 &quat_mi2s_sd2_active
767 &quat_mi2s_sd3_active>;
768 pinctrl-names = "default";
769 model = "DB845c";
770 audio-routing =
771 "RX_BIAS", "MCLK",
772 "AMIC1", "MIC BIAS1",
773 "AMIC2", "MIC BIAS2",
774 "DMIC0", "MIC BIAS1",
775 "DMIC1", "MIC BIAS1",
776 "DMIC2", "MIC BIAS3",
777 "DMIC3", "MIC BIAS3",
778 "SpkrLeft IN", "SPK1 OUT",
779 "SpkrRight IN", "SPK2 OUT";
780
781 mm1-dai-link {
782 link-name = "MultiMedia1";
783 cpu {
784 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
785 };
786 };
787
788 mm2-dai-link {
789 link-name = "MultiMedia2";
790 cpu {
791 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
792 };
793 };
794
795 mm3-dai-link {
796 link-name = "MultiMedia3";
797 cpu {
798 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
799 };
800 };
801
802 mm4-dai-link {
803 link-name = "MultiMedia4";
804 cpu {
805 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>;
806 };
807 };
808
809 hdmi-dai-link {
810 link-name = "HDMI Playback";
811 cpu {
812 sound-dai = <&q6afedai QUATERNARY_MI2S_RX>;
813 };
814
815 platform {
816 sound-dai = <&q6routing>;
817 };
818
819 codec {
820 sound-dai = <&lt9611_codec 0>;
821 };
822 };
823
824 slim-dai-link {
825 link-name = "SLIM Playback";
826 cpu {
827 sound-dai = <&q6afedai SLIMBUS_0_RX>;
828 };
829
830 platform {
831 sound-dai = <&q6routing>;
832 };
833
834 codec {
835 sound-dai = <&left_spkr>, <&right_spkr>, <&swm 0>, <&wcd9340 0>;
836 };
837 };
838
839 slimcap-dai-link {
840 link-name = "SLIM Capture";
841 cpu {
842 sound-dai = <&q6afedai SLIMBUS_0_TX>;
843 };
844
845 platform {
846 sound-dai = <&q6routing>;
847 };
848
849 codec {
850 sound-dai = <&wcd9340 1>;
851 };
852 };
853 };
854
855 &spi0 {
856 status = "okay";
857 pinctrl-names = "default";
858 pinctrl-0 = <&qup_spi0_default>;
859
860 can@0 {
861 compatible = "microchip,mcp2517fd";
862 reg = <0>;
863 clocks = <&clk40m>;
864 interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>;
865 spi-max-frequency = <10000000>;
866 vdd-supply = <&vdc_5v>;
867 xceiver-supply = <&vdc_5v>;
868 };
869 };
870
871 &spi2 {
872 /* On Low speed expansion */
873 status = "okay";
874 };
875
876 &tlmm {
877 cam0_default: cam0-default-state {
878 rst-pins {
879 pins = "gpio9";
880 function = "gpio";
881
882 drive-strength = <16>;
883 bias-disable;
884 };
885
886 mclk0-pins {
887 pins = "gpio13";
888 function = "cam_mclk";
889
890 drive-strength = <16>;
891 bias-disable;
892 };
893 };
894
895 cam3_default: cam3-default-state {
896 rst-pins {
897 function = "gpio";
898 pins = "gpio21";
899
900 drive-strength = <16>;
901 bias-disable;
902 };
903
904 mclk3-pins {
905 function = "cam_mclk";
906 pins = "gpio16";
907
908 drive-strength = <16>;
909 bias-disable;
910 };
911 };
912
913 dsi_sw_sel: dsi-sw-sel-state {
914 pins = "gpio120";
915 function = "gpio";
916
917 drive-strength = <2>;
918 bias-disable;
919 output-high;
920 };
921
922 lt9611_irq_pin: lt9611-irq-state {
923 pins = "gpio84";
924 function = "gpio";
925 bias-disable;
926 };
927
928 pcie0_default_state: pcie0-default-state {
929 clkreq-pins {
930 pins = "gpio36";
931 function = "pci_e0";
932 bias-pull-up;
933 };
934
935 reset-n-pins {
936 pins = "gpio35";
937 function = "gpio";
938
939 drive-strength = <2>;
940 output-low;
941 bias-pull-down;
942 };
943
944 wake-n-pins {
945 pins = "gpio37";
946 function = "gpio";
947
948 drive-strength = <2>;
949 bias-pull-up;
950 };
951 };
952
953 pcie0_pwren_state: pcie0-pwren-state {
954 pins = "gpio90";
955 function = "gpio";
956
957 drive-strength = <2>;
958 bias-disable;
959 };
960
961 pcie1_default_state: pcie1-default-state {
962 perst-n-pins {
963 pins = "gpio102";
964 function = "gpio";
965
966 drive-strength = <16>;
967 bias-disable;
968 };
969
970 clkreq-pins {
971 pins = "gpio103";
972 function = "pci_e1";
973 bias-pull-up;
974 };
975
976 wake-n-pins {
977 pins = "gpio11";
978 function = "gpio";
979
980 drive-strength = <2>;
981 bias-pull-up;
982 };
983
984 reset-n-pins {
985 pins = "gpio75";
986 function = "gpio";
987
988 drive-strength = <16>;
989 bias-pull-up;
990 output-high;
991 };
992 };
993
994 sdc2_default_state: sdc2-default-state {
995 clk-pins {
996 pins = "sdc2_clk";
997 bias-disable;
998
999 /*
1000 * It seems that mmc_test reports errors if drive
1001 * strength is not 16 on clk, cmd, and data pins.
1002 */
1003 drive-strength = <16>;
1004 };
1005
1006 cmd-pins {
1007 pins = "sdc2_cmd";
1008 bias-pull-up;
1009 drive-strength = <10>;
1010 };
1011
1012 data-pins {
1013 pins = "sdc2_data";
1014 bias-pull-up;
1015 drive-strength = <10>;
1016 };
1017 };
1018
1019 sdc2_card_det_n: sd-card-det-n-state {
1020 pins = "gpio126";
1021 function = "gpio";
1022 bias-pull-up;
1023 };
1024 };
1025
1026 &uart3 {
1027 label = "LS-UART0";
1028 pinctrl-0 = <&qup_uart3_4pin>;
1029
1030 status = "disabled";
1031 };
1032
1033 &uart6 {
1034 status = "okay";
1035
1036 pinctrl-0 = <&qup_uart6_4pin>;
1037
1038 bluetooth {
1039 compatible = "qcom,wcn3990-bt";
1040
1041 vddio-supply = <&vreg_s4a_1p8>;
1042 vddxo-supply = <&vreg_l7a_1p8>;
1043 vddrf-supply = <&vreg_l17a_1p3>;
1044 vddch0-supply = <&vreg_l25a_3p3>;
1045 max-speed = <3200000>;
1046 };
1047 };
1048
1049 &uart9 {
1050 label = "LS-UART1";
1051 status = "okay";
1052 };
1053
1054 &usb_1 {
1055 status = "okay";
1056 };
1057
1058 &usb_1_dwc3 {
1059 dr_mode = "peripheral";
1060 };
1061
1062 &usb_1_hsphy {
1063 status = "okay";
1064
1065 vdd-supply = <&vreg_l1a_0p875>;
1066 vdda-pll-supply = <&vreg_l12a_1p8>;
1067 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
1068
1069 qcom,imp-res-offset-value = <8>;
1070 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
1071 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
1072 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
1073 };
1074
1075 &usb_1_qmpphy {
1076 status = "okay";
1077
1078 vdda-phy-supply = <&vreg_l26a_1p2>;
1079 vdda-pll-supply = <&vreg_l1a_0p875>;
1080 };
1081
1082 &usb_2 {
1083 status = "okay";
1084 };
1085
1086 &usb_2_dwc3 {
1087 dr_mode = "host";
1088 };
1089
1090 &usb_2_hsphy {
1091 status = "okay";
1092
1093 vdd-supply = <&vreg_l1a_0p875>;
1094 vdda-pll-supply = <&vreg_l12a_1p8>;
1095 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
1096
1097 qcom,imp-res-offset-value = <8>;
1098 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_22_8_MA>;
1099 };
1100
1101 &usb_2_qmpphy {
1102 status = "okay";
1103
1104 vdda-phy-supply = <&vreg_l26a_1p2>;
1105 vdda-pll-supply = <&vreg_l1a_0p875>;
1106 };
1107
1108 &ufs_mem_hc {
1109 status = "okay";
1110
1111 reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
1112
1113 vcc-supply = <&vreg_l20a_2p95>;
1114 vcc-max-microamp = <800000>;
1115 };
1116
1117 &ufs_mem_phy {
1118 status = "okay";
1119
1120 vdda-phy-supply = <&vreg_l1a_0p875>;
1121 vdda-pll-supply = <&vreg_l26a_1p2>;
1122 };
1123
1124 &venus {
1125 status = "okay";
1126 };
1127
1128 &wcd9340 {
1129 reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
1130 vdd-buck-supply = <&vreg_s4a_1p8>;
1131 vdd-buck-sido-supply = <&vreg_s4a_1p8>;
1132 vdd-tx-supply = <&vreg_s4a_1p8>;
1133 vdd-rx-supply = <&vreg_s4a_1p8>;
1134 vdd-io-supply = <&vreg_s4a_1p8>;
1135
1136 swm: soundwire@c85 {
1137 left_spkr: speaker@0,1 {
1138 compatible = "sdw10217201000";
1139 reg = <0 1>;
1140 powerdown-gpios = <&wcdgpio 1 GPIO_ACTIVE_HIGH>;
1141 #thermal-sensor-cells = <0>;
1142 sound-name-prefix = "SpkrLeft";
1143 #sound-dai-cells = <0>;
1144 };
1145
1146 right_spkr: speaker@0,2 {
1147 compatible = "sdw10217201000";
1148 powerdown-gpios = <&wcdgpio 1 GPIO_ACTIVE_HIGH>;
1149 reg = <0 2>;
1150 #thermal-sensor-cells = <0>;
1151 sound-name-prefix = "SpkrRight";
1152 #sound-dai-cells = <0>;
1153 };
1154 };
1155 };
1156
1157 &wifi {
1158 status = "okay";
1159
1160 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
1161 vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
1162 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
1163 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
1164 vdd-3.3-ch1-supply = <&vreg_l23a_3p3>;
1165
1166 qcom,snoc-host-cap-8bit-quirk;
1167 qcom,calibration-variant = "Thundercomm_DB845C";
1168 };
1169
1170 /* PINCTRL - additions to nodes defined in sdm845.dtsi */
1171 &qup_spi2_default {
1172 drive-strength = <16>;
1173 };
1174
1175 &qup_i2c10_default {
1176 drive-strength = <2>;
1177 bias-disable;
1178 };
1179
1180 &qup_uart9_rx {
1181 drive-strength = <2>;
1182 bias-pull-up;
1183 };
1184
1185 &qup_uart9_tx {
1186 drive-strength = <2>;
1187 bias-disable;
1188 };
1189
1190 /* PINCTRL - additions to nodes defined in sdm845.dtsi */
1191 &qup_spi0_default {
1192 drive-strength = <6>;
1193 bias-disable;
1194 };