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