xref: /linux/arch/arm64/boot/dts/qcom/sm8550-hdk.dts (revision 906fd46a65383cd639e5eec72a047efc33045d86)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2024 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#define PMK8550VE_SID 5
15#include "pm8550ve.dtsi"
16#include "pm8550vs.dtsi"
17#include "pmk8550.dtsi"
18#include "pmr735d_a.dtsi"
19
20/ {
21	model = "Qualcomm Technologies, Inc. SM8550 HDK";
22	compatible = "qcom,sm8550-hdk", "qcom,sm8550";
23	chassis-type = "embedded";
24
25	aliases {
26		serial0 = &uart7;
27		serial1 = &uart14;
28	};
29
30	wcd938x: audio-codec {
31		compatible = "qcom,wcd9385-codec";
32
33		pinctrl-names = "default";
34		pinctrl-0 = <&wcd_default>;
35
36		qcom,micbias1-microvolt = <1800000>;
37		qcom,micbias2-microvolt = <1800000>;
38		qcom,micbias3-microvolt = <1800000>;
39		qcom,micbias4-microvolt = <1800000>;
40		qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
41		qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
42		qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
43		qcom,rx-device = <&wcd_rx>;
44		qcom,tx-device = <&wcd_tx>;
45
46		reset-gpios = <&tlmm 108 GPIO_ACTIVE_LOW>;
47
48		vdd-buck-supply = <&vreg_l15b_1p8>;
49		vdd-rxtx-supply = <&vreg_l15b_1p8>;
50		vdd-io-supply = <&vreg_l15b_1p8>;
51		vdd-mic-bias-supply = <&vreg_bob1>;
52
53		#sound-dai-cells = <1>;
54	};
55
56	chosen {
57		stdout-path = "serial0:115200n8";
58	};
59
60	hdmi-out {
61		compatible = "hdmi-connector";
62		type = "a";
63
64		port {
65			hdmi_connector_out: endpoint {
66				remote-endpoint = <&lt9611_out>;
67			};
68		};
69	};
70
71	gpio-keys {
72		compatible = "gpio-keys";
73
74		pinctrl-0 = <&volume_up_n>;
75		pinctrl-names = "default";
76
77		key-volume-up {
78			label = "Volume Up";
79			linux,code = <KEY_VOLUMEUP>;
80			gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>;
81			debounce-interval = <15>;
82			linux,can-disable;
83			wakeup-source;
84		};
85	};
86
87	leds {
88		compatible = "gpio-leds";
89
90		led-0 {
91			function = LED_FUNCTION_BLUETOOTH;
92			color = <LED_COLOR_ID_BLUE>;
93			gpios = <&tlmm 159 GPIO_ACTIVE_HIGH>;
94			linux,default-trigger = "bluetooth-power";
95			default-state = "off";
96		};
97
98		led-1 {
99			function = LED_FUNCTION_INDICATOR;
100			color = <LED_COLOR_ID_GREEN>;
101			gpios = <&tlmm 160 GPIO_ACTIVE_HIGH>;
102			default-state = "off";
103			panic-indicator;
104		};
105
106		led-2 {
107			function = LED_FUNCTION_WLAN;
108			color = <LED_COLOR_ID_ORANGE>;
109			gpios = <&tlmm 162 GPIO_ACTIVE_HIGH>;
110			linux,default-trigger = "phy0tx";
111			default-state = "off";
112		};
113	};
114
115	pmic-glink {
116		compatible = "qcom,sm8550-pmic-glink", "qcom,pmic-glink";
117		#address-cells = <1>;
118		#size-cells = <0>;
119		orientation-gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>;
120
121		connector@0 {
122			compatible = "usb-c-connector";
123			reg = <0>;
124			power-role = "dual";
125			data-role = "dual";
126
127			ports {
128				#address-cells = <1>;
129				#size-cells = <0>;
130
131				port@0 {
132					reg = <0>;
133
134					pmic_glink_hs_in: endpoint {
135						remote-endpoint = <&usb_1_dwc3_hs>;
136					};
137				};
138
139				port@1 {
140					reg = <1>;
141
142					pmic_glink_ss_in: endpoint {
143						remote-endpoint = <&usb_dp_qmpphy_out>;
144					};
145				};
146
147				port@2 {
148					reg = <2>;
149
150					pmic_glink_sbu: endpoint {
151						remote-endpoint = <&fsa4480_sbu_mux>;
152					};
153				};
154			};
155		};
156	};
157
158	lt9611_1v2: regulator-lt9611-1v2 {
159		compatible = "regulator-fixed";
160
161		regulator-name = "LT9611_1V2";
162		regulator-min-microvolt = <1200000>;
163		regulator-max-microvolt = <1200000>;
164
165		vin-supply = <&vph_pwr>;
166		gpio = <&tlmm 152 GPIO_ACTIVE_HIGH>;
167
168		enable-active-high;
169	};
170
171	lt9611_3v3: regulator-lt9611-3v3 {
172		compatible = "regulator-fixed";
173
174		regulator-name = "LT9611_3V3";
175		regulator-min-microvolt = <3300000>;
176		regulator-max-microvolt = <3300000>;
177
178		vin-supply = <&vreg_bob_3v3>;
179		gpio = <&tlmm 6 GPIO_ACTIVE_HIGH>;
180
181		enable-active-high;
182	};
183
184	vph_pwr: regulator-vph-pwr {
185		compatible = "regulator-fixed";
186
187		regulator-name = "vph_pwr";
188		regulator-min-microvolt = <3700000>;
189		regulator-max-microvolt = <3700000>;
190		regulator-always-on;
191		regulator-boot-on;
192	};
193
194	vreg_bob_3v3: regulator-vreg-bob-3v3 {
195		compatible = "regulator-fixed";
196
197		regulator-name = "VREG_BOB_3P3";
198		regulator-min-microvolt = <3300000>;
199		regulator-max-microvolt = <3300000>;
200
201		vin-supply = <&vph_pwr>;
202	};
203
204	sound {
205		compatible = "qcom,sm8550-sndcard", "qcom,sm8450-sndcard";
206		model = "SM8550-HDK";
207		audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
208				"SpkrRight IN", "WSA_SPK2 OUT",
209				"IN1_HPHL", "HPHL_OUT",
210				"IN2_HPHR", "HPHR_OUT",
211				"AMIC1", "MIC BIAS1",
212				"AMIC2", "MIC BIAS2",
213				"AMIC5", "MIC BIAS4",
214				"TX SWR_INPUT0", "ADC1_OUTPUT",
215				"TX SWR_INPUT1", "ADC2_OUTPUT",
216				"TX SWR_INPUT1", "ADC4_OUTPUT";
217
218		wcd-playback-dai-link {
219			link-name = "WCD Playback";
220
221			cpu {
222				sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
223			};
224
225			codec {
226				sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>;
227			};
228
229			platform {
230				sound-dai = <&q6apm>;
231			};
232		};
233
234		wcd-capture-dai-link {
235			link-name = "WCD Capture";
236
237			cpu {
238				sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
239			};
240
241			codec {
242				sound-dai = <&wcd938x 1>, <&swr2 0>, <&lpass_txmacro 0>;
243			};
244
245			platform {
246				sound-dai = <&q6apm>;
247			};
248		};
249
250		wsa-dai-link {
251			link-name = "WSA Playback";
252
253			cpu {
254				sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
255			};
256
257			codec {
258				sound-dai = <&north_spkr>, <&south_spkr>, <&swr0 0>, <&lpass_wsamacro 0>;
259			};
260
261			platform {
262				sound-dai = <&q6apm>;
263			};
264		};
265
266		va-dai-link {
267			link-name = "VA Capture";
268
269			cpu {
270				sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
271			};
272
273			codec {
274				sound-dai = <&lpass_vamacro 0>;
275			};
276
277			platform {
278				sound-dai = <&q6apm>;
279			};
280		};
281	};
282};
283
284&apps_rsc {
285	regulators-0 {
286		compatible = "qcom,pm8550-rpmh-regulators";
287
288		vdd-bob1-supply = <&vph_pwr>;
289		vdd-bob2-supply = <&vph_pwr>;
290		vdd-l1-l4-l10-supply = <&vreg_s6g_1p86>;
291		vdd-l2-l13-l14-supply = <&vreg_bob1>;
292		vdd-l3-supply = <&vreg_s4g_1p25>;
293		vdd-l5-l16-supply = <&vreg_bob1>;
294		vdd-l6-l7-supply = <&vreg_bob1>;
295		vdd-l8-l9-supply = <&vreg_bob1>;
296		vdd-l11-supply = <&vreg_s4g_1p25>;
297		vdd-l12-supply = <&vreg_s6g_1p86>;
298		vdd-l15-supply = <&vreg_s6g_1p86>;
299		vdd-l17-supply = <&vreg_bob2>;
300
301		qcom,pmic-id = "b";
302
303		vreg_bob1: bob1 {
304			regulator-name = "vreg_bob1";
305			regulator-min-microvolt = <3296000>;
306			regulator-max-microvolt = <3960000>;
307			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
308		};
309
310		vreg_bob2: bob2 {
311			regulator-name = "vreg_bob2";
312			regulator-min-microvolt = <2720000>;
313			regulator-max-microvolt = <3960000>;
314			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
315		};
316
317		vreg_l1b_1p8: ldo1 {
318			regulator-name = "vreg_l1b_1p8";
319			regulator-min-microvolt = <1800000>;
320			regulator-max-microvolt = <1800000>;
321			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
322			regulator-allow-set-load;
323			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
324						   RPMH_REGULATOR_MODE_HPM>;
325		};
326
327		vreg_l2b_3p0: ldo2 {
328			regulator-name = "vreg_l2b_3p0";
329			regulator-min-microvolt = <3008000>;
330			regulator-max-microvolt = <3008000>;
331			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
332			regulator-allow-set-load;
333			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
334						   RPMH_REGULATOR_MODE_HPM>;
335		};
336
337		vreg_l5b_3p1: ldo5 {
338			regulator-name = "vreg_l5b_3p1";
339			regulator-min-microvolt = <3104000>;
340			regulator-max-microvolt = <3104000>;
341			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
342			regulator-allow-set-load;
343			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
344						   RPMH_REGULATOR_MODE_HPM>;
345		};
346
347		vreg_l6b_1p8: ldo6 {
348			regulator-name = "vreg_l6b_1p8";
349			regulator-min-microvolt = <1800000>;
350			regulator-max-microvolt = <3008000>;
351			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
352			regulator-allow-set-load;
353			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
354						   RPMH_REGULATOR_MODE_HPM>;
355		};
356
357		vreg_l7b_1p8: ldo7 {
358			regulator-name = "vreg_l7b_1p8";
359			regulator-min-microvolt = <1800000>;
360			regulator-max-microvolt = <3008000>;
361			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
362			regulator-allow-set-load;
363			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
364						   RPMH_REGULATOR_MODE_HPM>;
365		};
366
367		vreg_l8b_1p8: ldo8 {
368			regulator-name = "vreg_l8b_1p8";
369			regulator-min-microvolt = <1800000>;
370			regulator-max-microvolt = <3008000>;
371			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
372			regulator-allow-set-load;
373			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
374						   RPMH_REGULATOR_MODE_HPM>;
375		};
376
377		vreg_l9b_2p9: ldo9 {
378			regulator-name = "vreg_l9b_2p9";
379			regulator-min-microvolt = <2960000>;
380			regulator-max-microvolt = <3008000>;
381			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
382			regulator-allow-set-load;
383			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
384						   RPMH_REGULATOR_MODE_HPM>;
385		};
386
387		vreg_l11b_1p2: ldo11 {
388			regulator-name = "vreg_l11b_1p2";
389			regulator-min-microvolt = <1200000>;
390			regulator-max-microvolt = <1504000>;
391			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
392			regulator-allow-set-load;
393			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
394						   RPMH_REGULATOR_MODE_HPM>;
395		};
396
397		vreg_l12b_1p8: ldo12 {
398			regulator-name = "vreg_l12b_1p8";
399			regulator-min-microvolt = <1800000>;
400			regulator-max-microvolt = <1800000>;
401			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
402			regulator-allow-set-load;
403			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
404						   RPMH_REGULATOR_MODE_HPM>;
405		};
406
407		vreg_l13b_3p0: ldo13 {
408			regulator-name = "vreg_l13b_3p0";
409			regulator-min-microvolt = <3000000>;
410			regulator-max-microvolt = <3000000>;
411			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
412			regulator-allow-set-load;
413			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
414						   RPMH_REGULATOR_MODE_HPM>;
415		};
416
417		vreg_l14b_3p2: ldo14 {
418			regulator-name = "vreg_l14b_3p2";
419			regulator-min-microvolt = <3200000>;
420			regulator-max-microvolt = <3200000>;
421			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
422			regulator-allow-set-load;
423			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
424						   RPMH_REGULATOR_MODE_HPM>;
425		};
426
427		vreg_l15b_1p8: ldo15 {
428			regulator-name = "vreg_l15b_1p8";
429			regulator-min-microvolt = <1800000>;
430			regulator-max-microvolt = <1800000>;
431			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
432			regulator-allow-set-load;
433			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
434						   RPMH_REGULATOR_MODE_HPM>;
435		};
436
437		vreg_l16b_2p8: ldo16 {
438			regulator-name = "vreg_l16b_2p8";
439			regulator-min-microvolt = <2800000>;
440			regulator-max-microvolt = <2800000>;
441			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
442			regulator-allow-set-load;
443			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
444						   RPMH_REGULATOR_MODE_HPM>;
445		};
446
447		vreg_l17b_2p5: ldo17 {
448			regulator-name = "vreg_l17b_2p5";
449			regulator-min-microvolt = <2504000>;
450			regulator-max-microvolt = <2504000>;
451			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
452			regulator-allow-set-load;
453			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
454						   RPMH_REGULATOR_MODE_HPM>;
455		};
456	};
457
458	regulators-1 {
459		compatible = "qcom,pm8550vs-rpmh-regulators";
460
461		vdd-l1-supply = <&vreg_s4g_1p25>;
462		vdd-l2-supply = <&vreg_s4e_0p95>;
463		vdd-l3-supply = <&vreg_s4e_0p95>;
464
465		qcom,pmic-id = "c";
466
467		vreg_l3c_0p9: ldo3 {
468			regulator-name = "vreg_l3c_0p9";
469			regulator-min-microvolt = <880000>;
470			regulator-max-microvolt = <912000>;
471			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
472			regulator-allow-set-load;
473			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
474						   RPMH_REGULATOR_MODE_HPM>;
475		};
476	};
477
478	regulators-2 {
479		compatible = "qcom,pm8550vs-rpmh-regulators";
480
481		vdd-l1-supply = <&vreg_s4e_0p95>;
482		vdd-l2-supply = <&vreg_s4e_0p95>;
483		vdd-l3-supply = <&vreg_s4e_0p95>;
484
485		qcom,pmic-id = "d";
486
487		vreg_l1d_0p88: ldo1 {
488			regulator-name = "vreg_l1d_0p88";
489			regulator-min-microvolt = <880000>;
490			regulator-max-microvolt = <920000>;
491			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
492			regulator-allow-set-load;
493			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
494						   RPMH_REGULATOR_MODE_HPM>;
495		};
496
497		/* ldo2 supplies SM8550 VDD_LPI_MX */
498	};
499
500	regulators-3 {
501		compatible = "qcom,pm8550vs-rpmh-regulators";
502
503		vdd-l1-supply = <&vreg_s4e_0p95>;
504		vdd-l2-supply = <&vreg_s4e_0p95>;
505		vdd-l3-supply = <&vreg_s4g_1p25>;
506		vdd-s4-supply = <&vph_pwr>;
507		vdd-s5-supply = <&vph_pwr>;
508
509		qcom,pmic-id = "e";
510
511		vreg_s4e_0p95: smps4 {
512			regulator-name = "vreg_s4e_0p95";
513			regulator-min-microvolt = <904000>;
514			regulator-max-microvolt = <984000>;
515			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
516		};
517
518		vreg_s5e_1p08: smps5 {
519			regulator-name = "vreg_s5e_1p08";
520			regulator-min-microvolt = <1080000>;
521			regulator-max-microvolt = <1120000>;
522			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
523		};
524
525		vreg_l1e_0p88: ldo1 {
526			regulator-name = "vreg_l1e_0p88";
527			regulator-min-microvolt = <880000>;
528			regulator-max-microvolt = <880000>;
529			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
530			regulator-allow-set-load;
531			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
532						   RPMH_REGULATOR_MODE_HPM>;
533		};
534
535		vreg_l2e_0p9: ldo2 {
536			regulator-name = "vreg_l2e_0p9";
537			regulator-min-microvolt = <904000>;
538			regulator-max-microvolt = <970000>;
539			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
540			regulator-allow-set-load;
541			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
542						   RPMH_REGULATOR_MODE_HPM>;
543		};
544
545		vreg_l3e_1p2: ldo3 {
546			regulator-name = "vreg_l3e_1p2";
547			regulator-min-microvolt = <1200000>;
548			regulator-max-microvolt = <1200000>;
549			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
550			regulator-allow-set-load;
551			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
552						   RPMH_REGULATOR_MODE_HPM>;
553		};
554	};
555
556	regulators-4 {
557		compatible = "qcom,pm8550ve-rpmh-regulators";
558
559		vdd-l1-supply = <&vreg_s4e_0p95>;
560		vdd-l2-supply = <&vreg_s4e_0p95>;
561		vdd-l3-supply = <&vreg_s4e_0p95>;
562		vdd-s4-supply = <&vph_pwr>;
563
564		qcom,pmic-id = "f";
565
566		vreg_s4f_0p5: smps4 {
567			regulator-name = "vreg_s4f_0p5";
568			regulator-min-microvolt = <500000>;
569			regulator-max-microvolt = <700000>;
570			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
571		};
572
573		vreg_l1f_0p9: ldo1 {
574			regulator-name = "vreg_l1f_0p9";
575			regulator-min-microvolt = <912000>;
576			regulator-max-microvolt = <912000>;
577			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
578			regulator-allow-set-load;
579			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
580						   RPMH_REGULATOR_MODE_HPM>;
581		};
582
583		vreg_l2f_0p88: ldo2 {
584			regulator-name = "vreg_l2f_0p88";
585			regulator-min-microvolt = <880000>;
586			regulator-max-microvolt = <912000>;
587			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
588			regulator-allow-set-load;
589			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
590						   RPMH_REGULATOR_MODE_HPM>;
591		};
592
593		vreg_l3f_0p88: ldo3 {
594			regulator-name = "vreg_l3f_0p88";
595			regulator-min-microvolt = <880000>;
596			regulator-max-microvolt = <912000>;
597			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
598			regulator-allow-set-load;
599			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
600						   RPMH_REGULATOR_MODE_HPM>;
601		};
602	};
603
604	regulators-5 {
605		compatible = "qcom,pm8550vs-rpmh-regulators";
606
607		vdd-l1-supply = <&vreg_s4g_1p25>;
608		vdd-l2-supply = <&vreg_s4g_1p25>;
609		vdd-l3-supply = <&vreg_s4g_1p25>;
610		vdd-s1-supply = <&vph_pwr>;
611		vdd-s2-supply = <&vph_pwr>;
612		vdd-s3-supply = <&vph_pwr>;
613		vdd-s4-supply = <&vph_pwr>;
614		vdd-s5-supply = <&vph_pwr>;
615		vdd-s6-supply = <&vph_pwr>;
616
617		qcom,pmic-id = "g";
618
619		vreg_s1g_1p25: smps1 {
620			regulator-name = "vreg_s1g_1p25";
621			regulator-min-microvolt = <1200000>;
622			regulator-max-microvolt = <1300000>;
623			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
624		};
625
626		vreg_s2g_0p85: smps2 {
627			regulator-name = "vreg_s2g_0p85";
628			regulator-min-microvolt = <800000>;
629			regulator-max-microvolt = <1000000>;
630			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
631		};
632
633		vreg_s3g_0p8: smps3 {
634			regulator-name = "vreg_s3g_0p8";
635			regulator-min-microvolt = <300000>;
636			regulator-max-microvolt = <1004000>;
637			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
638		};
639
640		vreg_s4g_1p25: smps4 {
641			regulator-name = "vreg_s4g_1p25";
642			regulator-min-microvolt = <1200000>;
643			regulator-max-microvolt = <1352000>;
644			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
645		};
646
647		vreg_s5g_0p85: smps5 {
648			regulator-name = "vreg_s5g_0p85";
649			regulator-min-microvolt = <500000>;
650			regulator-max-microvolt = <1004000>;
651			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
652		};
653
654		vreg_s6g_1p86: smps6 {
655			regulator-name = "vreg_s6g_1p86";
656			regulator-min-microvolt = <1800000>;
657			regulator-max-microvolt = <2000000>;
658			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
659		};
660
661		vreg_l1g_1p2: ldo1 {
662			regulator-name = "vreg_l1g_1p2";
663			regulator-min-microvolt = <1200000>;
664			regulator-max-microvolt = <1200000>;
665			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
666			regulator-allow-set-load;
667			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
668						   RPMH_REGULATOR_MODE_HPM>;
669		};
670
671		vreg_l3g_1p2: ldo3 {
672			regulator-name = "vreg_l3g_1p2";
673			regulator-min-microvolt = <1200000>;
674			regulator-max-microvolt = <1200000>;
675			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
676			regulator-allow-set-load;
677			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
678						   RPMH_REGULATOR_MODE_HPM>;
679		};
680	};
681
682	regulators-6 {
683		compatible = "qcom,pm8010-rpmh-regulators";
684
685		vdd-l1-l2-supply = <&vreg_s4g_1p25>;
686		vdd-l3-l4-supply = <&vreg_bob2>;
687		vdd-l5-supply = <&vreg_s6g_1p86>;
688		vdd-l6-supply = <&vreg_s6g_1p86>;
689		vdd-l7-supply = <&vreg_bob1>;
690
691		qcom,pmic-id = "m";
692
693		vreg_l1m_1p056: ldo1 {
694			regulator-name = "vreg_l1m_1p056";
695			regulator-min-microvolt = <1056000>;
696			regulator-max-microvolt = <1056000>;
697			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
698			regulator-allow-set-load;
699			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
700						   RPMH_REGULATOR_MODE_HPM>;
701		};
702
703		vreg_l2m_1p056: ldo2 {
704			regulator-name = "vreg_l2m_1p056";
705			regulator-min-microvolt = <1056000>;
706			regulator-max-microvolt = <1056000>;
707			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
708			regulator-allow-set-load;
709			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
710						   RPMH_REGULATOR_MODE_HPM>;
711		};
712
713		vreg_l3m_2p8: ldo3 {
714			regulator-name = "vreg_l3m_2p8";
715			regulator-min-microvolt = <2800000>;
716			regulator-max-microvolt = <2800000>;
717			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
718		};
719
720		vreg_l4m_2p8: ldo4 {
721			regulator-name = "vreg_l4m_2p8";
722			regulator-min-microvolt = <2800000>;
723			regulator-max-microvolt = <2800000>;
724			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
725		};
726
727		vreg_l5m_1p8: ldo5 {
728			regulator-name = "vreg_l5m_1p8";
729			regulator-min-microvolt = <1800000>;
730			regulator-max-microvolt = <1800000>;
731			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
732		};
733
734		vreg_l6m_1p8: ldo6 {
735			regulator-name = "vreg_l6m_1p8";
736			regulator-min-microvolt = <1800000>;
737			regulator-max-microvolt = <1800000>;
738			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
739		};
740
741		vreg_l7m_2p9: ldo7 {
742			regulator-name = "vreg_l7m_2p9";
743			regulator-min-microvolt = <2800000>;
744			regulator-max-microvolt = <2904000>;
745			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
746		};
747	};
748
749	regulators-7 {
750		compatible = "qcom,pm8010-rpmh-regulators";
751
752		vdd-l1-l2-supply = <&vreg_s4g_1p25>;
753		vdd-l3-l4-supply = <&vreg_bob2>;
754		vdd-l5-supply = <&vreg_s6g_1p86>;
755		vdd-l6-supply = <&vreg_bob1>;
756		vdd-l7-supply = <&vreg_bob1>;
757
758		qcom,pmic-id = "n";
759
760		vreg_l1n_1p1: ldo1 {
761			regulator-name = "vreg_l1n_1p1";
762			regulator-min-microvolt = <1104000>;
763			regulator-max-microvolt = <1200000>;
764			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
765			regulator-allow-set-load;
766			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
767						   RPMH_REGULATOR_MODE_HPM>;
768		};
769
770		vreg_l2n_1p1: ldo2 {
771			regulator-name = "vreg_l2n_1p1";
772			regulator-min-microvolt = <1104000>;
773			regulator-max-microvolt = <1200000>;
774			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
775			regulator-allow-set-load;
776			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
777						   RPMH_REGULATOR_MODE_HPM>;
778		};
779
780		vreg_l3n_2p8: ldo3 {
781			regulator-name = "vreg_l3n_2p8";
782			regulator-min-microvolt = <2800000>;
783			regulator-max-microvolt = <3000000>;
784			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
785		};
786
787		vreg_l4n_2p8: ldo4 {
788			regulator-name = "vreg_l4n_2p8";
789			regulator-min-microvolt = <2800000>;
790			regulator-max-microvolt = <3300000>;
791			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
792		};
793
794		vreg_l5n_1p8: ldo5 {
795			regulator-name = "vreg_l5n_1p8";
796			regulator-min-microvolt = <1800000>;
797			regulator-max-microvolt = <1800000>;
798			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
799		};
800
801		vreg_l6n_3p3: ldo6 {
802			regulator-name = "vreg_l6n_3p3";
803			regulator-min-microvolt = <2800000>;
804			regulator-max-microvolt = <3304000>;
805			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
806		};
807
808		vreg_l7n_2p96: ldo7 {
809			regulator-name = "vreg_l7n_2p96";
810			regulator-min-microvolt = <2800000>;
811			regulator-max-microvolt = <2960000>;
812			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
813		};
814	};
815};
816
817&i2c0 {
818	clock-frequency = <400000>;
819	status = "okay";
820
821	lt9611_codec: hdmi-bridge@2b {
822		compatible = "lontium,lt9611uxc";
823		reg = <0x2b>;
824
825		interrupts-extended = <&tlmm 8 IRQ_TYPE_EDGE_FALLING>;
826
827		reset-gpios = <&tlmm 7 GPIO_ACTIVE_HIGH>;
828
829		vdd-supply = <&lt9611_1v2>;
830		vcc-supply = <&lt9611_3v3>;
831
832		pinctrl-0 = <&lt9611_irq_pin>, <&lt9611_rst_pin>;
833		pinctrl-names = "default";
834
835		ports {
836			#address-cells = <1>;
837			#size-cells = <0>;
838
839			port@0 {
840				reg = <0>;
841
842				lt9611_a: endpoint {
843					remote-endpoint = <&mdss_dsi0_out>;
844				};
845			};
846
847			port@2 {
848				reg = <2>;
849
850				lt9611_out: endpoint {
851					remote-endpoint = <&hdmi_connector_out>;
852				};
853			};
854		};
855	};
856};
857
858&i2c_hub_2 {
859	status = "okay";
860
861	typec-mux@42 {
862		compatible = "fcs,fsa4480";
863		reg = <0x42>;
864
865		vcc-supply = <&vreg_bob1>;
866
867		mode-switch;
868		orientation-switch;
869
870		port {
871			fsa4480_sbu_mux: endpoint {
872				remote-endpoint = <&pmic_glink_sbu>;
873			};
874		};
875	};
876};
877
878&i2c_master_hub_0 {
879	status = "okay";
880};
881
882&ipa {
883	qcom,gsi-loader = "self";
884	memory-region = <&ipa_fw_mem>;
885	firmware-name = "qcom/sm8550/ipa_fws.mbn";
886	status = "okay";
887};
888
889&gpi_dma1 {
890	status = "okay";
891};
892
893&gpu {
894	status = "okay";
895
896	zap-shader {
897		firmware-name = "qcom/sm8550/a740_zap.mbn";
898	};
899};
900
901&lpass_tlmm {
902	spkr_1_sd_n_active: spkr-1-sd-n-active-state {
903		pins = "gpio17";
904		function = "gpio";
905		drive-strength = <16>;
906		bias-disable;
907		output-low;
908	};
909
910	spkr_2_sd_n_active: spkr-2-sd-n-active-state {
911		pins = "gpio18";
912		function = "gpio";
913		drive-strength = <16>;
914		bias-disable;
915		output-low;
916	};
917};
918
919&mdss {
920	status = "okay";
921};
922
923&mdss_dsi0 {
924	vdda-supply = <&vreg_l3e_1p2>;
925	status = "okay";
926};
927
928&mdss_dsi0_out {
929	remote-endpoint = <&lt9611_a>;
930	data-lanes = <0 1 2 3>;
931};
932
933&mdss_dsi0_phy {
934	vdds-supply = <&vreg_l1e_0p88>;
935	status = "okay";
936};
937
938&mdss_dp0 {
939	status = "okay";
940};
941
942&mdss_dp0_out {
943	remote-endpoint = <&usb_dp_qmpphy_dp_in>;
944	data-lanes = <0 1>;
945};
946
947&pcie0 {
948	wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
949	perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>;
950
951	pinctrl-0 = <&pcie0_default_state>;
952	pinctrl-names = "default";
953
954	status = "okay";
955};
956
957&pcie0_phy {
958	vdda-phy-supply = <&vreg_l1e_0p88>;
959	vdda-pll-supply = <&vreg_l3e_1p2>;
960
961	status = "okay";
962};
963
964&pcie1 {
965	wake-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>;
966	perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>;
967
968	pinctrl-0 = <&pcie1_default_state>;
969	pinctrl-names = "default";
970
971	status = "okay";
972};
973
974&pcie1_phy {
975	vdda-phy-supply = <&vreg_l3c_0p9>;
976	vdda-pll-supply = <&vreg_l3e_1p2>;
977	vdda-qref-supply = <&vreg_l1e_0p88>;
978
979	status = "okay";
980};
981
982&pcie_1_phy_aux_clk {
983	clock-frequency = <1000>;
984};
985
986&pm8550_gpios {
987	sdc2_card_det_n: sdc2-card-det-state {
988		pins = "gpio12";
989		function = "normal";
990		input-enable;
991		output-disable;
992		bias-pull-up;
993		power-source = <1>; /* 1.8 V */
994	};
995
996	volume_up_n: volume-up-n-state {
997		pins = "gpio6";
998		function = "normal";
999		power-source = <1>;
1000		bias-pull-up;
1001		input-enable;
1002	};
1003};
1004
1005/* The RGB signals are routed to 3 separate LEDs on the HDK8550 */
1006&pm8550_pwm {
1007	#address-cells = <1>;
1008	#size-cells = <0>;
1009
1010	status = "okay";
1011
1012	led@1 {
1013		reg = <1>;
1014		function = LED_FUNCTION_STATUS;
1015		color = <LED_COLOR_ID_RED>;
1016		default-state = "off";
1017	};
1018
1019	led@2 {
1020		reg = <2>;
1021		function = LED_FUNCTION_STATUS;
1022		color = <LED_COLOR_ID_GREEN>;
1023		default-state = "off";
1024	};
1025
1026	led@3 {
1027		reg = <3>;
1028		function = LED_FUNCTION_STATUS;
1029		color = <LED_COLOR_ID_BLUE>;
1030		default-state = "off";
1031	};
1032};
1033
1034&pm8550b_eusb2_repeater {
1035	vdd18-supply = <&vreg_l15b_1p8>;
1036	vdd3-supply = <&vreg_l5b_3p1>;
1037};
1038
1039&pon_pwrkey {
1040	status = "okay";
1041};
1042
1043&pon_resin {
1044	linux,code = <KEY_VOLUMEDOWN>;
1045
1046	status = "okay";
1047};
1048
1049&qupv3_id_0 {
1050	status = "okay";
1051};
1052
1053&qupv3_id_1 {
1054	status = "okay";
1055};
1056
1057&remoteproc_adsp {
1058	firmware-name = "qcom/sm8550/adsp.mbn",
1059			"qcom/sm8550/adsp_dtb.mbn";
1060	status = "okay";
1061};
1062
1063&remoteproc_cdsp {
1064	firmware-name = "qcom/sm8550/cdsp.mbn",
1065			"qcom/sm8550/cdsp_dtb.mbn";
1066	status = "okay";
1067};
1068
1069&remoteproc_mpss {
1070	firmware-name = "qcom/sm8550/modem.mbn",
1071			"qcom/sm8550/modem_dtb.mbn";
1072	status = "okay";
1073};
1074
1075&sdhc_2 {
1076	cd-gpios = <&pm8550_gpios 12 GPIO_ACTIVE_HIGH>;
1077
1078	pinctrl-0 = <&sdc2_default>, <&sdc2_card_det_n>;
1079	pinctrl-1 = <&sdc2_sleep>, <&sdc2_card_det_n>;
1080	pinctrl-names = "default", "sleep";
1081
1082	vmmc-supply = <&vreg_l9b_2p9>;
1083	vqmmc-supply = <&vreg_l8b_1p8>;
1084
1085	bus-width = <4>;
1086	no-sdio;
1087	no-mmc;
1088
1089	status = "okay";
1090};
1091
1092&sleep_clk {
1093	clock-frequency = <32000>;
1094};
1095
1096&swr0 {
1097	status = "okay";
1098
1099	/* WSA8845, Speaker North */
1100	north_spkr: speaker@0,0 {
1101		compatible = "sdw20217020400";
1102		reg = <0 0>;
1103
1104		pinctrl-0 = <&spkr_1_sd_n_active>;
1105		pinctrl-names = "default";
1106
1107		powerdown-gpios = <&lpass_tlmm 17 GPIO_ACTIVE_LOW>;
1108
1109		vdd-1p8-supply = <&vreg_l15b_1p8>;
1110		vdd-io-supply = <&vreg_l15b_1p8>;
1111
1112		#sound-dai-cells = <0>;
1113		sound-name-prefix = "SpkrLeft";
1114	};
1115
1116	/* WSA8845, Speaker South */
1117	south_spkr: speaker@0,1 {
1118		compatible = "sdw20217020400";
1119		reg = <0 1>;
1120
1121		pinctrl-0 = <&spkr_2_sd_n_active>;
1122		pinctrl-names = "default";
1123
1124		powerdown-gpios = <&lpass_tlmm 18 GPIO_ACTIVE_LOW>;
1125
1126		vdd-1p8-supply = <&vreg_l15b_1p8>;
1127		vdd-io-supply = <&vreg_l15b_1p8>;
1128
1129		#sound-dai-cells = <0>;
1130		sound-name-prefix = "SpkrRight";
1131	};
1132};
1133
1134&swr1 {
1135	status = "okay";
1136
1137	/* WCD9385 RX */
1138	wcd_rx: codec@0,4 {
1139		compatible = "sdw20217010d00";
1140		reg = <0 4>;
1141
1142		/*
1143		 * WCD9385 RX Port 1 (HPH_L/R)      <=> SWR1 Port 1 (HPH_L/R)
1144		 * WCD9385 RX Port 2 (CLSH)         <=> SWR1 Port 2 (CLSH)
1145		 * WCD9385 RX Port 3 (COMP_L/R)     <=> SWR1 Port 3 (COMP_L/R)
1146		 * WCD9385 RX Port 4 (LO)           <=> SWR1 Port 4 (LO)
1147		 * WCD9385 RX Port 5 (DSD_L/R)      <=> SWR1 Port 5 (DSD_L/R)
1148		 */
1149		qcom,rx-port-mapping = <1 2 3 4 5>;
1150	};
1151};
1152
1153&swr2 {
1154	status = "okay";
1155
1156	/* WCD9385 TX */
1157	wcd_tx: codec@0,3 {
1158		compatible = "sdw20217010d00";
1159		reg = <0 3>;
1160
1161		/*
1162		 * WCD9385 TX Port 1 (ADC1,2)             <=> SWR2 Port 2 (TX SWR_INPUT 0,1,2,3)
1163		 * WCD9385 TX Port 2 (ADC3,4)             <=> SWR2 Port 2 (TX SWR_INPUT 0,1,2,3)
1164		 * WCD9385 TX Port 3 (DMIC0,1,2,3 & MBHC) <=> SWR2 Port 3 (TX SWR_INPUT 4,5,6,7)
1165		 * WCD9385 TX Port 4 (DMIC4,5,6,7)        <=> SWR2 Port 4 (TX SWR_INPUT 8,9,10,11)
1166		 */
1167		qcom,tx-port-mapping = <2 2 3 4>;
1168	};
1169};
1170
1171&tlmm {
1172	/* Reserved I/Os for NFC */
1173	gpio-reserved-ranges = <32 8>;
1174
1175	bt_default: bt-default-state {
1176		bt-en-pins {
1177			pins = "gpio81";
1178			function = "gpio";
1179			drive-strength = <16>;
1180			bias-disable;
1181		};
1182
1183		sw-ctrl-pins {
1184			pins = "gpio82";
1185			function = "gpio";
1186			bias-pull-down;
1187		};
1188	};
1189
1190	lt9611_irq_pin: lt9611-irq-state {
1191		pins = "gpio8";
1192		function = "gpio";
1193		bias-disable;
1194	};
1195
1196	lt9611_rst_pin: lt9611-rst-state {
1197		pins = "gpio7";
1198		function = "gpio";
1199		output-high;
1200	};
1201
1202	wcd_default: wcd-reset-n-active-state {
1203		pins = "gpio108";
1204		function = "gpio";
1205		drive-strength = <16>;
1206		bias-disable;
1207		output-low;
1208	};
1209};
1210
1211&uart7 {
1212	status = "okay";
1213};
1214
1215&uart14 {
1216	status = "okay";
1217
1218	bluetooth {
1219		compatible = "qcom,wcn7850-bt";
1220
1221		vddio-supply = <&vreg_l15b_1p8>;
1222		vddaon-supply = <&vreg_s4e_0p95>;
1223		vdddig-supply = <&vreg_s4e_0p95>;
1224		vddrfa0p8-supply = <&vreg_s4e_0p95>;
1225		vddrfa1p2-supply = <&vreg_s4g_1p25>;
1226		vddrfa1p9-supply = <&vreg_s6g_1p86>;
1227
1228		max-speed = <3200000>;
1229
1230		enable-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>;
1231		swctrl-gpios = <&tlmm 82 GPIO_ACTIVE_HIGH>;
1232
1233		pinctrl-0 = <&bt_default>;
1234		pinctrl-names = "default";
1235	};
1236};
1237
1238&ufs_mem_hc {
1239	reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>;
1240
1241	vcc-supply = <&vreg_l17b_2p5>;
1242	vcc-max-microamp = <1300000>;
1243	vccq-supply = <&vreg_l1g_1p2>;
1244	vccq-max-microamp = <1200000>;
1245	vdd-hba-supply = <&vreg_l3g_1p2>;
1246
1247	status = "okay";
1248};
1249
1250&ufs_mem_phy {
1251	vdda-phy-supply = <&vreg_l1d_0p88>;
1252	vdda-pll-supply = <&vreg_l3e_1p2>;
1253
1254	status = "okay";
1255};
1256
1257&usb_1 {
1258	status = "okay";
1259};
1260
1261&usb_1_dwc3 {
1262	dr_mode = "otg";
1263	usb-role-switch;
1264};
1265
1266&usb_1_dwc3_hs {
1267	remote-endpoint = <&pmic_glink_hs_in>;
1268};
1269
1270&usb_1_dwc3_ss {
1271	remote-endpoint = <&usb_dp_qmpphy_usb_ss_in>;
1272};
1273
1274&usb_1_hsphy {
1275	vdd-supply = <&vreg_l1e_0p88>;
1276	vdda12-supply = <&vreg_l3e_1p2>;
1277
1278	phys = <&pm8550b_eusb2_repeater>;
1279
1280	status = "okay";
1281};
1282
1283&usb_dp_qmpphy {
1284	vdda-phy-supply = <&vreg_l3e_1p2>;
1285	vdda-pll-supply = <&vreg_l3f_0p88>;
1286
1287	orientation-switch;
1288
1289	status = "okay";
1290};
1291
1292&usb_dp_qmpphy_dp_in {
1293	remote-endpoint = <&mdss_dp0_out>;
1294};
1295
1296&usb_dp_qmpphy_out {
1297	remote-endpoint = <&pmic_glink_ss_in>;
1298};
1299
1300&usb_dp_qmpphy_usb_ss_in {
1301	remote-endpoint = <&usb_1_dwc3_ss>;
1302};
1303
1304&xo_board {
1305	clock-frequency = <76800000>;
1306};
1307