blob: e6580aa0cea3573fd3c7b52e560f4a076f6e58cb [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Marek Vasutedd15fc2018-01-07 20:17:39 +01002/*
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.
Marek Vasutedd15fc2018-01-07 20:17:39 +01008 */
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;
Marek Vasut252c8b42018-06-06 19:58:17 +020051 i2c10 = &gpioi2c2;
52 i2c11 = &gpioi2c4;
Marek Vasutedd15fc2018-01-07 20:17:39 +010053 i2c12 = &i2cexio1;
Marek Vasut252c8b42018-06-06 19:58:17 +020054 i2c13 = &i2chdmi;
55 i2c14 = &i2cexio4;
Marek Vasutedd15fc2018-01-07 20:17:39 +010056 };
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@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
197 1800000 0>;
198 };
199
200 vcc_sdhi1: regulator-vcc-sdhi1 {
201 compatible = "regulator-fixed";
202
203 regulator-name = "SDHI1 Vcc";
204 regulator-min-microvolt = <3300000>;
205 regulator-max-microvolt = <3300000>;
206
207 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
208 enable-active-high;
209 };
210
211 vccq_sdhi1: regulator-vccq-sdhi1 {
212 compatible = "regulator-gpio";
213
214 regulator-name = "SDHI1 VccQ";
215 regulator-min-microvolt = <1800000>;
216 regulator-max-microvolt = <3300000>;
217
218 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
219 gpios-states = <1>;
220 states = <3300000 1
221 1800000 0>;
222 };
223
224 vcc_sdhi2: regulator-vcc-sdhi2 {
225 compatible = "regulator-fixed";
226
227 regulator-name = "SDHI2 Vcc";
228 regulator-min-microvolt = <3300000>;
229 regulator-max-microvolt = <3300000>;
230
231 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
232 enable-active-high;
233 };
234
235 vccq_sdhi2: regulator-vccq-sdhi2 {
236 compatible = "regulator-gpio";
237
238 regulator-name = "SDHI2 VccQ";
239 regulator-min-microvolt = <1800000>;
240 regulator-max-microvolt = <3300000>;
241
242 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
243 gpios-states = <1>;
244 states = <3300000 1
245 1800000 0>;
246 };
247
248 audio_clock: audio_clock {
249 compatible = "fixed-clock";
250 #clock-cells = <0>;
251 clock-frequency = <11289600>;
252 };
253
254 rsnd_ak4643: sound {
255 compatible = "simple-audio-card";
256
257 simple-audio-card,format = "left_j";
258 simple-audio-card,bitclock-master = <&sndcodec>;
259 simple-audio-card,frame-master = <&sndcodec>;
260
261 sndcpu: simple-audio-card,cpu {
262 sound-dai = <&rcar_sound>;
263 };
264
265 sndcodec: simple-audio-card,codec {
266 sound-dai = <&ak4643>;
267 clocks = <&audio_clock>;
268 };
269 };
270
271 hdmi-in {
272 compatible = "hdmi-connector";
273 type = "a";
274
275 port {
276 hdmi_con_in: endpoint {
277 remote-endpoint = <&adv7612_in>;
278 };
279 };
280 };
281
Marek Vasut252c8b42018-06-06 19:58:17 +0200282 cec_clock: cec-clock {
283 compatible = "fixed-clock";
284 #clock-cells = <0>;
285 clock-frequency = <12000000>;
286 };
287
Marek Vasutedd15fc2018-01-07 20:17:39 +0100288 hdmi-out {
289 compatible = "hdmi-connector";
290 type = "a";
291
292 port {
293 hdmi_con_out: endpoint {
294 remote-endpoint = <&adv7511_out>;
295 };
296 };
297 };
298
299 x2_clk: x2-clock {
300 compatible = "fixed-clock";
301 #clock-cells = <0>;
302 clock-frequency = <74250000>;
303 };
304
305 x13_clk: x13-clock {
306 compatible = "fixed-clock";
307 #clock-cells = <0>;
308 clock-frequency = <148500000>;
309 };
310
311 gpioi2c1: i2c-9 {
312 #address-cells = <1>;
313 #size-cells = <0>;
314 compatible = "i2c-gpio";
315 status = "disabled";
Marek Vasut252c8b42018-06-06 19:58:17 +0200316 scl-gpios = <&gpio7 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
317 sda-gpios = <&gpio7 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
318 i2c-gpio,delay-us = <5>;
319 };
320
321 gpioi2c2: i2c-10 {
322 #address-cells = <1>;
323 #size-cells = <0>;
324 compatible = "i2c-gpio";
325 status = "disabled";
326 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
327 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
328 i2c-gpio,delay-us = <5>;
329 };
330
331 gpioi2c4: i2c-11 {
332 #address-cells = <1>;
333 #size-cells = <0>;
334 compatible = "i2c-gpio";
335 status = "disabled";
336 scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
337 sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Marek Vasutedd15fc2018-01-07 20:17:39 +0100338 i2c-gpio,delay-us = <5>;
339 };
340
341 /*
342 * I2C1 is routed to EXIO connector B, pins 64 (SCL) + 66 (SDA).
343 * A fallback to GPIO is provided.
344 */
345 i2cexio1: i2c-12 {
346 compatible = "i2c-demux-pinctrl";
347 i2c-parent = <&i2c1>, <&gpioi2c1>;
348 i2c-bus-name = "i2c-exio1";
349 #address-cells = <1>;
350 #size-cells = <0>;
351 };
Marek Vasut252c8b42018-06-06 19:58:17 +0200352
353 /*
354 * A fallback to GPIO is provided for I2C2.
355 */
356 i2chdmi: i2c-13 {
357 compatible = "i2c-demux-pinctrl";
358 i2c-parent = <&i2c2>, <&gpioi2c2>;
359 i2c-bus-name = "i2c-hdmi";
360 #address-cells = <1>;
361 #size-cells = <0>;
362
363 ak4643: codec@12 {
364 compatible = "asahi-kasei,ak4643";
365 #sound-dai-cells = <0>;
366 reg = <0x12>;
367 };
368
369 composite-in@20 {
370 compatible = "adi,adv7180";
371 reg = <0x20>;
372 remote = <&vin1>;
373
374 port {
375 adv7180: endpoint {
376 bus-width = <8>;
377 remote-endpoint = <&vin1ep>;
378 };
379 };
380 };
381
382 hdmi@39 {
383 compatible = "adi,adv7511w";
384 reg = <0x39>;
385 interrupt-parent = <&gpio3>;
386 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
387 clocks = <&cec_clock>;
388 clock-names = "cec";
389
390 adi,input-depth = <8>;
391 adi,input-colorspace = "rgb";
392 adi,input-clock = "1x";
393 adi,input-style = <1>;
394 adi,input-justification = "evenly";
395
396 ports {
397 #address-cells = <1>;
398 #size-cells = <0>;
399
400 port@0 {
401 reg = <0>;
402 adv7511_in: endpoint {
403 remote-endpoint = <&du_out_rgb>;
404 };
405 };
406
407 port@1 {
408 reg = <1>;
409 adv7511_out: endpoint {
410 remote-endpoint = <&hdmi_con_out>;
411 };
412 };
413 };
414 };
415
416 hdmi-in@4c {
417 compatible = "adi,adv7612";
418 reg = <0x4c>;
419 interrupt-parent = <&gpio4>;
420 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
421 default-input = <0>;
422
423 ports {
424 #address-cells = <1>;
425 #size-cells = <0>;
426
427 port@0 {
428 reg = <0>;
429 adv7612_in: endpoint {
430 remote-endpoint = <&hdmi_con_in>;
431 };
432 };
433
434 port@2 {
435 reg = <2>;
436 adv7612_out: endpoint {
437 remote-endpoint = <&vin0ep2>;
438 };
439 };
440 };
441 };
442
443 eeprom@50 {
444 compatible = "renesas,r1ex24002", "atmel,24c02";
445 reg = <0x50>;
446 pagesize = <16>;
447 };
448 };
449
450 /*
451 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
452 * A fallback to GPIO is provided.
453 */
454 i2cexio4: i2c-14 {
455 compatible = "i2c-demux-pinctrl";
456 i2c-parent = <&i2c4>, <&gpioi2c4>;
457 i2c-bus-name = "i2c-exio4";
458 #address-cells = <1>;
459 #size-cells = <0>;
460 };
Marek Vasutedd15fc2018-01-07 20:17:39 +0100461};
462
463&du {
464 pinctrl-0 = <&du_pins>;
465 pinctrl-names = "default";
466 status = "okay";
467
Marek Vasut252c8b42018-06-06 19:58:17 +0200468 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
Marek Vasutedd15fc2018-01-07 20:17:39 +0100469 <&x13_clk>, <&x2_clk>;
Marek Vasut252c8b42018-06-06 19:58:17 +0200470 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
Marek Vasutedd15fc2018-01-07 20:17:39 +0100471
472 ports {
473 port@0 {
474 endpoint {
475 remote-endpoint = <&adv7511_in>;
476 };
477 };
Marek Vasut252c8b42018-06-06 19:58:17 +0200478 };
479};
480
481&lvds0 {
Marek Vasut252c8b42018-06-06 19:58:17 +0200482 ports {
Marek Vasutedd15fc2018-01-07 20:17:39 +0100483 port@1 {
484 lvds_connector: endpoint {
485 };
486 };
487 };
488};
489
490&extal_clk {
491 clock-frequency = <20000000>;
492};
493
494&pfc {
495 pinctrl-0 = <&scif_clk_pins>;
496 pinctrl-names = "default";
497
498 i2c1_pins: i2c1 {
499 groups = "i2c1";
500 function = "i2c1";
501 };
502
503 i2c2_pins: i2c2 {
504 groups = "i2c2";
505 function = "i2c2";
506 };
507
Marek Vasut252c8b42018-06-06 19:58:17 +0200508 i2c4_pins: i2c4 {
509 groups = "i2c4_c";
510 function = "i2c4";
511 };
512
Marek Vasutedd15fc2018-01-07 20:17:39 +0100513 du_pins: du {
514 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
515 function = "du";
516 };
517
518 scif0_pins: scif0 {
519 groups = "scif0_data_d";
520 function = "scif0";
521 };
522
523 scif1_pins: scif1 {
524 groups = "scif1_data_d";
525 function = "scif1";
526 };
527
528 scif_clk_pins: scif_clk {
529 groups = "scif_clk";
530 function = "scif_clk";
531 };
532
533 ether_pins: ether {
534 groups = "eth_link", "eth_mdio", "eth_rmii";
535 function = "eth";
536 };
537
538 phy1_pins: phy1 {
539 groups = "intc_irq0";
540 function = "intc";
541 };
542
543 sdhi0_pins: sd0 {
544 groups = "sdhi0_data4", "sdhi0_ctrl";
545 function = "sdhi0";
546 power-source = <3300>;
547 };
548
549 sdhi0_pins_uhs: sd0_uhs {
550 groups = "sdhi0_data4", "sdhi0_ctrl";
551 function = "sdhi0";
552 power-source = <1800>;
553 };
554
555 sdhi1_pins: sd1 {
556 groups = "sdhi1_data4", "sdhi1_ctrl";
557 function = "sdhi1";
558 power-source = <3300>;
559 };
560
561 sdhi1_pins_uhs: sd1_uhs {
562 groups = "sdhi1_data4", "sdhi1_ctrl";
563 function = "sdhi1";
564 power-source = <1800>;
565 };
566
567 sdhi2_pins: sd2 {
568 groups = "sdhi2_data4", "sdhi2_ctrl";
569 function = "sdhi2";
570 power-source = <3300>;
571 };
572
573 sdhi2_pins_uhs: sd2_uhs {
574 groups = "sdhi2_data4", "sdhi2_ctrl";
575 function = "sdhi2";
576 power-source = <1800>;
577 };
578
579 qspi_pins: qspi {
580 groups = "qspi_ctrl", "qspi_data4";
581 function = "qspi";
582 };
583
584 msiof0_pins: msiof0 {
585 groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
586 "msiof0_tx";
587 function = "msiof0";
588 };
589
590 usb0_pins: usb0 {
591 groups = "usb0";
592 function = "usb0";
593 };
594
595 usb1_pins: usb1 {
596 groups = "usb1";
597 function = "usb1";
598 };
599
600 vin0_pins: vin0 {
601 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
602 function = "vin0";
603 };
604
605 vin1_pins: vin1 {
606 groups = "vin1_data8", "vin1_clk";
607 function = "vin1";
608 };
609
610 sound_pins: sound {
611 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
612 function = "ssi";
613 };
614
615 sound_clk_pins: sound_clk {
616 groups = "audio_clk_a";
617 function = "audio_clk";
618 };
619};
620
621&ether {
622 pinctrl-0 = <&ether_pins &phy1_pins>;
623 pinctrl-names = "default";
624
625 phy-handle = <&phy1>;
626 renesas,ether-link-active-low;
627 status = "okay";
628
629 phy1: ethernet-phy@1 {
630 reg = <1>;
631 interrupt-parent = <&irqc0>;
632 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
633 micrel,led-mode = <1>;
634 };
635};
636
637&cmt0 {
638 status = "okay";
639};
640
Marek Vasut3b255532018-12-03 21:39:48 +0100641&rwdt {
642 timeout-sec = <60>;
643 status = "okay";
644};
645
Marek Vasutedd15fc2018-01-07 20:17:39 +0100646&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>;
Marek Vasut252c8b42018-06-06 19:58:17 +0200768 pinctrl-names = "i2c-hdmi";
Marek Vasutedd15fc2018-01-07 20:17:39 +0100769
Marek Vasutedd15fc2018-01-07 20:17:39 +0100770 clock-frequency = <100000>;
Marek Vasut252c8b42018-06-06 19:58:17 +0200771};
Marek Vasutedd15fc2018-01-07 20:17:39 +0100772
Marek Vasut252c8b42018-06-06 19:58:17 +0200773&i2c4 {
774 pinctrl-0 = <&i2c4_pins>;
775 pinctrl-names = "i2c-exio4";
Marek Vasutedd15fc2018-01-07 20:17:39 +0100776};
777
778&i2c6 {
779 status = "okay";
780 clock-frequency = <100000>;
781
782 pmic@58 {
783 compatible = "dlg,da9063";
784 reg = <0x58>;
785 interrupt-parent = <&irqc0>;
786 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
787 interrupt-controller;
788
789 rtc {
790 compatible = "dlg,da9063-rtc";
791 };
792
793 wdt {
794 compatible = "dlg,da9063-watchdog";
795 };
796 };
797
798 vdd_dvfs: regulator@68 {
799 compatible = "dlg,da9210";
800 reg = <0x68>;
801 interrupt-parent = <&irqc0>;
802 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
803
804 regulator-min-microvolt = <1000000>;
805 regulator-max-microvolt = <1000000>;
806 regulator-boot-on;
807 regulator-always-on;
808 };
809};
810
811&pci0 {
812 status = "okay";
813 pinctrl-0 = <&usb0_pins>;
814 pinctrl-names = "default";
815};
816
817&pci1 {
818 status = "okay";
819 pinctrl-0 = <&usb1_pins>;
820 pinctrl-names = "default";
821};
822
823&hsusb {
824 status = "okay";
825 pinctrl-0 = <&usb0_pins>;
826 pinctrl-names = "default";
827 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
828};
829
830&usbphy {
831 status = "okay";
832};
833
834&pcie_bus_clk {
835 clock-frequency = <100000000>;
836};
837
838&pciec {
839 status = "okay";
840};
841
842&cpu0 {
843 cpu0-supply = <&vdd_dvfs>;
844};
845
846/* HDMI video input */
847&vin0 {
848 status = "okay";
849 pinctrl-0 = <&vin0_pins>;
850 pinctrl-names = "default";
851
852 port {
Marek Vasutedd15fc2018-01-07 20:17:39 +0100853 vin0ep2: endpoint {
854 remote-endpoint = <&adv7612_out>;
855 bus-width = <24>;
856 hsync-active = <0>;
857 vsync-active = <0>;
858 pclk-sample = <1>;
859 data-active = <1>;
860 };
861 };
862};
863
864/* composite video input */
865&vin1 {
866 status = "okay";
867 pinctrl-0 = <&vin1_pins>;
868 pinctrl-names = "default";
869
870 port {
Marek Vasutedd15fc2018-01-07 20:17:39 +0100871 vin1ep: endpoint {
872 remote-endpoint = <&adv7180>;
873 bus-width = <8>;
874 };
875 };
876};
877
878&rcar_sound {
879 pinctrl-0 = <&sound_pins &sound_clk_pins>;
880 pinctrl-names = "default";
881
882 /* Single DAI */
883 #sound-dai-cells = <0>;
884
885 status = "okay";
886
887 rcar_sound,dai {
888 dai0 {
889 playback = <&ssi0 &src2 &dvc0>;
890 capture = <&ssi1 &src3 &dvc1>;
891 };
892 };
893};
894
895&ssi1 {
896 shared-pin;
897};