Merge tag 'u-boot-rockchip-20200501' of https://gitlab.denx.de/u-boot/custodians...
[platform/kernel/u-boot.git] / arch / arm / dts / salvator-common.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for common parts of Salvator-X board variants
4  *
5  * Copyright (C) 2015-2016 Renesas Electronics Corp.
6  */
7
8 /*
9  * SSI-AK4613
10  *
11  * This command is required when Playback/Capture
12  *
13  *      amixer set "DVC Out" 100%
14  *      amixer set "DVC In" 100%
15  *
16  * You can use Mute
17  *
18  *      amixer set "DVC Out Mute" on
19  *      amixer set "DVC In Mute" on
20  *
21  * You can use Volume Ramp
22  *
23  *      amixer set "DVC Out Ramp Up Rate"   "0.125 dB/64 steps"
24  *      amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
25  *      amixer set "DVC Out Ramp" on
26  *      aplay xxx.wav &
27  *      amixer set "DVC Out"  80%  // Volume Down
28  *      amixer set "DVC Out" 100%  // Volume Up
29  */
30
31 #include <dt-bindings/gpio/gpio.h>
32 #include <dt-bindings/input/input.h>
33
34 / {
35         aliases {
36                 serial0 = &scif2;
37                 serial1 = &hscif1;
38                 ethernet0 = &avb;
39         };
40
41         chosen {
42                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
43                 stdout-path = "serial0:115200n8";
44         };
45
46         audio_clkout: audio-clkout {
47                 /*
48                  * This is same as <&rcar_sound 0>
49                  * but needed to avoid cs2000/rcar_sound probe dead-lock
50                  */
51                 compatible = "fixed-clock";
52                 #clock-cells = <0>;
53                 clock-frequency = <12288000>;
54         };
55
56         backlight: backlight {
57                 compatible = "pwm-backlight";
58                 pwms = <&pwm1 0 50000>;
59
60                 brightness-levels = <256 128 64 16 8 4 0>;
61                 default-brightness-level = <6>;
62
63                 power-supply = <&reg_12v>;
64                 enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
65         };
66
67         cvbs-in {
68                 compatible = "composite-video-connector";
69                 label = "CVBS IN";
70
71                 port {
72                         cvbs_con: endpoint {
73                                 remote-endpoint = <&adv7482_ain7>;
74                         };
75                 };
76         };
77
78         hdmi-in {
79                 compatible = "hdmi-connector";
80                 label = "HDMI IN";
81                 type = "a";
82
83                 port {
84                         hdmi_in_con: endpoint {
85                                 remote-endpoint = <&adv7482_hdmi>;
86                         };
87                 };
88         };
89
90         hdmi0-out {
91                 compatible = "hdmi-connector";
92                 label = "HDMI0 OUT";
93                 type = "a";
94
95                 port {
96                         hdmi0_con: endpoint {
97                         };
98                 };
99         };
100
101         hdmi1-out {
102                 compatible = "hdmi-connector";
103                 label = "HDMI1 OUT";
104                 type = "a";
105
106                 port {
107                         hdmi1_con: endpoint {
108                         };
109                 };
110         };
111
112         keys {
113                 compatible = "gpio-keys";
114
115                 pinctrl-0 = <&keys_pins>;
116                 pinctrl-names = "default";
117
118                 key-1 {
119                         gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
120                         linux,code = <KEY_1>;
121                         label = "SW4-1";
122                         wakeup-source;
123                         debounce-interval = <20>;
124                 };
125                 key-2 {
126                         gpios = <&gpio5 20 GPIO_ACTIVE_LOW>;
127                         linux,code = <KEY_2>;
128                         label = "SW4-2";
129                         wakeup-source;
130                         debounce-interval = <20>;
131                 };
132                 key-3 {
133                         gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
134                         linux,code = <KEY_3>;
135                         label = "SW4-3";
136                         wakeup-source;
137                         debounce-interval = <20>;
138                 };
139                 key-4 {
140                         gpios = <&gpio5 23 GPIO_ACTIVE_LOW>;
141                         linux,code = <KEY_4>;
142                         label = "SW4-4";
143                         wakeup-source;
144                         debounce-interval = <20>;
145                 };
146                 key-a {
147                         gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
148                         linux,code = <KEY_A>;
149                         label = "TSW0";
150                         wakeup-source;
151                         debounce-interval = <20>;
152                 };
153                 key-b {
154                         gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
155                         linux,code = <KEY_B>;
156                         label = "TSW1";
157                         wakeup-source;
158                         debounce-interval = <20>;
159                 };
160                 key-c {
161                         gpios = <&gpio6 13 GPIO_ACTIVE_LOW>;
162                         linux,code = <KEY_C>;
163                         label = "TSW2";
164                         wakeup-source;
165                         debounce-interval = <20>;
166                 };
167         };
168
169         reg_1p8v: regulator0 {
170                 compatible = "regulator-fixed";
171                 regulator-name = "fixed-1.8V";
172                 regulator-min-microvolt = <1800000>;
173                 regulator-max-microvolt = <1800000>;
174                 regulator-boot-on;
175                 regulator-always-on;
176         };
177
178         reg_3p3v: regulator1 {
179                 compatible = "regulator-fixed";
180                 regulator-name = "fixed-3.3V";
181                 regulator-min-microvolt = <3300000>;
182                 regulator-max-microvolt = <3300000>;
183                 regulator-boot-on;
184                 regulator-always-on;
185         };
186
187         reg_12v: regulator2 {
188                 compatible = "regulator-fixed";
189                 regulator-name = "fixed-12V";
190                 regulator-min-microvolt = <12000000>;
191                 regulator-max-microvolt = <12000000>;
192                 regulator-boot-on;
193                 regulator-always-on;
194         };
195
196         sound_card: sound {
197                 compatible = "audio-graph-card";
198
199                 label = "rcar-sound";
200
201                 dais = <&rsnd_port0>;
202         };
203
204         vbus0_usb2: regulator-vbus0-usb2 {
205                 compatible = "regulator-fixed";
206
207                 regulator-name = "USB20_VBUS0";
208                 regulator-min-microvolt = <5000000>;
209                 regulator-max-microvolt = <5000000>;
210
211                 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
212                 enable-active-high;
213         };
214
215         vcc_sdhi0: regulator-vcc-sdhi0 {
216                 compatible = "regulator-fixed";
217
218                 regulator-name = "SDHI0 Vcc";
219                 regulator-min-microvolt = <3300000>;
220                 regulator-max-microvolt = <3300000>;
221
222                 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
223                 enable-active-high;
224         };
225
226         vccq_sdhi0: regulator-vccq-sdhi0 {
227                 compatible = "regulator-gpio";
228
229                 regulator-name = "SDHI0 VccQ";
230                 regulator-min-microvolt = <1800000>;
231                 regulator-max-microvolt = <3300000>;
232
233                 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
234                 gpios-states = <1>;
235                 states = <3300000 1>, <1800000 0>;
236         };
237
238         vcc_sdhi3: regulator-vcc-sdhi3 {
239                 compatible = "regulator-fixed";
240
241                 regulator-name = "SDHI3 Vcc";
242                 regulator-min-microvolt = <3300000>;
243                 regulator-max-microvolt = <3300000>;
244
245                 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
246                 enable-active-high;
247         };
248
249         vccq_sdhi3: regulator-vccq-sdhi3 {
250                 compatible = "regulator-gpio";
251
252                 regulator-name = "SDHI3 VccQ";
253                 regulator-min-microvolt = <1800000>;
254                 regulator-max-microvolt = <3300000>;
255
256                 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
257                 gpios-states = <1>;
258                 states = <3300000 1>, <1800000 0>;
259         };
260
261         vga {
262                 compatible = "vga-connector";
263
264                 port {
265                         vga_in: endpoint {
266                                 remote-endpoint = <&adv7123_out>;
267                         };
268                 };
269         };
270
271         vga-encoder {
272                 compatible = "adi,adv7123";
273
274                 ports {
275                         #address-cells = <1>;
276                         #size-cells = <0>;
277
278                         port@0 {
279                                 reg = <0>;
280                                 adv7123_in: endpoint {
281                                         remote-endpoint = <&du_out_rgb>;
282                                 };
283                         };
284                         port@1 {
285                                 reg = <1>;
286                                 adv7123_out: endpoint {
287                                         remote-endpoint = <&vga_in>;
288                                 };
289                         };
290                 };
291         };
292
293         x12_clk: x12 {
294                 compatible = "fixed-clock";
295                 #clock-cells = <0>;
296                 clock-frequency = <24576000>;
297         };
298
299         /* External DU dot clocks */
300         x21_clk: x21-clock {
301                 compatible = "fixed-clock";
302                 #clock-cells = <0>;
303                 clock-frequency = <33000000>;
304         };
305
306         x22_clk: x22-clock {
307                 compatible = "fixed-clock";
308                 #clock-cells = <0>;
309                 clock-frequency = <33000000>;
310         };
311
312         x23_clk: x23-clock {
313                 compatible = "fixed-clock";
314                 #clock-cells = <0>;
315                 clock-frequency = <25000000>;
316         };
317 };
318
319 &audio_clk_a {
320         clock-frequency = <22579200>;
321 };
322
323 &avb {
324         pinctrl-0 = <&avb_pins>;
325         pinctrl-names = "default";
326         phy-handle = <&phy0>;
327         phy-mode = "rgmii-txid";
328         status = "okay";
329
330         phy0: ethernet-phy@0 {
331                 rxc-skew-ps = <1500>;
332                 reg = <0>;
333                 interrupt-parent = <&gpio2>;
334                 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
335                 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
336         };
337 };
338
339 &csi20 {
340         status = "okay";
341
342         ports {
343                 port@0 {
344                         reg = <0>;
345                         csi20_in: endpoint {
346                                 clock-lanes = <0>;
347                                 data-lanes = <1>;
348                                 remote-endpoint = <&adv7482_txb>;
349                         };
350                 };
351         };
352 };
353
354 &csi40 {
355         status = "okay";
356
357         ports {
358                 port@0 {
359                         reg = <0>;
360
361                         csi40_in: endpoint {
362                                 clock-lanes = <0>;
363                                 data-lanes = <1 2 3 4>;
364                                 remote-endpoint = <&adv7482_txa>;
365                         };
366                 };
367         };
368 };
369
370 &du {
371         pinctrl-0 = <&du_pins>;
372         pinctrl-names = "default";
373         status = "okay";
374
375         ports {
376                 port@0 {
377                         endpoint {
378                                 remote-endpoint = <&adv7123_in>;
379                         };
380                 };
381         };
382 };
383
384 &ehci0 {
385         dr_mode = "otg";
386         status = "okay";
387 };
388
389 &ehci1 {
390         status = "okay";
391 };
392
393 &extalr_clk {
394         clock-frequency = <32768>;
395 };
396
397 &hscif1 {
398         pinctrl-0 = <&hscif1_pins>;
399         pinctrl-names = "default";
400
401         uart-has-rtscts;
402         /* Please only enable hscif1 or scif1 */
403         status = "okay";
404 };
405
406 &hsusb {
407         dr_mode = "otg";
408         status = "okay";
409 };
410
411 &i2c2 {
412         pinctrl-0 = <&i2c2_pins>;
413         pinctrl-names = "default";
414
415         status = "okay";
416
417         clock-frequency = <100000>;
418
419         ak4613: codec@10 {
420                 compatible = "asahi-kasei,ak4613";
421                 #sound-dai-cells = <0>;
422                 reg = <0x10>;
423                 clocks = <&rcar_sound 3>;
424
425                 asahi-kasei,in1-single-end;
426                 asahi-kasei,in2-single-end;
427                 asahi-kasei,out1-single-end;
428                 asahi-kasei,out2-single-end;
429                 asahi-kasei,out3-single-end;
430                 asahi-kasei,out4-single-end;
431                 asahi-kasei,out5-single-end;
432                 asahi-kasei,out6-single-end;
433
434                 port {
435                         ak4613_endpoint: endpoint {
436                                 remote-endpoint = <&rsnd_endpoint0>;
437                         };
438                 };
439         };
440
441         cs2000: clk_multiplier@4f {
442                 #clock-cells = <0>;
443                 compatible = "cirrus,cs2000-cp";
444                 reg = <0x4f>;
445                 clocks = <&audio_clkout>, <&x12_clk>;
446                 clock-names = "clk_in", "ref_clk";
447
448                 assigned-clocks = <&cs2000>;
449                 assigned-clock-rates = <24576000>; /* 1/1 divide */
450         };
451 };
452
453 &i2c4 {
454         status = "okay";
455
456         pca9654: gpio@20 {
457                 compatible = "onnn,pca9654";
458                 reg = <0x20>;
459                 gpio-controller;
460                 #gpio-cells = <2>;
461         };
462
463         video-receiver@70 {
464                 compatible = "adi,adv7482";
465                 reg = <0x70 0x71 0x72 0x73 0x74 0x75
466                        0x60 0x61 0x62 0x63 0x64 0x65>;
467                 reg-names = "main", "dpll", "cp", "hdmi", "edid", "repeater",
468                             "infoframe", "cbus", "cec", "sdp", "txa", "txb" ;
469
470                 #address-cells = <1>;
471                 #size-cells = <0>;
472
473                 interrupt-parent = <&gpio6>;
474                 interrupt-names = "intrq1", "intrq2";
475                 interrupts = <30 IRQ_TYPE_LEVEL_LOW>,
476                              <31 IRQ_TYPE_LEVEL_LOW>;
477
478                 port@7 {
479                         reg = <7>;
480
481                         adv7482_ain7: endpoint {
482                                 remote-endpoint = <&cvbs_con>;
483                         };
484                 };
485
486                 port@8 {
487                         reg = <8>;
488
489                         adv7482_hdmi: endpoint {
490                                 remote-endpoint = <&hdmi_in_con>;
491                         };
492                 };
493
494                 port@a {
495                         reg = <10>;
496
497                         adv7482_txa: endpoint {
498                                 clock-lanes = <0>;
499                                 data-lanes = <1 2 3 4>;
500                                 remote-endpoint = <&csi40_in>;
501                         };
502                 };
503
504                 port@b {
505                         reg = <11>;
506
507                         adv7482_txb: endpoint {
508                                 clock-lanes = <0>;
509                                 data-lanes = <1>;
510                                 remote-endpoint = <&csi20_in>;
511                         };
512                 };
513         };
514
515         csa_vdd: adc@7c {
516                 compatible = "maxim,max9611";
517                 reg = <0x7c>;
518
519                 shunt-resistor-micro-ohms = <5000>;
520         };
521
522         csa_dvfs: adc@7f {
523                 compatible = "maxim,max9611";
524                 reg = <0x7f>;
525
526                 shunt-resistor-micro-ohms = <5000>;
527         };
528 };
529
530 &i2c_dvfs {
531         status = "okay";
532
533         clock-frequency = <400000>;
534
535         pmic: pmic@30 {
536                 pinctrl-0 = <&irq0_pins>;
537                 pinctrl-names = "default";
538
539                 compatible = "rohm,bd9571mwv";
540                 reg = <0x30>;
541                 interrupt-parent = <&intc_ex>;
542                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
543                 interrupt-controller;
544                 #interrupt-cells = <2>;
545                 gpio-controller;
546                 #gpio-cells = <2>;
547                 rohm,ddr-backup-power = <0xf>;
548                 rohm,rstbmode-level;
549
550                 regulators {
551                         dvfs: dvfs {
552                                 regulator-name = "dvfs";
553                                 regulator-min-microvolt = <750000>;
554                                 regulator-max-microvolt = <1030000>;
555                                 regulator-boot-on;
556                                 regulator-always-on;
557                         };
558                 };
559         };
560
561         eeprom@50 {
562                 compatible = "rohm,br24t01", "atmel,24c01";
563                 reg = <0x50>;
564                 pagesize = <8>;
565         };
566 };
567
568 &ohci0 {
569         dr_mode = "otg";
570         status = "okay";
571 };
572
573 &ohci1 {
574         status = "okay";
575 };
576
577 &pcie_bus_clk {
578         clock-frequency = <100000000>;
579 };
580
581 &pciec0 {
582         status = "okay";
583 };
584
585 &pciec1 {
586         status = "okay";
587 };
588
589 &pfc {
590         pinctrl-0 = <&scif_clk_pins>;
591         pinctrl-names = "default";
592
593         avb_pins: avb {
594                 mux {
595                         groups = "avb_link", "avb_mdio", "avb_mii";
596                         function = "avb";
597                 };
598
599                 pins_mdio {
600                         groups = "avb_mdio";
601                         drive-strength = <24>;
602                 };
603
604                 pins_mii_tx {
605                         pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
606                                "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
607                         drive-strength = <12>;
608                 };
609         };
610
611         du_pins: du {
612                 groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
613                 function = "du";
614         };
615
616         hscif1_pins: hscif1 {
617                 groups = "hscif1_data_a", "hscif1_ctrl_a";
618                 function = "hscif1";
619         };
620
621         i2c2_pins: i2c2 {
622                 groups = "i2c2_a";
623                 function = "i2c2";
624         };
625
626         irq0_pins: irq0 {
627                 groups = "intc_ex_irq0";
628                 function = "intc_ex";
629         };
630
631         keys_pins: keys {
632                 pins = "GP_5_17", "GP_5_20", "GP_5_22";
633                 bias-pull-up;
634         };
635
636         pwm1_pins: pwm1 {
637                 groups = "pwm1_a";
638                 function = "pwm1";
639         };
640
641         scif1_pins: scif1 {
642                 groups = "scif1_data_a", "scif1_ctrl";
643                 function = "scif1";
644         };
645
646         scif2_pins: scif2 {
647                 groups = "scif2_data_a";
648                 function = "scif2";
649         };
650
651         scif_clk_pins: scif_clk {
652                 groups = "scif_clk_a";
653                 function = "scif_clk";
654         };
655
656         sdhi0_pins: sd0 {
657                 groups = "sdhi0_data4", "sdhi0_ctrl";
658                 function = "sdhi0";
659                 power-source = <3300>;
660         };
661
662         sdhi0_pins_uhs: sd0_uhs {
663                 groups = "sdhi0_data4", "sdhi0_ctrl";
664                 function = "sdhi0";
665                 power-source = <1800>;
666         };
667
668         sdhi2_pins: sd2 {
669                 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
670                 function = "sdhi2";
671                 power-source = <1800>;
672         };
673
674         sdhi3_pins: sd3 {
675                 groups = "sdhi3_data4", "sdhi3_ctrl";
676                 function = "sdhi3";
677                 power-source = <3300>;
678         };
679
680         sdhi3_pins_uhs: sd3_uhs {
681                 groups = "sdhi3_data4", "sdhi3_ctrl";
682                 function = "sdhi3";
683                 power-source = <1800>;
684         };
685
686         sound_pins: sound {
687                 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
688                 function = "ssi";
689         };
690
691         sound_clk_pins: sound_clk {
692                 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
693                          "audio_clkout_a", "audio_clkout3_a";
694                 function = "audio_clk";
695         };
696
697         usb0_pins: usb0 {
698                 groups = "usb0";
699                 function = "usb0";
700         };
701
702         usb1_pins: usb1 {
703                 mux {
704                         groups = "usb1";
705                         function = "usb1";
706                 };
707
708                 ovc {
709                         pins = "GP_6_27";
710                         bias-pull-up;
711                 };
712
713                 pwen {
714                         pins = "GP_6_26";
715                         bias-pull-down;
716                 };
717         };
718
719         usb30_pins: usb30 {
720                 groups = "usb30";
721                 function = "usb30";
722         };
723 };
724
725 &pwm1 {
726         pinctrl-0 = <&pwm1_pins>;
727         pinctrl-names = "default";
728
729         status = "okay";
730 };
731
732 &rcar_sound {
733         pinctrl-0 = <&sound_pins &sound_clk_pins>;
734         pinctrl-names = "default";
735
736         /* Single DAI */
737         #sound-dai-cells = <0>;
738
739         /* audio_clkout0/1/2/3 */
740         #clock-cells = <1>;
741         clock-frequency = <12288000 11289600>;
742
743         status = "okay";
744
745         /* update <audio_clk_b> to <cs2000> */
746         clocks = <&cpg CPG_MOD 1005>,
747                  <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
748                  <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
749                  <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
750                  <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
751                  <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
752                  <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
753                  <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
754                  <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
755                  <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
756                  <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
757                  <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
758                  <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
759                  <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
760                  <&audio_clk_a>, <&cs2000>,
761                  <&audio_clk_c>,
762                  <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
763
764         ports {
765                 #address-cells = <1>;
766                 #size-cells = <0>;
767                 rsnd_port0: port@0 {
768                         reg = <0>;
769                         rsnd_endpoint0: endpoint {
770                                 remote-endpoint = <&ak4613_endpoint>;
771
772                                 dai-format = "left_j";
773                                 bitclock-master = <&rsnd_endpoint0>;
774                                 frame-master = <&rsnd_endpoint0>;
775
776                                 playback = <&ssi0 &src0 &dvc0>;
777                                 capture  = <&ssi1 &src1 &dvc1>;
778                         };
779                 };
780         };
781 };
782
783 &rwdt {
784         timeout-sec = <60>;
785         status = "okay";
786 };
787
788 &scif1 {
789         pinctrl-0 = <&scif1_pins>;
790         pinctrl-names = "default";
791
792         uart-has-rtscts;
793         /* Please only enable hscif1 or scif1 */
794         /* status = "okay"; */
795 };
796
797 &scif2 {
798         pinctrl-0 = <&scif2_pins>;
799         pinctrl-names = "default";
800
801         status = "okay";
802 };
803
804 &scif_clk {
805         clock-frequency = <14745600>;
806 };
807
808 &sdhi0 {
809         pinctrl-0 = <&sdhi0_pins>;
810         pinctrl-1 = <&sdhi0_pins_uhs>;
811         pinctrl-names = "default", "state_uhs";
812
813         vmmc-supply = <&vcc_sdhi0>;
814         vqmmc-supply = <&vccq_sdhi0>;
815         cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
816         wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
817         bus-width = <4>;
818         sd-uhs-sdr50;
819         sd-uhs-sdr104;
820         status = "okay";
821 };
822
823 &sdhi2 {
824         /* used for on-board 8bit eMMC */
825         pinctrl-0 = <&sdhi2_pins>;
826         pinctrl-1 = <&sdhi2_pins>;
827         pinctrl-names = "default", "state_uhs";
828
829         vmmc-supply = <&reg_3p3v>;
830         vqmmc-supply = <&reg_1p8v>;
831         bus-width = <8>;
832         mmc-hs200-1_8v;
833         mmc-hs400-1_8v;
834         non-removable;
835         fixed-emmc-driver-type = <1>;
836         status = "okay";
837 };
838
839 &sdhi3 {
840         pinctrl-0 = <&sdhi3_pins>;
841         pinctrl-1 = <&sdhi3_pins_uhs>;
842         pinctrl-names = "default", "state_uhs";
843
844         vmmc-supply = <&vcc_sdhi3>;
845         vqmmc-supply = <&vccq_sdhi3>;
846         cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
847         wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
848         bus-width = <4>;
849         sd-uhs-sdr50;
850         sd-uhs-sdr104;
851         status = "okay";
852 };
853
854 &ssi1 {
855         shared-pin;
856 };
857
858 &usb_extal_clk {
859         clock-frequency = <50000000>;
860 };
861
862 &usb2_phy0 {
863         pinctrl-0 = <&usb0_pins>;
864         pinctrl-names = "default";
865
866         vbus-supply = <&vbus0_usb2>;
867         status = "okay";
868 };
869
870 &usb2_phy1 {
871         pinctrl-0 = <&usb1_pins>;
872         pinctrl-names = "default";
873
874         status = "okay";
875 };
876
877 &usb3_peri0 {
878         phys = <&usb3_phy0>;
879         phy-names = "usb";
880
881         companion = <&xhci0>;
882
883         status = "okay";
884 };
885
886 &usb3_phy0 {
887         status = "okay";
888 };
889
890 &usb3s0_clk {
891         clock-frequency = <100000000>;
892 };
893
894 &vin0 {
895         status = "okay";
896 };
897
898 &vin1 {
899         status = "okay";
900 };
901
902 &vin2 {
903         status = "okay";
904 };
905
906 &vin3 {
907         status = "okay";
908 };
909
910 &vin4 {
911         status = "okay";
912 };
913
914 &vin5 {
915         status = "okay";
916 };
917
918 &vin6 {
919         status = "okay";
920 };
921
922 &vin7 {
923         status = "okay";
924 };
925
926 &xhci0 {
927         pinctrl-0 = <&usb30_pins>;
928         pinctrl-names = "default";
929
930         status = "okay";
931 };