Merge branch 'migrate-various-PHY-options'
[oweals/u-boot.git] / arch / arm / dts / r8a7790-lager.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for the Lager board
4  *
5  * Copyright (C) 2013-2014 Renesas Solutions Corp.
6  * Copyright (C) 2014 Cogent Embedded, Inc.
7  * Copyright (C) 2015-2016 Renesas Electronics Corporation
8  */
9
10 /*
11  * SSI-AK4643
12  *
13  * SW1: 1: AK4643
14  *      2: CN22
15  *      3: ADV7511
16  *
17  * This command is required when Playback/Capture
18  *
19  *      amixer set "LINEOUT Mixer DACL" on
20  *      amixer set "DVC Out" 100%
21  *      amixer set "DVC In" 100%
22  *
23  * You can use Mute
24  *
25  *      amixer set "DVC Out Mute" on
26  *      amixer set "DVC In Mute" on
27  *
28  * You can use Volume Ramp
29  *
30  *      amixer set "DVC Out Ramp Up Rate"   "0.125 dB/64 steps"
31  *      amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
32  *      amixer set "DVC Out Ramp" on
33  *      aplay xxx.wav &
34  *      amixer set "DVC Out"  80%  // Volume Down
35  *      amixer set "DVC Out" 100%  // Volume Up
36  */
37
38 /dts-v1/;
39 #include "r8a7790.dtsi"
40 #include <dt-bindings/gpio/gpio.h>
41 #include <dt-bindings/input/input.h>
42
43 / {
44         model = "Lager";
45         compatible = "renesas,lager", "renesas,r8a7790";
46
47         aliases {
48                 serial0 = &scif0;
49                 serial1 = &scifa1;
50                 i2c8 = &gpioi2c1;
51                 i2c9 = &gpioi2c2;
52                 i2c10 = &i2cexio0;
53                 i2c11 = &i2cexio1;
54                 i2c12 = &i2chdmi;
55                 i2c13 = &i2cpwr;
56         };
57
58         chosen {
59                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
60                 stdout-path = "serial0:115200n8";
61         };
62
63         memory@40000000 {
64                 device_type = "memory";
65                 reg = <0 0x40000000 0 0x40000000>;
66         };
67
68         memory@140000000 {
69                 device_type = "memory";
70                 reg = <1 0x40000000 0 0xc0000000>;
71         };
72
73         lbsc {
74                 #address-cells = <1>;
75                 #size-cells = <1>;
76         };
77
78         keyboard {
79                 compatible = "gpio-keys";
80
81                 one {
82                         linux,code = <KEY_1>;
83                         label = "SW2-1";
84                         wakeup-source;
85                         debounce-interval = <20>;
86                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
87                 };
88                 two {
89                         linux,code = <KEY_2>;
90                         label = "SW2-2";
91                         wakeup-source;
92                         debounce-interval = <20>;
93                         gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
94                 };
95                 three {
96                         linux,code = <KEY_3>;
97                         label = "SW2-3";
98                         wakeup-source;
99                         debounce-interval = <20>;
100                         gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
101                 };
102                 four {
103                         linux,code = <KEY_4>;
104                         label = "SW2-4";
105                         wakeup-source;
106                         debounce-interval = <20>;
107                         gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
108                 };
109         };
110
111         leds {
112                 compatible = "gpio-leds";
113                 led6 {
114                         gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
115                 };
116                 led7 {
117                         gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
118                 };
119                 led8 {
120                         gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
121                 };
122         };
123
124         fixedregulator3v3: regulator-3v3 {
125                 compatible = "regulator-fixed";
126                 regulator-name = "fixed-3.3V";
127                 regulator-min-microvolt = <3300000>;
128                 regulator-max-microvolt = <3300000>;
129                 regulator-boot-on;
130                 regulator-always-on;
131         };
132
133         vcc_sdhi0: regulator-vcc-sdhi0 {
134                 compatible = "regulator-fixed";
135
136                 regulator-name = "SDHI0 Vcc";
137                 regulator-min-microvolt = <3300000>;
138                 regulator-max-microvolt = <3300000>;
139
140                 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
141                 enable-active-high;
142         };
143
144         vccq_sdhi0: regulator-vccq-sdhi0 {
145                 compatible = "regulator-gpio";
146
147                 regulator-name = "SDHI0 VccQ";
148                 regulator-min-microvolt = <1800000>;
149                 regulator-max-microvolt = <3300000>;
150
151                 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
152                 gpios-states = <1>;
153                 states = <3300000 1
154                           1800000 0>;
155         };
156
157         vcc_sdhi2: regulator-vcc-sdhi2 {
158                 compatible = "regulator-fixed";
159
160                 regulator-name = "SDHI2 Vcc";
161                 regulator-min-microvolt = <3300000>;
162                 regulator-max-microvolt = <3300000>;
163
164                 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
165                 enable-active-high;
166         };
167
168         vccq_sdhi2: regulator-vccq-sdhi2 {
169                 compatible = "regulator-gpio";
170
171                 regulator-name = "SDHI2 VccQ";
172                 regulator-min-microvolt = <1800000>;
173                 regulator-max-microvolt = <3300000>;
174
175                 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
176                 gpios-states = <1>;
177                 states = <3300000 1
178                           1800000 0>;
179         };
180
181         audio_clock: audio_clock {
182                 compatible = "fixed-clock";
183                 #clock-cells = <0>;
184                 clock-frequency = <11289600>;
185         };
186
187         rsnd_ak4643: sound {
188                 compatible = "simple-audio-card";
189
190                 simple-audio-card,format = "left_j";
191                 simple-audio-card,bitclock-master = <&sndcodec>;
192                 simple-audio-card,frame-master = <&sndcodec>;
193
194                 sndcpu: simple-audio-card,cpu {
195                         sound-dai = <&rcar_sound>;
196                 };
197
198                 sndcodec: simple-audio-card,codec {
199                         sound-dai = <&ak4643>;
200                         clocks = <&audio_clock>;
201                 };
202         };
203
204         vga-encoder {
205                 compatible = "adi,adv7123";
206
207                 ports {
208                         #address-cells = <1>;
209                         #size-cells = <0>;
210
211                         port@0 {
212                                 reg = <0>;
213                                 adv7123_in: endpoint {
214                                         remote-endpoint = <&du_out_rgb>;
215                                 };
216                         };
217                         port@1 {
218                                 reg = <1>;
219                                 adv7123_out: endpoint {
220                                         remote-endpoint = <&vga_in>;
221                                 };
222                         };
223                 };
224         };
225
226         vga {
227                 compatible = "vga-connector";
228
229                 port {
230                         vga_in: endpoint {
231                                 remote-endpoint = <&adv7123_out>;
232                         };
233                 };
234         };
235
236         hdmi-in {
237                 compatible = "hdmi-connector";
238                 type = "a";
239
240                 port {
241                         hdmi_con_in: endpoint {
242                                 remote-endpoint = <&adv7612_in>;
243                         };
244                 };
245         };
246
247         cec_clock: cec-clock {
248                 compatible = "fixed-clock";
249                 #clock-cells = <0>;
250                 clock-frequency = <12000000>;
251         };
252
253         hdmi-out {
254                 compatible = "hdmi-connector";
255                 type = "a";
256
257                 port {
258                         hdmi_con_out: endpoint {
259                                 remote-endpoint = <&adv7511_out>;
260                         };
261                 };
262         };
263
264         x2_clk: x2-clock {
265                 compatible = "fixed-clock";
266                 #clock-cells = <0>;
267                 clock-frequency = <148500000>;
268         };
269
270         x13_clk: x13-clock {
271                 compatible = "fixed-clock";
272                 #clock-cells = <0>;
273                 clock-frequency = <148500000>;
274         };
275
276         gpioi2c1: i2c-8 {
277                 #address-cells = <1>;
278                 #size-cells = <0>;
279                 compatible = "i2c-gpio";
280                 status = "disabled";
281                 scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
282                 sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
283                 i2c-gpio,delay-us = <5>;
284         };
285
286         gpioi2c2: i2c-9 {
287                 #address-cells = <1>;
288                 #size-cells = <0>;
289                 compatible = "i2c-gpio";
290                 status = "disabled";
291                 scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
292                 sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
293                 i2c-gpio,delay-us = <5>;
294         };
295
296         /*
297          * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
298          * We use the I2C demuxer, so the desired IP core can be selected at runtime
299          * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
300          * Note: For testing the I2C slave feature, it is convenient to connect this
301          * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
302          * instantiate the slave device at runtime according to the documentation.
303          * You can then communicate with the slave via IIC3.
304          *
305          * IIC0/I2C0 does not appear to support fallback to GPIO.
306          */
307         i2cexio0: i2c-10 {
308                 compatible = "i2c-demux-pinctrl";
309                 i2c-parent = <&iic0>, <&i2c0>;
310                 i2c-bus-name = "i2c-exio0";
311                 #address-cells = <1>;
312                 #size-cells = <0>;
313         };
314
315         /*
316          * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
317          * This is similar to the arangement described for i2cexio0 (above)
318          * with a fallback to GPIO also provided.
319          */
320         i2cexio1: i2c-11 {
321                 compatible = "i2c-demux-pinctrl";
322                 i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
323                 i2c-bus-name = "i2c-exio1";
324                 #address-cells = <1>;
325                 #size-cells = <0>;
326         };
327
328         /*
329          * IIC2 and I2C2 may be switched using pinmux.
330          * A fallback to GPIO is also provided.
331          */
332         i2chdmi: i2c-12 {
333                 compatible = "i2c-demux-pinctrl";
334                 i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>;
335                 i2c-bus-name = "i2c-hdmi";
336                 #address-cells = <1>;
337                 #size-cells = <0>;
338
339                 ak4643: codec@12 {
340                         compatible = "asahi-kasei,ak4643";
341                         #sound-dai-cells = <0>;
342                         reg = <0x12>;
343                 };
344
345                 composite-in@20 {
346                         compatible = "adi,adv7180";
347                         reg = <0x20>;
348                         remote = <&vin1>;
349
350                         port {
351                                 adv7180: endpoint {
352                                         bus-width = <8>;
353                                         remote-endpoint = <&vin1ep0>;
354                                 };
355                         };
356                 };
357
358                 hdmi@39 {
359                         compatible = "adi,adv7511w";
360                         reg = <0x39>;
361                         interrupt-parent = <&gpio1>;
362                         interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
363                         clocks = <&cec_clock>;
364                         clock-names = "cec";
365
366                         adi,input-depth = <8>;
367                         adi,input-colorspace = "rgb";
368                         adi,input-clock = "1x";
369                         adi,input-style = <1>;
370                         adi,input-justification = "evenly";
371
372                         ports {
373                                 #address-cells = <1>;
374                                 #size-cells = <0>;
375
376                                 port@0 {
377                                         reg = <0>;
378                                         adv7511_in: endpoint {
379                                                 remote-endpoint = <&lvds0_out>;
380                                         };
381                                 };
382
383                                 port@1 {
384                                         reg = <1>;
385                                         adv7511_out: endpoint {
386                                                 remote-endpoint = <&hdmi_con_out>;
387                                         };
388                                 };
389                         };
390                 };
391
392                 hdmi-in@4c {
393                         compatible = "adi,adv7612";
394                         reg = <0x4c>;
395                         interrupt-parent = <&gpio1>;
396                         interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
397                         default-input = <0>;
398
399                         ports {
400                                 #address-cells = <1>;
401                                 #size-cells = <0>;
402
403                                 port@0 {
404                                         reg = <0>;
405                                         adv7612_in: endpoint {
406                                                 remote-endpoint = <&hdmi_con_in>;
407                                         };
408                                 };
409
410                                 port@2 {
411                                         reg = <2>;
412                                         adv7612_out: endpoint {
413                                                 remote-endpoint = <&vin0ep2>;
414                                         };
415                                 };
416                         };
417                 };
418         };
419
420         /*
421          * IIC3 and I2C3 may be switched using pinmux.
422          * IIC3/I2C3 does not appear to support fallback to GPIO.
423          */
424         i2cpwr: i2c-13 {
425                 compatible = "i2c-demux-pinctrl";
426                 i2c-parent = <&iic3>, <&i2c3>;
427                 i2c-bus-name = "i2c-pwr";
428                 #address-cells = <1>;
429                 #size-cells = <0>;
430
431                 pmic@58 {
432                         compatible = "dlg,da9063";
433                         reg = <0x58>;
434                         interrupt-parent = <&irqc0>;
435                         interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
436                         interrupt-controller;
437
438                         rtc {
439                                 compatible = "dlg,da9063-rtc";
440                         };
441
442                         wdt {
443                                 compatible = "dlg,da9063-watchdog";
444                         };
445                 };
446
447                 vdd_dvfs: regulator@68 {
448                         compatible = "dlg,da9210";
449                         reg = <0x68>;
450                         interrupt-parent = <&irqc0>;
451                         interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
452
453                         regulator-min-microvolt = <1000000>;
454                         regulator-max-microvolt = <1000000>;
455                         regulator-boot-on;
456                         regulator-always-on;
457                 };
458         };
459 };
460
461 &du {
462         pinctrl-0 = <&du_pins>;
463         pinctrl-names = "default";
464         status = "okay";
465
466         clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
467                  <&x13_clk>, <&x2_clk>;
468         clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1";
469
470         ports {
471                 port@0 {
472                         endpoint {
473                                 remote-endpoint = <&adv7123_in>;
474                         };
475                 };
476         };
477 };
478
479 &lvds0 {
480         status = "okay";
481
482         ports {
483                 port@1 {
484                         endpoint {
485                                 remote-endpoint = <&adv7511_in>;
486                         };
487                 };
488         };
489 };
490
491 &lvds1 {
492         ports {
493                 port@1 {
494                         lvds_connector: endpoint {
495                         };
496                 };
497         };
498 };
499
500 &extal_clk {
501         clock-frequency = <20000000>;
502 };
503
504 &pfc {
505         pinctrl-0 = <&scif_clk_pins>;
506         pinctrl-names = "default";
507
508         du_pins: du {
509                 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
510                 function = "du";
511         };
512
513         scif0_pins: scif0 {
514                 groups = "scif0_data";
515                 function = "scif0";
516         };
517
518         scif_clk_pins: scif_clk {
519                 groups = "scif_clk";
520                 function = "scif_clk";
521         };
522
523         ether_pins: ether {
524                 groups = "eth_link", "eth_mdio", "eth_rmii";
525                 function = "eth";
526         };
527
528         phy1_pins: phy1 {
529                 groups = "intc_irq0";
530                 function = "intc";
531         };
532
533         scifa1_pins: scifa1 {
534                 groups = "scifa1_data";
535                 function = "scifa1";
536         };
537
538         sdhi0_pins: sd0 {
539                 groups = "sdhi0_data4", "sdhi0_ctrl";
540                 function = "sdhi0";
541                 power-source = <3300>;
542         };
543
544         sdhi0_pins_uhs: sd0_uhs {
545                 groups = "sdhi0_data4", "sdhi0_ctrl";
546                 function = "sdhi0";
547                 power-source = <1800>;
548         };
549
550         sdhi2_pins: sd2 {
551                 groups = "sdhi2_data4", "sdhi2_ctrl";
552                 function = "sdhi2";
553                 power-source = <3300>;
554         };
555
556         sdhi2_pins_uhs: sd2_uhs {
557                 groups = "sdhi2_data4", "sdhi2_ctrl";
558                 function = "sdhi2";
559                 power-source = <1800>;
560         };
561
562         mmc1_pins: mmc1 {
563                 groups = "mmc1_data8", "mmc1_ctrl";
564                 function = "mmc1";
565         };
566
567         qspi_pins: qspi {
568                 groups = "qspi_ctrl", "qspi_data4";
569                 function = "qspi";
570         };
571
572         msiof1_pins: msiof1 {
573                 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
574                                  "msiof1_tx";
575                 function = "msiof1";
576         };
577
578         i2c0_pins: i2c0 {
579                 groups = "i2c0";
580                 function = "i2c0";
581         };
582
583         iic0_pins: iic0 {
584                 groups = "iic0";
585                 function = "iic0";
586         };
587
588         i2c1_pins: i2c1 {
589                 groups = "i2c1";
590                 function = "i2c1";
591         };
592
593         iic1_pins: iic1 {
594                 groups = "iic1";
595                 function = "iic1";
596         };
597
598         i2c2_pins: i2c2 {
599                 groups = "i2c2";
600                 function = "i2c2";
601         };
602
603         iic2_pins: iic2 {
604                 groups = "iic2";
605                 function = "iic2";
606         };
607
608         i2c3_pins: i2c3 {
609                 groups = "i2c3";
610                 function = "i2c3";
611         };
612
613         iic3_pins: iic3 {
614                 groups = "iic3";
615                 function = "iic3";
616         };
617
618         hsusb_pins: hsusb {
619                 groups = "usb0_ovc_vbus";
620                 function = "usb0";
621         };
622
623         usb0_pins: usb0 {
624                 groups = "usb0";
625                 function = "usb0";
626         };
627
628         usb1_pins: usb1 {
629                 groups = "usb1";
630                 function = "usb1";
631         };
632
633         usb2_pins: usb2 {
634                 groups = "usb2";
635                 function = "usb2";
636         };
637
638         vin0_pins: vin0 {
639                 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
640                 function = "vin0";
641         };
642
643         vin1_pins: vin1 {
644                 groups = "vin1_data8", "vin1_clk";
645                 function = "vin1";
646         };
647
648         sound_pins: sound {
649                 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
650                 function = "ssi";
651         };
652
653         sound_clk_pins: sound_clk {
654                 groups = "audio_clk_a";
655                 function = "audio_clk";
656         };
657 };
658
659 &ether {
660         pinctrl-0 = <&ether_pins &phy1_pins>;
661         pinctrl-names = "default";
662
663         phy-handle = <&phy1>;
664         renesas,ether-link-active-low;
665         status = "okay";
666
667         phy1: ethernet-phy@1 {
668                 reg = <1>;
669                 interrupt-parent = <&irqc0>;
670                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
671                 micrel,led-mode = <1>;
672         };
673 };
674
675 &cmt0 {
676         status = "okay";
677 };
678
679 &mmcif1 {
680         pinctrl-0 = <&mmc1_pins>;
681         pinctrl-names = "default";
682
683         vmmc-supply = <&fixedregulator3v3>;
684         bus-width = <8>;
685         non-removable;
686         status = "okay";
687 };
688
689 &sata1 {
690         status = "okay";
691 };
692
693 &qspi {
694         pinctrl-0 = <&qspi_pins>;
695         pinctrl-names = "default";
696
697         status = "okay";
698
699         flash: flash@0 {
700                 compatible = "spansion,s25fl512s", "jedec,spi-nor";
701                 reg = <0>;
702                 spi-max-frequency = <30000000>;
703                 spi-tx-bus-width = <4>;
704                 spi-rx-bus-width = <4>;
705                 spi-cpha;
706                 spi-cpol;
707                 m25p,fast-read;
708
709                 partitions {
710                         compatible = "fixed-partitions";
711                         #address-cells = <1>;
712                         #size-cells = <1>;
713
714                         partition@0 {
715                                 label = "loader";
716                                 reg = <0x00000000 0x00040000>;
717                                 read-only;
718                         };
719                         partition@40000 {
720                                 label = "user";
721                                 reg = <0x00040000 0x00400000>;
722                                 read-only;
723                         };
724                         partition@440000 {
725                                 label = "flash";
726                                 reg = <0x00440000 0x03bc0000>;
727                         };
728                 };
729         };
730 };
731
732 &scif0 {
733         pinctrl-0 = <&scif0_pins>;
734         pinctrl-names = "default";
735
736         status = "okay";
737 };
738
739 &scifa1 {
740         pinctrl-0 = <&scifa1_pins>;
741         pinctrl-names = "default";
742
743         status = "okay";
744 };
745
746 &scif_clk {
747         clock-frequency = <14745600>;
748 };
749
750 &msiof1 {
751         pinctrl-0 = <&msiof1_pins>;
752         pinctrl-names = "default";
753
754         status = "okay";
755
756         pmic: pmic@0 {
757                 compatible = "renesas,r2a11302ft";
758                 reg = <0>;
759                 spi-max-frequency = <6000000>;
760                 spi-cpol;
761                 spi-cpha;
762         };
763 };
764
765 &sdhi0 {
766         pinctrl-0 = <&sdhi0_pins>;
767         pinctrl-1 = <&sdhi0_pins_uhs>;
768         pinctrl-names = "default", "state_uhs";
769
770         vmmc-supply = <&vcc_sdhi0>;
771         vqmmc-supply = <&vccq_sdhi0>;
772         cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
773         sd-uhs-sdr50;
774         sd-uhs-sdr104;
775         status = "okay";
776 };
777
778 &sdhi2 {
779         pinctrl-0 = <&sdhi2_pins>;
780         pinctrl-1 = <&sdhi2_pins_uhs>;
781         pinctrl-names = "default", "state_uhs";
782
783         vmmc-supply = <&vcc_sdhi2>;
784         vqmmc-supply = <&vccq_sdhi2>;
785         cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
786         sd-uhs-sdr50;
787         status = "okay";
788 };
789
790 &cpu0 {
791         cpu0-supply = <&vdd_dvfs>;
792 };
793
794 &i2c0   {
795         pinctrl-0 = <&i2c0_pins>;
796         pinctrl-names = "i2c-exio0";
797 };
798
799 &iic0   {
800         pinctrl-0 = <&iic0_pins>;
801         pinctrl-names = "i2c-exio0";
802 };
803
804 &i2c1   {
805         pinctrl-0 = <&i2c1_pins>;
806         pinctrl-names = "i2c-exio1";
807 };
808
809 &iic1   {
810         pinctrl-0 = <&iic1_pins>;
811         pinctrl-names = "i2c-exio1";
812 };
813
814 &i2c2   {
815         pinctrl-0 = <&i2c2_pins>;
816         pinctrl-names = "i2c-hdmi";
817
818         clock-frequency = <100000>;
819 };
820
821 &iic2   {
822         pinctrl-0 = <&iic2_pins>;
823         pinctrl-names = "i2c-hdmi";
824
825         clock-frequency = <100000>;
826 };
827
828 &i2c3   {
829         pinctrl-0 = <&i2c3_pins>;
830         pinctrl-names = "i2c-pwr";
831 };
832
833 &iic3   {
834         pinctrl-0 = <&iic3_pins>;
835         pinctrl-names = "i2c-pwr";
836 };
837
838 &pci0 {
839         status = "okay";
840         pinctrl-0 = <&usb0_pins>;
841         pinctrl-names = "default";
842 };
843
844 &pci1 {
845         status = "okay";
846         pinctrl-0 = <&usb1_pins>;
847         pinctrl-names = "default";
848 };
849
850 &xhci {
851         status = "okay";
852         pinctrl-0 = <&usb2_pins>;
853         pinctrl-names = "default";
854 };
855
856 &pci2 {
857         status = "okay";
858         pinctrl-0 = <&usb2_pins>;
859         pinctrl-names = "default";
860 };
861
862 &hsusb {
863         status = "okay";
864         pinctrl-0 = <&hsusb_pins>;
865         pinctrl-names = "default";
866         renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
867 };
868
869 &usbphy {
870         status = "okay";
871 };
872
873 /* HDMI video input */
874 &vin0 {
875         pinctrl-0 = <&vin0_pins>;
876         pinctrl-names = "default";
877
878         status = "okay";
879
880         port {
881                 vin0ep2: endpoint {
882                         remote-endpoint = <&adv7612_out>;
883                         bus-width = <24>;
884                         hsync-active = <0>;
885                         vsync-active = <0>;
886                         pclk-sample = <1>;
887                         data-active = <1>;
888                 };
889         };
890 };
891
892 /* composite video input */
893 &vin1 {
894         pinctrl-0 = <&vin1_pins>;
895         pinctrl-names = "default";
896
897         status = "okay";
898
899         port {
900                 vin1ep0: endpoint {
901                         remote-endpoint = <&adv7180>;
902                         bus-width = <8>;
903                 };
904         };
905 };
906
907 &rcar_sound {
908         pinctrl-0 = <&sound_pins &sound_clk_pins>;
909         pinctrl-names = "default";
910
911         /* Single DAI */
912         #sound-dai-cells = <0>;
913
914         status = "okay";
915
916         rcar_sound,dai {
917                 dai0 {
918                         playback = <&ssi0 &src2 &dvc0>;
919                         capture  = <&ssi1 &src3 &dvc1>;
920                 };
921         };
922 };
923
924 &rwdt {
925         timeout-sec = <60>;
926         status = "okay";
927 };
928
929 &ssi1 {
930         shared-pin;
931 };