GNU Linux-libre 6.1.90-gnu
[releases.git] / arch / arm64 / boot / dts / rockchip / rk3568-bpi-r2-pro.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Author: Frank Wunderlich <frank-w@public-files.de>
4  *
5  */
6
7 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/soc/rockchip,vop2.h>
12 #include "rk3568.dtsi"
13
14 / {
15         model = "Bananapi-R2 Pro (RK3568) DDR4 Board";
16         compatible = "rockchip,rk3568-bpi-r2pro", "rockchip,rk3568";
17
18         aliases {
19                 ethernet0 = &gmac0;
20                 ethernet1 = &gmac1;
21                 mmc0 = &sdmmc0;
22                 mmc1 = &sdhci;
23         };
24
25         chosen: chosen {
26                 stdout-path = "serial2:1500000n8";
27         };
28
29         leds {
30                 compatible = "gpio-leds";
31                 pinctrl-names = "default";
32                 pinctrl-0 = <&blue_led_pin &green_led_pin>;
33
34                 blue_led: led-0 {
35                         color = <LED_COLOR_ID_BLUE>;
36                         default-state = "off";
37                         function = LED_FUNCTION_STATUS;
38                         gpios = <&gpio0 RK_PD6 GPIO_ACTIVE_HIGH>;
39                 };
40
41                 green_led: led-1 {
42                         color = <LED_COLOR_ID_GREEN>;
43                         default-state = "on";
44                         function = LED_FUNCTION_POWER;
45                         gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
46                 };
47         };
48
49         dc_12v: dc-12v-regulator {
50                 compatible = "regulator-fixed";
51                 regulator-name = "dc_12v";
52                 regulator-always-on;
53                 regulator-boot-on;
54                 regulator-min-microvolt = <12000000>;
55                 regulator-max-microvolt = <12000000>;
56         };
57
58         hdmi-con {
59                 compatible = "hdmi-connector";
60                 type = "a";
61
62                 port {
63                         hdmi_con_in: endpoint {
64                                 remote-endpoint = <&hdmi_out_con>;
65                         };
66                 };
67         };
68
69         vcc3v3_sys: vcc3v3-sys-regulator {
70                 compatible = "regulator-fixed";
71                 regulator-name = "vcc3v3_sys";
72                 regulator-always-on;
73                 regulator-boot-on;
74                 regulator-min-microvolt = <3300000>;
75                 regulator-max-microvolt = <3300000>;
76                 vin-supply = <&dc_12v>;
77         };
78
79         vcc5v0_sys: vcc5v0-sys-regulator {
80                 compatible = "regulator-fixed";
81                 regulator-name = "vcc5v0_sys";
82                 regulator-always-on;
83                 regulator-boot-on;
84                 regulator-min-microvolt = <5000000>;
85                 regulator-max-microvolt = <5000000>;
86                 vin-supply = <&dc_12v>;
87         };
88
89         pcie30_avdd0v9: pcie30-avdd0v9-regulator {
90                 compatible = "regulator-fixed";
91                 regulator-name = "pcie30_avdd0v9";
92                 regulator-always-on;
93                 regulator-boot-on;
94                 regulator-min-microvolt = <900000>;
95                 regulator-max-microvolt = <900000>;
96                 vin-supply = <&vcc3v3_sys>;
97         };
98
99         pcie30_avdd1v8: pcie30-avdd1v8-regulator {
100                 compatible = "regulator-fixed";
101                 regulator-name = "pcie30_avdd1v8";
102                 regulator-always-on;
103                 regulator-boot-on;
104                 regulator-min-microvolt = <1800000>;
105                 regulator-max-microvolt = <1800000>;
106                 vin-supply = <&vcc3v3_sys>;
107         };
108
109         /* pi6c pcie clock generator feeds both ports */
110         vcc3v3_pi6c_05: vcc3v3-pi6c-05-regulator {
111                 compatible = "regulator-fixed";
112                 regulator-name = "vcc3v3_pcie";
113                 regulator-min-microvolt = <3300000>;
114                 regulator-max-microvolt = <3300000>;
115                 enable-active-high;
116                 gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
117                 startup-delay-us = <200000>;
118                 vin-supply = <&vcc5v0_sys>;
119         };
120
121         /* actually fed by vcc3v3_sys, dependent on pi6c clock generator */
122         vcc3v3_minipcie: vcc3v3-minipcie-regulator {
123                 compatible = "regulator-fixed";
124                 regulator-name = "vcc3v3_minipcie";
125                 regulator-min-microvolt = <3300000>;
126                 regulator-max-microvolt = <3300000>;
127                 enable-active-high;
128                 gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
129                 pinctrl-names = "default";
130                 pinctrl-0 = <&minipcie_enable_h>;
131                 startup-delay-us = <50000>;
132                 vin-supply = <&vcc3v3_pi6c_05>;
133         };
134
135         /* actually fed by vcc3v3_sys, dependent on pi6c clock generator */
136         vcc3v3_ngff: vcc3v3-ngff-regulator {
137                 compatible = "regulator-fixed";
138                 regulator-name = "vcc3v3_ngff";
139                 regulator-min-microvolt = <3300000>;
140                 regulator-max-microvolt = <3300000>;
141                 enable-active-high;
142                 gpio = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
143                 pinctrl-names = "default";
144                 pinctrl-0 = <&ngffpcie_enable_h>;
145                 startup-delay-us = <50000>;
146                 vin-supply = <&vcc3v3_pi6c_05>;
147         };
148
149         vcc5v0_usb: vcc5v0-usb-regulator {
150                 compatible = "regulator-fixed";
151                 regulator-name = "vcc5v0_usb";
152                 regulator-always-on;
153                 regulator-boot-on;
154                 regulator-min-microvolt = <5000000>;
155                 regulator-max-microvolt = <5000000>;
156                 vin-supply = <&dc_12v>;
157         };
158
159         vcc5v0_usb_host: vcc5v0-usb-host-regulator {
160                 compatible = "regulator-fixed";
161                 enable-active-high;
162                 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
163                 pinctrl-names = "default";
164                 pinctrl-0 = <&vcc5v0_usb_host_en>;
165                 regulator-name = "vcc5v0_usb_host";
166                 regulator-min-microvolt = <5000000>;
167                 regulator-max-microvolt = <5000000>;
168                 vin-supply = <&vcc5v0_usb>;
169         };
170
171         vcc5v0_usb_otg: vcc5v0-usb-otg-regulator {
172                 compatible = "regulator-fixed";
173                 enable-active-high;
174                 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
175                 pinctrl-names = "default";
176                 pinctrl-0 = <&vcc5v0_usb_otg_en>;
177                 regulator-name = "vcc5v0_usb_otg";
178                 regulator-min-microvolt = <5000000>;
179                 regulator-max-microvolt = <5000000>;
180                 vin-supply = <&vcc5v0_usb>;
181         };
182 };
183
184 &combphy0 {
185         /* used for USB3 */
186         status = "okay";
187 };
188
189 &combphy1 {
190         /* used for USB3 */
191         status = "okay";
192 };
193
194 &combphy2 {
195         /* used for SATA */
196         status = "okay";
197 };
198
199 &gmac0 {
200         assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>;
201         assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>, <&cru CLK_MAC0_2TOP>;
202         clock_in_out = "input";
203         phy-mode = "rgmii";
204         pinctrl-names = "default";
205         pinctrl-0 = <&gmac0_miim
206                      &gmac0_tx_bus2
207                      &gmac0_rx_bus2
208                      &gmac0_rgmii_clk
209                      &gmac0_rgmii_bus>;
210         snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
211         snps,reset-active-low;
212         /* Reset time is 20ms, 100ms for rtl8211f */
213         snps,reset-delays-us = <0 20000 100000>;
214         tx_delay = <0x4f>;
215         rx_delay = <0x0f>;
216         status = "okay";
217
218         fixed-link {
219                 speed = <1000>;
220                 full-duplex;
221                 pause;
222         };
223 };
224
225 &gmac1 {
226         assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
227         assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>;
228         clock_in_out = "output";
229         phy-handle = <&rgmii_phy1>;
230         phy-mode = "rgmii";
231         pinctrl-names = "default";
232         pinctrl-0 = <&gmac1m1_miim
233                      &gmac1m1_tx_bus2
234                      &gmac1m1_rx_bus2
235                      &gmac1m1_rgmii_clk
236                      &gmac1m1_rgmii_bus>;
237
238         snps,reset-gpio = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
239         snps,reset-active-low;
240         /* Reset time is 20ms, 100ms for rtl8211f */
241         snps,reset-delays-us = <0 20000 100000>;
242
243         tx_delay = <0x3c>;
244         rx_delay = <0x2f>;
245
246         status = "okay";
247 };
248
249 &gpu {
250         mali-supply = <&vdd_gpu>;
251         status = "okay";
252 };
253
254 &hdmi {
255         avdd-0v9-supply = <&vdda0v9_image>;
256         avdd-1v8-supply = <&vcca1v8_image>;
257         status = "okay";
258 };
259
260 &hdmi_in {
261         hdmi_in_vp0: endpoint {
262                 remote-endpoint = <&vp0_out_hdmi>;
263         };
264 };
265
266 &hdmi_out {
267         hdmi_out_con: endpoint {
268                 remote-endpoint = <&hdmi_con_in>;
269         };
270 };
271
272 &hdmi_sound {
273         status = "okay";
274 };
275
276 &i2c0 {
277         status = "okay";
278
279         rk809: pmic@20 {
280                 compatible = "rockchip,rk809";
281                 reg = <0x20>;
282                 interrupt-parent = <&gpio0>;
283                 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
284                 #clock-cells = <1>;
285                 pinctrl-names = "default";
286                 pinctrl-0 = <&pmic_int>;
287                 rockchip,system-power-controller;
288                 vcc1-supply = <&vcc3v3_sys>;
289                 vcc2-supply = <&vcc3v3_sys>;
290                 vcc3-supply = <&vcc3v3_sys>;
291                 vcc4-supply = <&vcc3v3_sys>;
292                 vcc5-supply = <&vcc3v3_sys>;
293                 vcc6-supply = <&vcc3v3_sys>;
294                 vcc7-supply = <&vcc3v3_sys>;
295                 vcc8-supply = <&vcc3v3_sys>;
296                 vcc9-supply = <&vcc3v3_sys>;
297                 wakeup-source;
298
299                 regulators {
300                         vdd_logic: DCDC_REG1 {
301                                 regulator-name = "vdd_logic";
302                                 regulator-always-on;
303                                 regulator-boot-on;
304                                 regulator-init-microvolt = <900000>;
305                                 regulator-initial-mode = <0x2>;
306                                 regulator-min-microvolt = <500000>;
307                                 regulator-max-microvolt = <1350000>;
308                                 regulator-ramp-delay = <6001>;
309
310                                 regulator-state-mem {
311                                         regulator-off-in-suspend;
312                                 };
313                         };
314
315                         vdd_gpu: DCDC_REG2 {
316                                 regulator-name = "vdd_gpu";
317                                 regulator-always-on;
318                                 regulator-init-microvolt = <900000>;
319                                 regulator-initial-mode = <0x2>;
320                                 regulator-min-microvolt = <500000>;
321                                 regulator-max-microvolt = <1350000>;
322                                 regulator-ramp-delay = <6001>;
323
324                                 regulator-state-mem {
325                                         regulator-off-in-suspend;
326                                 };
327                         };
328
329                         vcc_ddr: DCDC_REG3 {
330                                 regulator-name = "vcc_ddr";
331                                 regulator-always-on;
332                                 regulator-boot-on;
333                                 regulator-initial-mode = <0x2>;
334
335                                 regulator-state-mem {
336                                         regulator-on-in-suspend;
337                                 };
338                         };
339
340                         vdd_npu: DCDC_REG4 {
341                                 regulator-name = "vdd_npu";
342                                 regulator-init-microvolt = <900000>;
343                                 regulator-initial-mode = <0x2>;
344                                 regulator-min-microvolt = <500000>;
345                                 regulator-max-microvolt = <1350000>;
346                                 regulator-ramp-delay = <6001>;
347
348                                 regulator-state-mem {
349                                         regulator-off-in-suspend;
350                                 };
351                         };
352
353                         vcc_1v8: DCDC_REG5 {
354                                 regulator-name = "vcc_1v8";
355                                 regulator-always-on;
356                                 regulator-boot-on;
357                                 regulator-min-microvolt = <1800000>;
358                                 regulator-max-microvolt = <1800000>;
359
360                                 regulator-state-mem {
361                                         regulator-off-in-suspend;
362                                 };
363                         };
364
365                         vdda0v9_image: LDO_REG1 {
366                                 regulator-name = "vdda0v9_image";
367                                 regulator-always-on;
368                                 regulator-min-microvolt = <900000>;
369                                 regulator-max-microvolt = <900000>;
370
371                                 regulator-state-mem {
372                                         regulator-off-in-suspend;
373                                 };
374                         };
375
376                         vdda_0v9: LDO_REG2 {
377                                 regulator-name = "vdda_0v9";
378                                 regulator-always-on;
379                                 regulator-boot-on;
380                                 regulator-min-microvolt = <900000>;
381                                 regulator-max-microvolt = <900000>;
382
383                                 regulator-state-mem {
384                                         regulator-off-in-suspend;
385                                 };
386                         };
387
388                         vdda0v9_pmu: LDO_REG3 {
389                                 regulator-name = "vdda0v9_pmu";
390                                 regulator-always-on;
391                                 regulator-boot-on;
392                                 regulator-min-microvolt = <900000>;
393                                 regulator-max-microvolt = <900000>;
394
395                                 regulator-state-mem {
396                                         regulator-on-in-suspend;
397                                         regulator-suspend-microvolt = <900000>;
398                                 };
399                         };
400
401                         vccio_acodec: LDO_REG4 {
402                                 regulator-name = "vccio_acodec";
403                                 regulator-always-on;
404                                 regulator-boot-on;
405                                 regulator-min-microvolt = <3300000>;
406                                 regulator-max-microvolt = <3300000>;
407
408                                 regulator-state-mem {
409                                         regulator-off-in-suspend;
410                                 };
411                         };
412
413                         vccio_sd: LDO_REG5 {
414                                 regulator-name = "vccio_sd";
415                                 regulator-always-on;
416                                 regulator-boot-on;
417                                 regulator-min-microvolt = <1800000>;
418                                 regulator-max-microvolt = <3300000>;
419
420                                 regulator-state-mem {
421                                         regulator-off-in-suspend;
422                                 };
423                         };
424
425                         vcc3v3_pmu: LDO_REG6 {
426                                 regulator-name = "vcc3v3_pmu";
427                                 regulator-always-on;
428                                 regulator-boot-on;
429                                 regulator-min-microvolt = <3300000>;
430                                 regulator-max-microvolt = <3300000>;
431
432                                 regulator-state-mem {
433                                         regulator-on-in-suspend;
434                                         regulator-suspend-microvolt = <3300000>;
435                                 };
436                         };
437
438                         vcca_1v8: LDO_REG7 {
439                                 regulator-name = "vcca_1v8";
440                                 regulator-always-on;
441                                 regulator-boot-on;
442                                 regulator-min-microvolt = <1800000>;
443                                 regulator-max-microvolt = <1800000>;
444
445                                 regulator-state-mem {
446                                         regulator-off-in-suspend;
447                                 };
448                         };
449
450                         vcca1v8_pmu: LDO_REG8 {
451                                 regulator-name = "vcca1v8_pmu";
452                                 regulator-always-on;
453                                 regulator-boot-on;
454                                 regulator-min-microvolt = <1800000>;
455                                 regulator-max-microvolt = <1800000>;
456
457                                 regulator-state-mem {
458                                         regulator-on-in-suspend;
459                                         regulator-suspend-microvolt = <1800000>;
460                                 };
461                         };
462
463                         vcca1v8_image: LDO_REG9 {
464                                 regulator-name = "vcca1v8_image";
465                                 regulator-always-on;
466                                 regulator-min-microvolt = <1800000>;
467                                 regulator-max-microvolt = <1800000>;
468
469                                 regulator-state-mem {
470                                         regulator-off-in-suspend;
471                                 };
472                         };
473
474                         vcc_3v3: SWITCH_REG1 {
475                                 regulator-name = "vcc_3v3";
476                                 regulator-always-on;
477                                 regulator-boot-on;
478
479                                 regulator-state-mem {
480                                         regulator-off-in-suspend;
481                                 };
482                         };
483
484                         vcc3v3_sd: SWITCH_REG2 {
485                                 regulator-name = "vcc3v3_sd";
486                                 regulator-always-on;
487
488                                 regulator-state-mem {
489                                         regulator-off-in-suspend;
490                                 };
491                         };
492                 };
493         };
494 };
495
496 &i2c3 {
497         status = "okay";
498
499         hym8563: rtc@51 {
500                 compatible = "haoyu,hym8563";
501                 reg = <0x51>;
502                 interrupt-parent = <&gpio0>;
503                 interrupts = <RK_PD3 IRQ_TYPE_EDGE_FALLING>;
504                 #clock-cells = <0>;
505                 clock-output-names = "rtcic_32kout";
506                 pinctrl-names = "default";
507                 pinctrl-0 = <&hym8563_int>;
508                 wakeup-source;
509         };
510 };
511
512 &i2c5 {
513         /* pin 3 (SDA) + 4 (SCL) of header con2 */
514         status = "disabled";
515 };
516
517 &i2s0_8ch {
518         /* hdmi sound */
519         status = "okay";
520 };
521
522 &mdio0 {
523         #address-cells = <1>;
524         #size-cells = <0>;
525
526         switch@1f {
527                 compatible = "mediatek,mt7531";
528                 reg = <0x1f>;
529
530                 ports {
531                         #address-cells = <1>;
532                         #size-cells = <0>;
533
534                         port@1 {
535                                 reg = <1>;
536                                 label = "lan0";
537                         };
538
539                         port@2 {
540                                 reg = <2>;
541                                 label = "lan1";
542                         };
543
544                         port@3 {
545                                 reg = <3>;
546                                 label = "lan2";
547                         };
548
549                         port@4 {
550                                 reg = <4>;
551                                 label = "lan3";
552                         };
553
554                         port@5 {
555                                 reg = <5>;
556                                 label = "cpu";
557                                 ethernet = <&gmac0>;
558                                 phy-mode = "rgmii";
559
560                                 fixed-link {
561                                         speed = <1000>;
562                                         full-duplex;
563                                         pause;
564                                 };
565                         };
566                 };
567         };
568 };
569
570 &mdio1 {
571         rgmii_phy1: ethernet-phy@0 {
572                 compatible = "ethernet-phy-ieee802.3-c22";
573                 reg = <0x0>;
574         };
575 };
576
577 &pcie30phy {
578         data-lanes = <1 2>;
579         phy-supply = <&vcc3v3_pi6c_05>;
580         status = "okay";
581 };
582
583 &pcie3x1 {
584         /* M.2 slot */
585         num-lanes = <1>;
586         pinctrl-names = "default";
587         pinctrl-0 = <&ngffpcie_reset_h>;
588         reset-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
589         vpcie3v3-supply = <&vcc3v3_ngff>;
590         status = "okay";
591 };
592
593 &pcie3x2 {
594         /* mPCIe slot */
595         num-lanes = <1>;
596         pinctrl-names = "default";
597         pinctrl-0 = <&minipcie_reset_h>;
598         reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
599         vpcie3v3-supply = <&vcc3v3_minipcie>;
600         status = "okay";
601 };
602
603 &pinctrl {
604         leds {
605                 blue_led_pin: blue-led-pin {
606                         rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
607                 };
608                 green_led_pin: green-led-pin {
609                         rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
610                 };
611         };
612
613         hym8563 {
614                 hym8563_int: hym8563-int {
615                         rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
616                 };
617         };
618
619         pcie {
620                 minipcie_enable_h: minipcie-enable-h {
621                         rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none_drv_level_5>;
622                 };
623
624                 ngffpcie_enable_h: ngffpcie-enable-h {
625                         rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none_drv_level_5>;
626                 };
627
628                 minipcie_reset_h: minipcie-reset-h {
629                         rockchip,pins = <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none_drv_level_5>;
630                 };
631
632                 ngffpcie_reset_h: ngffpcie-reset-h {
633                         rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none_drv_level_5>;
634                 };
635         };
636
637         pmic {
638                 pmic_int: pmic_int {
639                         rockchip,pins =
640                                 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
641                 };
642         };
643
644         usb {
645                 vcc5v0_usb_host_en: vcc5v0_usb_host_en {
646                         rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
647                 };
648
649                 vcc5v0_usb_otg_en: vcc5v0_usb_otg_en {
650                         rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
651                 };
652         };
653 };
654
655 &pmu_io_domains {
656         pmuio1-supply = <&vcc3v3_pmu>;
657         pmuio2-supply = <&vcc3v3_pmu>;
658         vccio1-supply = <&vccio_acodec>;
659         vccio3-supply = <&vccio_sd>;
660         vccio4-supply = <&vcc_3v3>;
661         vccio5-supply = <&vcc_3v3>;
662         vccio6-supply = <&vcc_1v8>;
663         vccio7-supply = <&vcc_3v3>;
664         status = "okay";
665 };
666
667 &pwm8 {
668         /* fan 5v - gnd - pwm */
669         status = "okay";
670 };
671
672 &pwm10 {
673         /* pin 7 of header con2 */
674         status = "disabled";
675 };
676
677 &pwm11 {
678         /* pin 15 of header con2 */
679         status = "disabled";
680 };
681
682 &pwm12 {
683         /* pin 21 of header con2 */
684         /* shared with uart9 + spi3 */
685         pinctrl-0 = <&pwm12m1_pins>;
686         status = "disabled";
687 };
688
689 &pwm13 {
690         /* pin 24 of header con2 */
691         /* shared with uart9 */
692         pinctrl-0 = <&pwm13m1_pins>;
693         status = "disabled";
694 };
695
696 &pwm14 {
697         /* pin 23 of header con2 */
698         /* shared with spi3 */
699         pinctrl-0 = <&pwm14m1_pins>;
700         status = "disabled";
701 };
702
703 &pwm15 {
704         /* pin 19 of header con2 */
705         /* shared with spi3 */
706         pinctrl-0 = <&pwm15m1_pins>;
707         status = "disabled";
708 };
709
710 &saradc {
711         vref-supply = <&vcca_1v8>;
712         status = "okay";
713 };
714
715 &sata2 {
716         status = "okay";
717 };
718
719 &sdhci {
720         bus-width = <8>;
721         max-frequency = <200000000>;
722         non-removable;
723         pinctrl-names = "default";
724         pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
725         status = "okay";
726 };
727
728 &sdmmc0 {
729         bus-width = <4>;
730         cap-sd-highspeed;
731         cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
732         disable-wp;
733         pinctrl-names = "default";
734         pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
735         sd-uhs-sdr104;
736         vmmc-supply = <&vcc3v3_sd>;
737         vqmmc-supply = <&vccio_sd>;
738         status = "okay";
739 };
740
741 &spi3 {
742         /* pin 19 (MO) + 21 (MI) + 23 (CK) of header con2 */
743         /* shared with pwm12/14/15 and uart9 */
744         pinctrl-0 = <&spi3m1_pins>;
745         status = "disabled";
746 };
747
748 &tsadc {
749         rockchip,hw-tshut-mode = <1>;
750         rockchip,hw-tshut-polarity = <0>;
751         status = "okay";
752 };
753
754 &uart0 {
755         /* pin 8 (TX) + 10 (RX) (RTS:16, CTS:18) of header con2 */
756         status = "disabled";
757 };
758
759 &uart2 {
760         /* debug-uart */
761         status = "okay";
762 };
763
764 &uart7 {
765         /* pin 11 (TX) + 13 (RX) of header con2 */
766         pinctrl-0 = <&uart7m1_xfer>;
767         status = "disabled";
768 };
769
770 &uart9 {
771         /* pin 21 (TX) + 24 (RX) of header con2 */
772         /* shared with pwm13 and pwm12/spi3 */
773         pinctrl-0 = <&uart9m1_xfer>;
774         status = "disabled";
775 };
776
777 &usb_host0_ehci {
778         status = "okay";
779 };
780
781 &usb_host0_ohci {
782         status = "okay";
783 };
784
785 &usb_host0_xhci {
786         dr_mode = "host";
787         status = "okay";
788 };
789
790 &usb_host1_ehci {
791         status = "okay";
792 };
793
794 &usb_host1_ohci {
795         status = "okay";
796 };
797
798 &usb_host1_xhci {
799         status = "okay";
800 };
801
802 &usb2phy0 {
803         status = "okay";
804 };
805
806 &usb2phy0_host {
807         phy-supply = <&vcc5v0_usb_host>;
808         status = "okay";
809 };
810
811 &usb2phy0_otg {
812         phy-supply = <&vcc5v0_usb_otg>;
813         status = "okay";
814 };
815
816 &usb2phy1 {
817         /* USB for PCIe/M2 */
818         status = "okay";
819 };
820
821 &usb2phy1_host {
822         status = "okay";
823 };
824
825 &usb2phy1_otg {
826         status = "okay";
827 };
828
829 &vop {
830         assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
831         assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
832         status = "okay";
833 };
834
835 &vop_mmu {
836         status = "okay";
837 };
838
839 &vp0 {
840         vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
841                 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
842                 remote-endpoint = <&hdmi_in_vp0>;
843         };
844 };