Merge remote-tracking branch 'regulator/for-5.13' into regulator-linus
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / rockchip / rk3399-firefly.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
4  */
5
6 /dts-v1/;
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/pwm/pwm.h>
9 #include "rk3399.dtsi"
10 #include "rk3399-opp.dtsi"
11
12 / {
13         model = "Firefly-RK3399 Board";
14         compatible = "firefly,firefly-rk3399", "rockchip,rk3399";
15
16         aliases {
17                 mmc0 = &sdio0;
18                 mmc1 = &sdmmc;
19                 mmc2 = &sdhci;
20         };
21
22         chosen {
23                 stdout-path = "serial2:1500000n8";
24         };
25
26         backlight: backlight {
27                 compatible = "pwm-backlight";
28                 enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
29                 pwms = <&pwm0 0 25000 0>;
30                 brightness-levels = <
31                           0   1   2   3   4   5   6   7
32                           8   9  10  11  12  13  14  15
33                          16  17  18  19  20  21  22  23
34                          24  25  26  27  28  29  30  31
35                          32  33  34  35  36  37  38  39
36                          40  41  42  43  44  45  46  47
37                          48  49  50  51  52  53  54  55
38                          56  57  58  59  60  61  62  63
39                          64  65  66  67  68  69  70  71
40                          72  73  74  75  76  77  78  79
41                          80  81  82  83  84  85  86  87
42                          88  89  90  91  92  93  94  95
43                          96  97  98  99 100 101 102 103
44                         104 105 106 107 108 109 110 111
45                         112 113 114 115 116 117 118 119
46                         120 121 122 123 124 125 126 127
47                         128 129 130 131 132 133 134 135
48                         136 137 138 139 140 141 142 143
49                         144 145 146 147 148 149 150 151
50                         152 153 154 155 156 157 158 159
51                         160 161 162 163 164 165 166 167
52                         168 169 170 171 172 173 174 175
53                         176 177 178 179 180 181 182 183
54                         184 185 186 187 188 189 190 191
55                         192 193 194 195 196 197 198 199
56                         200 201 202 203 204 205 206 207
57                         208 209 210 211 212 213 214 215
58                         216 217 218 219 220 221 222 223
59                         224 225 226 227 228 229 230 231
60                         232 233 234 235 236 237 238 239
61                         240 241 242 243 244 245 246 247
62                         248 249 250 251 252 253 254 255>;
63                 default-brightness-level = <200>;
64         };
65
66         clkin_gmac: external-gmac-clock {
67                 compatible = "fixed-clock";
68                 clock-frequency = <125000000>;
69                 clock-output-names = "clkin_gmac";
70                 #clock-cells = <0>;
71         };
72
73         dc_12v: dc-12v {
74                 compatible = "regulator-fixed";
75                 regulator-name = "dc_12v";
76                 regulator-always-on;
77                 regulator-boot-on;
78                 regulator-min-microvolt = <12000000>;
79                 regulator-max-microvolt = <12000000>;
80         };
81
82         gpio-keys {
83                 compatible = "gpio-keys";
84                 autorepeat;
85                 pinctrl-names = "default";
86                 pinctrl-0 = <&pwrbtn>;
87
88                 power {
89                         debounce-interval = <100>;
90                         gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
91                         label = "GPIO Key Power";
92                         linux,code = <KEY_POWER>;
93                         wakeup-source;
94                 };
95         };
96
97         leds {
98                 compatible = "gpio-leds";
99                 pinctrl-names = "default";
100                 pinctrl-0 = <&work_led_pin>, <&diy_led_pin>;
101
102                 work_led: led-0 {
103                         label = "work";
104                         default-state = "on";
105                         gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
106                 };
107
108                 diy_led: led-1 {
109                         label = "diy";
110                         default-state = "off";
111                         gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
112                 };
113         };
114
115         rt5640-sound {
116                 compatible = "simple-audio-card";
117                 simple-audio-card,name = "rockchip,rt5640-codec";
118                 simple-audio-card,format = "i2s";
119                 simple-audio-card,mclk-fs = <256>;
120                 simple-audio-card,widgets =
121                         "Microphone", "Mic Jack",
122                         "Headphone", "Headphone Jack";
123                 simple-audio-card,routing =
124                         "Mic Jack", "MICBIAS1",
125                         "IN1P", "Mic Jack",
126                         "Headphone Jack", "HPOL",
127                         "Headphone Jack", "HPOR";
128
129                 simple-audio-card,cpu {
130                         sound-dai = <&i2s1>;
131                 };
132
133                 simple-audio-card,codec {
134                         sound-dai = <&rt5640>;
135                 };
136         };
137
138         sdio_pwrseq: sdio-pwrseq {
139                 compatible = "mmc-pwrseq-simple";
140                 clocks = <&rk808 1>;
141                 clock-names = "ext_clock";
142                 pinctrl-names = "default";
143                 pinctrl-0 = <&wifi_enable_h>;
144
145                 /*
146                  * On the module itself this is one of these (depending
147                  * on the actual card populated):
148                  * - SDIO_RESET_L_WL_REG_ON
149                  * - PDN (power down when low)
150                  */
151                 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
152         };
153
154         /* switched by pmic_sleep */
155         vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
156                 compatible = "regulator-fixed";
157                 regulator-name = "vcc1v8_s3";
158                 regulator-always-on;
159                 regulator-boot-on;
160                 regulator-min-microvolt = <1800000>;
161                 regulator-max-microvolt = <1800000>;
162                 vin-supply = <&vcc_1v8>;
163         };
164
165         vcc3v3_pcie: vcc3v3-pcie-regulator {
166                 compatible = "regulator-fixed";
167                 enable-active-high;
168                 gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
169                 pinctrl-names = "default";
170                 pinctrl-0 = <&pcie_pwr_en>;
171                 regulator-name = "vcc3v3_pcie";
172                 regulator-always-on;
173                 regulator-boot-on;
174                 vin-supply = <&dc_12v>;
175         };
176
177         vcc3v3_sys: vcc3v3-sys {
178                 compatible = "regulator-fixed";
179                 regulator-name = "vcc3v3_sys";
180                 regulator-always-on;
181                 regulator-boot-on;
182                 regulator-min-microvolt = <3300000>;
183                 regulator-max-microvolt = <3300000>;
184                 vin-supply = <&vcc_sys>;
185         };
186
187         /* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
188         vcc5v0_host: vcc5v0-host-regulator {
189                 compatible = "regulator-fixed";
190                 enable-active-high;
191                 gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
192                 pinctrl-names = "default";
193                 pinctrl-0 = <&vcc5v0_host_en>;
194                 regulator-name = "vcc5v0_host";
195                 regulator-always-on;
196                 vin-supply = <&vcc_sys>;
197         };
198
199         vcc_sys: vcc-sys {
200                 compatible = "regulator-fixed";
201                 regulator-name = "vcc_sys";
202                 regulator-always-on;
203                 regulator-boot-on;
204                 regulator-min-microvolt = <5000000>;
205                 regulator-max-microvolt = <5000000>;
206                 vin-supply = <&dc_12v>;
207         };
208
209         vdd_log: vdd-log {
210                 compatible = "pwm-regulator";
211                 pwms = <&pwm2 0 25000 1>;
212                 regulator-name = "vdd_log";
213                 regulator-always-on;
214                 regulator-boot-on;
215                 regulator-min-microvolt = <430000>;
216                 regulator-max-microvolt = <1400000>;
217                 vin-supply = <&vcc_sys>;
218         };
219 };
220
221 &cpu_l0 {
222         cpu-supply = <&vdd_cpu_l>;
223 };
224
225 &cpu_l1 {
226         cpu-supply = <&vdd_cpu_l>;
227 };
228
229 &cpu_l2 {
230         cpu-supply = <&vdd_cpu_l>;
231 };
232
233 &cpu_l3 {
234         cpu-supply = <&vdd_cpu_l>;
235 };
236
237 &cpu_b0 {
238         cpu-supply = <&vdd_cpu_b>;
239 };
240
241 &cpu_b1 {
242         cpu-supply = <&vdd_cpu_b>;
243 };
244
245 &emmc_phy {
246         status = "okay";
247 };
248
249 &gmac {
250         assigned-clocks = <&cru SCLK_RMII_SRC>;
251         assigned-clock-parents = <&clkin_gmac>;
252         clock_in_out = "input";
253         phy-supply = <&vcc_lan>;
254         phy-mode = "rgmii";
255         pinctrl-names = "default";
256         pinctrl-0 = <&rgmii_pins>;
257         snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
258         snps,reset-active-low;
259         snps,reset-delays-us = <0 10000 50000>;
260         tx_delay = <0x28>;
261         rx_delay = <0x11>;
262         status = "okay";
263 };
264
265 &hdmi {
266         ddc-i2c-bus = <&i2c3>;
267         pinctrl-names = "default";
268         pinctrl-0 = <&hdmi_cec>;
269         status = "okay";
270 };
271
272 &i2c0 {
273         clock-frequency = <400000>;
274         i2c-scl-rising-time-ns = <168>;
275         i2c-scl-falling-time-ns = <4>;
276         status = "okay";
277
278         rk808: pmic@1b {
279                 compatible = "rockchip,rk808";
280                 reg = <0x1b>;
281                 interrupt-parent = <&gpio1>;
282                 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
283                 #clock-cells = <1>;
284                 clock-output-names = "xin32k", "rk808-clkout2";
285                 pinctrl-names = "default";
286                 pinctrl-0 = <&pmic_int_l>;
287                 rockchip,system-power-controller;
288                 wakeup-source;
289
290                 vcc1-supply = <&vcc_sys>;
291                 vcc2-supply = <&vcc_sys>;
292                 vcc3-supply = <&vcc_sys>;
293                 vcc4-supply = <&vcc_sys>;
294                 vcc6-supply = <&vcc_sys>;
295                 vcc7-supply = <&vcc_sys>;
296                 vcc8-supply = <&vcc3v3_sys>;
297                 vcc9-supply = <&vcc_sys>;
298                 vcc10-supply = <&vcc_sys>;
299                 vcc11-supply = <&vcc_sys>;
300                 vcc12-supply = <&vcc3v3_sys>;
301                 vddio-supply = <&vcc1v8_pmu>;
302
303                 regulators {
304                         vdd_center: DCDC_REG1 {
305                                 regulator-name = "vdd_center";
306                                 regulator-always-on;
307                                 regulator-boot-on;
308                                 regulator-min-microvolt = <750000>;
309                                 regulator-max-microvolt = <1350000>;
310                                 regulator-ramp-delay = <6001>;
311                                 regulator-state-mem {
312                                         regulator-off-in-suspend;
313                                 };
314                         };
315
316                         vdd_cpu_l: DCDC_REG2 {
317                                 regulator-name = "vdd_cpu_l";
318                                 regulator-always-on;
319                                 regulator-boot-on;
320                                 regulator-min-microvolt = <750000>;
321                                 regulator-max-microvolt = <1350000>;
322                                 regulator-ramp-delay = <6001>;
323                                 regulator-state-mem {
324                                         regulator-off-in-suspend;
325                                 };
326                         };
327
328                         vcc_ddr: DCDC_REG3 {
329                                 regulator-name = "vcc_ddr";
330                                 regulator-always-on;
331                                 regulator-boot-on;
332                                 regulator-state-mem {
333                                         regulator-on-in-suspend;
334                                 };
335                         };
336
337                         vcc_1v8: DCDC_REG4 {
338                                 regulator-name = "vcc_1v8";
339                                 regulator-always-on;
340                                 regulator-boot-on;
341                                 regulator-min-microvolt = <1800000>;
342                                 regulator-max-microvolt = <1800000>;
343                                 regulator-state-mem {
344                                         regulator-on-in-suspend;
345                                         regulator-suspend-microvolt = <1800000>;
346                                 };
347                         };
348
349                         vcc1v8_dvp: LDO_REG1 {
350                                 regulator-name = "vcc1v8_dvp";
351                                 regulator-always-on;
352                                 regulator-boot-on;
353                                 regulator-min-microvolt = <1800000>;
354                                 regulator-max-microvolt = <1800000>;
355                                 regulator-state-mem {
356                                         regulator-off-in-suspend;
357                                 };
358                         };
359
360                         vcc2v8_dvp: LDO_REG2 {
361                                 regulator-name = "vcc2v8_dvp";
362                                 regulator-always-on;
363                                 regulator-boot-on;
364                                 regulator-min-microvolt = <2800000>;
365                                 regulator-max-microvolt = <2800000>;
366                                 regulator-state-mem {
367                                         regulator-off-in-suspend;
368                                 };
369                         };
370
371                         vcc1v8_pmu: LDO_REG3 {
372                                 regulator-name = "vcc1v8_pmu";
373                                 regulator-always-on;
374                                 regulator-boot-on;
375                                 regulator-min-microvolt = <1800000>;
376                                 regulator-max-microvolt = <1800000>;
377                                 regulator-state-mem {
378                                         regulator-on-in-suspend;
379                                         regulator-suspend-microvolt = <1800000>;
380                                 };
381                         };
382
383                         vcc_sdio: LDO_REG4 {
384                                 regulator-name = "vcc_sdio";
385                                 regulator-always-on;
386                                 regulator-boot-on;
387                                 regulator-min-microvolt = <1800000>;
388                                 regulator-max-microvolt = <3000000>;
389                                 regulator-state-mem {
390                                         regulator-on-in-suspend;
391                                         regulator-suspend-microvolt = <3000000>;
392                                 };
393                         };
394
395                         vcca3v0_codec: LDO_REG5 {
396                                 regulator-name = "vcca3v0_codec";
397                                 regulator-always-on;
398                                 regulator-boot-on;
399                                 regulator-min-microvolt = <3000000>;
400                                 regulator-max-microvolt = <3000000>;
401                                 regulator-state-mem {
402                                         regulator-off-in-suspend;
403                                 };
404                         };
405
406                         vcc_1v5: LDO_REG6 {
407                                 regulator-name = "vcc_1v5";
408                                 regulator-always-on;
409                                 regulator-boot-on;
410                                 regulator-min-microvolt = <1500000>;
411                                 regulator-max-microvolt = <1500000>;
412                                 regulator-state-mem {
413                                         regulator-on-in-suspend;
414                                         regulator-suspend-microvolt = <1500000>;
415                                 };
416                         };
417
418                         vcca1v8_codec: LDO_REG7 {
419                                 regulator-name = "vcca1v8_codec";
420                                 regulator-always-on;
421                                 regulator-boot-on;
422                                 regulator-min-microvolt = <1800000>;
423                                 regulator-max-microvolt = <1800000>;
424                                 regulator-state-mem {
425                                         regulator-off-in-suspend;
426                                 };
427                         };
428
429                         vcc_3v0: LDO_REG8 {
430                                 regulator-name = "vcc_3v0";
431                                 regulator-always-on;
432                                 regulator-boot-on;
433                                 regulator-min-microvolt = <3000000>;
434                                 regulator-max-microvolt = <3000000>;
435                                 regulator-state-mem {
436                                         regulator-on-in-suspend;
437                                         regulator-suspend-microvolt = <3000000>;
438                                 };
439                         };
440
441                         vcc3v3_s3: vcc_lan: SWITCH_REG1 {
442                                 regulator-name = "vcc3v3_s3";
443                                 regulator-always-on;
444                                 regulator-boot-on;
445                                 regulator-state-mem {
446                                         regulator-off-in-suspend;
447                                 };
448                         };
449
450                         vcc3v3_s0: SWITCH_REG2 {
451                                 regulator-name = "vcc3v3_s0";
452                                 regulator-always-on;
453                                 regulator-boot-on;
454                                 regulator-state-mem {
455                                         regulator-off-in-suspend;
456                                 };
457                         };
458                 };
459         };
460
461         vdd_cpu_b: regulator@40 {
462                 compatible = "silergy,syr827";
463                 reg = <0x40>;
464                 fcs,suspend-voltage-selector = <0>;
465                 regulator-name = "vdd_cpu_b";
466                 regulator-min-microvolt = <712500>;
467                 regulator-max-microvolt = <1500000>;
468                 regulator-ramp-delay = <1000>;
469                 regulator-always-on;
470                 regulator-boot-on;
471                 vin-supply = <&vcc_sys>;
472
473                 regulator-state-mem {
474                         regulator-off-in-suspend;
475                 };
476         };
477
478         vdd_gpu: regulator@41 {
479                 compatible = "silergy,syr828";
480                 reg = <0x41>;
481                 fcs,suspend-voltage-selector = <1>;
482                 regulator-name = "vdd_gpu";
483                 regulator-min-microvolt = <712500>;
484                 regulator-max-microvolt = <1500000>;
485                 regulator-ramp-delay = <1000>;
486                 regulator-always-on;
487                 regulator-boot-on;
488                 vin-supply = <&vcc_sys>;
489
490                 regulator-state-mem {
491                         regulator-off-in-suspend;
492                 };
493         };
494 };
495
496 &i2c1 {
497         i2c-scl-rising-time-ns = <300>;
498         i2c-scl-falling-time-ns = <15>;
499         status = "okay";
500
501         rt5640: rt5640@1c {
502                 compatible = "realtek,rt5640";
503                 reg = <0x1c>;
504                 clocks = <&cru SCLK_I2S_8CH_OUT>;
505                 clock-names = "mclk";
506                 realtek,in1-differential;
507                 #sound-dai-cells = <0>;
508                 pinctrl-names = "default";
509                 pinctrl-0 = <&rt5640_hpcon>;
510         };
511 };
512
513 &i2c3 {
514         i2c-scl-rising-time-ns = <450>;
515         i2c-scl-falling-time-ns = <15>;
516         status = "okay";
517 };
518
519 &i2c4 {
520         i2c-scl-rising-time-ns = <600>;
521         i2c-scl-falling-time-ns = <20>;
522         status = "okay";
523
524         accelerometer@68 {
525                 compatible = "invensense,mpu6500";
526                 reg = <0x68>;
527                 interrupt-parent = <&gpio1>;
528                 interrupts = <RK_PC6 IRQ_TYPE_EDGE_RISING>;
529         };
530 };
531
532 &i2s0 {
533         rockchip,playback-channels = <8>;
534         rockchip,capture-channels = <8>;
535         status = "okay";
536 };
537
538 &i2s1 {
539         rockchip,playback-channels = <2>;
540         rockchip,capture-channels = <2>;
541         status = "okay";
542 };
543
544 &i2s2 {
545         status = "okay";
546 };
547
548 &io_domains {
549         status = "okay";
550
551         bt656-supply = <&vcc1v8_dvp>;
552         audio-supply = <&vcca1v8_codec>;
553         sdmmc-supply = <&vcc_sdio>;
554         gpio1830-supply = <&vcc_3v0>;
555 };
556
557 &pcie_phy {
558         status = "okay";
559 };
560
561 &pcie0 {
562         ep-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
563         num-lanes = <4>;
564         pinctrl-names = "default";
565         pinctrl-0 = <&pcie_clkreqn_cpm>;
566         status = "okay";
567 };
568
569 &pmu_io_domains {
570         pmu1830-supply = <&vcc_3v0>;
571         status = "okay";
572 };
573
574 &pinctrl {
575         buttons {
576                 pwrbtn: pwrbtn {
577                         rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
578                 };
579         };
580
581         lcd-panel {
582                 lcd_panel_reset: lcd-panel-reset {
583                         rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
584                 };
585         };
586
587         pcie {
588                 pcie_pwr_en: pcie-pwr-en {
589                         rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
590                 };
591
592                 pcie_3g_drv: pcie-3g-drv {
593                         rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
594                 };
595         };
596
597         pmic {
598                 vsel1_pin: vsel1-pin {
599                         rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
600                 };
601
602                 vsel2_pin: vsel2-pin {
603                         rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
604                 };
605         };
606
607         sdio-pwrseq {
608                 wifi_enable_h: wifi-enable-h {
609                         rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
610                 };
611         };
612
613         rt5640 {
614                 rt5640_hpcon: rt5640-hpcon {
615                         rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
616                 };
617         };
618
619         pmic {
620                 pmic_int_l: pmic-int-l {
621                         rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
622                 };
623         };
624
625         usb2 {
626                 vcc5v0_host_en: vcc5v0-host-en {
627                         rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
628                 };
629         };
630
631         wifi {
632                 wifi_host_wake_l: wifi-host-wake-l {
633                         rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
634                 };
635         };
636
637         leds {
638                 work_led_pin: work-led-pin {
639                         rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
640                 };
641
642                 diy_led_pin: diy-led-pin {
643                         rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
644                 };
645         };
646 };
647
648 &pwm0 {
649         status = "okay";
650 };
651
652 &pwm2 {
653         status = "okay";
654 };
655
656 &saradc {
657         vref-supply = <&vcca1v8_s3>;
658         status = "okay";
659 };
660
661 &sdio0 {
662         /* WiFi & BT combo module Ampak AP6356S */
663         bus-width = <4>;
664         cap-sdio-irq;
665         cap-sd-highspeed;
666         keep-power-in-suspend;
667         mmc-pwrseq = <&sdio_pwrseq>;
668         non-removable;
669         pinctrl-names = "default";
670         pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
671         sd-uhs-sdr104;
672
673         /* Power supply */
674         vqmmc-supply = &vcc1v8_s3;      /* IO line */
675         vmmc-supply = &vcc_sdio;        /* card's power */
676
677         #address-cells = <1>;
678         #size-cells = <0>;
679         status = "okay";
680
681         brcmf: wifi@1 {
682                 reg = <1>;
683                 compatible = "brcm,bcm4329-fmac";
684                 interrupt-parent = <&gpio0>;
685                 interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
686                 interrupt-names = "host-wake";
687                 brcm,drive-strength = <5>;
688                 pinctrl-names = "default";
689                 pinctrl-0 = <&wifi_host_wake_l>;
690         };
691 };
692
693 &sdmmc {
694         bus-width = <4>;
695         cap-mmc-highspeed;
696         cap-sd-highspeed;
697         cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
698         disable-wp;
699         max-frequency = <150000000>;
700         pinctrl-names = "default";
701         pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
702         status = "okay";
703 };
704
705 &sdhci {
706         bus-width = <8>;
707         mmc-hs400-1_8v;
708         mmc-hs400-enhanced-strobe;
709         non-removable;
710         status = "okay";
711 };
712
713 &tcphy0 {
714         status = "okay";
715 };
716
717 &tcphy1 {
718         status = "okay";
719 };
720
721 &tsadc {
722         /* tshut mode 0:CRU 1:GPIO */
723         rockchip,hw-tshut-mode = <1>;
724         /* tshut polarity 0:LOW 1:HIGH */
725         rockchip,hw-tshut-polarity = <1>;
726         status = "okay";
727 };
728
729 &u2phy0 {
730         status = "okay";
731
732         u2phy0_otg: otg-port {
733                 status = "okay";
734         };
735
736         u2phy0_host: host-port {
737                 phy-supply = <&vcc5v0_host>;
738                 status = "okay";
739         };
740 };
741
742 &u2phy1 {
743         status = "okay";
744
745         u2phy1_otg: otg-port {
746                 status = "okay";
747         };
748
749         u2phy1_host: host-port {
750                 phy-supply = <&vcc5v0_host>;
751                 status = "okay";
752         };
753 };
754
755 &uart0 {
756         pinctrl-names = "default";
757         pinctrl-0 = <&uart0_xfer &uart0_cts>;
758         status = "okay";
759 };
760
761 &uart2 {
762         status = "okay";
763 };
764
765 &usb_host0_ehci {
766         status = "okay";
767 };
768
769 &usb_host0_ohci {
770         status = "okay";
771 };
772
773 &usb_host1_ehci {
774         status = "okay";
775 };
776
777 &usb_host1_ohci {
778         status = "okay";
779 };
780
781 &usbdrd3_0 {
782         status = "okay";
783 };
784
785 &usbdrd_dwc3_0 {
786         status = "okay";
787         dr_mode = "otg";
788 };
789
790 &usbdrd3_1 {
791         status = "okay";
792 };
793
794 &usbdrd_dwc3_1 {
795         status = "okay";
796         dr_mode = "host";
797 };
798
799 &vopb {
800         status = "okay";
801 };
802
803 &vopb_mmu {
804         status = "okay";
805 };
806
807 &vopl {
808         status = "okay";
809 };
810
811 &vopl_mmu {
812         status = "okay";
813 };