blob: 097fd9317c6e2966eded5dfbe605651271e3ee3f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Marek Vasut53485762018-01-07 20:17:23 +01002/*
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
Marek Vasut53485762018-01-07 20:17:23 +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 "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;
Marek Vasut047b1942018-06-06 19:58:17 +020051 i2c9 = &gpioi2c2;
Marek Vasut53485762018-01-07 20:17:23 +010052 i2c10 = &i2cexio0;
53 i2c11 = &i2cexio1;
Marek Vasut047b1942018-06-06 19:58:17 +020054 i2c12 = &i2chdmi;
55 i2c13 = &i2cpwr;
Marek Vasut53485762018-01-07 20:17:23 +010056 };
57
58 chosen {
Marek Vasutcd82e692020-04-04 15:21:26 +020059 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
Marek Vasut53485762018-01-07 20:17:23 +010060 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>;
Marek Vasutcd82e692020-04-04 15:21:26 +0200153 states = <3300000 1>, <1800000 0>;
Marek Vasut53485762018-01-07 20:17:23 +0100154 };
155
156 vcc_sdhi2: regulator-vcc-sdhi2 {
157 compatible = "regulator-fixed";
158
159 regulator-name = "SDHI2 Vcc";
160 regulator-min-microvolt = <3300000>;
161 regulator-max-microvolt = <3300000>;
162
163 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
164 enable-active-high;
165 };
166
167 vccq_sdhi2: regulator-vccq-sdhi2 {
168 compatible = "regulator-gpio";
169
170 regulator-name = "SDHI2 VccQ";
171 regulator-min-microvolt = <1800000>;
172 regulator-max-microvolt = <3300000>;
173
174 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
175 gpios-states = <1>;
Marek Vasutcd82e692020-04-04 15:21:26 +0200176 states = <3300000 1>, <1800000 0>;
Marek Vasut53485762018-01-07 20:17:23 +0100177 };
178
179 audio_clock: audio_clock {
180 compatible = "fixed-clock";
181 #clock-cells = <0>;
182 clock-frequency = <11289600>;
183 };
184
185 rsnd_ak4643: sound {
186 compatible = "simple-audio-card";
187
188 simple-audio-card,format = "left_j";
189 simple-audio-card,bitclock-master = <&sndcodec>;
190 simple-audio-card,frame-master = <&sndcodec>;
191
192 sndcpu: simple-audio-card,cpu {
193 sound-dai = <&rcar_sound>;
194 };
195
196 sndcodec: simple-audio-card,codec {
197 sound-dai = <&ak4643>;
198 clocks = <&audio_clock>;
199 };
200 };
201
202 vga-encoder {
203 compatible = "adi,adv7123";
204
205 ports {
206 #address-cells = <1>;
207 #size-cells = <0>;
208
209 port@0 {
210 reg = <0>;
211 adv7123_in: endpoint {
212 remote-endpoint = <&du_out_rgb>;
213 };
214 };
215 port@1 {
216 reg = <1>;
217 adv7123_out: endpoint {
218 remote-endpoint = <&vga_in>;
219 };
220 };
221 };
222 };
223
224 vga {
225 compatible = "vga-connector";
226
227 port {
228 vga_in: endpoint {
229 remote-endpoint = <&adv7123_out>;
230 };
231 };
232 };
233
234 hdmi-in {
235 compatible = "hdmi-connector";
236 type = "a";
237
238 port {
239 hdmi_con_in: endpoint {
240 remote-endpoint = <&adv7612_in>;
241 };
242 };
243 };
244
Marek Vasut047b1942018-06-06 19:58:17 +0200245 cec_clock: cec-clock {
246 compatible = "fixed-clock";
247 #clock-cells = <0>;
248 clock-frequency = <12000000>;
249 };
250
Marek Vasut53485762018-01-07 20:17:23 +0100251 hdmi-out {
252 compatible = "hdmi-connector";
253 type = "a";
254
255 port {
256 hdmi_con_out: endpoint {
257 remote-endpoint = <&adv7511_out>;
258 };
259 };
260 };
261
262 x2_clk: x2-clock {
263 compatible = "fixed-clock";
264 #clock-cells = <0>;
265 clock-frequency = <148500000>;
266 };
267
268 x13_clk: x13-clock {
269 compatible = "fixed-clock";
270 #clock-cells = <0>;
271 clock-frequency = <148500000>;
272 };
273
274 gpioi2c1: i2c-8 {
275 #address-cells = <1>;
276 #size-cells = <0>;
277 compatible = "i2c-gpio";
278 status = "disabled";
Marek Vasut047b1942018-06-06 19:58:17 +0200279 scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
280 sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Marek Vasut53485762018-01-07 20:17:23 +0100281 i2c-gpio,delay-us = <5>;
282 };
283
Marek Vasut047b1942018-06-06 19:58:17 +0200284 gpioi2c2: i2c-9 {
285 #address-cells = <1>;
286 #size-cells = <0>;
287 compatible = "i2c-gpio";
288 status = "disabled";
289 scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
290 sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
291 i2c-gpio,delay-us = <5>;
292 };
293
Marek Vasut53485762018-01-07 20:17:23 +0100294 /*
295 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
296 * We use the I2C demuxer, so the desired IP core can be selected at runtime
297 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
298 * Note: For testing the I2C slave feature, it is convenient to connect this
299 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
300 * instantiate the slave device at runtime according to the documentation.
301 * You can then communicate with the slave via IIC3.
302 *
303 * IIC0/I2C0 does not appear to support fallback to GPIO.
304 */
305 i2cexio0: i2c-10 {
306 compatible = "i2c-demux-pinctrl";
307 i2c-parent = <&iic0>, <&i2c0>;
308 i2c-bus-name = "i2c-exio0";
309 #address-cells = <1>;
310 #size-cells = <0>;
311 };
312
313 /*
314 * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
315 * This is similar to the arangement described for i2cexio0 (above)
316 * with a fallback to GPIO also provided.
317 */
318 i2cexio1: i2c-11 {
319 compatible = "i2c-demux-pinctrl";
320 i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
321 i2c-bus-name = "i2c-exio1";
322 #address-cells = <1>;
323 #size-cells = <0>;
Marek Vasut047b1942018-06-06 19:58:17 +0200324 };
325
Marek Vasutcd82e692020-04-04 15:21:26 +0200326 /*
327 * IIC2 and I2C2 may be switched using pinmux.
328 * A fallback to GPIO is also provided.
329 */
Marek Vasut047b1942018-06-06 19:58:17 +0200330 i2chdmi: i2c-12 {
331 compatible = "i2c-demux-pinctrl";
332 i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>;
333 i2c-bus-name = "i2c-hdmi";
334 #address-cells = <1>;
335 #size-cells = <0>;
336
337 ak4643: codec@12 {
338 compatible = "asahi-kasei,ak4643";
339 #sound-dai-cells = <0>;
340 reg = <0x12>;
341 };
342
343 composite-in@20 {
344 compatible = "adi,adv7180";
345 reg = <0x20>;
346 remote = <&vin1>;
347
348 port {
349 adv7180: endpoint {
350 bus-width = <8>;
351 remote-endpoint = <&vin1ep0>;
352 };
353 };
354 };
355
356 hdmi@39 {
357 compatible = "adi,adv7511w";
358 reg = <0x39>;
359 interrupt-parent = <&gpio1>;
360 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
361 clocks = <&cec_clock>;
362 clock-names = "cec";
363
364 adi,input-depth = <8>;
365 adi,input-colorspace = "rgb";
366 adi,input-clock = "1x";
367 adi,input-style = <1>;
368 adi,input-justification = "evenly";
369
370 ports {
371 #address-cells = <1>;
372 #size-cells = <0>;
373
374 port@0 {
375 reg = <0>;
376 adv7511_in: endpoint {
377 remote-endpoint = <&lvds0_out>;
378 };
379 };
380
381 port@1 {
382 reg = <1>;
383 adv7511_out: endpoint {
384 remote-endpoint = <&hdmi_con_out>;
385 };
386 };
387 };
388 };
389
390 hdmi-in@4c {
391 compatible = "adi,adv7612";
392 reg = <0x4c>;
393 interrupt-parent = <&gpio1>;
394 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
395 default-input = <0>;
396
397 ports {
398 #address-cells = <1>;
399 #size-cells = <0>;
400
401 port@0 {
402 reg = <0>;
403 adv7612_in: endpoint {
404 remote-endpoint = <&hdmi_con_in>;
405 };
406 };
407
408 port@2 {
409 reg = <2>;
410 adv7612_out: endpoint {
411 remote-endpoint = <&vin0ep2>;
412 };
413 };
414 };
415 };
416 };
417
418 /*
419 * IIC3 and I2C3 may be switched using pinmux.
420 * IIC3/I2C3 does not appear to support fallback to GPIO.
421 */
422 i2cpwr: i2c-13 {
423 compatible = "i2c-demux-pinctrl";
Marek Vasutcd82e692020-04-04 15:21:26 +0200424 pinctrl-names = "default";
425 pinctrl-0 = <&pmic_irq_pins>;
Marek Vasut047b1942018-06-06 19:58:17 +0200426 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 };
Marek Vasut53485762018-01-07 20:17:23 +0100458 };
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>,
Marek Vasut53485762018-01-07 20:17:23 +0100467 <&x13_clk>, <&x2_clk>;
Marek Vasut047b1942018-06-06 19:58:17 +0200468 clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1";
Marek Vasut53485762018-01-07 20:17:23 +0100469
470 ports {
471 port@0 {
472 endpoint {
473 remote-endpoint = <&adv7123_in>;
474 };
475 };
Marek Vasut047b1942018-06-06 19:58:17 +0200476 };
477};
478
479&lvds0 {
480 status = "okay";
481
482 ports {
Marek Vasut53485762018-01-07 20:17:23 +0100483 port@1 {
484 endpoint {
485 remote-endpoint = <&adv7511_in>;
486 };
487 };
Marek Vasut047b1942018-06-06 19:58:17 +0200488 };
489};
490
491&lvds1 {
Marek Vasut047b1942018-06-06 19:58:17 +0200492 ports {
493 port@1 {
Marek Vasut53485762018-01-07 20:17:23 +0100494 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
Marek Vasut047b1942018-06-06 19:58:17 +0200598 i2c2_pins: i2c2 {
599 groups = "i2c2";
600 function = "i2c2";
601 };
602
Marek Vasut53485762018-01-07 20:17:23 +0100603 iic2_pins: iic2 {
604 groups = "iic2";
605 function = "iic2";
606 };
607
Marek Vasut047b1942018-06-06 19:58:17 +0200608 i2c3_pins: i2c3 {
609 groups = "i2c3";
610 function = "i2c3";
611 };
612
Marek Vasut53485762018-01-07 20:17:23 +0100613 iic3_pins: iic3 {
614 groups = "iic3";
615 function = "iic3";
616 };
617
Marek Vasutcd82e692020-04-04 15:21:26 +0200618 pmic_irq_pins: pmicirq {
619 groups = "intc_irq2";
620 function = "intc";
621 };
622
Marek Vasut53485762018-01-07 20:17:23 +0100623 hsusb_pins: hsusb {
624 groups = "usb0_ovc_vbus";
625 function = "usb0";
626 };
627
628 usb0_pins: usb0 {
629 groups = "usb0";
630 function = "usb0";
631 };
632
633 usb1_pins: usb1 {
634 groups = "usb1";
635 function = "usb1";
636 };
637
638 usb2_pins: usb2 {
639 groups = "usb2";
640 function = "usb2";
641 };
642
643 vin0_pins: vin0 {
644 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
645 function = "vin0";
646 };
647
648 vin1_pins: vin1 {
649 groups = "vin1_data8", "vin1_clk";
650 function = "vin1";
651 };
652
653 sound_pins: sound {
654 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
655 function = "ssi";
656 };
657
658 sound_clk_pins: sound_clk {
659 groups = "audio_clk_a";
660 function = "audio_clk";
661 };
662};
663
664&ether {
665 pinctrl-0 = <&ether_pins &phy1_pins>;
666 pinctrl-names = "default";
667
668 phy-handle = <&phy1>;
669 renesas,ether-link-active-low;
670 status = "okay";
671
672 phy1: ethernet-phy@1 {
673 reg = <1>;
674 interrupt-parent = <&irqc0>;
675 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
676 micrel,led-mode = <1>;
677 };
678};
679
680&cmt0 {
681 status = "okay";
682};
683
684&mmcif1 {
685 pinctrl-0 = <&mmc1_pins>;
686 pinctrl-names = "default";
687
688 vmmc-supply = <&fixedregulator3v3>;
689 bus-width = <8>;
690 non-removable;
691 status = "okay";
692};
693
694&sata1 {
695 status = "okay";
696};
697
698&qspi {
699 pinctrl-0 = <&qspi_pins>;
700 pinctrl-names = "default";
701
702 status = "okay";
703
704 flash: flash@0 {
705 compatible = "spansion,s25fl512s", "jedec,spi-nor";
706 reg = <0>;
707 spi-max-frequency = <30000000>;
708 spi-tx-bus-width = <4>;
709 spi-rx-bus-width = <4>;
710 spi-cpha;
711 spi-cpol;
712 m25p,fast-read;
713
714 partitions {
715 compatible = "fixed-partitions";
716 #address-cells = <1>;
717 #size-cells = <1>;
718
719 partition@0 {
720 label = "loader";
721 reg = <0x00000000 0x00040000>;
722 read-only;
723 };
724 partition@40000 {
725 label = "user";
726 reg = <0x00040000 0x00400000>;
727 read-only;
728 };
729 partition@440000 {
730 label = "flash";
731 reg = <0x00440000 0x03bc0000>;
732 };
733 };
734 };
735};
736
737&scif0 {
738 pinctrl-0 = <&scif0_pins>;
739 pinctrl-names = "default";
740
741 status = "okay";
742};
743
744&scifa1 {
745 pinctrl-0 = <&scifa1_pins>;
746 pinctrl-names = "default";
747
748 status = "okay";
749};
750
751&scif_clk {
752 clock-frequency = <14745600>;
753};
754
755&msiof1 {
756 pinctrl-0 = <&msiof1_pins>;
757 pinctrl-names = "default";
758
759 status = "okay";
760
761 pmic: pmic@0 {
762 compatible = "renesas,r2a11302ft";
763 reg = <0>;
764 spi-max-frequency = <6000000>;
765 spi-cpol;
766 spi-cpha;
767 };
768};
769
770&sdhi0 {
771 pinctrl-0 = <&sdhi0_pins>;
772 pinctrl-1 = <&sdhi0_pins_uhs>;
773 pinctrl-names = "default", "state_uhs";
774
775 vmmc-supply = <&vcc_sdhi0>;
776 vqmmc-supply = <&vccq_sdhi0>;
777 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
778 sd-uhs-sdr50;
779 sd-uhs-sdr104;
780 status = "okay";
781};
782
783&sdhi2 {
784 pinctrl-0 = <&sdhi2_pins>;
785 pinctrl-1 = <&sdhi2_pins_uhs>;
786 pinctrl-names = "default", "state_uhs";
787
788 vmmc-supply = <&vcc_sdhi2>;
789 vqmmc-supply = <&vccq_sdhi2>;
790 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
791 sd-uhs-sdr50;
792 status = "okay";
793};
794
795&cpu0 {
796 cpu0-supply = <&vdd_dvfs>;
797};
798
799&i2c0 {
800 pinctrl-0 = <&i2c0_pins>;
801 pinctrl-names = "i2c-exio0";
802};
803
804&iic0 {
805 pinctrl-0 = <&iic0_pins>;
806 pinctrl-names = "i2c-exio0";
807};
808
809&i2c1 {
810 pinctrl-0 = <&i2c1_pins>;
811 pinctrl-names = "i2c-exio1";
812};
813
814&iic1 {
815 pinctrl-0 = <&iic1_pins>;
816 pinctrl-names = "i2c-exio1";
817};
818
Marek Vasut047b1942018-06-06 19:58:17 +0200819&i2c2 {
820 pinctrl-0 = <&i2c2_pins>;
821 pinctrl-names = "i2c-hdmi";
Marek Vasut53485762018-01-07 20:17:23 +0100822
823 clock-frequency = <100000>;
Marek Vasut047b1942018-06-06 19:58:17 +0200824};
Marek Vasut53485762018-01-07 20:17:23 +0100825
Marek Vasut047b1942018-06-06 19:58:17 +0200826&iic2 {
827 pinctrl-0 = <&iic2_pins>;
828 pinctrl-names = "i2c-hdmi";
Marek Vasut53485762018-01-07 20:17:23 +0100829
Marek Vasut047b1942018-06-06 19:58:17 +0200830 clock-frequency = <100000>;
831};
Marek Vasut53485762018-01-07 20:17:23 +0100832
Marek Vasut047b1942018-06-06 19:58:17 +0200833&i2c3 {
834 pinctrl-0 = <&i2c3_pins>;
835 pinctrl-names = "i2c-pwr";
Marek Vasut53485762018-01-07 20:17:23 +0100836};
837
Marek Vasut047b1942018-06-06 19:58:17 +0200838&iic3 {
Marek Vasut53485762018-01-07 20:17:23 +0100839 pinctrl-0 = <&iic3_pins>;
Marek Vasut047b1942018-06-06 19:58:17 +0200840 pinctrl-names = "i2c-pwr";
Marek Vasut53485762018-01-07 20:17:23 +0100841};
842
843&pci0 {
844 status = "okay";
845 pinctrl-0 = <&usb0_pins>;
846 pinctrl-names = "default";
847};
848
849&pci1 {
850 status = "okay";
851 pinctrl-0 = <&usb1_pins>;
852 pinctrl-names = "default";
853};
854
855&xhci {
856 status = "okay";
857 pinctrl-0 = <&usb2_pins>;
858 pinctrl-names = "default";
859};
860
861&pci2 {
862 status = "okay";
863 pinctrl-0 = <&usb2_pins>;
864 pinctrl-names = "default";
865};
866
867&hsusb {
868 status = "okay";
869 pinctrl-0 = <&hsusb_pins>;
870 pinctrl-names = "default";
871 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
872};
873
874&usbphy {
875 status = "okay";
876};
877
878/* HDMI video input */
879&vin0 {
880 pinctrl-0 = <&vin0_pins>;
881 pinctrl-names = "default";
882
883 status = "okay";
884
885 port {
886 vin0ep2: endpoint {
887 remote-endpoint = <&adv7612_out>;
888 bus-width = <24>;
889 hsync-active = <0>;
890 vsync-active = <0>;
891 pclk-sample = <1>;
892 data-active = <1>;
893 };
894 };
895};
896
897/* composite video input */
898&vin1 {
899 pinctrl-0 = <&vin1_pins>;
900 pinctrl-names = "default";
901
902 status = "okay";
903
904 port {
Marek Vasut53485762018-01-07 20:17:23 +0100905 vin1ep0: endpoint {
906 remote-endpoint = <&adv7180>;
907 bus-width = <8>;
908 };
909 };
910};
911
912&rcar_sound {
913 pinctrl-0 = <&sound_pins &sound_clk_pins>;
914 pinctrl-names = "default";
915
916 /* Single DAI */
917 #sound-dai-cells = <0>;
918
919 status = "okay";
920
921 rcar_sound,dai {
922 dai0 {
923 playback = <&ssi0 &src2 &dvc0>;
924 capture = <&ssi1 &src3 &dvc1>;
925 };
926 };
927};
928
Marek Vasutcac46352018-12-03 21:39:48 +0100929&rwdt {
930 timeout-sec = <60>;
931 status = "okay";
932};
933
Marek Vasut53485762018-01-07 20:17:23 +0100934&ssi1 {
935 shared-pin;
936};