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