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