Merge tag 'v5.11' into next
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / qcom / qrb5165-rb5.dts
1 // SPDX-License-Identifier: BSD-3-Clause
2 /*
3  * Copyright (c) 2020, Linaro Ltd.
4  */
5
6 /dts-v1/;
7
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
10 #include "sm8250.dtsi"
11 #include "pm8150.dtsi"
12 #include "pm8150b.dtsi"
13 #include "pm8150l.dtsi"
14
15 / {
16         model = "Qualcomm Technologies, Inc. Robotics RB5";
17         compatible = "qcom,qrb5165-rb5", "qcom,sm8250";
18
19         aliases {
20                 serial0 = &uart12;
21                 sdhc2 = &sdhc_2;
22         };
23
24         chosen {
25                 stdout-path = "serial0:115200n8";
26         };
27
28         /* Fixed crystal oscillator dedicated to MCP2518FD */
29         clk40M: can_clock {
30                 compatible = "fixed-clock";
31                 #clock-cells = <0>;
32                 clock-frequency = <40000000>;
33         };
34
35         dc12v: dc12v-regulator {
36                 compatible = "regulator-fixed";
37                 regulator-name = "DC12V";
38                 regulator-min-microvolt = <12000000>;
39                 regulator-max-microvolt = <12000000>;
40                 regulator-always-on;
41         };
42
43         leds {
44                 compatible = "gpio-leds";
45
46                 user4 {
47                         label = "green:user4";
48                         gpios = <&pm8150_gpios 10 GPIO_ACTIVE_HIGH>;
49                         linux,default-trigger = "panic-indicator";
50                         default-state = "off";
51                 };
52
53                 wlan {
54                         label = "yellow:wlan";
55                         gpios = <&pm8150_gpios 9 GPIO_ACTIVE_HIGH>;
56                         linux,default-trigger = "phy0tx";
57                         default-state = "off";
58                 };
59
60                 bt {
61                         label = "blue:bt";
62                         gpios = <&pm8150_gpios 7 GPIO_ACTIVE_HIGH>;
63                         linux,default-trigger = "bluetooth-power";
64                         default-state = "off";
65                 };
66
67         };
68
69         vbat: vbat-regulator {
70                 compatible = "regulator-fixed";
71                 regulator-name = "VBAT";
72                 vin-supply = <&vreg_l11c_3p3>;
73                 regulator-min-microvolt = <4200000>;
74                 regulator-max-microvolt = <4200000>;
75                 regulator-always-on;
76         };
77
78         vbat_som: vbat-som-regulator {
79                 compatible = "regulator-fixed";
80                 regulator-name = "VBAT_SOM";
81                 vin-supply = <&dc12v>;
82                 regulator-min-microvolt = <4200000>;
83                 regulator-max-microvolt = <4200000>;
84                 regulator-always-on;
85         };
86
87         vdc_3v3: vdc-3v3-regulator {
88                 compatible = "regulator-fixed";
89                 regulator-name = "VDC_3V3";
90                 vin-supply = <&dc12v>;
91                 regulator-min-microvolt = <3300000>;
92                 regulator-max-microvolt = <3300000>;
93                 regulator-always-on;
94         };
95
96         vdc_5v: vdc-5v-regulator {
97                 compatible = "regulator-fixed";
98                 regulator-name = "VDC_5V";
99
100                 regulator-min-microvolt = <5000000>;
101                 regulator-max-microvolt = <5000000>;
102                 regulator-always-on;
103                 vin-supply = <&vreg_l11c_3p3>;
104         };
105
106         vph_pwr: vph-pwr-regulator {
107                 compatible = "regulator-fixed";
108                 regulator-name = "vph_pwr";
109                 regulator-min-microvolt = <3700000>;
110                 regulator-max-microvolt = <3700000>;
111                 regulator-always-on;
112         };
113
114         vreg_s4a_1p8: vreg-s4a-1p8 {
115                 compatible = "regulator-fixed";
116                 regulator-name = "vreg_s4a_1p8";
117                 regulator-min-microvolt = <1800000>;
118                 regulator-max-microvolt = <1800000>;
119                 regulator-always-on;
120         };
121 };
122
123 &apps_rsc {
124         pm8009-rpmh-regulators {
125                 compatible = "qcom,pm8009-rpmh-regulators";
126                 qcom,pmic-id = "f";
127
128                 vdd-s1-supply = <&vph_pwr>;
129                 vdd-s2-supply = <&vph_pwr>;
130                 vdd-l2-supply = <&vreg_s8c_1p3>;
131                 vdd-l5-l6-supply = <&vreg_bob>;
132                 vdd-l7-supply = <&vreg_s4a_1p8>;
133
134                 vreg_l1f_1p1: ldo1 {
135                         regulator-name = "vreg_l1f_1p1";
136                         regulator-min-microvolt = <1104000>;
137                         regulator-max-microvolt = <1104000>;
138                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
139                 };
140
141                 vreg_l2f_1p2: ldo2 {
142                         regulator-name = "vreg_l2f_1p2";
143                         regulator-min-microvolt = <1200000>;
144                         regulator-max-microvolt = <1200000>;
145                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
146                 };
147
148                 vreg_l6f_2p8: ldo6 {
149                         regulator-name = "vreg_l6f_2p8";
150                         regulator-min-microvolt = <2800000>;
151                         regulator-max-microvolt = <2800000>;
152                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
153                 };
154
155                 vreg_l7f_1p8: ldo7 {
156                         regulator-name = "vreg_l7f_1p8";
157                         regulator-min-microvolt = <1800000>;
158                         regulator-max-microvolt = <1800000>;
159                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
160                 };
161         };
162
163         pm8150-rpmh-regulators {
164                 compatible = "qcom,pm8150-rpmh-regulators";
165                 qcom,pmic-id = "a";
166
167                 vdd-s1-supply = <&vph_pwr>;
168                 vdd-s2-supply = <&vph_pwr>;
169                 vdd-s3-supply = <&vph_pwr>;
170                 vdd-s4-supply = <&vph_pwr>;
171                 vdd-s5-supply = <&vph_pwr>;
172                 vdd-s6-supply = <&vph_pwr>;
173                 vdd-s7-supply = <&vph_pwr>;
174                 vdd-s8-supply = <&vph_pwr>;
175                 vdd-s9-supply = <&vph_pwr>;
176                 vdd-s10-supply = <&vph_pwr>;
177                 vdd-l2-l10-supply = <&vreg_bob>;
178                 vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p95>;
179                 vdd-l6-l9-supply = <&vreg_s8c_1p3>;
180                 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_1p9>;
181                 vdd-l13-l16-l17-supply = <&vreg_bob>;
182
183                 vreg_l2a_3p1: ldo2 {
184                         regulator-name = "vreg_l2a_3p1";
185                         regulator-min-microvolt = <3072000>;
186                         regulator-max-microvolt = <3072000>;
187                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
188                 };
189
190                 vreg_l3a_0p9: ldo3 {
191                         regulator-name = "vreg_l3a_0p9";
192                         regulator-min-microvolt = <928000>;
193                         regulator-max-microvolt = <932000>;
194                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
195                 };
196
197                 vreg_l5a_0p88: ldo5 {
198                         regulator-name = "vreg_l5a_0p88";
199                         regulator-min-microvolt = <880000>;
200                         regulator-max-microvolt = <880000>;
201                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
202                 };
203
204                 vreg_l6a_1p2: ldo6 {
205                         regulator-name = "vreg_l6a_1p2";
206                         regulator-min-microvolt = <1200000>;
207                         regulator-max-microvolt = <1200000>;
208                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
209                 };
210
211                 vreg_l7a_1p7: ldo7 {
212                         regulator-name = "vreg_l7a_1p7";
213                         regulator-min-microvolt = <1704000>;
214                         regulator-max-microvolt = <1800000>;
215                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
216                 };
217
218                 vreg_l9a_1p2: ldo9 {
219                         regulator-name = "vreg_l9a_1p2";
220                         regulator-min-microvolt = <1200000>;
221                         regulator-max-microvolt = <1200000>;
222                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
223                 };
224
225                 vreg_l10a_1p8: ldo10 {
226                         regulator-name = "vreg_l10a_1p8";
227                         regulator-min-microvolt = <1800000>;
228                         regulator-max-microvolt = <1800000>;
229                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
230                 };
231
232                 vreg_l12a_1p8: ldo12 {
233                         regulator-name = "vreg_l12a_1p8";
234                         regulator-min-microvolt = <1800000>;
235                         regulator-max-microvolt = <1800000>;
236                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
237                 };
238
239                 vreg_l13a_ts_3p0: ldo13 {
240                         regulator-name = "vreg_l13a_ts_3p0";
241                         regulator-min-microvolt = <3008000>;
242                         regulator-max-microvolt = <3008000>;
243                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
244                 };
245
246                 vreg_l14a_1p8: ldo14 {
247                         regulator-name = "vreg_l14a_1p8";
248                         regulator-min-microvolt = <1800000>;
249                         regulator-max-microvolt = <1880000>;
250                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
251                 };
252
253                 vreg_l15a_1p8: ldo15 {
254                         regulator-name = "vreg_l15a_1p8";
255                         regulator-min-microvolt = <1800000>;
256                         regulator-max-microvolt = <1800000>;
257                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
258                 };
259
260                 vreg_l16a_2p7: ldo16 {
261                         regulator-name = "vreg_l16a_2p7";
262                         regulator-min-microvolt = <2704000>;
263                         regulator-max-microvolt = <2960000>;
264                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
265                 };
266
267                 vreg_l17a_3p0: ldo17 {
268                         regulator-name = "vreg_l17a_3p0";
269                         regulator-min-microvolt = <2856000>;
270                         regulator-max-microvolt = <3008000>;
271                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
272                 };
273
274                 vreg_l18a_0p92: ldo18 {
275                         regulator-name = "vreg_l18a_0p92";
276                         regulator-min-microvolt = <800000>;
277                         regulator-max-microvolt = <912000>;
278                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
279                 };
280
281                 vreg_s5a_1p9: smps5 {
282                         regulator-name = "vreg_s5a_1p9";
283                         regulator-min-microvolt = <1904000>;
284                         regulator-max-microvolt = <2000000>;
285                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
286                 };
287
288                 vreg_s6a_0p95: smps6 {
289                         regulator-name = "vreg_s6a_0p95";
290                         regulator-min-microvolt = <920000>;
291                         regulator-max-microvolt = <1128000>;
292                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
293                 };
294         };
295
296         pm8150l-rpmh-regulators {
297                 compatible = "qcom,pm8150l-rpmh-regulators";
298                 qcom,pmic-id = "c";
299
300                 vdd-s1-supply = <&vph_pwr>;
301                 vdd-s2-supply = <&vph_pwr>;
302                 vdd-s3-supply = <&vph_pwr>;
303                 vdd-s4-supply = <&vph_pwr>;
304                 vdd-s5-supply = <&vph_pwr>;
305                 vdd-s6-supply = <&vph_pwr>;
306                 vdd-s7-supply = <&vph_pwr>;
307                 vdd-s8-supply = <&vph_pwr>;
308                 vdd-l1-l8-supply = <&vreg_s4a_1p8>;
309                 vdd-l2-l3-supply = <&vreg_s8c_1p3>;
310                 vdd-l4-l5-l6-supply = <&vreg_bob>;
311                 vdd-l7-l11-supply = <&vreg_bob>;
312                 vdd-l9-l10-supply = <&vreg_bob>;
313                 vdd-bob-supply = <&vph_pwr>;
314
315                 vreg_bob: bob {
316                         regulator-name = "vreg_bob";
317                         regulator-min-microvolt = <3008000>;
318                         regulator-max-microvolt = <4000000>;
319                         regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
320                 };
321
322                 vreg_l1c_1p8: ldo1 {
323                         regulator-name = "vreg_l1c_1p8";
324                         regulator-min-microvolt = <1800000>;
325                         regulator-max-microvolt = <1800000>;
326                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
327                 };
328
329                 vreg_l2c_1p2: ldo2 {
330                         regulator-name = "vreg_l2c_1p2";
331                         regulator-min-microvolt = <1200000>;
332                         regulator-max-microvolt = <1200000>;
333                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
334                 };
335
336                 vreg_l3c_0p8: ldo3 {
337                         regulator-name = "vreg_l3c_0p8";
338                         regulator-min-microvolt = <800000>;
339                         regulator-max-microvolt = <800000>;
340                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
341                 };
342
343                 vreg_l4c_1p7: ldo4 {
344                         regulator-name = "vreg_l4c_1p7";
345                         regulator-min-microvolt = <1704000>;
346                         regulator-max-microvolt = <2928000>;
347                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
348                 };
349
350                 vreg_l5c_1p8: ldo5 {
351                         regulator-name = "vreg_l5c_1p8";
352                         regulator-min-microvolt = <1800000>;
353                         regulator-max-microvolt = <2928000>;
354                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
355                 };
356
357                 vreg_l6c_2p96: ldo6 {
358                         regulator-name = "vreg_l6c_2p96";
359                         regulator-min-microvolt = <1800000>;
360                         regulator-max-microvolt = <2960000>;
361                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
362                 };
363
364                 vreg_l7c_cam_vcm0_2p85: ldo7 {
365                         regulator-name = "vreg_l7c_cam_vcm0_2p85";
366                         regulator-min-microvolt = <2856000>;
367                         regulator-max-microvolt = <3104000>;
368                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
369                 };
370
371                 vreg_l8c_1p8: ldo8 {
372                         regulator-name = "vreg_l8c_1p8";
373                         regulator-min-microvolt = <1800000>;
374                         regulator-max-microvolt = <1800000>;
375                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
376                 };
377
378                 vreg_l9c_2p96: ldo9 {
379                         regulator-name = "vreg_l9c_2p96";
380                         regulator-min-microvolt = <2704000>;
381                         regulator-max-microvolt = <2960000>;
382                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
383                 };
384
385                 vreg_l10c_3p0: ldo10 {
386                         regulator-name = "vreg_l10c_3p0";
387                         regulator-min-microvolt = <3000000>;
388                         regulator-max-microvolt = <3000000>;
389                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
390                 };
391
392                 vreg_l11c_3p3: ldo11 {
393                         regulator-name = "vreg_l11c_3p3";
394                         regulator-min-microvolt = <3296000>;
395                         regulator-max-microvolt = <3296000>;
396                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
397                         regulator-always-on;
398                 };
399
400                 vreg_s8c_1p3: smps8 {
401                         regulator-name = "vreg_s8c_1p3";
402                         regulator-min-microvolt = <1352000>;
403                         regulator-max-microvolt = <1352000>;
404                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
405                 };
406         };
407 };
408
409 /* LS-I2C0 */
410 &i2c4 {
411         status = "okay";
412 };
413
414 &i2c5 {
415         status = "okay";
416 };
417
418 /* LS-I2C1 */
419 &i2c15 {
420         status = "okay";
421 };
422
423 &pm8150_gpios {
424         gpio-reserved-ranges = <1 1>, <3 2>, <7 1>;
425         gpio-line-names =
426                 "NC",
427                 "OPTION2",
428                 "PM_GPIO-F",
429                 "PM_SLP_CLK_IN",
430                 "OPTION1",
431                 "VOL_UP_N",
432                 "PM8250_GPIO7", /* Blue LED */
433                 "SP_ARI_PWR_ALARM",
434                 "GPIO_9_P", /* Yellow LED */
435                 "GPIO_10_P"; /* Green LED */
436 };
437
438 &pm8150b_gpios {
439         gpio-line-names =
440                 "NC",
441                 "NC",
442                 "NC",
443                 "NC",
444                 "HAP_BOOST_EN", /* SOM */
445                 "SMB_STAT", /* SOM */
446                 "NC",
447                 "NC",
448                 "SDM_FORCE_USB_BOOT",
449                 "NC",
450                 "NC",
451                 "NC";
452 };
453
454 &pm8150l_gpios {
455         gpio-line-names =
456                 "NC",
457                 "PM3003A_EN",
458                 "NC",
459                 "NC",
460                 "PM_GPIO5", /* HDMI RST_N */
461                 "PM_GPIO-A", /* PWM */
462                 "PM_GPIO7",
463                 "NC",
464                 "NC",
465                 "PM_GPIO-B",
466                 "NC",
467                 "PM3003A_MODE";
468 };
469
470 &pm8150_rtc {
471         status = "okay";
472 };
473
474 &qupv3_id_0 {
475         status = "okay";
476 };
477
478 &qupv3_id_1 {
479         status = "okay";
480 };
481
482 &qupv3_id_2 {
483         status = "okay";
484 };
485
486 &sdhc_2 {
487         status = "okay";
488         pinctrl-names = "default";
489         pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>;
490         vmmc-supply = <&vreg_l9c_2p96>;
491         vqmmc-supply = <&vreg_l6c_2p96>;
492         cd-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
493         bus-width = <4>;
494         /* there seem to be issues with HS400-1.8V mode, so disable it */
495         no-1-8-v;
496         no-sdio;
497         no-emmc;
498 };
499
500 /* CAN */
501 &spi0 {
502         status = "okay";
503
504         can@0 {
505                 compatible = "microchip,mcp2518fd";
506                 reg = <0>;
507                 clocks = <&clk40M>;
508                 interrupts-extended = <&tlmm 15 IRQ_TYPE_LEVEL_LOW>;
509                 spi-max-frequency = <10000000>;
510                 vdd-supply = <&vdc_5v>;
511                 xceiver-supply = <&vdc_5v>;
512         };
513 };
514
515 &tlmm {
516         gpio-reserved-ranges = <40 4>;
517         gpio-line-names =
518                 "GPIO-MM",
519                 "GPIO-NN",
520                 "GPIO-OO",
521                 "GPIO-PP",
522                 "GPIO-A",
523                 "GPIO-C",
524                 "GPIO-E",
525                 "GPIO-D",
526                 "I2C0-SDA",
527                 "I2C0-SCL",
528                 "GPIO-TT", /* GPIO_10 */
529                 "NC",
530                 "GPIO_12_I2C_SDA",
531                 "GPIO_13_I2C_SCL",
532                 "GPIO-X",
533                 "GPIO_15_RGMII_INT",
534                 "HST_BT_UART_CTS",
535                 "HST_BT_UART_RFR",
536                 "HST_BT_UART_TX",
537                 "HST_BT_UART_RX",
538                 "HST_WLAN_EN", /* GPIO_20 */
539                 "HST_BT_EN",
540                 "GPIO-AAA",
541                 "GPIO-BBB",
542                 "GPIO-CCC",
543                 "GPIO-Z",
544                 "GPIO-DDD",
545                 "GPIO-BB",
546                 "GPIO_28_CAN_SPI_MISO",
547                 "GPIO_29_CAN_SPI_MOSI",
548                 "GPIO_30_CAN_SPI_CLK", /* GPIO_30 */
549                 "GPIO_31_CAN_SPI_CS",
550                 "GPIO-UU",
551                 "NC",
552                 "UART1_TXD_SOM",
553                 "UART1_RXD_SOM",
554                 "UART0_CTS",
555                 "UART0_RTS",
556                 "UART0_TXD",
557                 "UART0_RXD",
558                 "SPI1_MISO", /* GPIO_40 */
559                 "SPI1_MOSI",
560                 "SPI1_CLK",
561                 "SPI1_CS",
562                 "I2C1_SDA",
563                 "I2C1_SCL",
564                 "GPIO-F",
565                 "GPIO-JJ",
566                 "Board_ID1",
567                 "Board_ID2",
568                 "NC", /* GPIO_50 */
569                 "NC",
570                 "SPI0_MISO",
571                 "SPI0_MOSI",
572                 "SPI0_SCLK",
573                 "SPI0_CS",
574                 "GPIO-QQ",
575                 "GPIO-RR",
576                 "USB2LAN_RESET",
577                 "USB2LAN_EXTWAKE",
578                 "NC", /* GPIO_60 */
579                 "NC",
580                 "NC",
581                 "LT9611_INT",
582                 "GPIO-AA",
583                 "USB_CC_DIR",
584                 "GPIO-G",
585                 "GPIO-LL",
586                 "USB_DP_HPD_1P8",
587                 "NC",
588                 "NC", /* GPIO_70 */
589                 "SD_CMD",
590                 "SD_DAT3",
591                 "SD_SCLK",
592                 "SD_DAT2",
593                 "SD_DAT1",
594                 "SD_DAT0", /* BOOT_CFG3 */
595                 "SD_UFS_CARD_DET_N",
596                 "GPIO-II",
597                 "PCIE0_RST_N",
598                 "PCIE0_CLK_REQ_N", /* GPIO_80 */
599                 "PCIE0_WAKE_N",
600                 "GPIO-CC",
601                 "GPIO-DD",
602                 "GPIO-EE",
603                 "GPIO-FF",
604                 "GPIO-GG",
605                 "GPIO-HH",
606                 "GPIO-VV",
607                 "GPIO-WW",
608                 "NC", /* GPIO_90 */
609                 "NC",
610                 "GPIO-K",
611                 "GPIO-I",
612                 "CSI0_MCLK",
613                 "CSI1_MCLK",
614                 "CSI2_MCLK",
615                 "CSI3_MCLK",
616                 "GPIO-AA", /* CSI4_MCLK */
617                 "GPIO-BB", /* CSI5_MCLK */
618                 "GPIO-KK", /* GPIO_100 */
619                 "CCI_I2C_SDA0",
620                 "CCI_I2C_SCL0",
621                 "CCI_I2C_SDA1",
622                 "CCI_I2C_SCL1",
623                 "CCI_I2C_SDA2",
624                 "CCI_I2C_SCL2",
625                 "CCI_I2C_SDA3",
626                 "CCI_I2C_SCL3",
627                 "GPIO-L",
628                 "NC", /* GPIO_110 */
629                 "NC",
630                 "ACCEL_INT",
631                 "GYRO_INT",
632                 "GPIO-J",
633                 "GPIO-YY",
634                 "GPIO-H",
635                 "GPIO-ZZ",
636                 "NC",
637                 "NC",
638                 "NC", /* GPIO_120 */
639                 "NC",
640                 "MAG_INT",
641                 "MAG_DRDY_INT",
642                 "HST_SW_CTRL",
643                 "GPIO-M",
644                 "GPIO-N",
645                 "GPIO-O",
646                 "GPIO-P",
647                 "PS_INT",
648                 "WSA1_EN", /* GPIO_130 */
649                 "USB_HUB_RESET",
650                 "SDM_FORCE_USB_BOOT",
651                 "I2S1_CLK_HDMI",
652                 "I2S1_DATA0_HDMI",
653                 "I2S1_WS_HDMI",
654                 "GPIO-B",
655                 "GPIO_137", /* To LT9611_I2S_MCLK_3V3 */
656                 "PCM_CLK",
657                 "PCM_DI",
658                 "PCM_DO", /* GPIO_140 */
659                 "PCM_FS",
660                 "HST_SLIM_CLK",
661                 "HST_SLIM_DATA",
662                 "GPIO-U",
663                 "GPIO-Y",
664                 "GPIO-R",
665                 "GPIO-Q",
666                 "GPIO-S",
667                 "GPIO-T",
668                 "GPIO-V", /* GPIO_150 */
669                 "GPIO-W",
670                 "DMIC_CLK1",
671                 "DMIC_DATA1",
672                 "DMIC_CLK2",
673                 "DMIC_DATA2",
674                 "WSA_SWR_CLK",
675                 "WSA_SWR_DATA",
676                 "DMIC_CLK3",
677                 "DMIC_DATA3",
678                 "I2C4_SDA", /* GPIO_160 */
679                 "I2C4_SCL",
680                 "SPI3_CS1",
681                 "SPI3_CS2",
682                 "SPI2_MISO_LS3",
683                 "SPI2_MOSI_LS3",
684                 "SPI2_CLK_LS3",
685                 "SPI2_ACCEL_CS_LS3",
686                 "SPI2_CS1",
687                 "NC",
688                 "GPIO-SS", /* GPIO_170 */
689                 "GPIO-XX",
690                 "SPI3_MISO",
691                 "SPI3_MOSI",
692                 "SPI3_CLK",
693                 "SPI3_CS",
694                 "HST_BLE_SNS_UART_TX",
695                 "HST_BLE_SNS_UART_RX",
696                 "HST_WLAN_UART_TX",
697                 "HST_WLAN_UART_RX";
698
699         sdc2_default_state: sdc2-default {
700                 clk {
701                         pins = "sdc2_clk";
702                         bias-disable;
703                         drive-strength = <16>;
704                 };
705
706                 cmd {
707                         pins = "sdc2_cmd";
708                         bias-pull-up;
709                         drive-strength = <16>;
710                 };
711
712                 data {
713                         pins = "sdc2_data";
714                         bias-pull-up;
715                         drive-strength = <16>;
716                 };
717         };
718
719         sdc2_card_det_n: sd-card-det-n {
720                 pins = "gpio77";
721                 function = "gpio";
722                 bias-pull-up;
723         };
724 };
725
726 &uart12 {
727         status = "okay";
728 };
729
730 &ufs_mem_hc {
731         status = "okay";
732
733         vcc-supply = <&vreg_l17a_3p0>;
734         vcc-max-microamp = <800000>;
735         vccq-supply = <&vreg_l6a_1p2>;
736         vccq-max-microamp = <800000>;
737         vccq2-supply = <&vreg_s4a_1p8>;
738         vccq2-max-microamp = <800000>;
739 };
740
741 &ufs_mem_phy {
742         status = "okay";
743
744         vdda-phy-supply = <&vreg_l5a_0p88>;
745         vdda-max-microamp = <89900>;
746         vdda-pll-supply = <&vreg_l9a_1p2>;
747         vdda-pll-max-microamp = <18800>;
748 };
749
750 &usb_1 {
751         status = "okay";
752 };
753
754 &usb_1_dwc3 {
755         dr_mode = "peripheral";
756 };
757
758 &usb_1_hsphy {
759         status = "okay";
760
761         vdda-pll-supply = <&vreg_l5a_0p88>;
762         vdda33-supply = <&vreg_l2a_3p1>;
763         vdda18-supply = <&vreg_l12a_1p8>;
764 };
765
766 &usb_1_qmpphy {
767         status = "okay";
768
769         vdda-phy-supply = <&vreg_l9a_1p2>;
770         vdda-pll-supply = <&vreg_l18a_0p92>;
771 };
772
773 &usb_2 {
774         status = "okay";
775 };
776
777 &usb_2_dwc3 {
778         dr_mode = "host";
779 };
780
781 &usb_2_hsphy {
782         status = "okay";
783
784         vdda-pll-supply = <&vreg_l5a_0p88>;
785         vdda33-supply = <&vreg_l2a_3p1>;
786         vdda18-supply = <&vreg_l12a_1p8>;
787 };
788
789 &usb_2_qmpphy {
790         status = "okay";
791
792         vdda-phy-supply = <&vreg_l9a_1p2>;
793         vdda-pll-supply = <&vreg_l18a_0p92>;
794 };