xref: /linux/scripts/dtc/include-prefixes/arm64/qcom/x1-dell-thena.dtsi (revision 4f38da1f027ea2c9f01bb71daa7a299c191b6940)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
4 * Copyright (c) 2024 Aleksandrs Vinarskis <alex.vinarskis@gmail.com>
5 * Copyright (c) 2025 Bryan O'Donoghue <bryan.odonoghue@linaro.org>
6 * Copyright (c) 2025 Val Packett <val@packett.cool>
7 */
8
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/input/gpio-keys.h>
11#include <dt-bindings/input/input.h>
12#include <dt-bindings/leds/common.h>
13#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
14
15#include "x1e80100-pmics.dtsi"
16
17/ {
18	chassis-type = "laptop";
19
20	aliases {
21		serial0 = &uart14;
22	};
23
24	wcd938x: audio-codec {
25		compatible = "qcom,wcd9385-codec";
26
27		pinctrl-0 = <&wcd_default>;
28		pinctrl-names = "default";
29
30		qcom,micbias1-microvolt = <1800000>;
31		qcom,micbias2-microvolt = <1800000>;
32		qcom,micbias3-microvolt = <1800000>;
33		qcom,micbias4-microvolt = <1800000>;
34		qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
35		qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
36		qcom,mbhc-headphone-vthreshold-microvolt = <40000>;
37		qcom,rx-device = <&wcd_rx>;
38		qcom,tx-device = <&wcd_tx>;
39
40		reset-gpios = <&tlmm 191 GPIO_ACTIVE_LOW>;
41
42		vdd-buck-supply = <&vreg_l15b_1p8>;
43		vdd-rxtx-supply = <&vreg_l15b_1p8>;
44		vdd-io-supply = <&vreg_l15b_1p8>;
45		vdd-mic-bias-supply = <&vreg_bob1>;
46
47		#sound-dai-cells = <1>;
48	};
49
50	gpio-keys {
51		compatible = "gpio-keys";
52
53		pinctrl-0 = <&hall_int_n_default>;
54		pinctrl-names = "default";
55
56		switch-lid {
57			gpios = <&tlmm 92 GPIO_ACTIVE_LOW>;
58			linux,input-type = <EV_SW>;
59			linux,code = <SW_LID>;
60			wakeup-source;
61			wakeup-event-action = <EV_ACT_DEASSERTED>;
62		};
63	};
64
65	pmic-glink {
66		compatible = "qcom,x1e80100-pmic-glink",
67			     "qcom,sm8550-pmic-glink",
68			     "qcom,pmic-glink";
69		orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>,
70				    <&tlmm 123 GPIO_ACTIVE_HIGH>;
71		#address-cells = <1>;
72		#size-cells = <0>;
73
74		/* Display-adjacent port */
75		connector@0 {
76			compatible = "usb-c-connector";
77			reg = <0>;
78			power-role = "dual";
79			data-role = "dual";
80
81			ports {
82				#address-cells = <1>;
83				#size-cells = <0>;
84
85				port@0 {
86					reg = <0>;
87
88					pmic_glink_ss0_hs_in: endpoint {
89						remote-endpoint = <&usb_1_ss0_dwc3_hs>;
90					};
91				};
92
93				port@1 {
94					reg = <1>;
95
96					pmic_glink_ss0_ss_in: endpoint {
97						remote-endpoint = <&retimer_ss0_ss_out>;
98					};
99				};
100
101				port@2 {
102					reg = <2>;
103
104					pmic_glink_ss0_con_sbu_in: endpoint {
105						remote-endpoint = <&retimer_ss0_con_sbu_out>;
106					};
107				};
108			};
109		};
110
111		/* User-adjacent port */
112		connector@1 {
113			compatible = "usb-c-connector";
114			reg = <1>;
115			power-role = "dual";
116			data-role = "dual";
117
118			ports {
119				#address-cells = <1>;
120				#size-cells = <0>;
121
122				port@0 {
123					reg = <0>;
124
125					pmic_glink_ss1_hs_in: endpoint {
126						remote-endpoint = <&usb_1_ss1_dwc3_hs>;
127					};
128				};
129
130				port@1 {
131					reg = <1>;
132
133					pmic_glink_ss1_ss_in: endpoint {
134						remote-endpoint = <&retimer_ss1_ss_out>;
135					};
136				};
137
138				port@2 {
139					reg = <2>;
140
141					pmic_glink_ss1_con_sbu_in: endpoint {
142						remote-endpoint = <&retimer_ss1_con_sbu_out>;
143					};
144				};
145			};
146		};
147	};
148
149	leds {
150		compatible = "gpio-leds";
151
152		pinctrl-0 = <&cam_indicator_en>;
153		pinctrl-names = "default";
154
155		led-camera-indicator {
156			label = "white:camera-indicator";
157			function = LED_FUNCTION_INDICATOR;
158			color = <LED_COLOR_ID_WHITE>;
159			gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
160			linux,default-trigger = "none";
161			default-state = "off";
162			/* Reuse as a panic indicator until we get a "camera on" trigger */
163			panic-indicator;
164		};
165	};
166
167	reserved-memory {
168		linux,cma {
169			compatible = "shared-dma-pool";
170			size = <0x0 0x8000000>;
171			reusable;
172			linux,cma-default;
173		};
174	};
175
176	sound: sound {
177		compatible = "qcom,x1e80100-sndcard";
178		audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT",
179				"TweeterLeft IN", "WSA WSA_SPK2 OUT",
180				"WooferRight IN", "WSA2 WSA_SPK1 OUT",
181				"TweeterRight IN", "WSA2 WSA_SPK2 OUT",
182				"IN1_HPHL", "HPHL_OUT",
183				"IN2_HPHR", "HPHR_OUT",
184				"AMIC2", "MIC BIAS2",
185				"VA DMIC0", "MIC BIAS1",
186				"VA DMIC1", "MIC BIAS1",
187				"VA DMIC0", "VA MIC BIAS1",
188				"VA DMIC1", "VA MIC BIAS1",
189				"TX SWR_INPUT1", "ADC2_OUTPUT";
190
191		wcd-playback-dai-link {
192			link-name = "WCD Playback";
193
194			codec {
195				sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>;
196			};
197
198			cpu {
199				sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
200			};
201
202			platform {
203				sound-dai = <&q6apm>;
204			};
205		};
206
207		wcd-capture-dai-link {
208			link-name = "WCD Capture";
209
210			codec {
211				sound-dai = <&wcd938x 1>, <&swr2 1>, <&lpass_txmacro 0>;
212			};
213
214			cpu {
215				sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
216			};
217
218			platform {
219				sound-dai = <&q6apm>;
220			};
221		};
222
223		wsa-dai-link {
224			link-name = "WSA Playback";
225
226			codec {
227				sound-dai = <&left_woofer>, <&left_tweeter>,
228					    <&swr0 0>, <&lpass_wsamacro 0>,
229					    <&right_woofer>, <&right_tweeter>,
230					    <&swr3 0>, <&lpass_wsa2macro 0>;
231			};
232
233			cpu {
234				sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
235			};
236
237			platform {
238				sound-dai = <&q6apm>;
239			};
240		};
241
242		va-dai-link {
243			link-name = "VA Capture";
244
245			codec {
246				sound-dai = <&lpass_vamacro 0>;
247			};
248
249			cpu {
250				sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
251			};
252
253			platform {
254				sound-dai = <&q6apm>;
255			};
256		};
257	};
258
259	vreg_cam_1p8: regulator-cam-1p8 {
260		compatible = "regulator-fixed";
261
262		regulator-name = "VREG_CAM_1P8";
263		regulator-min-microvolt = <1800000>;
264		regulator-max-microvolt = <1800000>;
265
266		gpio = <&tlmm 91 GPIO_ACTIVE_HIGH>;
267		enable-active-high;
268
269		pinctrl-0 = <&cam_ldo_en>;
270		pinctrl-names = "default";
271	};
272
273	vreg_edp_3p3: regulator-edp-3p3 {
274		compatible = "regulator-fixed";
275
276		regulator-name = "VREG_EDP_3P3";
277		regulator-min-microvolt = <3300000>;
278		regulator-max-microvolt = <3300000>;
279
280		gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>;
281		enable-active-high;
282
283		pinctrl-0 = <&edp_reg_en>;
284		pinctrl-names = "default";
285
286		regulator-boot-on;
287	};
288
289	vreg_nvme: regulator-nvme {
290		compatible = "regulator-fixed";
291
292		regulator-name = "VREG_NVME_3P3";
293		regulator-min-microvolt = <3300000>;
294		regulator-max-microvolt = <3300000>;
295
296		gpio = <&tlmm 18 GPIO_ACTIVE_HIGH>;
297		enable-active-high;
298
299		pinctrl-0 = <&nvme_reg_en>;
300		pinctrl-names = "default";
301
302		regulator-boot-on;
303	};
304
305	vreg_rtmr0_1p15: regulator-rtmr0-1p15 {
306		compatible = "regulator-fixed";
307
308		regulator-name = "VREG_RTMR0_1P15";
309		regulator-min-microvolt = <1150000>;
310		regulator-max-microvolt = <1150000>;
311
312		gpio = <&pmc8380_5_gpios 8 GPIO_ACTIVE_HIGH>;
313		enable-active-high;
314
315		pinctrl-0 = <&usb0_pwr_1p15_reg_en>;
316		pinctrl-names = "default";
317
318		regulator-boot-on;
319	};
320
321	vreg_rtmr0_1p8: regulator-rtmr0-1p8 {
322		compatible = "regulator-fixed";
323
324		regulator-name = "VREG_RTMR0_1P8";
325		regulator-min-microvolt = <1800000>;
326		regulator-max-microvolt = <1800000>;
327
328		gpio = <&pm8550ve_9_gpios 8 GPIO_ACTIVE_HIGH>;
329		enable-active-high;
330
331		pinctrl-0 = <&usb0_1p8_reg_en>;
332		pinctrl-names = "default";
333
334		regulator-boot-on;
335	};
336
337	vreg_rtmr0_3p3: regulator-rtmr0-3p3 {
338		compatible = "regulator-fixed";
339
340		regulator-name = "VREG_RTMR0_3P3";
341		regulator-min-microvolt = <3300000>;
342		regulator-max-microvolt = <3300000>;
343
344		gpio = <&pm8550_gpios 11 GPIO_ACTIVE_HIGH>;
345		enable-active-high;
346
347		pinctrl-0 = <&usb0_3p3_reg_en>;
348		pinctrl-names = "default";
349
350		regulator-boot-on;
351	};
352
353	vreg_rtmr1_1p15: regulator-rtmr1-1p15 {
354		compatible = "regulator-fixed";
355
356		regulator-name = "VREG_RTMR1_1P15";
357		regulator-min-microvolt = <1150000>;
358		regulator-max-microvolt = <1150000>;
359
360		gpio = <&tlmm 188 GPIO_ACTIVE_HIGH>;
361		enable-active-high;
362
363		pinctrl-0 = <&usb1_pwr_1p15_reg_en>;
364		pinctrl-names = "default";
365
366		regulator-boot-on;
367	};
368
369	vreg_rtmr1_1p8: regulator-rtmr1-1p8 {
370		compatible = "regulator-fixed";
371
372		regulator-name = "VREG_RTMR1_1P8";
373		regulator-min-microvolt = <1800000>;
374		regulator-max-microvolt = <1800000>;
375
376		gpio = <&tlmm 175 GPIO_ACTIVE_HIGH>;
377		enable-active-high;
378
379		pinctrl-0 = <&usb1_pwr_1p8_reg_en>;
380		pinctrl-names = "default";
381
382		regulator-boot-on;
383	};
384
385	vreg_rtmr1_3p3: regulator-rtmr1-3p3 {
386		compatible = "regulator-fixed";
387
388		regulator-name = "VREG_RTMR1_3P3";
389		regulator-min-microvolt = <3300000>;
390		regulator-max-microvolt = <3300000>;
391
392		gpio = <&tlmm 186 GPIO_ACTIVE_HIGH>;
393		enable-active-high;
394
395		pinctrl-0 = <&usb1_pwr_3p3_reg_en>;
396		pinctrl-names = "default";
397
398		regulator-boot-on;
399	};
400
401	vph_pwr: regulator-vph-pwr {
402		compatible = "regulator-fixed";
403
404		regulator-name = "vph_pwr";
405		regulator-min-microvolt = <3700000>;
406		regulator-max-microvolt = <3700000>;
407
408		regulator-always-on;
409		regulator-boot-on;
410	};
411
412	vreg_wcn_3p3: regulator-wcn-3p3 {
413		compatible = "regulator-fixed";
414
415		regulator-name = "VREG_WCN_3P3";
416		regulator-min-microvolt = <3300000>;
417		regulator-max-microvolt = <3300000>;
418
419		gpio = <&tlmm 214 GPIO_ACTIVE_HIGH>;
420		enable-active-high;
421
422		pinctrl-0 = <&wcn_sw_en>;
423		pinctrl-names = "default";
424
425		regulator-boot-on;
426	};
427
428	vreg_wcn_0p95: regulator-wcn-0p95 {
429		compatible = "regulator-fixed";
430
431		regulator-name = "VREG_WCN_0P95";
432		regulator-min-microvolt = <950000>;
433		regulator-max-microvolt = <950000>;
434
435		vin-supply = <&vreg_wcn_3p3>;
436	};
437
438	vreg_wcn_1p9: regulator-wcn-1p9 {
439		compatible = "regulator-fixed";
440
441		regulator-name = "VREG_WCN_1P9";
442		regulator-min-microvolt = <1900000>;
443		regulator-max-microvolt = <1900000>;
444
445		vin-supply = <&vreg_wcn_3p3>;
446	};
447
448	wcn7850-pmu {
449		compatible = "qcom,wcn7850-pmu";
450
451		vdd-supply = <&vreg_wcn_0p95>;
452		vddio-supply = <&vreg_l15b_1p8>;
453		vddaon-supply = <&vreg_wcn_0p95>;
454		vdddig-supply = <&vreg_wcn_0p95>;
455		vddrfa1p2-supply = <&vreg_wcn_1p9>;
456		vddrfa1p8-supply = <&vreg_wcn_1p9>;
457
458		wlan-enable-gpios = <&tlmm 117 GPIO_ACTIVE_HIGH>;
459		bt-enable-gpios = <&tlmm 116 GPIO_ACTIVE_HIGH>;
460
461		pinctrl-0 = <&wcn_wlan_bt_en>;
462		pinctrl-names = "default";
463
464		regulators {
465			vreg_pmu_rfa_cmn: ldo0 {
466				regulator-name = "vreg_pmu_rfa_cmn";
467			};
468
469			vreg_pmu_aon_0p59: ldo1 {
470				regulator-name = "vreg_pmu_aon_0p59";
471			};
472
473			vreg_pmu_wlcx_0p8: ldo2 {
474				regulator-name = "vreg_pmu_wlcx_0p8";
475			};
476
477			vreg_pmu_wlmx_0p85: ldo3 {
478				regulator-name = "vreg_pmu_wlmx_0p85";
479			};
480
481			vreg_pmu_btcmx_0p85: ldo4 {
482				regulator-name = "vreg_pmu_btcmx_0p85";
483			};
484
485			vreg_pmu_rfa_0p8: ldo5 {
486				regulator-name = "vreg_pmu_rfa_0p8";
487			};
488
489			vreg_pmu_rfa_1p2: ldo6 {
490				regulator-name = "vreg_pmu_rfa_1p2";
491			};
492
493			vreg_pmu_rfa_1p8: ldo7 {
494				regulator-name = "vreg_pmu_rfa_1p8";
495			};
496
497			vreg_pmu_pcie_0p9: ldo8 {
498				regulator-name = "vreg_pmu_pcie_0p9";
499			};
500
501			vreg_pmu_pcie_1p8: ldo9 {
502				regulator-name = "vreg_pmu_pcie_1p8";
503			};
504		};
505	};
506};
507
508&apps_rsc {
509	regulators-0 {
510		compatible = "qcom,pm8550-rpmh-regulators";
511		qcom,pmic-id = "b";
512
513		vdd-bob1-supply = <&vph_pwr>;
514		vdd-bob2-supply = <&vph_pwr>;
515		vdd-l1-l4-l10-supply = <&vreg_s4c_1p8>;
516		vdd-l2-l13-l14-supply = <&vreg_bob1>;
517		vdd-l5-l16-supply = <&vreg_bob1>;
518		vdd-l6-l7-supply = <&vreg_bob2>;
519		vdd-l8-l9-supply = <&vreg_bob1>;
520		vdd-l12-supply = <&vreg_s5j_1p2>;
521		vdd-l15-supply = <&vreg_s4c_1p8>;
522		vdd-l17-supply = <&vreg_bob2>;
523
524		vreg_bob1: bob1 {
525			regulator-name = "vreg_bob1";
526			regulator-min-microvolt = <3008000>;
527			regulator-max-microvolt = <3960000>;
528			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
529		};
530
531		vreg_bob2: bob2 {
532			regulator-name = "vreg_bob2";
533			regulator-min-microvolt = <2504000>;
534			regulator-max-microvolt = <3008000>;
535			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
536		};
537
538		vreg_l1b_1p8: ldo1 {
539			regulator-name = "vreg_l1b_1p8";
540			regulator-min-microvolt = <1800000>;
541			regulator-max-microvolt = <1800000>;
542			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
543		};
544
545		vreg_l2b_3p0: ldo2 {
546			regulator-name = "vreg_l2b_3p0";
547			regulator-min-microvolt = <3072000>;
548			regulator-max-microvolt = <3100000>;
549			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
550		};
551
552		vreg_l4b_1p8: ldo4 {
553			regulator-name = "vreg_l4b_1p8";
554			regulator-min-microvolt = <1800000>;
555			regulator-max-microvolt = <1800000>;
556			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
557		};
558
559		vreg_l6b_1p8: ldo6 {
560			regulator-name = "vreg_l6b_1p8";
561			regulator-min-microvolt = <1800000>;
562			regulator-max-microvolt = <2960000>;
563			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
564		};
565
566		vreg_l7b_2p8: ldo7 {
567			regulator-name = "vreg_l7b_2p8";
568			regulator-min-microvolt = <2800000>;
569			regulator-max-microvolt = <2800000>;
570			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
571		};
572
573		vreg_l8b_3p0: ldo8 {
574			regulator-name = "vreg_l8b_3p0";
575			regulator-min-microvolt = <3072000>;
576			regulator-max-microvolt = <3072000>;
577			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
578		};
579
580		vreg_l9b_2p9: ldo9 {
581			regulator-name = "vreg_l9b_2p9";
582			regulator-min-microvolt = <2960000>;
583			regulator-max-microvolt = <2960000>;
584			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
585		};
586
587		vreg_l12b_1p2: ldo12 {
588			regulator-name = "vreg_l12b_1p2";
589			regulator-min-microvolt = <1200000>;
590			regulator-max-microvolt = <1200000>;
591			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
592		};
593
594		vreg_l13b_3p0: ldo13 {
595			regulator-name = "vreg_l13b_3p0";
596			regulator-min-microvolt = <3072000>;
597			regulator-max-microvolt = <3100000>;
598			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
599		};
600
601		vreg_l14b_3p0: ldo14 {
602			regulator-name = "vreg_l14b_3p0";
603			regulator-min-microvolt = <3072000>;
604			regulator-max-microvolt = <3072000>;
605			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
606		};
607
608		vreg_l15b_1p8: ldo15 {
609			regulator-name = "vreg_l15b_1p8";
610			regulator-min-microvolt = <1800000>;
611			regulator-max-microvolt = <1800000>;
612			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
613		};
614	};
615
616	regulators-1 {
617		compatible = "qcom,pm8550ve-rpmh-regulators";
618		qcom,pmic-id = "c";
619
620		vdd-l1-supply = <&vreg_s5j_1p2>;
621		vdd-l2-supply = <&vreg_s1f_0p7>;
622		vdd-l3-supply = <&vreg_s1f_0p7>;
623		vdd-s4-supply = <&vph_pwr>;
624
625		vreg_s4c_1p8: smps4 {
626			regulator-name = "vreg_s4c_1p8";
627			regulator-min-microvolt = <1856000>;
628			regulator-max-microvolt = <2000000>;
629			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
630		};
631
632		vreg_l1c_1p2: ldo1 {
633			regulator-name = "vreg_l1c_1p2";
634			regulator-min-microvolt = <1200000>;
635			regulator-max-microvolt = <1200000>;
636			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
637		};
638
639		vreg_l2c_0p8: ldo2 {
640			regulator-name = "vreg_l2c_0p8";
641			regulator-min-microvolt = <880000>;
642			regulator-max-microvolt = <920000>;
643			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
644		};
645
646		vreg_l3c_0p8: ldo3 {
647			regulator-name = "vreg_l3c_0p8";
648			regulator-min-microvolt = <880000>;
649			regulator-max-microvolt = <920000>;
650			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
651		};
652	};
653
654	regulators-2 {
655		compatible = "qcom,pmc8380-rpmh-regulators";
656		qcom,pmic-id = "d";
657
658		vdd-l1-supply = <&vreg_s1f_0p7>;
659		vdd-l2-supply = <&vreg_s1f_0p7>;
660		vdd-l3-supply = <&vreg_s4c_1p8>;
661		vdd-s1-supply = <&vph_pwr>;
662
663		vreg_l1d_0p8: ldo1 {
664			regulator-name = "vreg_l1d_0p8";
665			regulator-min-microvolt = <880000>;
666			regulator-max-microvolt = <920000>;
667			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
668		};
669
670		vreg_l2d_0p9: ldo2 {
671			regulator-name = "vreg_l2d_0p9";
672			regulator-min-microvolt = <912000>;
673			regulator-max-microvolt = <912000>;
674			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
675		};
676
677		vreg_l3d_1p8: ldo3 {
678			regulator-name = "vreg_l3d_1p8";
679			regulator-min-microvolt = <1800000>;
680			regulator-max-microvolt = <1800000>;
681			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
682		};
683	};
684
685	regulators-3 {
686		compatible = "qcom,pmc8380-rpmh-regulators";
687		qcom,pmic-id = "e";
688
689		vdd-l2-supply = <&vreg_s1f_0p7>;
690		vdd-l3-supply = <&vreg_s5j_1p2>;
691
692		vreg_l2e_0p8: ldo2 {
693			regulator-name = "vreg_l2e_0p8";
694			regulator-min-microvolt = <880000>;
695			regulator-max-microvolt = <920000>;
696			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
697		};
698
699		vreg_l3e_1p2: ldo3 {
700			regulator-name = "vreg_l3e_1p2";
701			regulator-min-microvolt = <1200000>;
702			regulator-max-microvolt = <1200000>;
703			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
704		};
705	};
706
707	regulators-4 {
708		compatible = "qcom,pmc8380-rpmh-regulators";
709		qcom,pmic-id = "f";
710
711		vdd-l1-supply = <&vreg_s5j_1p2>;
712		vdd-l2-supply = <&vreg_s5j_1p2>;
713		vdd-l3-supply = <&vreg_s5j_1p2>;
714		vdd-s1-supply = <&vph_pwr>;
715
716		vreg_s1f_0p7: smps1 {
717			regulator-name = "vreg_s1f_0p7";
718			regulator-min-microvolt = <700000>;
719			regulator-max-microvolt = <1100000>;
720			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
721		};
722	};
723
724	regulators-6 {
725		compatible = "qcom,pm8550ve-rpmh-regulators";
726		qcom,pmic-id = "i";
727
728		vdd-l1-supply = <&vreg_s4c_1p8>;
729		vdd-l2-supply = <&vreg_s5j_1p2>;
730		vdd-l3-supply = <&vreg_s1f_0p7>;
731		vdd-s1-supply = <&vph_pwr>;
732		vdd-s2-supply = <&vph_pwr>;
733
734		vreg_l1i_1p8: ldo1 {
735			regulator-name = "vreg_l1i_1p8";
736			regulator-min-microvolt = <1800000>;
737			regulator-max-microvolt = <1800000>;
738			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
739		};
740
741		vreg_l2i_1p2: ldo2 {
742			regulator-name = "vreg_l2i_1p2";
743			regulator-min-microvolt = <1200000>;
744			regulator-max-microvolt = <1200000>;
745			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
746		};
747
748		vreg_l3i_0p8: ldo3 {
749			regulator-name = "vreg_l3i_0p8";
750			regulator-min-microvolt = <880000>;
751			regulator-max-microvolt = <920000>;
752			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
753		};
754	};
755
756	regulators-7 {
757		compatible = "qcom,pm8550ve-rpmh-regulators";
758		qcom,pmic-id = "j";
759
760		vdd-l1-supply = <&vreg_s1f_0p7>;
761		vdd-l2-supply = <&vreg_s5j_1p2>;
762		vdd-l3-supply = <&vreg_s1f_0p7>;
763		vdd-s5-supply = <&vph_pwr>;
764
765		vreg_s5j_1p2: smps5 {
766			regulator-name = "vreg_s5j_1p2";
767			regulator-min-microvolt = <1256000>;
768			regulator-max-microvolt = <1304000>;
769			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
770		};
771
772		vreg_l1j_0p8: ldo1 {
773			regulator-name = "vreg_l1j_0p8";
774			regulator-min-microvolt = <912000>;
775			regulator-max-microvolt = <912000>;
776			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
777		};
778
779		vreg_l2j_1p2: ldo2 {
780			regulator-name = "vreg_l2j_1p2";
781			regulator-min-microvolt = <1256000>;
782			regulator-max-microvolt = <1256000>;
783			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
784		};
785
786		vreg_l3j_0p8: ldo3 {
787			regulator-name = "vreg_l3j_0p8";
788			regulator-min-microvolt = <880000>;
789			regulator-max-microvolt = <920000>;
790			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
791		};
792	};
793};
794
795&i2c0 {
796	clock-frequency = <400000>;
797
798	status = "okay";
799
800	keyboard@5 {
801		compatible = "hid-over-i2c";
802		reg = <0x5>;
803
804		hid-descr-addr = <0x20>;
805		interrupts-extended = <&tlmm 67 IRQ_TYPE_LEVEL_LOW>;
806
807		pinctrl-0 = <&kybd_default>;
808		pinctrl-names = "default";
809
810		wakeup-source;
811	};
812
813	touchpad@2c {
814		compatible = "hid-over-i2c";
815		reg = <0x2c>;
816
817		hid-descr-addr = <0x20>;
818		interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>;
819
820		pinctrl-0 = <&tpad_default>;
821		pinctrl-names = "default";
822
823		wakeup-source;
824	};
825};
826
827&i2c3 {
828	clock-frequency = <400000>;
829
830	status = "okay";
831
832	typec-mux@8 {
833		compatible = "parade,ps8833", "parade,ps8830";
834		reg = <0x8>;
835
836		clocks = <&rpmhcc RPMH_RF_CLK3>;
837
838		vdd-supply = <&vreg_rtmr0_1p15>;
839		vdd33-supply = <&vreg_rtmr0_3p3>;
840		vdd33-cap-supply = <&vreg_rtmr0_3p3>;
841		vddar-supply = <&vreg_rtmr0_1p15>;
842		vddat-supply = <&vreg_rtmr0_1p15>;
843		vddio-supply = <&vreg_rtmr0_1p8>;
844
845		reset-gpios = <&pm8550_gpios 10 GPIO_ACTIVE_LOW>;
846
847		pinctrl-0 = <&rtmr0_default>;
848		pinctrl-names = "default";
849
850		retimer-switch;
851		orientation-switch;
852
853		ports {
854			#address-cells = <1>;
855			#size-cells = <0>;
856
857			port@0 {
858				reg = <0>;
859
860				retimer_ss0_ss_out: endpoint {
861					remote-endpoint = <&pmic_glink_ss0_ss_in>;
862				};
863			};
864
865			port@1 {
866				reg = <1>;
867
868				retimer_ss0_ss_in: endpoint {
869					remote-endpoint = <&usb_1_ss0_qmpphy_out>;
870				};
871			};
872
873			port@2 {
874				reg = <2>;
875
876				retimer_ss0_con_sbu_out: endpoint {
877					remote-endpoint = <&pmic_glink_ss0_con_sbu_in>;
878				};
879			};
880		};
881	};
882};
883
884&i2c5 {
885	clock-frequency = <400000>;
886
887	status = "okay";
888
889	/* EC @0x3b */
890
891	/* Type A Port */
892	eusb3_typea_repeater: redriver@43 {
893		compatible = "nxp,ptn3222";
894		reg = <0x43>;
895		#phy-cells = <0>;
896
897		vdd3v3-supply = <&vreg_l13b_3p0>;
898		vdd1v8-supply = <&vreg_l4b_1p8>;
899
900		reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
901
902		pinctrl-0 = <&eusb3_reset_n>;
903		pinctrl-names = "default";
904	};
905
906	/* Fingerprint scanner */
907	eusb5_frp_repeater: redriver@4f {
908		compatible = "nxp,ptn3222";
909		reg = <0x4f>;
910		#phy-cells = <0>;
911
912		vdd3v3-supply = <&vreg_l13b_3p0>;
913		vdd1v8-supply = <&vreg_l4b_1p8>;
914
915		reset-gpios = <&tlmm 184 GPIO_ACTIVE_LOW>;
916
917		pinctrl-0 = <&eusb5_reset_n>;
918		pinctrl-names = "default";
919	};
920};
921
922&i2c7 {
923	clock-frequency = <400000>;
924
925	status = "okay";
926
927	typec-mux@8 {
928		compatible = "parade,ps8833", "parade,ps8830";
929		reg = <0x8>;
930
931		clocks = <&rpmhcc RPMH_RF_CLK4>;
932
933		vdd-supply = <&vreg_rtmr1_1p15>;
934		vdd33-supply = <&vreg_rtmr1_3p3>;
935		vdd33-cap-supply = <&vreg_rtmr1_3p3>;
936		vddar-supply = <&vreg_rtmr1_1p15>;
937		vddat-supply = <&vreg_rtmr1_1p15>;
938		vddio-supply = <&vreg_rtmr1_1p8>;
939
940		reset-gpios = <&tlmm 176 GPIO_ACTIVE_LOW>;
941
942		pinctrl-0 = <&rtmr1_default>;
943		pinctrl-names = "default";
944
945		retimer-switch;
946		orientation-switch;
947
948		ports {
949			#address-cells = <1>;
950			#size-cells = <0>;
951
952			port@0 {
953				reg = <0>;
954
955				retimer_ss1_ss_out: endpoint {
956					remote-endpoint = <&pmic_glink_ss1_ss_in>;
957				};
958			};
959
960			port@1 {
961				reg = <1>;
962
963				retimer_ss1_ss_in: endpoint {
964					remote-endpoint = <&usb_1_ss1_qmpphy_out>;
965				};
966			};
967
968			port@2 {
969				reg = <2>;
970
971				retimer_ss1_con_sbu_out: endpoint {
972					remote-endpoint = <&pmic_glink_ss1_con_sbu_in>;
973				};
974			};
975		};
976	};
977};
978
979&i2c8 {
980	clock-frequency = <400000>;
981
982	status = "okay";
983};
984
985&i2c20 {
986	clock-frequency = <400000>;
987
988	status = "okay";
989};
990
991&lpass_tlmm {
992	spkr_01_sd_n_active: spkr-01-sd-n-active-state {
993		pins = "gpio12";
994		function = "gpio";
995		drive-strength = <16>;
996		bias-disable;
997		output-low;
998	};
999
1000	spkr_23_sd_n_active: spkr-23-sd-n-active-state {
1001		pins = "gpio13";
1002		function = "gpio";
1003		drive-strength = <16>;
1004		bias-disable;
1005		output-low;
1006	};
1007};
1008
1009&lpass_vamacro {
1010	pinctrl-0 = <&dmic01_default>;
1011	pinctrl-names = "default";
1012
1013	vdd-micb-supply = <&vreg_l1b_1p8>;
1014	qcom,dmic-sample-rate = <4800000>;
1015};
1016
1017&mdss {
1018	status = "okay";
1019};
1020
1021&mdss_dp0 {
1022	status = "okay";
1023};
1024
1025&mdss_dp0_out {
1026	data-lanes = <0 1>;
1027	link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
1028};
1029
1030&mdss_dp1 {
1031	status = "okay";
1032};
1033
1034&mdss_dp1_out {
1035	data-lanes = <0 1>;
1036	link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
1037};
1038
1039&mdss_dp3 {
1040	/delete-property/ #sound-dai-cells;
1041
1042	status = "okay";
1043
1044	aux-bus {
1045		panel {
1046			compatible = "edp-panel";
1047			enable-gpios = <&tlmm 74 GPIO_ACTIVE_HIGH>;
1048			power-supply = <&vreg_edp_3p3>;
1049
1050			pinctrl-0 = <&edp_bl_en>;
1051			pinctrl-names = "default";
1052
1053			port {
1054				edp_panel_in: endpoint {
1055					remote-endpoint = <&mdss_dp3_out>;
1056				};
1057			};
1058		};
1059	};
1060
1061	ports {
1062		port@1 {
1063			reg = <1>;
1064
1065			mdss_dp3_out: endpoint {
1066				data-lanes = <0 1 2 3>;
1067				link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
1068
1069				remote-endpoint = <&edp_panel_in>;
1070			};
1071		};
1072	};
1073};
1074
1075&mdss_dp3_phy {
1076	vdda-phy-supply = <&vreg_l3j_0p8>;
1077	vdda-pll-supply = <&vreg_l2j_1p2>;
1078
1079	status = "okay";
1080};
1081
1082&pcie4 {
1083	perst-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>;
1084	wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>;
1085
1086	pinctrl-0 = <&pcie4_default>;
1087	pinctrl-names = "default";
1088
1089	status = "okay";
1090};
1091
1092&pcie4_phy {
1093	vdda-phy-supply = <&vreg_l3i_0p8>;
1094	vdda-pll-supply = <&vreg_l3e_1p2>;
1095
1096	status = "okay";
1097};
1098
1099&pcie4_port0 {
1100	wifi@0 {
1101		compatible = "pci17cb,1107";
1102		reg = <0x10000 0x0 0x0 0x0 0x0>;
1103
1104		vddaon-supply = <&vreg_pmu_aon_0p59>;
1105		vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
1106		vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
1107		vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
1108		vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
1109		vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
1110		vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>;
1111		vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
1112		vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
1113	};
1114};
1115
1116&pcie6a {
1117	perst-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>;
1118	wake-gpios = <&tlmm 154 GPIO_ACTIVE_LOW>;
1119
1120	vddpe-3v3-supply = <&vreg_nvme>;
1121
1122	pinctrl-0 = <&pcie6a_default>;
1123	pinctrl-names = "default";
1124
1125	status = "okay";
1126};
1127
1128&pcie6a_phy {
1129	vdda-phy-supply = <&vreg_l1d_0p8>;
1130	vdda-pll-supply = <&vreg_l2j_1p2>;
1131
1132	status = "okay";
1133};
1134
1135&pm8550_gpios {
1136	rtmr0_default: rtmr0-reset-n-active-state {
1137		pins = "gpio10";
1138		function = "normal";
1139		power-source = <1>; /* 1.8V */
1140		bias-disable;
1141		input-disable;
1142		output-enable;
1143	};
1144
1145	usb0_3p3_reg_en: usb0-3p3-reg-en-state {
1146		pins = "gpio11";
1147		function = "normal";
1148		power-source = <1>; /* 1.8V */
1149		bias-disable;
1150		input-disable;
1151		output-enable;
1152	};
1153};
1154
1155&pm8550ve_9_gpios {
1156	usb0_1p8_reg_en: usb0-1p8-reg-en-state {
1157		pins = "gpio8";
1158		function = "normal";
1159		power-source = <1>; /* 1.8V */
1160		bias-disable;
1161		input-disable;
1162		output-enable;
1163	};
1164};
1165
1166&pmc8380_5_gpios {
1167	usb0_pwr_1p15_reg_en: usb0-pwr-1p15-reg-en-state {
1168		pins = "gpio8";
1169		function = "normal";
1170		power-source = <1>; /* 1.8V */
1171		bias-disable;
1172		input-disable;
1173		output-enable;
1174	};
1175};
1176
1177&qupv3_0 {
1178	status = "okay";
1179};
1180
1181&qupv3_1 {
1182	status = "okay";
1183};
1184
1185&qupv3_2 {
1186	status = "okay";
1187};
1188
1189&sdhc_2 {
1190	cd-gpios = <&tlmm 71 GPIO_ACTIVE_LOW>;
1191	pinctrl-0 = <&sdc2_default &sdc2_card_det_n>;
1192	pinctrl-1 = <&sdc2_sleep &sdc2_card_det_n>;
1193	pinctrl-names = "default", "sleep";
1194	vmmc-supply = <&vreg_l9b_2p9>;
1195	vqmmc-supply = <&vreg_l6b_1p8>;
1196	bus-width = <4>;
1197	no-sdio;
1198	no-mmc;
1199
1200	status = "okay";
1201};
1202
1203&smb2360_0 {
1204	status = "okay";
1205};
1206
1207&smb2360_0_eusb2_repeater {
1208	vdd18-supply = <&vreg_l3d_1p8>;
1209	vdd3-supply = <&vreg_l2b_3p0>;
1210};
1211
1212&smb2360_1 {
1213	status = "okay";
1214};
1215
1216&smb2360_1_eusb2_repeater {
1217	vdd18-supply = <&vreg_l3d_1p8>;
1218	vdd3-supply = <&vreg_l14b_3p0>;
1219};
1220
1221&swr0 {
1222	status = "okay";
1223
1224	pinctrl-0 = <&wsa_swr_active>, <&spkr_01_sd_n_active>;
1225	pinctrl-names = "default";
1226
1227	/* WSA8845, Left Woofer */
1228	left_woofer: speaker@0,0 {
1229		compatible = "sdw20217020400";
1230		reg = <0 0>;
1231		reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>;
1232		#sound-dai-cells = <0>;
1233		sound-name-prefix = "WooferLeft";
1234		vdd-1p8-supply = <&vreg_l15b_1p8>;
1235		vdd-io-supply = <&vreg_l12b_1p2>;
1236		qcom,port-mapping = <1 2 3 7 10 13>;
1237	};
1238
1239	/* WSA8845, Left Tweeter */
1240	left_tweeter: speaker@0,1 {
1241		compatible = "sdw20217020400";
1242		reg = <0 1>;
1243		reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>;
1244		#sound-dai-cells = <0>;
1245		sound-name-prefix = "TweeterLeft";
1246		vdd-1p8-supply = <&vreg_l15b_1p8>;
1247		vdd-io-supply = <&vreg_l12b_1p2>;
1248		qcom,port-mapping = <4 5 6 7 11 13>;
1249	};
1250};
1251
1252&swr1 {
1253	status = "okay";
1254
1255	/* WCD9385 RX */
1256	wcd_rx: codec@0,4 {
1257		compatible = "sdw20217010d00";
1258		reg = <0 4>;
1259		qcom,rx-port-mapping = <1 2 3 4 5>;
1260	};
1261};
1262
1263&swr2 {
1264	status = "okay";
1265
1266	/* WCD9385 TX */
1267	wcd_tx: codec@0,3 {
1268		compatible = "sdw20217010d00";
1269		reg = <0 3>;
1270		qcom,tx-port-mapping = <2 2 3 4>;
1271	};
1272};
1273
1274&swr3 {
1275	status = "okay";
1276
1277	pinctrl-0 = <&wsa2_swr_active>, <&spkr_23_sd_n_active>;
1278	pinctrl-names = "default";
1279
1280	/* WSA8845, Right Woofer */
1281	right_woofer: speaker@0,0 {
1282		compatible = "sdw20217020400";
1283		reg = <0 0>;
1284		reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>;
1285		#sound-dai-cells = <0>;
1286		sound-name-prefix = "WooferRight";
1287		vdd-1p8-supply = <&vreg_l15b_1p8>;
1288		vdd-io-supply = <&vreg_l12b_1p2>;
1289		qcom,port-mapping = <1 2 3 7 10 13>;
1290	};
1291
1292	/* WSA8845, Right Tweeter */
1293	right_tweeter: speaker@0,1 {
1294		compatible = "sdw20217020400";
1295		reg = <0 1>;
1296		reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>;
1297		#sound-dai-cells = <0>;
1298		sound-name-prefix = "TweeterRight";
1299		vdd-1p8-supply = <&vreg_l15b_1p8>;
1300		vdd-io-supply = <&vreg_l12b_1p2>;
1301		qcom,port-mapping = <4 5 6 7 11 13>;
1302	};
1303};
1304
1305&tlmm {
1306	gpio-reserved-ranges = <44 4>,  /* SPI11 (TPM) */
1307			       <76 4>,  /* SPI19 (TZ Protected) */
1308			       <238 1>; /* UFS Reset */
1309
1310	cam_rgb_default: cam-rgb-default-state {
1311		mclk-pins {
1312			pins = "gpio100";
1313			function = "cam_aon";
1314			drive-strength = <16>;
1315			bias-disable;
1316		};
1317
1318		reset-n-pins {
1319			pins = "gpio237";
1320			function = "gpio";
1321			drive-strength = <2>;
1322			bias-disable;
1323		};
1324	};
1325
1326	cam_indicator_en: cam-indicator-en-state {
1327		pins = "gpio110";
1328		function = "gpio";
1329		drive-strength = <2>;
1330		bias-disable;
1331	};
1332
1333	cam_ldo_en: cam-ldo-en-state {
1334		pins = "gpio91";
1335		function = "gpio";
1336		drive-strength = <2>;
1337		bias-disable;
1338	};
1339
1340	edp_bl_en: edp-bl-en-state {
1341		pins = "gpio74";
1342		function = "gpio";
1343		drive-strength = <2>;
1344		bias-disable;
1345	};
1346
1347	edp_reg_en: edp-reg-en-state {
1348		pins = "gpio70";
1349		function = "gpio";
1350		drive-strength = <16>;
1351		bias-disable;
1352	};
1353
1354	eusb3_reset_n: eusb3-reset-n-state {
1355		pins = "gpio6";
1356		function = "gpio";
1357		drive-strength = <2>;
1358		bias-disable;
1359		output-low;
1360	};
1361
1362	eusb5_reset_n: eusb5-reset-n-state {
1363		pins = "gpio184";
1364		function = "gpio";
1365		drive-strength = <2>;
1366		bias-disable;
1367		output-low;
1368	};
1369
1370	hall_int_n_default: hall-int-n-state {
1371		pins = "gpio92";
1372		function = "gpio";
1373
1374		bias-disable;
1375	};
1376
1377	kybd_default: kybd-default-state {
1378		pins = "gpio67";
1379		function = "gpio";
1380		bias-pull-up;
1381	};
1382
1383	nvme_reg_en: nvme-reg-en-state {
1384		pins = "gpio18";
1385		function = "gpio";
1386		drive-strength = <2>;
1387		bias-disable;
1388	};
1389
1390	pcie4_default: pcie4-default-state {
1391		clkreq-n-pins {
1392			pins = "gpio147";
1393			function = "pcie4_clk";
1394			drive-strength = <2>;
1395			bias-pull-up;
1396		};
1397
1398		perst-n-pins {
1399			pins = "gpio146";
1400			function = "gpio";
1401			drive-strength = <2>;
1402			bias-disable;
1403		};
1404
1405		wake-n-pins {
1406			pins = "gpio148";
1407			function = "gpio";
1408			drive-strength = <2>;
1409			bias-pull-up;
1410		};
1411	};
1412
1413	pcie6a_default: pcie6a-default-state {
1414		clkreq-n-pins {
1415			pins = "gpio153";
1416			function = "pcie6a_clk";
1417			drive-strength = <2>;
1418			bias-pull-up;
1419		};
1420
1421		perst-n-pins {
1422			pins = "gpio152";
1423			function = "gpio";
1424			drive-strength = <2>;
1425			bias-disable;
1426		};
1427
1428		wake-n-pins {
1429			pins = "gpio154";
1430			function = "gpio";
1431			drive-strength = <2>;
1432			bias-pull-up;
1433		};
1434	};
1435
1436	rtmr1_default: rtmr1-reset-n-active-state {
1437		pins = "gpio176";
1438		function = "gpio";
1439		drive-strength = <2>;
1440		bias-disable;
1441	};
1442
1443	sdc2_card_det_n: sdc2-card-det-state {
1444		pins = "gpio71";
1445		function = "gpio";
1446		drive-strength = <2>;
1447		bias-pull-up;
1448	};
1449
1450	tpad_default: tpad-default-state {
1451		disable-pins {
1452			pins = "gpio38";
1453			function = "gpio";
1454			output-high;
1455		};
1456
1457		int-n-pins {
1458			pins = "gpio3";
1459			function = "gpio";
1460			bias-pull-up;
1461		};
1462
1463		reset-n-pins {
1464			pins = "gpio52";
1465			function = "gpio";
1466			bias-disable;
1467		};
1468	};
1469
1470	ts0_default: ts0-default-state {
1471		disable-pins {
1472			pins = "gpio75";
1473			function = "gpio";
1474			output-high;
1475		};
1476
1477		int-n-pins {
1478			pins = "gpio51";
1479			function = "gpio";
1480			bias-pull-up;
1481		};
1482
1483		reset-n-pins {
1484			/* Technically should be High-Z input */
1485			pins = "gpio48";
1486			function = "gpio";
1487			output-low;
1488			drive-strength = <2>;
1489		};
1490	};
1491
1492	usb1_pwr_1p15_reg_en: usb1-pwr-1p15-reg-en-state {
1493		pins = "gpio188";
1494		function = "gpio";
1495		drive-strength = <2>;
1496		bias-disable;
1497	};
1498
1499	usb1_pwr_1p8_reg_en: usb1-pwr-1p8-reg-en-state {
1500		pins = "gpio175";
1501		function = "gpio";
1502		drive-strength = <2>;
1503		bias-disable;
1504	};
1505
1506	usb1_pwr_3p3_reg_en: usb1-pwr-3p3-reg-en-state {
1507		pins = "gpio186";
1508		function = "gpio";
1509		drive-strength = <2>;
1510		bias-disable;
1511	};
1512
1513	wcd_default: wcd-reset-n-active-state {
1514		pins = "gpio191";
1515		function = "gpio";
1516		drive-strength = <16>;
1517		bias-disable;
1518		output-low;
1519	};
1520
1521	wcn_sw_en: wcn-sw-en-state {
1522		pins = "gpio214";
1523		function = "gpio";
1524		drive-strength = <2>;
1525		bias-disable;
1526	};
1527
1528	wcn_wlan_bt_en: wcn-wlan-bt-en-state {
1529		pins = "gpio116", "gpio117";
1530		function = "gpio";
1531		drive-strength = <2>;
1532		bias-disable;
1533	};
1534};
1535
1536&uart14 {
1537	status = "okay";
1538
1539	bluetooth {
1540		compatible = "qcom,wcn7850-bt";
1541		max-speed = <3200000>;
1542
1543		vddaon-supply = <&vreg_pmu_aon_0p59>;
1544		vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
1545		vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
1546		vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
1547		vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
1548		vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
1549		vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>;
1550	};
1551};
1552
1553&usb_1_ss0 {
1554	status = "okay";
1555};
1556
1557&usb_1_ss0_dwc3 {
1558	dr_mode = "host";
1559};
1560
1561&usb_1_ss0_dwc3_hs {
1562	remote-endpoint = <&pmic_glink_ss0_hs_in>;
1563};
1564
1565&usb_1_ss0_hsphy {
1566	vdd-supply = <&vreg_l3j_0p8>;
1567	vdda12-supply = <&vreg_l2j_1p2>;
1568
1569	phys = <&smb2360_0_eusb2_repeater>;
1570
1571	status = "okay";
1572};
1573
1574&usb_1_ss0_qmpphy {
1575	vdda-phy-supply = <&vreg_l2j_1p2>;
1576	vdda-pll-supply = <&vreg_l1j_0p8>;
1577
1578	status = "okay";
1579};
1580
1581&usb_1_ss0_qmpphy_out {
1582	remote-endpoint = <&retimer_ss0_ss_in>;
1583};
1584
1585&usb_1_ss1 {
1586	status = "okay";
1587};
1588
1589&usb_1_ss1_dwc3 {
1590	dr_mode = "host";
1591};
1592
1593&usb_1_ss1_dwc3_hs {
1594	remote-endpoint = <&pmic_glink_ss1_hs_in>;
1595};
1596
1597&usb_1_ss1_hsphy {
1598	vdd-supply = <&vreg_l3j_0p8>;
1599	vdda12-supply = <&vreg_l2j_1p2>;
1600
1601	phys = <&smb2360_1_eusb2_repeater>;
1602
1603	status = "okay";
1604};
1605
1606&usb_1_ss1_qmpphy {
1607	vdda-phy-supply = <&vreg_l2j_1p2>;
1608	vdda-pll-supply = <&vreg_l2d_0p9>;
1609
1610	status = "okay";
1611};
1612
1613&usb_1_ss1_qmpphy_out {
1614	remote-endpoint = <&retimer_ss1_ss_in>;
1615};
1616
1617&usb_2 {
1618	status = "okay";
1619};
1620
1621&usb_2_dwc3 {
1622	dr_mode = "host";
1623};
1624
1625&usb_2_hsphy {
1626	vdd-supply = <&vreg_l2e_0p8>;
1627	vdda12-supply = <&vreg_l3e_1p2>;
1628
1629	phys = <&eusb5_frp_repeater>;
1630
1631	status = "okay";
1632};
1633
1634&usb_mp {
1635	status = "okay";
1636};
1637
1638&usb_mp_hsphy0 {
1639	vdd-supply = <&vreg_l2e_0p8>;
1640	vdda12-supply = <&vreg_l3e_1p2>;
1641
1642	phys = <&eusb3_typea_repeater>;
1643
1644	status = "okay";
1645};
1646
1647&usb_mp_qmpphy0 {
1648	vdda-phy-supply = <&vreg_l3e_1p2>;
1649	vdda-pll-supply = <&vreg_l3c_0p8>;
1650
1651	status = "okay";
1652};
1653
1654&usb_mp_hsphy1 {
1655	vdd-supply = <&vreg_l2e_0p8>;
1656	vdda12-supply = <&vreg_l3e_1p2>;
1657
1658	status = "okay";
1659};
1660
1661&usb_mp_qmpphy1 {
1662	vdda-phy-supply = <&vreg_l3e_1p2>;
1663	vdda-pll-supply = <&vreg_l3c_0p8>;
1664
1665	status = "okay";
1666};
1667