1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2023 Linaro Limited
4 */
5
6/dts-v1/;
7
8#include <dt-bindings/leds/common.h>
9#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
10#include "sm8550.dtsi"
11#include "pm8010.dtsi"
12#include "pm8550.dtsi"
13#include "pm8550b.dtsi"
14#include "pm8550ve.dtsi"
15#include "pm8550vs.dtsi"
16#include "pmk8550.dtsi"
17#include "pmr735d.dtsi"
18
19/ {
20	model = "Qualcomm Technologies, Inc. SM8550 QRD";
21	compatible = "qcom,sm8550-qrd", "qcom,sm8550";
22
23	aliases {
24		serial0 = &uart7;
25	};
26
27	wcd938x: audio-codec {
28		compatible = "qcom,wcd9385-codec";
29
30		pinctrl-names = "default";
31		pinctrl-0 = <&wcd_default>;
32
33		qcom,micbias1-microvolt = <1800000>;
34		qcom,micbias2-microvolt = <1800000>;
35		qcom,micbias3-microvolt = <1800000>;
36		qcom,micbias4-microvolt = <1800000>;
37		qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
38		qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
39		qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
40		qcom,rx-device = <&wcd_rx>;
41		qcom,tx-device = <&wcd_tx>;
42
43		reset-gpios = <&tlmm 108 GPIO_ACTIVE_LOW>;
44
45		vdd-buck-supply = <&vreg_l15b_1p8>;
46		vdd-rxtx-supply = <&vreg_l15b_1p8>;
47		vdd-io-supply = <&vreg_l15b_1p8>;
48		vdd-mic-bias-supply = <&vreg_bob1>;
49
50		#sound-dai-cells = <1>;
51	};
52
53	chosen {
54		stdout-path = "serial0:115200n8";
55	};
56
57	gpio-keys {
58		compatible = "gpio-keys";
59
60		pinctrl-0 = <&volume_up_n>;
61		pinctrl-names = "default";
62
63		key-volume-up {
64			label = "Volume Up";
65			linux,code = <KEY_VOLUMEUP>;
66			gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>;
67			debounce-interval = <15>;
68			linux,can-disable;
69			wakeup-source;
70		};
71	};
72
73	pmic-glink {
74		compatible = "qcom,sm8550-pmic-glink", "qcom,pmic-glink";
75		#address-cells = <1>;
76		#size-cells = <0>;
77
78		connector@0 {
79			compatible = "usb-c-connector";
80			reg = <0>;
81			power-role = "dual";
82			data-role = "dual";
83
84			ports {
85				#address-cells = <1>;
86				#size-cells = <0>;
87
88				port@0 {
89					reg = <0>;
90
91					pmic_glink_hs_in: endpoint {
92						remote-endpoint = <&usb_1_dwc3_hs>;
93					};
94				};
95
96				port@1 {
97					reg = <1>;
98
99					pmic_glink_ss_in: endpoint {
100						remote-endpoint = <&usb_1_dwc3_ss>;
101					};
102				};
103			};
104		};
105	};
106
107	sound {
108		compatible = "qcom,sm8550-sndcard", "qcom,sm8450-sndcard";
109		model = "SM8550-QRD";
110		audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
111				"SpkrRight IN", "WSA_SPK2 OUT",
112				"IN1_HPHL", "HPHL_OUT",
113				"IN2_HPHR", "HPHR_OUT",
114				"AMIC2", "MIC BIAS2",
115				"VA DMIC0", "MIC BIAS1",
116				"VA DMIC1", "MIC BIAS1",
117				"VA DMIC2", "MIC BIAS3",
118				"TX DMIC0", "MIC BIAS1",
119				"TX DMIC1", "MIC BIAS2",
120				"TX DMIC2", "MIC BIAS3",
121				"TX SWR_ADC1", "ADC2_OUTPUT";
122
123		wcd-playback-dai-link {
124			link-name = "WCD Playback";
125
126			cpu {
127				sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
128			};
129
130			codec {
131				sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>;
132			};
133
134			platform {
135				sound-dai = <&q6apm>;
136			};
137		};
138
139		wcd-capture-dai-link {
140			link-name = "WCD Capture";
141
142			cpu {
143				sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
144			};
145
146			codec {
147				sound-dai = <&wcd938x 1>, <&swr2 0>, <&lpass_txmacro 0>;
148			};
149
150			platform {
151				sound-dai = <&q6apm>;
152			};
153		};
154
155		wsa-dai-link {
156			link-name = "WSA Playback";
157
158			cpu {
159				sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
160			};
161
162			codec {
163				sound-dai = <&north_spkr>, <&south_spkr>, <&swr0 0>, <&lpass_wsamacro 0>;
164			};
165
166			platform {
167				sound-dai = <&q6apm>;
168			};
169		};
170
171		va-dai-link {
172			link-name = "VA Capture";
173
174			cpu {
175				sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
176			};
177
178			codec {
179				sound-dai = <&lpass_vamacro 0>;
180			};
181
182			platform {
183				sound-dai = <&q6apm>;
184			};
185		};
186	};
187
188	vph_pwr: vph-pwr-regulator {
189		compatible = "regulator-fixed";
190		regulator-name = "vph_pwr";
191		regulator-min-microvolt = <3700000>;
192		regulator-max-microvolt = <3700000>;
193
194		regulator-always-on;
195		regulator-boot-on;
196	};
197};
198
199&apps_rsc {
200	regulators-0 {
201		compatible = "qcom,pm8550-rpmh-regulators";
202		qcom,pmic-id = "b";
203
204		vdd-bob1-supply = <&vph_pwr>;
205		vdd-bob2-supply = <&vph_pwr>;
206		vdd-l1-l4-l10-supply = <&vreg_s6g_1p86>;
207		vdd-l2-l13-l14-supply = <&vreg_bob1>;
208		vdd-l3-supply = <&vreg_s4g_1p25>;
209		vdd-l5-l16-supply = <&vreg_bob1>;
210		vdd-l6-l7-supply = <&vreg_bob1>;
211		vdd-l8-l9-supply = <&vreg_bob1>;
212		vdd-l11-supply = <&vreg_s4g_1p25>;
213		vdd-l12-supply = <&vreg_s6g_1p86>;
214		vdd-l15-supply = <&vreg_s6g_1p86>;
215		vdd-l17-supply = <&vreg_bob2>;
216
217		vreg_bob1: bob1 {
218			regulator-name = "vreg_bob1";
219			regulator-min-microvolt = <3296000>;
220			regulator-max-microvolt = <3960000>;
221			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
222		};
223
224		vreg_bob2: bob2 {
225			regulator-name = "vreg_bob2";
226			regulator-min-microvolt = <2720000>;
227			regulator-max-microvolt = <3960000>;
228			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
229		};
230
231		vreg_l1b_1p8: ldo1 {
232			regulator-name = "vreg_l1b_1p8";
233			regulator-min-microvolt = <1800000>;
234			regulator-max-microvolt = <1800000>;
235			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
236		};
237
238		vreg_l2b_3p0: ldo2 {
239			regulator-name = "vreg_l2b_3p0";
240			regulator-min-microvolt = <3008000>;
241			regulator-max-microvolt = <3008000>;
242			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
243		};
244
245		vreg_l5b_3p1: ldo5 {
246			regulator-name = "vreg_l5b_3p1";
247			regulator-min-microvolt = <3104000>;
248			regulator-max-microvolt = <3104000>;
249			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
250		};
251
252		vreg_l6b_1p8: ldo6 {
253			regulator-name = "vreg_l6b_1p8";
254			regulator-min-microvolt = <1800000>;
255			regulator-max-microvolt = <3008000>;
256			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
257		};
258
259		vreg_l7b_1p8: ldo7 {
260			regulator-name = "vreg_l7b_1p8";
261			regulator-min-microvolt = <1800000>;
262			regulator-max-microvolt = <3008000>;
263			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
264		};
265
266		vreg_l8b_1p8: ldo8 {
267			regulator-name = "vreg_l8b_1p8";
268			regulator-min-microvolt = <1800000>;
269			regulator-max-microvolt = <3008000>;
270			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
271		};
272
273		vreg_l9b_2p9: ldo9 {
274			regulator-name = "vreg_l9b_2p9";
275			regulator-min-microvolt = <2960000>;
276			regulator-max-microvolt = <3008000>;
277			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
278		};
279
280		vreg_l11b_1p2: ldo11 {
281			regulator-name = "vreg_l11b_1p2";
282			regulator-min-microvolt = <1200000>;
283			regulator-max-microvolt = <1504000>;
284			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
285		};
286
287		vreg_l12b_1p8: ldo12 {
288			regulator-name = "vreg_l12b_1p8";
289			regulator-min-microvolt = <1800000>;
290			regulator-max-microvolt = <1800000>;
291			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
292		};
293
294		vreg_l13b_3p0: ldo13 {
295			regulator-name = "vreg_l13b_3p0";
296			regulator-min-microvolt = <3000000>;
297			regulator-max-microvolt = <3000000>;
298			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
299		};
300
301		vreg_l14b_3p2: ldo14 {
302			regulator-name = "vreg_l14b_3p2";
303			regulator-min-microvolt = <3200000>;
304			regulator-max-microvolt = <3200000>;
305			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
306		};
307
308		vreg_l15b_1p8: ldo15 {
309			regulator-name = "vreg_l15b_1p8";
310			regulator-min-microvolt = <1800000>;
311			regulator-max-microvolt = <1800000>;
312			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
313		};
314
315		vreg_l16b_2p8: ldo16 {
316			regulator-name = "vreg_l16b_2p8";
317			regulator-min-microvolt = <2800000>;
318			regulator-max-microvolt = <2800000>;
319			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
320		};
321
322		vreg_l17b_2p5: ldo17 {
323			regulator-name = "vreg_l17b_2p5";
324			regulator-min-microvolt = <2504000>;
325			regulator-max-microvolt = <2504000>;
326			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
327		};
328	};
329
330	regulators-1 {
331		compatible = "qcom,pm8550vs-rpmh-regulators";
332		qcom,pmic-id = "c";
333
334		vdd-l1-supply = <&vreg_s4g_1p25>;
335		vdd-l2-supply = <&vreg_s4e_0p95>;
336		vdd-l3-supply = <&vreg_s4e_0p95>;
337
338		vreg_l3c_0p9: ldo3 {
339			regulator-name = "vreg_l3c_0p9";
340			regulator-min-microvolt = <880000>;
341			regulator-max-microvolt = <912000>;
342			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
343		};
344	};
345
346	regulators-2 {
347		compatible = "qcom,pm8550vs-rpmh-regulators";
348		qcom,pmic-id = "d";
349
350		vdd-l1-supply = <&vreg_s4e_0p95>;
351		vdd-l2-supply = <&vreg_s4e_0p95>;
352		vdd-l3-supply = <&vreg_s4e_0p95>;
353
354		vreg_l1d_0p88: ldo1 {
355			regulator-name = "vreg_l1d_0p88";
356			regulator-min-microvolt = <880000>;
357			regulator-max-microvolt = <920000>;
358			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
359		};
360
361		/* ldo2 supplies SM8550 VDD_LPI_MX */
362	};
363
364	regulators-3 {
365		compatible = "qcom,pm8550vs-rpmh-regulators";
366		qcom,pmic-id = "e";
367
368		vdd-l1-supply = <&vreg_s4e_0p95>;
369		vdd-l2-supply = <&vreg_s4e_0p95>;
370		vdd-l3-supply = <&vreg_s4g_1p25>;
371		vdd-s4-supply = <&vph_pwr>;
372		vdd-s5-supply = <&vph_pwr>;
373
374		vreg_s4e_0p95: smps4 {
375			regulator-name = "vreg_s4e_0p95";
376			regulator-min-microvolt = <904000>;
377			regulator-max-microvolt = <984000>;
378			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
379		};
380
381		vreg_s5e_1p08: smps5 {
382			regulator-name = "vreg_s5e_1p08";
383			regulator-min-microvolt = <1080000>;
384			regulator-max-microvolt = <1120000>;
385			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
386		};
387
388		vreg_l1e_0p88: ldo1 {
389			regulator-name = "vreg_l1e_0p88";
390			regulator-min-microvolt = <880000>;
391			regulator-max-microvolt = <880000>;
392			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
393		};
394
395		vreg_l2e_0p9: ldo2 {
396			regulator-name = "vreg_l2e_0p9";
397			regulator-min-microvolt = <904000>;
398			regulator-max-microvolt = <970000>;
399			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
400		};
401
402		vreg_l3e_1p2: ldo3 {
403			regulator-name = "vreg_l3e_1p2";
404			regulator-min-microvolt = <1200000>;
405			regulator-max-microvolt = <1200000>;
406			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
407		};
408	};
409
410	regulators-4 {
411		compatible = "qcom,pm8550ve-rpmh-regulators";
412		qcom,pmic-id = "f";
413
414		vdd-l1-supply = <&vreg_s4e_0p95>;
415		vdd-l2-supply = <&vreg_s4e_0p95>;
416		vdd-l3-supply = <&vreg_s4e_0p95>;
417		vdd-s4-supply = <&vph_pwr>;
418
419		vreg_s4f_0p5: smps4 {
420			regulator-name = "vreg_s4f_0p5";
421			regulator-min-microvolt = <500000>;
422			regulator-max-microvolt = <700000>;
423			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
424		};
425
426		vreg_l1f_0p9: ldo1 {
427			regulator-name = "vreg_l1f_0p9";
428			regulator-min-microvolt = <912000>;
429			regulator-max-microvolt = <912000>;
430			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
431		};
432
433		vreg_l2f_0p88: ldo2 {
434			regulator-name = "vreg_l2f_0p88";
435			regulator-min-microvolt = <880000>;
436			regulator-max-microvolt = <912000>;
437			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
438		};
439
440		vreg_l3f_0p88: ldo3 {
441			regulator-name = "vreg_l3f_0p88";
442			regulator-min-microvolt = <880000>;
443			regulator-max-microvolt = <912000>;
444			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
445		};
446	};
447
448	regulators-5 {
449		compatible = "qcom,pm8550vs-rpmh-regulators";
450		qcom,pmic-id = "g";
451
452		vdd-l1-supply = <&vreg_s4g_1p25>;
453		vdd-l2-supply = <&vreg_s4g_1p25>;
454		vdd-l3-supply = <&vreg_s4g_1p25>;
455		vdd-s1-supply = <&vph_pwr>;
456		vdd-s2-supply = <&vph_pwr>;
457		vdd-s3-supply = <&vph_pwr>;
458		vdd-s4-supply = <&vph_pwr>;
459		vdd-s5-supply = <&vph_pwr>;
460		vdd-s6-supply = <&vph_pwr>;
461
462		vreg_s1g_1p25: smps1 {
463			regulator-name = "vreg_s1g_1p25";
464			regulator-min-microvolt = <1200000>;
465			regulator-max-microvolt = <1300000>;
466			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
467		};
468
469		vreg_s2g_0p85: smps2 {
470			regulator-name = "vreg_s2g_0p85";
471			regulator-min-microvolt = <800000>;
472			regulator-max-microvolt = <1000000>;
473			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
474		};
475
476		vreg_s3g_0p8: smps3 {
477			regulator-name = "vreg_s3g_0p8";
478			regulator-min-microvolt = <300000>;
479			regulator-max-microvolt = <1004000>;
480			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
481		};
482
483		vreg_s4g_1p25: smps4 {
484			regulator-name = "vreg_s4g_1p25";
485			regulator-min-microvolt = <1200000>;
486			regulator-max-microvolt = <1352000>;
487			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
488		};
489
490		vreg_s5g_0p85: smps5 {
491			regulator-name = "vreg_s5g_0p85";
492			regulator-min-microvolt = <500000>;
493			regulator-max-microvolt = <1004000>;
494			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
495		};
496
497		vreg_s6g_1p86: smps6 {
498			regulator-name = "vreg_s6g_1p86";
499			regulator-min-microvolt = <1800000>;
500			regulator-max-microvolt = <2000000>;
501			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
502		};
503
504		vreg_l1g_1p2: ldo1 {
505			regulator-name = "vreg_l1g_1p2";
506			regulator-min-microvolt = <1200000>;
507			regulator-max-microvolt = <1200000>;
508			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
509		};
510
511		vreg_l3g_1p2: ldo3 {
512			regulator-name = "vreg_l3g_1p2";
513			regulator-min-microvolt = <1200000>;
514			regulator-max-microvolt = <1200000>;
515			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
516		};
517	};
518};
519
520&gcc {
521	clocks = <&bi_tcxo_div2>, <&sleep_clk>,
522		 <&pcie0_phy>,
523		 <&pcie1_phy>,
524		 <0>,
525		 <&ufs_mem_phy 0>,
526		 <&ufs_mem_phy 1>,
527		 <&ufs_mem_phy 2>,
528		 <&usb_dp_qmpphy QMP_USB43DP_USB3_PIPE_CLK>;
529};
530
531&lpass_tlmm {
532	spkr_1_sd_n_active: spkr-1-sd-n-active-state {
533		pins = "gpio17";
534		function = "gpio";
535		drive-strength = <16>;
536		bias-disable;
537		output-low;
538	};
539
540	spkr_2_sd_n_active: spkr-2-sd-n-active-state {
541		pins = "gpio18";
542		function = "gpio";
543		drive-strength = <16>;
544		bias-disable;
545		output-low;
546	};
547};
548
549&mdss {
550	status = "okay";
551};
552
553&mdss_dsi0 {
554	vdda-supply = <&vreg_l3e_1p2>;
555	status = "okay";
556
557	panel@0 {
558		compatible = "visionox,vtdr6130";
559		reg = <0>;
560
561		pinctrl-0 = <&sde_dsi_active>, <&sde_te_active>;
562		pinctrl-1 = <&sde_dsi_suspend>, <&sde_te_suspend>;
563		pinctrl-names = "default", "sleep";
564
565		vci-supply = <&vreg_l13b_3p0>;
566		vdd-supply = <&vreg_l11b_1p2>;
567		vddio-supply = <&vreg_l12b_1p8>;
568
569		reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>;
570
571		port {
572			panel0_in: endpoint {
573				remote-endpoint = <&mdss_dsi0_out>;
574			};
575		};
576	};
577};
578
579&mdss_dsi0_out {
580	remote-endpoint = <&panel0_in>;
581	data-lanes = <0 1 2 3>;
582};
583
584&mdss_dsi0_phy {
585	vdds-supply = <&vreg_l1e_0p88>;
586	status = "okay";
587};
588
589&pcie_1_phy_aux_clk {
590	status = "disabled";
591};
592
593&pcie0 {
594	wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
595	perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>;
596
597	pinctrl-0 = <&pcie0_default_state>;
598	pinctrl-names = "default";
599
600	status = "okay";
601};
602
603&pcie0_phy {
604	vdda-phy-supply = <&vreg_l1e_0p88>;
605	vdda-pll-supply = <&vreg_l3e_1p2>;
606
607	status = "okay";
608};
609
610&pm8550_flash {
611	status = "okay";
612
613	led-0 {
614		function = LED_FUNCTION_FLASH;
615		color = <LED_COLOR_ID_YELLOW>;
616		led-sources = <1>, <4>;
617		led-max-microamp = <500000>;
618		flash-max-microamp = <2000000>;
619		flash-max-timeout-us = <1280000>;
620		function-enumerator = <0>;
621	};
622
623	led-1 {
624		function = LED_FUNCTION_FLASH;
625		color = <LED_COLOR_ID_WHITE>;
626		led-sources = <2>, <3>;
627		led-max-microamp = <500000>;
628		flash-max-microamp = <2000000>;
629		flash-max-timeout-us = <1280000>;
630		function-enumerator = <1>;
631	};
632};
633
634&pm8550_gpios {
635	volume_up_n: volume-up-n-state {
636		pins = "gpio6";
637		function = "normal";
638		power-source = <1>;
639		bias-pull-up;
640		input-enable;
641	};
642};
643
644&pm8550_pwm {
645	status = "okay";
646
647	multi-led {
648		color = <LED_COLOR_ID_RGB>;
649		function = LED_FUNCTION_STATUS;
650
651		#address-cells = <1>;
652		#size-cells = <0>;
653
654		led@1 {
655			reg = <1>;
656			color = <LED_COLOR_ID_RED>;
657		};
658
659		led@2 {
660			reg = <2>;
661			color = <LED_COLOR_ID_GREEN>;
662		};
663
664		led@3 {
665			reg = <3>;
666			color = <LED_COLOR_ID_BLUE>;
667		};
668	};
669};
670
671&pm8550b_eusb2_repeater {
672	vdd18-supply = <&vreg_l15b_1p8>;
673	vdd3-supply = <&vreg_l5b_3p1>;
674};
675
676&pon_pwrkey {
677	status = "okay";
678};
679
680&pon_resin {
681	linux,code = <KEY_VOLUMEDOWN>;
682
683	status = "okay";
684};
685
686&pcie_1_phy_aux_clk {
687	clock-frequency = <1000>;
688};
689
690&qupv3_id_0 {
691	status = "okay";
692};
693
694&remoteproc_adsp {
695	firmware-name = "qcom/sm8550/adsp.mbn",
696			"qcom/sm8550/adsp_dtb.mbn";
697	status = "okay";
698};
699
700&remoteproc_cdsp {
701	firmware-name = "qcom/sm8550/cdsp.mbn",
702			"qcom/sm8550/cdsp_dtb.mbn";
703	status = "okay";
704};
705
706&remoteproc_mpss {
707	firmware-name = "qcom/sm8550/modem.mbn",
708			"qcom/sm8550/modem_dtb.mbn";
709	status = "okay";
710};
711
712&sleep_clk {
713	clock-frequency = <32000>;
714};
715
716&swr0 {
717	status = "okay";
718
719	/* WSA8845, Speaker North */
720	north_spkr: speaker@0,0 {
721		compatible = "sdw20217020400";
722		reg = <0 0>;
723		pinctrl-names = "default";
724		pinctrl-0 = <&spkr_1_sd_n_active>;
725		powerdown-gpios = <&lpass_tlmm 17 GPIO_ACTIVE_LOW>;
726		#sound-dai-cells = <0>;
727		sound-name-prefix = "SpkrLeft";
728		vdd-1p8-supply = <&vreg_l15b_1p8>;
729		vdd-io-supply = <&vreg_l3g_1p2>;
730	};
731
732	/* WSA8845, Speaker South */
733	south_spkr: speaker@0,1 {
734		compatible = "sdw20217020400";
735		reg = <0 1>;
736		pinctrl-names = "default";
737		pinctrl-0 = <&spkr_2_sd_n_active>;
738		powerdown-gpios = <&lpass_tlmm 18 GPIO_ACTIVE_LOW>;
739		#sound-dai-cells = <0>;
740		sound-name-prefix = "SpkrRight";
741		vdd-1p8-supply = <&vreg_l15b_1p8>;
742		vdd-io-supply = <&vreg_l3g_1p2>;
743	};
744};
745
746&swr1 {
747	status = "okay";
748
749	/* WCD9385 RX */
750	wcd_rx: codec@0,4 {
751		compatible = "sdw20217010d00";
752		reg = <0 4>;
753		qcom,rx-port-mapping = <1 2 3 4 5>;
754	};
755};
756
757&swr2 {
758	status = "okay";
759
760	/* WCD9385 TX */
761	wcd_tx: codec@0,3 {
762		compatible = "sdw20217010d00";
763		reg = <0 3>;
764		qcom,tx-port-mapping = <1 1 2 3>;
765	};
766};
767
768&tlmm {
769	gpio-reserved-ranges = <32 8>;
770
771	sde_dsi_active: sde-dsi-active-state {
772		pins = "gpio133";
773		function = "gpio";
774		drive-strength = <8>;
775		bias-disable;
776	};
777
778	sde_dsi_suspend: sde-dsi-suspend-state {
779		pins = "gpio133";
780		function = "gpio";
781		drive-strength = <2>;
782		bias-pull-down;
783	};
784
785	sde_te_active: sde-te-active-state {
786		pins = "gpio86";
787		function = "mdp_vsync";
788		drive-strength = <2>;
789		bias-pull-down;
790	};
791
792	sde_te_suspend: sde-te-suspend-state {
793		pins = "gpio86";
794		function = "mdp_vsync";
795		drive-strength = <2>;
796		bias-pull-down;
797	};
798
799	wcd_default: wcd-reset-n-active-state {
800		pins = "gpio108";
801		function = "gpio";
802		drive-strength = <16>;
803		bias-disable;
804		output-low;
805	};
806};
807
808&uart7 {
809	status = "okay";
810};
811
812&ufs_mem_hc {
813	reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>;
814	vcc-supply = <&vreg_l17b_2p5>;
815	vcc-max-microamp = <1300000>;
816	vccq-supply = <&vreg_l1g_1p2>;
817	vccq-max-microamp = <1200000>;
818	vccq2-supply = <&vreg_l3g_1p2>;
819	vccq2-max-microamp = <100>;
820
821	status = "okay";
822};
823
824&ufs_mem_phy {
825	vdda-phy-supply = <&vreg_l1d_0p88>;
826	vdda-pll-supply = <&vreg_l3e_1p2>;
827
828	status = "okay";
829};
830
831&usb_1 {
832	status = "okay";
833};
834
835&usb_1_dwc3 {
836	dr_mode = "otg";
837	usb-role-switch;
838};
839
840&usb_1_dwc3_hs {
841	remote-endpoint = <&pmic_glink_hs_in>;
842};
843
844&usb_1_dwc3_ss {
845	remote-endpoint = <&pmic_glink_ss_in>;
846};
847
848&usb_1_hsphy {
849	vdd-supply = <&vreg_l1e_0p88>;
850	vdda12-supply = <&vreg_l3e_1p2>;
851
852	phys = <&pm8550b_eusb2_repeater>;
853
854	status = "okay";
855};
856
857&usb_dp_qmpphy {
858	vdda-phy-supply = <&vreg_l3e_1p2>;
859	vdda-pll-supply = <&vreg_l3f_0p88>;
860
861	status = "okay";
862};
863
864&xo_board {
865	clock-frequency = <76800000>;
866};
867