xref: /linux/scripts/dtc/include-prefixes/arm64/qcom/lemans-ride-common.dtsi (revision 4f38da1f027ea2c9f01bb71daa7a299c191b6940)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2023, Linaro Limited
4 */
5
6#include <dt-bindings/gpio/gpio.h>
7#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
8
9/ {
10	aliases {
11		i2c11 = &i2c11;
12		i2c18 = &i2c18;
13		serial0 = &uart10;
14		serial1 = &uart12;
15		serial2 = &uart17;
16		spi16 = &spi16;
17		ufshc1 = &ufs_mem_hc;
18	};
19
20	chosen {
21		stdout-path = "serial0:115200n8";
22	};
23
24	vreg_12p0: vreg-12p0-regulator {
25		compatible = "regulator-fixed";
26		regulator-name = "VREG_12P0";
27
28		regulator-always-on;
29		regulator-boot-on;
30		regulator-min-microvolt = <12000000>;
31		regulator-max-microvolt = <12000000>;
32	};
33
34	vreg_5p0: vreg-5p0-regulator {
35		compatible = "regulator-fixed";
36		regulator-name = "VREG_5P0";
37
38		regulator-always-on;
39		regulator-boot-on;
40		regulator-min-microvolt = <5000000>;
41		regulator-max-microvolt = <5000000>;
42
43		vin-supply = <&vreg_12p0>;
44	};
45
46	vreg_1p8: vreg-1p8-regulator {
47		compatible = "regulator-fixed";
48		regulator-name = "VREG_1P8";
49
50		regulator-always-on;
51		regulator-boot-on;
52		regulator-min-microvolt = <1800000>;
53		regulator-max-microvolt = <1800000>;
54
55		vin-supply = <&vreg_5p0>;
56	};
57
58	vreg_1p0: vreg-1p0-regulator {
59		compatible = "regulator-fixed";
60		regulator-name = "VREG_1P0";
61
62		regulator-always-on;
63		regulator-boot-on;
64		regulator-min-microvolt = <1000000>;
65		regulator-max-microvolt = <1000000>;
66
67		vin-supply = <&vreg_1p8>;
68	};
69
70	vreg_3p0: vreg-3p0-regulator {
71		compatible = "regulator-fixed";
72		regulator-name = "VREG_3P0";
73
74		regulator-always-on;
75		regulator-boot-on;
76		regulator-min-microvolt = <3000000>;
77		regulator-max-microvolt = <3000000>;
78
79		vin-supply = <&vreg_12p0>;
80	};
81
82	vreg_conn_1p8: vreg_conn_1p8 {
83		compatible = "regulator-fixed";
84		regulator-name = "vreg_conn_1p8";
85		startup-delay-us = <4000>;
86		enable-active-high;
87		gpio = <&pmm8654au_1_gpios 4 GPIO_ACTIVE_HIGH>;
88	};
89
90	vreg_conn_pa: vreg_conn_pa {
91		compatible = "regulator-fixed";
92		regulator-name = "vreg_conn_pa";
93		startup-delay-us = <4000>;
94		enable-active-high;
95		gpio = <&pmm8654au_1_gpios 6 GPIO_ACTIVE_HIGH>;
96	};
97
98	wcn6855-pmu {
99		compatible = "qcom,wcn6855-pmu";
100
101		pinctrl-names = "default";
102		pinctrl-0 = <&bt_en_state>, <&wlan_en_state>;
103
104		vddio-supply = <&vreg_conn_pa>;
105		vddaon-supply = <&vreg_l2c>;
106		vddpmu-supply = <&vreg_conn_1p8>;
107		vddrfa0p95-supply = <&vreg_l2c>;
108		vddrfa1p3-supply = <&vreg_l6e>;
109		vddrfa1p9-supply = <&vreg_s5a>;
110		vddpcie1p3-supply = <&vreg_l6e>;
111		vddpcie1p9-supply = <&vreg_s5a>;
112
113		bt-enable-gpios = <&pmm8654au_1_gpios 8 GPIO_ACTIVE_HIGH>;
114		wlan-enable-gpios = <&pmm8654au_1_gpios 7 GPIO_ACTIVE_HIGH>;
115
116		regulators {
117			vreg_pmu_rfa_cmn: ldo0 {
118				regulator-name = "vreg_pmu_rfa_cmn";
119			};
120
121			vreg_pmu_aon_0p59: ldo1 {
122				regulator-name = "vreg_pmu_aon_0p59";
123			};
124
125			vreg_pmu_wlcx_0p8: ldo2 {
126				regulator-name = "vreg_pmu_wlcx_0p8";
127			};
128
129			vreg_pmu_wlmx_0p85: ldo3 {
130				regulator-name = "vreg_pmu_wlmx_0p85";
131			};
132
133			vreg_pmu_btcmx_0p85: ldo4 {
134				regulator-name = "vreg_pmu_btcmx_0p85";
135			};
136
137			vreg_pmu_rfa_0p8: ldo5 {
138				regulator-name = "vreg_pmu_rfa_0p8";
139			};
140
141			vreg_pmu_rfa_1p2: ldo6 {
142				regulator-name = "vreg_pmu_rfa_1p2";
143			};
144
145			vreg_pmu_rfa_1p7: ldo7 {
146				regulator-name = "vreg_pmu_rfa_1p7";
147			};
148
149			vreg_pmu_pcie_0p9: ldo8 {
150				regulator-name = "vreg_pmu_pcie_0p9";
151			};
152
153			vreg_pmu_pcie_1p8: ldo9 {
154				regulator-name = "vreg_pmu_pcie_1p8";
155			};
156		};
157	};
158
159	dp0-connector {
160		compatible = "dp-connector";
161		label = "eDP0";
162		type = "full-size";
163
164		port {
165			dp0_connector_in: endpoint {
166				remote-endpoint = <&mdss0_dp0_out>;
167			};
168		};
169	};
170
171	dp1-connector {
172		compatible = "dp-connector";
173		label = "eDP1";
174		type = "full-size";
175
176		port {
177			dp1_connector_in: endpoint {
178				remote-endpoint = <&mdss0_dp1_out>;
179			};
180		};
181	};
182
183	dp-dsi0-connector {
184		compatible = "dp-connector";
185		label = "DSI0";
186		type = "full-size";
187
188		port {
189			dp_dsi0_connector_in: endpoint {
190				remote-endpoint = <&dsi2dp_bridge0_out>;
191			};
192		};
193	};
194
195	dp-dsi1-connector {
196		compatible = "dp-connector";
197		label = "DSI1";
198		type = "full-size";
199
200		port {
201			dp_dsi1_connector_in: endpoint {
202				remote-endpoint = <&dsi2dp_bridge1_out>;
203			};
204		};
205	};
206};
207
208&apps_rsc {
209	regulators-0 {
210		compatible = "qcom,pmm8654au-rpmh-regulators";
211		qcom,pmic-id = "a";
212
213		vreg_s4a: smps4 {
214			regulator-name = "vreg_s4a";
215			regulator-min-microvolt = <1800000>;
216			regulator-max-microvolt = <1816000>;
217			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
218		};
219
220		vreg_s5a: smps5 {
221			regulator-name = "vreg_s5a";
222			regulator-min-microvolt = <1850000>;
223			regulator-max-microvolt = <1996000>;
224			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
225		};
226
227		vreg_s9a: smps9 {
228			regulator-name = "vreg_s9a";
229			regulator-min-microvolt = <535000>;
230			regulator-max-microvolt = <1120000>;
231			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
232		};
233
234		vreg_l4a: ldo4 {
235			regulator-name = "vreg_l4a";
236			regulator-min-microvolt = <788000>;
237			regulator-max-microvolt = <1050000>;
238			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
239			regulator-allow-set-load;
240			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
241						   RPMH_REGULATOR_MODE_HPM>;
242		};
243
244		vreg_l5a: ldo5 {
245			regulator-name = "vreg_l5a";
246			regulator-min-microvolt = <870000>;
247			regulator-max-microvolt = <950000>;
248			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
249			regulator-allow-set-load;
250			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
251						   RPMH_REGULATOR_MODE_HPM>;
252		};
253
254		vreg_l6a: ldo6 {
255			regulator-name = "vreg_l6a";
256			regulator-min-microvolt = <870000>;
257			regulator-max-microvolt = <970000>;
258			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
259			regulator-allow-set-load;
260			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
261						   RPMH_REGULATOR_MODE_HPM>;
262		};
263
264		vreg_l7a: ldo7 {
265			regulator-name = "vreg_l7a";
266			regulator-min-microvolt = <720000>;
267			regulator-max-microvolt = <950000>;
268			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
269			regulator-allow-set-load;
270			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
271						   RPMH_REGULATOR_MODE_HPM>;
272		};
273
274		vreg_l8a: ldo8 {
275			regulator-name = "vreg_l8a";
276			regulator-min-microvolt = <2504000>;
277			regulator-max-microvolt = <3300000>;
278			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
279			regulator-allow-set-load;
280			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
281						   RPMH_REGULATOR_MODE_HPM>;
282		};
283
284		vreg_l9a: ldo9 {
285			regulator-name = "vreg_l9a";
286			regulator-min-microvolt = <2970000>;
287			regulator-max-microvolt = <3544000>;
288			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
289			regulator-allow-set-load;
290			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
291						   RPMH_REGULATOR_MODE_HPM>;
292		};
293	};
294
295	regulators-1 {
296		compatible = "qcom,pmm8654au-rpmh-regulators";
297		qcom,pmic-id = "c";
298
299		vreg_l1c: ldo1 {
300			regulator-name = "vreg_l1c";
301			regulator-min-microvolt = <1140000>;
302			regulator-max-microvolt = <1260000>;
303			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
304			regulator-allow-set-load;
305			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
306						   RPMH_REGULATOR_MODE_HPM>;
307		};
308
309		vreg_l2c: ldo2 {
310			regulator-name = "vreg_l2c";
311			regulator-min-microvolt = <900000>;
312			regulator-max-microvolt = <1100000>;
313			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
314			regulator-allow-set-load;
315			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
316						   RPMH_REGULATOR_MODE_HPM>;
317		};
318
319		vreg_l3c: ldo3 {
320			regulator-name = "vreg_l3c";
321			regulator-min-microvolt = <1100000>;
322			regulator-max-microvolt = <1300000>;
323			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
324			regulator-allow-set-load;
325			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
326						   RPMH_REGULATOR_MODE_HPM>;
327		};
328
329		vreg_l4c: ldo4 {
330			regulator-name = "vreg_l4c";
331			regulator-min-microvolt = <1200000>;
332			regulator-max-microvolt = <1200000>;
333			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
334			/*
335			 * FIXME: This should have regulator-allow-set-load but
336			 * we're getting an over-current fault from the PMIC
337			 * when switching to LPM.
338			 */
339		};
340
341		vreg_l5c: ldo5 {
342			regulator-name = "vreg_l5c";
343			regulator-min-microvolt = <1100000>;
344			regulator-max-microvolt = <1300000>;
345			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
346			regulator-allow-set-load;
347			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
348						   RPMH_REGULATOR_MODE_HPM>;
349		};
350
351		vreg_l6c: ldo6 {
352			regulator-name = "vreg_l6c";
353			regulator-min-microvolt = <1620000>;
354			regulator-max-microvolt = <1980000>;
355			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
356			regulator-allow-set-load;
357			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
358						   RPMH_REGULATOR_MODE_HPM>;
359		};
360
361		vreg_l7c: ldo7 {
362			regulator-name = "vreg_l7c";
363			regulator-min-microvolt = <1620000>;
364			regulator-max-microvolt = <2000000>;
365			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
366			regulator-allow-set-load;
367			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
368						   RPMH_REGULATOR_MODE_HPM>;
369		};
370
371		vreg_l8c: ldo8 {
372			regulator-name = "vreg_l8c";
373			regulator-min-microvolt = <2400000>;
374			regulator-max-microvolt = <3300000>;
375			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
376			regulator-allow-set-load;
377			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
378						   RPMH_REGULATOR_MODE_HPM>;
379		};
380
381		vreg_l9c: ldo9 {
382			regulator-name = "vreg_l9c";
383			regulator-min-microvolt = <1650000>;
384			regulator-max-microvolt = <2700000>;
385			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
386			regulator-allow-set-load;
387			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
388						   RPMH_REGULATOR_MODE_HPM>;
389		};
390	};
391
392	regulators-2 {
393		compatible = "qcom,pmm8654au-rpmh-regulators";
394		qcom,pmic-id = "e";
395
396		vreg_s4e: smps4 {
397			regulator-name = "vreg_s4e";
398			regulator-min-microvolt = <970000>;
399			regulator-max-microvolt = <1520000>;
400			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
401		};
402
403		vreg_s7e: smps7 {
404			regulator-name = "vreg_s7e";
405			regulator-min-microvolt = <1010000>;
406			regulator-max-microvolt = <1170000>;
407			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
408		};
409
410		vreg_s9e: smps9 {
411			regulator-name = "vreg_s9e";
412			regulator-min-microvolt = <300000>;
413			regulator-max-microvolt = <570000>;
414			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
415		};
416
417		vreg_l6e: ldo6 {
418			regulator-name = "vreg_l6e";
419			regulator-min-microvolt = <1280000>;
420			regulator-max-microvolt = <1450000>;
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_l8e: ldo8 {
428			regulator-name = "vreg_l8e";
429			regulator-min-microvolt = <1800000>;
430			regulator-max-microvolt = <1950000>;
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};
438
439&i2c11 {
440	clock-frequency = <400000>;
441	status = "okay";
442};
443
444&i2c18 {
445	clock-frequency = <400000>;
446
447	status = "okay";
448
449	io_expander: gpio@74 {
450		compatible = "ti,tca9539";
451		reg = <0x74>;
452		interrupts-extended = <&tlmm 98 IRQ_TYPE_EDGE_BOTH>;
453		gpio-controller;
454		#gpio-cells = <2>;
455		interrupt-controller;
456		#interrupt-cells = <2>;
457		reset-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>;
458
459		pinctrl-0 = <&io_expander_intr_active>,
460			    <&io_expander_reset_active>;
461		pinctrl-names = "default";
462	};
463
464	i2c-mux@70 {
465		compatible = "nxp,pca9543";
466		#address-cells = <1>;
467
468		#size-cells = <0>;
469		reg = <0x70>;
470
471		i2c@0 {
472			reg = <0>;
473			#address-cells = <1>;
474			#size-cells = <0>;
475
476			bridge@58 {
477				compatible = "analogix,anx7625";
478				reg = <0x58>;
479				interrupts-extended = <&io_expander 2 IRQ_TYPE_EDGE_FALLING>;
480				enable-gpios = <&io_expander 1 GPIO_ACTIVE_HIGH>;
481				reset-gpios = <&io_expander 0 GPIO_ACTIVE_HIGH>;
482				vdd10-supply = <&vreg_1p0>;
483				vdd18-supply = <&vreg_1p8>;
484				vdd33-supply = <&vreg_3p0>;
485
486				ports {
487					#address-cells = <1>;
488					#size-cells = <0>;
489
490					port@0 {
491						reg = <0>;
492
493						dsi2dp_bridge0_in: endpoint {
494							remote-endpoint = <&mdss0_dsi0_out>;
495						};
496					};
497
498					port@1 {
499						reg = <1>;
500
501						dsi2dp_bridge0_out: endpoint {
502							remote-endpoint = <&dp_dsi0_connector_in>;
503						};
504					};
505				};
506			};
507		};
508
509		i2c@1 {
510			reg = <1>;
511			#address-cells = <1>;
512			#size-cells = <0>;
513
514			bridge@58 {
515				compatible = "analogix,anx7625";
516				reg = <0x58>;
517				interrupts-extended = <&io_expander 10 IRQ_TYPE_EDGE_FALLING>;
518				enable-gpios = <&io_expander 9 GPIO_ACTIVE_HIGH>;
519				reset-gpios = <&io_expander 8 GPIO_ACTIVE_HIGH>;
520				vdd10-supply = <&vreg_1p0>;
521				vdd18-supply = <&vreg_1p8>;
522				vdd33-supply = <&vreg_3p0>;
523
524				ports {
525					#address-cells = <1>;
526					#size-cells = <0>;
527
528					port@0 {
529						reg = <0>;
530
531						dsi2dp_bridge1_in: endpoint {
532							remote-endpoint = <&mdss0_dsi1_out>;
533						};
534					};
535
536					port@1 {
537						reg = <1>;
538
539						dsi2dp_bridge1_out: endpoint {
540							remote-endpoint = <&dp_dsi1_connector_in>;
541						};
542					};
543				};
544			};
545		};
546	};
547
548};
549
550&iris {
551	firmware-name = "qcom/vpu/vpu30_p4_s6.mbn";
552
553	status = "okay";
554};
555
556&mdss0 {
557	status = "okay";
558};
559
560&mdss0_dp0 {
561	pinctrl-0 = <&dp0_hot_plug_det>;
562	pinctrl-names = "default";
563
564	status = "okay";
565};
566
567&mdss0_dp0_out {
568	data-lanes = <0 1 2 3>;
569	link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
570	remote-endpoint = <&dp0_connector_in>;
571};
572
573&mdss0_dp0_phy {
574	vdda-phy-supply = <&vreg_l1c>;
575	vdda-pll-supply = <&vreg_l4a>;
576
577	status = "okay";
578};
579
580&mdss0_dp1 {
581	pinctrl-0 = <&dp1_hot_plug_det>;
582	pinctrl-names = "default";
583
584	status = "okay";
585};
586
587&mdss0_dp1_out {
588	data-lanes = <0 1 2 3>;
589	link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
590	remote-endpoint = <&dp1_connector_in>;
591};
592
593&mdss0_dp1_phy {
594	vdda-phy-supply = <&vreg_l1c>;
595	vdda-pll-supply = <&vreg_l4a>;
596
597	status = "okay";
598};
599
600&mdss0_dsi0 {
601	vdda-supply = <&vreg_l1c>;
602
603	status = "okay";
604};
605
606&mdss0_dsi0_out {
607	data-lanes = <0 1 2 3>;
608	remote-endpoint = <&dsi2dp_bridge0_in>;
609};
610
611&mdss0_dsi0_phy {
612	vdds-supply = <&vreg_l4a>;
613
614	status = "okay";
615};
616
617&mdss0_dsi1 {
618	vdda-supply = <&vreg_l1c>;
619
620	status = "okay";
621};
622
623&mdss0_dsi1_out {
624	data-lanes = <0 1 2 3>;
625	remote-endpoint = <&dsi2dp_bridge1_in>;
626};
627
628&mdss0_dsi1_phy {
629	vdds-supply = <&vreg_l4a>;
630
631	status = "okay";
632};
633
634&pmm8654au_0_gpios {
635	gpio-line-names = "DS_EN",
636			  "POFF_COMPLETE",
637			  "UFS0_VER_ID",
638			  "FAST_POFF",
639			  "DBU1_PON_DONE",
640			  "AOSS_SLEEP",
641			  "CAM_DES0_EN",
642			  "CAM_DES1_EN",
643			  "CAM_DES2_EN",
644			  "CAM_DES3_EN",
645			  "UEFI",
646			  "ANALOG_PON_OPT";
647};
648
649&pmm8654au_0_pon_resin {
650	linux,code = <KEY_VOLUMEDOWN>;
651	status = "okay";
652};
653
654&pmm8654au_1_gpios {
655	gpio-line-names = "PMIC_C_ID0",
656			  "PMIC_C_ID1",
657			  "UFS1_VER_ID",
658			  "IPA_PWR",
659			  "",
660			  "WLAN_DBU4_EN",
661			  "WLAN_EN",
662			  "BT_EN",
663			  "USB2_PWR_EN",
664			  "USB2_FAULT";
665
666	wlan_en_state: wlan-en-state {
667		pins = "gpio7";
668		function = "normal";
669		output-low;
670		bias-pull-down;
671	};
672
673	bt_en_state: bt-en-state {
674		pins = "gpio8";
675		function = "normal";
676		output-low;
677		bias-pull-down;
678	};
679
680	usb2_en_state: usb2-en-state {
681		pins = "gpio9";
682		function = "normal";
683		output-high;
684		power-source = <0>;
685	};
686};
687
688&pmm8654au_2_gpios {
689	gpio-line-names = "PMIC_E_ID0",
690			  "PMIC_E_ID1",
691			  "USB0_PWR_EN",
692			  "USB0_FAULT",
693			  "SENSOR_IRQ_1",
694			  "SENSOR_IRQ_2",
695			  "SENSOR_RST",
696			  "SGMIIO0_RST",
697			  "SGMIIO1_RST",
698			  "USB1_PWR_ENABLE",
699			  "USB1_FAULT",
700			  "VMON_SPX8";
701
702	usb0_en_state: usb0-en-state {
703		pins = "gpio3";
704		function = "normal";
705		output-high;
706		power-source = <0>;
707	};
708
709	usb1_en_state: usb1-en-state {
710		pins = "gpio10";
711		function = "normal";
712		output-high;
713		power-source = <0>;
714	};
715};
716
717&pmm8654au_3_gpios {
718	gpio-line-names = "PMIC_G_ID0",
719			  "PMIC_G_ID1",
720			  "GNSS_RST",
721			  "GNSS_EN",
722			  "GNSS_BOOT_MODE";
723};
724
725&qupv3_id_1 {
726	status = "okay";
727};
728
729&qupv3_id_2 {
730	status = "okay";
731};
732
733&qup_spi16_default {
734	drive-strength = <6>;
735	bias-disable;
736};
737
738&qup_i2c11_default {
739	drive-strength = <2>;
740	bias-pull-up;
741};
742
743&qup_i2c18_default {
744	drive-strength = <2>;
745	bias-pull-up;
746};
747
748&qup_uart12_cts {
749	bias-disable;
750};
751
752&qup_uart12_rts {
753	bias-pull-down;
754};
755
756&qup_uart12_tx {
757	bias-pull-up;
758};
759
760&qup_uart12_rx {
761	bias-pull-down;
762};
763
764&qup_uart17_cts {
765	bias-disable;
766};
767
768&qup_uart17_rts {
769	bias-pull-down;
770};
771
772&qup_uart17_tx {
773	bias-pull-up;
774};
775
776&qup_uart17_rx {
777	bias-pull-down;
778};
779
780&serdes0 {
781	phy-supply = <&vreg_l5a>;
782	status = "okay";
783};
784
785&serdes1 {
786	phy-supply = <&vreg_l5a>;
787	status = "okay";
788};
789
790&sleep_clk {
791	clock-frequency = <32000>;
792};
793
794&spi16 {
795	status = "okay";
796};
797
798&tlmm {
799	dp0_hot_plug_det: dp0-hot-plug-det-state {
800		pins = "gpio101";
801		function = "edp0_hot";
802		bias-disable;
803	};
804
805	dp1_hot_plug_det: dp1-hot-plug-det-state {
806		pins = "gpio102";
807		function = "edp1_hot";
808		bias-disable;
809	};
810
811	io_expander_intr_active: io-expander-intr-active-state {
812		pins = "gpio98";
813		function = "gpio";
814		drive-strength = <2>;
815		bias-disable;
816	};
817
818	io_expander_reset_active: io-expander-reset-active-state {
819		pins = "gpio97";
820		function = "gpio";
821		drive-strength = <2>;
822		bias-disable;
823		output-high;
824	};
825
826	pcie0_default_state: pcie0-default-state {
827		perst-pins {
828			pins = "gpio2";
829			function = "gpio";
830			drive-strength = <2>;
831			bias-pull-down;
832		};
833
834		clkreq-pins {
835			pins = "gpio1";
836			function = "pcie0_clkreq";
837			drive-strength = <2>;
838			bias-pull-up;
839		};
840
841		wake-pins {
842			pins = "gpio0";
843			function = "gpio";
844			drive-strength = <2>;
845			bias-pull-up;
846		};
847	};
848
849	pcie1_default_state: pcie1-default-state {
850		perst-pins {
851			pins = "gpio4";
852			function = "gpio";
853			drive-strength = <2>;
854			bias-pull-down;
855		};
856
857		clkreq-pins {
858			pins = "gpio3";
859			function = "pcie1_clkreq";
860			drive-strength = <2>;
861			bias-pull-up;
862		};
863
864		wake-pins {
865			pins = "gpio5";
866			function = "gpio";
867			drive-strength = <2>;
868			bias-pull-up;
869		};
870	};
871};
872
873&pcie0 {
874	perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
875	wake-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
876
877	pinctrl-names = "default";
878	pinctrl-0 = <&pcie0_default_state>;
879
880	status = "okay";
881};
882
883&pcie1 {
884	perst-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
885	wake-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
886
887	pinctrl-names = "default";
888	pinctrl-0 = <&pcie1_default_state>;
889
890	status = "okay";
891};
892
893&pcie0_phy {
894	vdda-phy-supply = <&vreg_l5a>;
895	vdda-pll-supply = <&vreg_l1c>;
896
897	status = "okay";
898};
899
900&pcie1_phy {
901	vdda-phy-supply = <&vreg_l5a>;
902	vdda-pll-supply = <&vreg_l1c>;
903
904	status = "okay";
905};
906
907&pcieport0 {
908	wifi@0 {
909		compatible = "pci17cb,1101";
910		reg = <0x10000 0x0 0x0 0x0 0x0>;
911
912		qcom,calibration-variant = "QC_SA8775P_Ride";
913
914		vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
915		vddaon-supply = <&vreg_pmu_aon_0p59>;
916		vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
917		vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
918		vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
919		vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
920		vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>;
921		vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
922		vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
923	};
924};
925
926&remoteproc_adsp {
927	firmware-name = "qcom/sa8775p/adsp.mbn";
928	status = "okay";
929};
930
931&remoteproc_cdsp0 {
932	firmware-name = "qcom/sa8775p/cdsp0.mbn";
933	status = "okay";
934};
935
936&remoteproc_cdsp1 {
937	firmware-name = "qcom/sa8775p/cdsp1.mbn";
938	status = "okay";
939};
940
941&remoteproc_gpdsp0 {
942	firmware-name = "qcom/sa8775p/gpdsp0.mbn";
943	status = "okay";
944};
945
946&remoteproc_gpdsp1 {
947	firmware-name = "qcom/sa8775p/gpdsp1.mbn";
948	status = "okay";
949};
950
951&uart10 {
952	compatible = "qcom,geni-debug-uart";
953	status = "okay";
954};
955
956&uart12 {
957	pinctrl-0 = <&qup_uart12_default>;
958	pinctrl-names = "default";
959	status = "okay";
960};
961
962&uart17 {
963	pinctrl-0 = <&qup_uart17_default>;
964	pinctrl-names = "default";
965	status = "okay";
966
967	bluetooth {
968		compatible = "qcom,wcn6855-bt";
969		firmware-name = "QCA6698/hpnv21", "QCA6698/hpbtfw21.tlv";
970
971		vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
972		vddaon-supply = <&vreg_pmu_aon_0p59>;
973		vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>;
974		vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
975		vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
976		vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>;
977	};
978};
979
980&ufs_mem_hc {
981	reset-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>;
982	vcc-supply = <&vreg_l8a>;
983	vcc-max-microamp = <1100000>;
984	vccq-supply = <&vreg_l4c>;
985	vccq-max-microamp = <1200000>;
986
987	status = "okay";
988};
989
990&ufs_mem_phy {
991	vdda-phy-supply = <&vreg_l4a>;
992	vdda-pll-supply = <&vreg_l1c>;
993
994	status = "okay";
995};
996
997&usb_0 {
998	pinctrl-names = "default";
999	pinctrl-0 = <&usb0_en_state>;
1000	dr_mode = "peripheral";
1001
1002	status = "okay";
1003};
1004
1005&usb_0_hsphy {
1006	vdda-pll-supply = <&vreg_l7a>;
1007	vdda18-supply = <&vreg_l6c>;
1008	vdda33-supply = <&vreg_l9a>;
1009
1010	status = "okay";
1011};
1012
1013&usb_0_qmpphy {
1014	vdda-phy-supply = <&vreg_l1c>;
1015	vdda-pll-supply = <&vreg_l7a>;
1016
1017	status = "okay";
1018};
1019
1020&usb_1 {
1021	pinctrl-names = "default";
1022	pinctrl-0 = <&usb1_en_state>;
1023	dr_mode = "host";
1024
1025	status = "okay";
1026};
1027
1028&usb_1_hsphy {
1029	vdda-pll-supply = <&vreg_l7a>;
1030	vdda18-supply = <&vreg_l6c>;
1031	vdda33-supply = <&vreg_l9a>;
1032
1033	status = "okay";
1034};
1035
1036&usb_1_qmpphy {
1037	vdda-phy-supply = <&vreg_l1c>;
1038	vdda-pll-supply = <&vreg_l7a>;
1039
1040	status = "okay";
1041};
1042
1043&usb_2 {
1044	pinctrl-names = "default";
1045	pinctrl-0 = <&usb2_en_state>;
1046	dr_mode = "host";
1047
1048	status = "okay";
1049};
1050
1051&usb_2_hsphy {
1052	vdda-pll-supply = <&vreg_l7a>;
1053	vdda18-supply = <&vreg_l6c>;
1054	vdda33-supply = <&vreg_l9a>;
1055
1056	status = "okay";
1057};
1058
1059&xo_board_clk {
1060	clock-frequency = <38400000>;
1061};
1062