1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org>
4 */
5
6#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
7#include "sm8350.dtsi"
8#include "pm8350.dtsi"
9#include "pm8350b.dtsi"
10#include "pm8350c.dtsi"
11#include "pmk8350.dtsi"
12#include "pmr735a.dtsi"
13#include "pmr735b.dtsi"
14
15/ {
16	/*
17	 * Yes, you are correct, there is NO MORE {msm,board,pmic}-id on SM8350!
18	 * Adding it will cause the bootloader to go crazy and randomly crash
19	 * shortly after closing UEFI boot services.. Perhaps that has something
20	 * to do with the OS running inside a VM now..?
21	 */
22
23	chassis-type = "handset";
24
25	chosen {
26		#address-cells = <2>;
27		#size-cells = <2>;
28		ranges;
29
30		framebuffer: framebuffer@e1000000 {
31			compatible = "simple-framebuffer";
32			reg = <0 0xe1000000 0 0x2300000>;
33
34			/* The display, even though it's 4K, initializes at 1080-ish p */
35			width = <1096>;
36			height = <2560>;
37			stride = <(1096 * 4)>;
38			format = "a8r8g8b8";
39			/*
40			 * That's (going to be) a lot of clocks, but it's necessary due
41			 * to unused clk cleanup & no panel driver yet
42			 */
43			clocks = <&gcc GCC_DISP_HF_AXI_CLK>,
44				 <&gcc GCC_DISP_SF_AXI_CLK>;
45		};
46	};
47
48	gpio-keys {
49		compatible = "gpio-keys";
50
51		/* For reasons still unknown, GAssist key and Camera Focus/Shutter don't work.. */
52
53		key-vol-down {
54			label = "Volume Down";
55			linux,code = <KEY_VOLUMEDOWN>;
56			gpios = <&pmk8350_gpios 3 GPIO_ACTIVE_LOW>;
57			debounce-interval = <15>;
58			linux,can-disable;
59			gpio-key,wakeup;
60		};
61	};
62
63	reserved-memory {
64		cont_splash_mem: memory@e1000000 {
65			reg = <0 0xe1000000 0 0x2300000>;
66			no-map;
67		};
68
69		ramoops@ffc00000 {
70			compatible = "ramoops";
71			reg = <0 0xffc00000 0 0x100000>;
72			console-size = <0x40000>;
73			record-size = <0x1000>;
74			no-map;
75		};
76	};
77
78	vph_pwr: vph-pwr-regulator {
79		compatible = "regulator-fixed";
80		regulator-name = "vph_pwr";
81		regulator-min-microvolt = <3700000>;
82		regulator-max-microvolt = <3700000>;
83
84		regulator-always-on;
85		regulator-boot-on;
86	};
87};
88
89&adsp {
90	status = "okay";
91	firmware-name = "qcom/sm8350/Sony/sagami/adsp.mbn";
92};
93
94&apps_rsc {
95	regulators-0 {
96		compatible = "qcom,pm8350-rpmh-regulators";
97		qcom,pmic-id = "b";
98
99		vdd-s1-supply = <&vph_pwr>;
100		vdd-s2-supply = <&vph_pwr>;
101		vdd-s3-supply = <&vph_pwr>;
102		vdd-s4-supply = <&vph_pwr>;
103		vdd-s5-supply = <&vph_pwr>;
104		vdd-s6-supply = <&vph_pwr>;
105		vdd-s7-supply = <&vph_pwr>;
106		vdd-s8-supply = <&vph_pwr>;
107		vdd-s9-supply = <&vph_pwr>;
108		vdd-s10-supply = <&vph_pwr>;
109		vdd-s11-supply = <&vph_pwr>;
110		vdd-s12-supply = <&vph_pwr>;
111
112		vdd-l1-l4-supply = <&pm8350_s11>;
113		vdd-l2-l7-supply = <&vreg_bob>;
114		vdd-l3-l5-supply = <&vreg_bob>;
115		vdd-l6-l9-l10-supply = <&pm8350_s11>;
116
117		/*
118		 * ARC regulators:
119		 * S5 - mx.lvl
120		 * S6 - gfx.lvl
121		 * S9 - mxc.lvl
122		 */
123
124		pm8350_s10: smps10 {
125			regulator-name = "pm8350_s10";
126			regulator-min-microvolt = <1800000>;
127			regulator-max-microvolt = <1800000>;
128			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
129		};
130
131		pm8350_s11: smps11 {
132			regulator-name = "pm8350_s11";
133			regulator-min-microvolt = <752000>;
134			regulator-max-microvolt = <1000000>;
135			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
136		};
137
138		pm8350_s12: smps12 {
139			regulator-name = "pm8350_s12";
140			regulator-min-microvolt = <1224000>;
141			regulator-max-microvolt = <1360000>;
142			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
143		};
144
145		pm8350_l1: ldo1 {
146			regulator-name = "pm8350_l1";
147			regulator-min-microvolt = <912000>;
148			regulator-max-microvolt = <920000>;
149			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
150		};
151
152		pm8350_l2: ldo2 {
153			regulator-name = "pm8350_l2";
154			regulator-min-microvolt = <3072000>;
155			regulator-max-microvolt = <3072000>;
156			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
157		};
158
159		pm8350_l3: ldo3 {
160			regulator-name = "pm8350_l3";
161			regulator-min-microvolt = <904000>;
162			regulator-max-microvolt = <904000>;
163			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
164		};
165
166		/* L4 - lmx.lvl (ARC) */
167
168		pm8350_l5: ldo5 {
169			regulator-name = "pm8350_l5";
170			regulator-min-microvolt = <880000>;
171			regulator-max-microvolt = <888000>;
172			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
173			regulator-allow-set-load;
174		};
175
176		pm8350_l6: ldo6 {
177			regulator-name = "pm8350_l6";
178			regulator-min-microvolt = <1200000>;
179			regulator-max-microvolt = <1208000>;
180			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
181			regulator-allow-set-load;
182		};
183
184		pm8350_l7: ldo7 {
185			regulator-name = "pm8350_l7";
186			regulator-min-microvolt = <2400000>;
187			regulator-max-microvolt = <3008000>;
188			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
189			regulator-allow-set-load;
190		};
191
192		/* L8 - lcx.lvl (ARC) */
193
194		pm8350_l9: ldo9 {
195			regulator-name = "pm8350_l9";
196			regulator-min-microvolt = <1200000>;
197			regulator-max-microvolt = <1200000>;
198			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
199			regulator-allow-set-load;
200		};
201	};
202
203	regulators-1 {
204		compatible = "qcom,pm8350c-rpmh-regulators";
205		qcom,pmic-id = "c";
206
207		vdd-s1-supply = <&vph_pwr>;
208		vdd-s2-supply = <&vph_pwr>;
209		vdd-s3-supply = <&vph_pwr>;
210		vdd-s4-supply = <&vph_pwr>;
211		vdd-s5-supply = <&vph_pwr>;
212		vdd-s6-supply = <&vph_pwr>;
213		vdd-s7-supply = <&vph_pwr>;
214		vdd-s8-supply = <&vph_pwr>;
215		vdd-s9-supply = <&vph_pwr>;
216		vdd-s10-supply = <&vph_pwr>;
217
218		vdd-l1-l12-supply = <&pm8350c_s1>;
219		vdd-l2-l8-supply = <&pm8350c_s1>;
220		vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>;
221		vdd-l6-l9-l11-supply = <&vreg_bob>;
222		vdd-l10-supply = <&pm8350_s12>;
223
224		vdd-bob-supply = <&vph_pwr>;
225
226		pm8350c_s1: smps1 {
227			regulator-name = "pm8350c_s1";
228			regulator-min-microvolt = <1800000>;
229			regulator-max-microvolt = <1952000>;
230			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
231		};
232
233		/* S2 - ebi.lvl (ARC) */
234
235		pm8350c_s3: smps3 {
236			regulator-name = "pm8350c_s3";
237			regulator-min-microvolt = <300000>;
238			regulator-max-microvolt = <704000>;
239			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
240		};
241
242		/*
243		 * ARC regulators:
244		 * S4 - mss.lvl
245		 * S6 - cx.lvl
246		 * S8 - mmcx.lvl
247		 */
248
249		pm8350c_s10: smps10 {
250			regulator-name = "pm8350c_s10";
251			regulator-min-microvolt = <1048000>;
252			regulator-max-microvolt = <1128000>;
253			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
254		};
255
256		pm8350c_l1: ldo1 {
257			regulator-name = "pm8350c_l1";
258			regulator-min-microvolt = <1800000>;
259			regulator-max-microvolt = <1800000>;
260			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
261		};
262
263		pm8350c_l2: ldo2 {
264			regulator-name = "pm8350c_l2";
265			regulator-min-microvolt = <1800000>;
266			regulator-max-microvolt = <1800000>;
267			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
268		};
269
270		pm8350c_l3: ldo3 {
271			regulator-name = "pm8350c_l3";
272			regulator-min-microvolt = <3304000>;
273			regulator-max-microvolt = <3304000>;
274			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
275		};
276
277		pm8350c_l4: ldo4 {
278			regulator-name = "pm8350c_l4";
279			regulator-min-microvolt = <1704000>;
280			regulator-max-microvolt = <3000000>;
281			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
282		};
283
284		pm8350c_l5: ldo5 {
285			regulator-name = "pm8350c_l5";
286			regulator-min-microvolt = <1704000>;
287			regulator-max-microvolt = <3000000>;
288			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
289		};
290
291		pm8350c_l6: ldo6 {
292			regulator-name = "pm8350c_l6";
293			regulator-min-microvolt = <1800000>;
294			regulator-max-microvolt = <2960000>;
295			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
296		};
297
298		pm8350c_l7: ldo7 {
299			regulator-name = "pm8350c_l7";
300			regulator-min-microvolt = <3008000>;
301			regulator-max-microvolt = <3008000>;
302			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
303		};
304
305		pm8350c_l8: ldo8 {
306			regulator-name = "pm8350c_l8";
307			regulator-min-microvolt = <1800000>;
308			regulator-max-microvolt = <1800000>;
309			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
310		};
311
312		pm8350c_l9: ldo9 {
313			regulator-name = "pm8350c_l9";
314			regulator-min-microvolt = <2960000>;
315			/* Originally max = 3008000 but SDHCI expects 2960000 */
316			regulator-max-microvolt = <2960000>;
317			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
318		};
319
320		pm8350c_l10: ldo10 {
321			regulator-name = "pm8350c_l10";
322			regulator-min-microvolt = <1200000>;
323			regulator-max-microvolt = <1200000>;
324			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
325		};
326
327		pm8350c_l11: ldo11 {
328			regulator-name = "pm8350c_l11";
329			regulator-min-microvolt = <2400000>;
330			regulator-max-microvolt = <3008000>;
331			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
332		};
333
334		pm8350c_l12: ldo12 {
335			regulator-name = "pm8350c_l12";
336			regulator-min-microvolt = <1800000>;
337			regulator-max-microvolt = <2000000>;
338			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
339		};
340
341		pm8350c_l13: ldo13 {
342			regulator-name = "pm8350c_l13";
343			regulator-min-microvolt = <3000000>;
344			regulator-max-microvolt = <3000000>;
345			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
346		};
347
348		vreg_bob: bob {
349			regulator-name = "vreg_bob";
350			regulator-min-microvolt = <3400000>;
351			regulator-max-microvolt = <3960000>;
352			regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
353		};
354	};
355
356	/* TODO: Add pm8350b (just one ldo) once the driver part is in */
357
358	regulators-2 {
359		compatible = "qcom,pmr735a-rpmh-regulators";
360		qcom,pmic-id = "e";
361
362		vdd-s1-supply = <&vph_pwr>;
363		vdd-s2-supply = <&vph_pwr>;
364		vdd-s3-supply = <&vph_pwr>;
365
366		vdd-l1-l2-supply = <&pmr735a_s2>;
367		vdd-l3-supply = <&pmr735a_s1>;
368		vdd-l4-supply = <&pm8350c_s1>;
369		vdd-l5-l6-supply = <&pm8350c_s1>;
370		vdd-l7-bob-supply = <&vreg_bob>;
371
372		pmr735a_s1: smps1 {
373			regulator-name = "pmr735a_s1";
374			regulator-min-microvolt = <1200000>;
375			regulator-max-microvolt = <1280000>;
376		};
377
378		pmr735a_s2: smps2 {
379			regulator-name = "pmr735a_s2";
380			regulator-min-microvolt = <500000>;
381			regulator-max-microvolt = <976000>;
382		};
383
384		pmr735a_s3: smps3 {
385			regulator-name = "pmr735a_s3";
386			regulator-min-microvolt = <2208000>;
387			regulator-max-microvolt = <2352000>;
388		};
389
390		pmr735a_l1: ldo1 {
391			regulator-name = "pmr735a_l1";
392			regulator-min-microvolt = <912000>;
393			regulator-max-microvolt = <912000>;
394		};
395
396		pmr735a_l2: ldo2 {
397			regulator-name = "pmr735a_l2";
398			regulator-min-microvolt = <1200000>;
399			regulator-max-microvolt = <1200000>;
400		};
401
402		pmr735a_l3: ldo3 {
403			regulator-name = "pmr735a_l3";
404			regulator-min-microvolt = <1200000>;
405			regulator-max-microvolt = <1200000>;
406		};
407
408		pmr735a_l4: ldo4 {
409			regulator-name = "pmr735a_l4";
410			regulator-min-microvolt = <1776000>;
411			regulator-max-microvolt = <1872000>;
412		};
413
414		pmr735a_l5: ldo5 {
415			regulator-name = "pmr735a_l5";
416			regulator-min-microvolt = <800000>;
417			regulator-max-microvolt = <800000>;
418		};
419
420		pmr735a_l6: ldo6 {
421			regulator-name = "pmr735a_l6";
422			regulator-min-microvolt = <480000>;
423			regulator-max-microvolt = <904000>;
424		};
425
426		pmr735a_l7: ldo7 {
427			regulator-name = "pmr735a_l7";
428			regulator-min-microvolt = <2800000>;
429			regulator-max-microvolt = <2800000>;
430		};
431	};
432};
433
434&cdsp {
435	status = "okay";
436	firmware-name = "qcom/sm8350/Sony/sagami/cdsp.mbn";
437};
438
439&i2c1 {
440	status = "okay";
441	clock-frequency = <1000000>;
442
443	/* Some subset of SONY IMX663 camera sensor @ 38 */
444};
445
446&i2c2 {
447	status = "okay";
448	clock-frequency = <400000>;
449
450	/* Richwave RTC6226 FM Radio Receiver @ 64 */
451};
452
453&i2c4 {
454	status = "okay";
455	clock-frequency = <400000>;
456
457	/* Samsung Touchscreen (needs I2C GPI DMA) @ 48 */
458};
459
460&i2c11 {
461	status = "okay";
462	clock-frequency = <1000000>;
463
464	cs35l41_l: cs35l41@40 {
465		compatible = "cirrus,cs35l41";
466		reg = <0x40>;
467		interrupt-parent = <&tlmm>;
468		interrupts = <36 IRQ_TYPE_LEVEL_LOW>;
469		reset-gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
470		cirrus,boost-peak-milliamp = <4000>;
471		cirrus,boost-ind-nanohenry = <1000>;
472		cirrus,boost-cap-microfarad = <15>;
473		cirrus,asp-sdout-hiz = <3>;
474		cirrus,gpio2-src-select = <2>;
475		cirrus,gpio2-output-enable;
476		#sound-dai-cells = <1>;
477	};
478
479	cs35l41_r: cs35l41@41 {
480		compatible = "cirrus,cs35l41";
481		reg = <0x41>;
482		interrupt-parent = <&tlmm>;
483		interrupts = <36 IRQ_TYPE_LEVEL_LOW>;
484		reset-gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
485		cirrus,boost-peak-milliamp = <4000>;
486		cirrus,boost-ind-nanohenry = <1000>;
487		cirrus,boost-cap-microfarad = <15>;
488		cirrus,asp-sdout-hiz = <3>;
489		cirrus,gpio2-src-select = <2>;
490		cirrus,gpio2-output-enable;
491		#sound-dai-cells = <1>;
492	};
493};
494
495&i2c12 {
496	status = "okay";
497	/* Clock frequency was not specified downstream, let's park it to 100 KHz */
498	clock-frequency = <100000>;
499
500	/* AMS TCS3490 RGB+IR color sensor @ 72 */
501};
502
503&i2c13 {
504	status = "okay";
505	/* Clock frequency was not specified downstream, let's park it to 100 KHz */
506	clock-frequency = <100000>;
507
508	/* Qualcomm PM8008i/PM8008j (?) @ 8, 9, c, d */
509	/* Dialog SLG51000 CMIC @ 75 */
510};
511
512&i2c15 {
513	status = "okay";
514	clock-frequency = <400000>;
515
516	/* NXP SN1X0 NFC @ 28 */
517};
518
519&i2c17 {
520	status = "okay";
521	clock-frequency = <1000000>;
522
523	/* Cirrus Logic CS40L25A boosted haptics driver @ 40 */
524};
525
526&ipa {
527	status = "okay";
528	memory-region = <&pil_ipa_fw_mem>;
529	firmware-name = "qcom/sm8350/Sony/sagami/ipa_fws.mbn";
530};
531
532&mpss {
533	status = "okay";
534	firmware-name = "qcom/sm8350/Sony/sagami/modem.mbn";
535};
536
537&pmk8350_rtc {
538	status = "okay";
539};
540
541&pon_pwrkey {
542	status = "okay";
543};
544
545&pon_resin {
546	status = "okay";
547	linux,code = <KEY_VOLUMEUP>;
548};
549
550&qupv3_id_0 {
551	status = "okay";
552};
553
554&qupv3_id_1 {
555	status = "okay";
556};
557
558&qupv3_id_2 {
559	status = "okay";
560};
561
562&sdhc_2 {
563	cd-gpios = <&tlmm 92 GPIO_ACTIVE_HIGH>;
564	pinctrl-names = "default", "sleep";
565	pinctrl-0 = <&sdc2_default_state &sdc2_card_det_active>;
566	pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_sleep>;
567	vmmc-supply = <&pm8350c_l9>;
568	vqmmc-supply = <&pm8350c_l6>;
569	no-sdio;
570	no-mmc;
571	status = "okay";
572};
573
574&slpi {
575	status = "okay";
576	firmware-name = "qcom/sm8350/Sony/sagami/slpi.mbn";
577};
578
579&spi14 {
580	status = "okay";
581
582	/* NXP SN1X0 NFC Secure Element @ 0 */
583};
584
585&tlmm {
586	gpio-reserved-ranges = <44 4>;
587	gpio-line-names = "APPS_I2C_0_SDA", /* GPIO_0 */
588			  "APPS_I2C_0_SCL",
589			  "UWIDEC_PWR_EN",
590			  "HAP_RST_N",
591			  "NC",
592			  "NC",
593			  "PM8008_1_RESET_N",
594			  "NC",
595			  "OIS_TELE_I2C_SDA",
596			  "OIS_TELE_I2C_SCL",
597			  "PM8350_OPTION", /* GPIO_10 */
598			  "NC",
599			  "APPS_I2C_1_SDA",
600			  "APPS_I2C_1_SCL",
601			  "NC",
602			  "NC",
603			  "CAM1_RESET_N",
604			  "LEO_CAM0_RESET_N",
605			  "DEBUG_UART_TX",
606			  "DEBUG_UART_RX",
607			  "TS_I2C_SDA", /* GPIO_20 */
608			  "TS_I2C_SCL",
609			  "TS_RESET_N",
610			  "TS_INT_N",
611			  "DISP_RESET_N",
612			  "SW_SERVICE",
613			  "DISP_ERR_FG",
614			  "TX_GTR_THRES_IN",
615			  "NC",
616			  "NC",
617			  "NC", /* GPIO_30 */
618			  "NC",
619			  "NC",
620			  "NC",
621			  "NC",
622			  "NC",
623			  "SPK_AMP_INT_N",
624			  "SPK_AMP_RESET_N",
625			  "FP_INT_N",
626			  "FP_RESET_N",
627			  "NC", /* GPIO_40 */
628			  "NC",
629			  "DEBUG_GPIO0",
630			  "FORCE_USB_BOOT",
631			  "FP_SPI_MISO",
632			  "FP_SPI_MOSI",
633			  "FP_SPI_CLK",
634			  "FP_SPI_CS_N",
635			  "SPK_AMP_I2C_SDA",
636			  "SPK_AMP_I2C_SCL",
637			  "NC", /* GPIO_50 */
638			  "HAP_INT_N",
639			  "CAMSENSOR_I2C_SDA",
640			  "CAMSENSOR_I2C_SCL",
641			  "SBU_SW_OE",
642			  "SBU_SW_SEL",
643			  "NFC_ESE_SPI_MISO",
644			  "NFC_ESE_SPI_MOSI",
645			  "NFC_ESE_SPI_CLK",
646			  "NFC_ESE_SPI_CS",
647			  "NFC_I2C_SDA", /* GPIO_60 */
648			  "NFC_I2C_SCL",
649			  "NFC_EN",
650			  "NFC_CLK_REQ",
651			  "HST_WLAN_EN",
652			  "HST_BT_EN",
653			  "HW_ID_0",
654			  "HW_ID_1",
655			  "HST_BT_UART_CTS",
656			  "HST_BT_UART_RFR",
657			  "HST_BT_UART_TX", /* GPIO_70 */
658			  "HST_BT_UART_RX",
659			  "HAP_I2C_SDA",
660			  "HAP_I2C_SCL",
661			  "RF_LCD_ID_EN",
662			  "RF_ID_EXTENSION",
663			  "NC",
664			  "NC",
665			  "NC",
666			  "NC",
667			  "HALL_INT_N", /* GPIO_80 */
668			  "USB_CC_DIR",
669			  "DISP_VSYNC",
670			  "NC",
671			  "NC",
672			  "CAM_SOF_TELE",
673			  "NFC_DWL_REQ",
674			  "NFC_IRQ",
675			  "WCD_RST_N",
676			  "ALS_PROX_INT_N",
677			  "NC", /* GPIO_90 */
678			  "NC",
679			  "TRAY_DET",
680			  "UDON_SWITCH_SEL",
681			  "PCIE0_RESET_N",
682			  "PCIE0_CLK_REQ_N",
683			  "PCIE0_WAKE_N",
684			  "CAM_SOF",
685			  "RF_ID_EXTENSION_2",
686			  "RGBC_IR_INT",
687			  "CAM_MCLK0", /* GPIO_100 */
688			  "CAM_MCLK1",
689			  "CAM_MCLK2",
690			  "CAM_MCLK3",
691			  "NC",
692			  "NC",
693			  "CAM2_RESET_N",
694			  "CCI_I2C0_SDA",
695			  "CCI_I2C0_SCL",
696			  "CCI_I2C1_SDA",
697			  "CCI_I2C1_SCL", /* GPIO_110 */
698			  "CCI_I2C2_SDA",
699			  "CCI_I2C2_SCL",
700			  "CCI_I2C3_SDA",
701			  "CCI_I2C3_SCL",
702			  "NC",
703			  "PM8008_1_IRQ",
704			  "CAM3_RESET_N",
705			  "IMU1_INT",
706			  "EXT_VD0_XVS",
707			  "NC", /* GPIO_120 */
708			  "NC",
709			  "NC",
710			  "NC",
711			  "NC",
712			  "HAP_I2S_CLK",
713			  "HAP_I2S_DOUT",
714			  "HAP_TRG1",
715			  "HAP_I2S_SYNC",
716			  "HST_BT_WLAN_SLIMBUS_CLK",
717			  "HST_BT_WLAN_SLIMBUS_DAT0", /* GPIO_130 */
718			  "NC",
719			  "UIM2_DETECT_EN",
720			  "UIM2_DATA",
721			  "UIM2_CLK",
722			  "UIM2_RESET",
723			  "UIM2_PRESENT",
724			  "UIM1_DATA",
725			  "UIM1_CLK",
726			  "UIM1_RESET",
727			  "TRAY_DET", /* GPIO_140 */
728			  "SM_RFFE0_CLK",
729			  "SM_RFFE0_DATA",
730			  "SM_RFFE1_CLK",
731			  "SM_RFFE1_DATA",
732			  "SM_MSS_GRFC4",
733			  "SM_MSS_GRFC5",
734			  "SM_MSS_GRFC6",
735			  "SM_MSS_GRFC7",
736			  "SM_RFFE4_CLK",
737			  "SM_RFFE4_DATA", /* GPIO_150 */
738			  "WLAN_COEX_UART1_RX",
739			  "WLAN_COEX_UART1_TX",
740			  "HST_SW_CTRL",
741			  "DISP_VDDR_EN",
742			  "NC",
743			  "NC",
744			  "PA_INDICATOR_OR",
745			  "NC",
746			  "QLINK0_REQ",
747			  "QLINK0_EN", /* GPIO_160 */
748			  "QLINK0_WMSS_RESET_N",
749			  "NC",
750			  "NC",
751			  "NC",
752			  "PM8008_2_IRQ",
753			  "TELEC_PWR_EN",
754			  "PM8008_2_RESET_N",
755			  "WCD_SWR_TX_CLK",
756			  "WCD_SWR_TX_DATA0",
757			  "WCD_SWR_TX_DATA1", /* GPIO_170 */
758			  "WCD_SWR_RX_CLK",
759			  "WCD_SWR_RX_DATA0",
760			  "WCD_SWR_RX_DATA1",
761			  "SM_DMIC1_CLK",
762			  "SM_DMIC1_DATA",
763			  "SM_DMIC2_CLK",
764			  "SM_DMIC2_DATA",
765			  "SPK_AMP_I2S_CLK",
766			  "SPK_AMP_I2S_WS",
767			  "SPK_AMP_I2S_ASP_DIN", /* GPIO_180 */
768			  "SPK_AMP_I2S_ASP_DOUT",
769			  "WCD_SWR_TX_DATA2",
770			  "NC",
771			  "NC",
772			  "NC",
773			  "NC",
774			  "IMU_SPI_MISO",
775			  "IMU_SPI_MOSI",
776			  "IMU_SPI_CLK",
777			  "IMU_SPI_CS_N", /* GPIO_190 */
778			  "MAG_I2C_SDA",
779			  "MAG_I2C_SCL",
780			  "SENSOR_I2C_SDA",
781			  "SENSOR_I2C_SCL",
782			  "NC",
783			  "NC",
784			  "NC",
785			  "NC",
786			  "HST_BLE_UART_TX",
787			  "HST_BLE_UART_RX", /* GPIO_200 */
788			  "HST_WLAN_UART_TX",
789			  "HST_WLAN_UART_RX";
790
791	ts_int_default: ts-int-default-state {
792		pins = "gpio23";
793		function = "gpio";
794		drive-strength = <2>;
795		bias-disable;
796		input-enable;
797	};
798
799	sdc2_card_det_active: sd-card-det-active-state {
800		pins = "gpio92";
801		function = "gpio";
802		drive-strength = <2>;
803		bias-pull-up;
804	};
805
806	sdc2_card_det_sleep: sd-card-det-sleep-state {
807		pins = "gpio92";
808		function = "gpio";
809		drive-strength = <2>;
810		bias-disable;
811	};
812};
813
814/* BIG WARNING! DO NOT TOUCH UFS, YOUR DEVICE WILL DIE! */
815&ufs_mem_hc { status = "disabled"; };
816&ufs_mem_phy { status = "disabled"; };
817
818&usb_1 {
819	status = "okay";
820};
821
822&usb_1_dwc3 {
823	dr_mode = "peripheral";
824};
825
826&usb_1_hsphy {
827	status = "okay";
828
829	vdda-pll-supply = <&pm8350_l5>;
830	vdda18-supply = <&pm8350c_l1>;
831	vdda33-supply = <&pm8350_l2>;
832};
833
834&usb_1_qmpphy {
835	status = "okay";
836
837	vdda-phy-supply = <&pm8350_l6>;
838	vdda-pll-supply = <&pm8350_l1>;
839};
840