Merge tag 'soc-drivers-6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-block.git] / arch / arm / boot / dts / renesas / r8a7790-lager.dts
CommitLineData
cdbfaf64 1// SPDX-License-Identifier: GPL-2.0
3cc828fd
MD
2/*
3 * Device Tree Source for the Lager board
4 *
da4ea951
SS
5 * Copyright (C) 2013-2014 Renesas Solutions Corp.
6 * Copyright (C) 2014 Cogent Embedded, Inc.
880cb570 7 * Copyright (C) 2015-2016 Renesas Electronics Corporation
3cc828fd
MD
8 */
9
8ea7a44a
KM
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
e110c541
KM
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
bd2e4a62
KM
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
8ea7a44a
KM
36 */
37
3cc828fd 38/dts-v1/;
31c46cbf 39#include "r8a7790.dtsi"
39fa511b 40#include <dt-bindings/gpio/gpio.h>
f7dcd382 41#include <dt-bindings/input/input.h>
3cc828fd
MD
42
43/ {
44 model = "Lager";
45 compatible = "renesas,lager", "renesas,r8a7790";
46
4e9c4877 47 aliases {
430d7bad 48 serial0 = &scif0;
78c11ec2 49 serial1 = &scifa1;
b2f15ca6 50 i2c8 = &gpioi2c1;
4e65e1b6 51 i2c9 = &gpioi2c2;
1e26fcf3 52 i2c10 = &i2cexio0;
b2f15ca6 53 i2c11 = &i2cexio1;
4e65e1b6 54 i2c12 = &i2chdmi;
e6081b21 55 i2c13 = &i2cpwr;
da926e81
YS
56 mmc0 = &mmcif1;
57 mmc1 = &sdhi0;
58 mmc2 = &sdhi2;
4e9c4877
LP
59 };
60
3cc828fd 61 chosen {
07d2bf96 62 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
57d19f81 63 stdout-path = "serial0:115200n8";
3cc828fd
MD
64 };
65
66 memory@40000000 {
67 device_type = "memory";
7b16c61a 68 reg = <0 0x40000000 0 0x40000000>;
3cc828fd
MD
69 };
70
126f998e 71 memory@140000000 {
62bc32a2 72 device_type = "memory";
7b16c61a 73 reg = <1 0x40000000 0 0xc0000000>;
62bc32a2
MD
74 };
75
54caf681 76 keyboard {
f7dcd382
MD
77 compatible = "gpio-keys";
78
28cce954
GU
79 pinctrl-0 = <&keyboard_pins>;
80 pinctrl-names = "default";
81
affe802c 82 one {
f7dcd382
MD
83 linux,code = <KEY_1>;
84 label = "SW2-1";
0cc16889 85 wakeup-source;
f7dcd382
MD
86 debounce-interval = <20>;
87 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
88 };
affe802c 89 two {
f7dcd382
MD
90 linux,code = <KEY_2>;
91 label = "SW2-2";
0cc16889 92 wakeup-source;
f7dcd382
MD
93 debounce-interval = <20>;
94 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
95 };
affe802c 96 three {
f7dcd382
MD
97 linux,code = <KEY_3>;
98 label = "SW2-3";
0cc16889 99 wakeup-source;
f7dcd382
MD
100 debounce-interval = <20>;
101 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
102 };
affe802c 103 four {
f7dcd382
MD
104 linux,code = <KEY_4>;
105 label = "SW2-4";
0cc16889 106 wakeup-source;
f7dcd382
MD
107 debounce-interval = <20>;
108 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
109 };
110 };
111
39fa511b
LP
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
cc75154c
GU
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
affe802c 134 fixedregulator3v3: regulator-3v3 {
39fa511b
LP
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 };
c6119944 142
affe802c 143 vcc_sdhi0: regulator-vcc-sdhi0 {
c6119944
KM
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
affe802c 154 vccq_sdhi0: regulator-vccq-sdhi0 {
c6119944
KM
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>;
8a481af1 163 states = <3300000 1>, <1800000 0>;
c6119944
KM
164 };
165
affe802c 166 vcc_sdhi2: regulator-vcc-sdhi2 {
c6119944
KM
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
affe802c 177 vccq_sdhi2: regulator-vccq-sdhi2 {
c6119944
KM
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>;
8a481af1 186 states = <3300000 1>, <1800000 0>;
c6119944 187 };
3edd18ff 188
a5bad2c7 189 audio_clock: audio_clock {
6bc651af
KM
190 compatible = "fixed-clock";
191 #clock-cells = <0>;
192 clock-frequency = <11289600>;
6bc651af
KM
193 };
194
30be0ba5 195 rsnd_ak4643: sound {
8ea7a44a
KM
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>;
6bc651af 208 clocks = <&audio_clock>;
8ea7a44a
KM
209 };
210 };
211
3edd18ff
LP
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 };
fd25cdd1 243
56548d0c
WT
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
fe61513f
GU
255 cec_clock: cec-clock {
256 compatible = "fixed-clock";
257 #clock-cells = <0>;
258 clock-frequency = <12000000>;
259 };
260
fd25cdd1
LP
261 hdmi-out {
262 compatible = "hdmi-connector";
263 type = "a";
264
265 port {
56548d0c 266 hdmi_con_out: endpoint {
fd25cdd1
LP
267 remote-endpoint = <&adv7511_out>;
268 };
269 };
270 };
26c00ab4
LP
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 };
880cb570 283
b2f15ca6
SH
284 gpioi2c1: i2c-8 {
285 #address-cells = <1>;
286 #size-cells = <0>;
287 compatible = "i2c-gpio";
288 status = "disabled";
e99185b2 289 scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
4e65e1b6
WS
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)>;
b2f15ca6
SH
301 i2c-gpio,delay-us = <5>;
302 };
303
880cb570
WS
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.
1e26fcf3
SH
312 *
313 * IIC0/I2C0 does not appear to support fallback to GPIO.
880cb570 314 */
a84e0556 315 i2cexio0: i2c-mux1 {
880cb570
WS
316 compatible = "i2c-demux-pinctrl";
317 i2c-parent = <&iic0>, <&i2c0>;
1e26fcf3 318 i2c-bus-name = "i2c-exio0";
880cb570
WS
319 #address-cells = <1>;
320 #size-cells = <0>;
321 };
b2f15ca6
SH
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 */
a84e0556 328 i2cexio1: i2c-mux2 {
b2f15ca6
SH
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 };
4e65e1b6 335
9d6f4d4d
GU
336 /*
337 * IIC2 and I2C2 may be switched using pinmux.
338 * A fallback to GPIO is also provided.
339 */
a84e0556 340 i2chdmi: i2c-mux3 {
4e65e1b6
WS
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>;
4e65e1b6
WS
356
357 port {
358 adv7180: endpoint {
359 bus-width = <8>;
360 remote-endpoint = <&vin1ep0>;
361 };
362 };
363 };
364
4e65e1b6
WS
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
cc75154c
GU
373 avdd-supply = <&fixedregulator1v8>;
374 dvdd-supply = <&fixedregulator1v8>;
375 pvdd-supply = <&fixedregulator1v8>;
376 dvdd-3v-supply = <&fixedregulator3v3>;
377 bgvdd-supply = <&fixedregulator1v8>;
378
4e65e1b6
WS
379 adi,input-depth = <8>;
380 adi,input-colorspace = "rgb";
381 adi,input-clock = "1x";
4e65e1b6
WS
382
383 ports {
384 #address-cells = <1>;
385 #size-cells = <0>;
386
387 port@0 {
388 reg = <0>;
389 adv7511_in: endpoint {
15a1ff30 390 remote-endpoint = <&lvds0_out>;
4e65e1b6
WS
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 };
e6081b21
WS
430
431 /*
432 * IIC3 and I2C3 may be switched using pinmux.
433 * IIC3/I2C3 does not appear to support fallback to GPIO.
434 */
a84e0556 435 i2cpwr: i2c-mux4 {
e6081b21 436 compatible = "i2c-demux-pinctrl";
185555ff
MV
437 pinctrl-names = "default";
438 pinctrl-0 = <&pmic_irq_pins>;
e6081b21
WS
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;
8c987693 450 #interrupt-cells = <2>;
e6081b21
WS
451
452 rtc {
453 compatible = "dlg,da9063-rtc";
454 };
455
82678395 456 watchdog {
e6081b21
WS
457 compatible = "dlg,da9063-watchdog";
458 };
459 };
460
461 vdd_dvfs: regulator@68 {
462 compatible = "dlg,da9210";
463 reg = <0x68>;
464 interrupt-parent = <&irqc0>;
465 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
466
467 regulator-min-microvolt = <1000000>;
468 regulator-max-microvolt = <1000000>;
469 regulator-boot-on;
470 regulator-always-on;
471 };
472 };
3edd18ff
LP
473};
474
475&du {
476 pinctrl-0 = <&du_pins>;
477 pinctrl-names = "default";
478 status = "okay";
479
5802c420 480 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
26c00ab4 481 <&x13_clk>, <&x2_clk>;
15a1ff30 482 clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1";
26c00ab4 483
3edd18ff
LP
484 ports {
485 port@0 {
486 endpoint {
487 remote-endpoint = <&adv7123_in>;
488 };
489 };
15a1ff30
LP
490 };
491};
492
493&lvds0 {
494 status = "okay";
495
496 ports {
fd25cdd1
LP
497 port@1 {
498 endpoint {
499 remote-endpoint = <&adv7511_in>;
500 };
501 };
15a1ff30
LP
502 };
503};
504
505&lvds1 {
15a1ff30
LP
506 ports {
507 port@1 {
3edd18ff
LP
508 lvds_connector: endpoint {
509 };
510 };
511 };
39fa511b
LP
512};
513
62e43056
LP
514&extal_clk {
515 clock-frequency = <20000000>;
516};
517
39fa511b 518&pfc {
1781460c
GU
519 pinctrl-0 = <&scif_clk_pins>;
520 pinctrl-names = "default";
521
3024f507 522 du_pins: du {
2ffc224f
SH
523 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
524 function = "du";
3024f507
LP
525 };
526
ca348298 527 scif0_pins: scif0 {
2ffc224f
SH
528 groups = "scif0_data";
529 function = "scif0";
39fa511b
LP
530 };
531
1781460c 532 scif_clk_pins: scif_clk {
2ffc224f
SH
533 groups = "scif_clk";
534 function = "scif_clk";
1781460c
GU
535 };
536
da4ea951 537 ether_pins: ether {
2ffc224f
SH
538 groups = "eth_link", "eth_mdio", "eth_rmii";
539 function = "eth";
da4ea951
SS
540 };
541
542 phy1_pins: phy1 {
2ffc224f
SH
543 groups = "intc_irq0";
544 function = "intc";
da4ea951
SS
545 };
546
ca348298 547 scifa1_pins: scifa1 {
2ffc224f
SH
548 groups = "scifa1_data";
549 function = "scifa1";
39fa511b
LP
550 };
551
c6119944 552 sdhi0_pins: sd0 {
2ffc224f
SH
553 groups = "sdhi0_data4", "sdhi0_ctrl";
554 function = "sdhi0";
1ca79699
WS
555 power-source = <3300>;
556 };
557
558 sdhi0_pins_uhs: sd0_uhs {
559 groups = "sdhi0_data4", "sdhi0_ctrl";
560 function = "sdhi0";
561 power-source = <1800>;
c6119944
KM
562 };
563
564 sdhi2_pins: sd2 {
2ffc224f
SH
565 groups = "sdhi2_data4", "sdhi2_ctrl";
566 function = "sdhi2";
1ca79699
WS
567 power-source = <3300>;
568 };
569
570 sdhi2_pins_uhs: sd2_uhs {
571 groups = "sdhi2_data4", "sdhi2_ctrl";
572 function = "sdhi2";
573 power-source = <1800>;
c6119944
KM
574 };
575
39fa511b 576 mmc1_pins: mmc1 {
2ffc224f
SH
577 groups = "mmc1_data8", "mmc1_ctrl";
578 function = "mmc1";
39fa511b 579 };
9fe7c4f8 580
85c5e4c4 581 qspi_pins: qspi {
2ffc224f
SH
582 groups = "qspi_ctrl", "qspi_data4";
583 function = "qspi";
9fe7c4f8 584 };
b0403b91 585
85c5e4c4 586 msiof1_pins: msiof1 {
2ffc224f 587 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
b0403b91 588 "msiof1_tx";
2ffc224f 589 function = "msiof1";
b0403b91 590 };
05f72e03 591
880cb570 592 i2c0_pins: i2c0 {
2ffc224f
SH
593 groups = "i2c0";
594 function = "i2c0";
880cb570
WS
595 };
596
535118ca 597 iic0_pins: iic0 {
2ffc224f
SH
598 groups = "iic0";
599 function = "iic0";
535118ca
WS
600 };
601
b2f15ca6
SH
602 i2c1_pins: i2c1 {
603 groups = "i2c1";
604 function = "i2c1";
605 };
606
cb9a2b12 607 iic1_pins: iic1 {
2ffc224f
SH
608 groups = "iic1";
609 function = "iic1";
d90bf60c
SH
610 };
611
4e65e1b6
WS
612 i2c2_pins: i2c2 {
613 groups = "i2c2";
614 function = "i2c2";
615 };
616
cb9a2b12 617 iic2_pins: iic2 {
2ffc224f
SH
618 groups = "iic2";
619 function = "iic2";
d90bf60c
SH
620 };
621
e6081b21
WS
622 i2c3_pins: i2c3 {
623 groups = "i2c3";
624 function = "i2c3";
625 };
626
5179ffd0 627 iic3_pins: iic3 {
2ffc224f
SH
628 groups = "iic3";
629 function = "iic3";
05f72e03 630 };
d8584660 631
185555ff
MV
632 pmic_irq_pins: pmicirq {
633 groups = "intc_irq2";
634 function = "intc";
635 };
636
e03074a7 637 hsusb_pins: hsusb {
2ffc224f
SH
638 groups = "usb0_ovc_vbus";
639 function = "usb0";
e03074a7
YS
640 };
641
d8584660 642 usb0_pins: usb0 {
2ffc224f
SH
643 groups = "usb0";
644 function = "usb0";
d8584660
BD
645 };
646
647 usb1_pins: usb1 {
2ffc224f
SH
648 groups = "usb1";
649 function = "usb1";
d8584660
BD
650 };
651
652 usb2_pins: usb2 {
2ffc224f
SH
653 groups = "usb2";
654 function = "usb2";
d8584660 655 };
d594c977 656
56548d0c
WT
657 vin0_pins: vin0 {
658 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
659 function = "vin0";
660 };
661
da84fd93 662 vin1_pins: vin1 {
2ffc224f
SH
663 groups = "vin1_data8", "vin1_clk";
664 function = "vin1";
d594c977 665 };
8ea7a44a
KM
666
667 sound_pins: sound {
2ffc224f
SH
668 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
669 function = "ssi";
8ea7a44a
KM
670 };
671
672 sound_clk_pins: sound_clk {
2ffc224f
SH
673 groups = "audio_clk_a";
674 function = "audio_clk";
8ea7a44a 675 };
28cce954
GU
676
677 keyboard_pins: keyboard {
678 pins = "GP_1_14", "GP_1_24", "GP_1_26", "GP_1_28";
679 bias-pull-up;
680 };
39fa511b
LP
681};
682
da4ea951 683&ether {
de16af56 684 pinctrl-0 = <&ether_pins>, <&phy1_pins>;
da4ea951
SS
685 pinctrl-names = "default";
686
687 phy-handle = <&phy1>;
688 renesas,ether-link-active-low;
fd7a8cbf 689 status = "okay";
da4ea951
SS
690
691 phy1: ethernet-phy@1 {
18474181
GU
692 compatible = "ethernet-phy-id0022.1537",
693 "ethernet-phy-ieee802.3-c22";
da4ea951
SS
694 reg = <1>;
695 interrupt-parent = <&irqc0>;
696 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
1c47a6aa 697 micrel,led-mode = <1>;
516f6894 698 reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>;
da4ea951
SS
699 };
700};
701
247fd5ec 702&cmt0 {
fd7a8cbf 703 status = "okay";
247fd5ec
LP
704};
705
39fa511b
LP
706&mmcif1 {
707 pinctrl-0 = <&mmc1_pins>;
708 pinctrl-names = "default";
709
710 vmmc-supply = <&fixedregulator3v3>;
711 bus-width = <8>;
712 non-removable;
713 status = "okay";
3cc828fd 714};
c6181b9f
VB
715
716&sata1 {
717 status = "okay";
718};
9fe7c4f8 719
fad6d45c 720&qspi {
9fe7c4f8
GU
721 pinctrl-0 = <&qspi_pins>;
722 pinctrl-names = "default";
723
724 status = "okay";
725
726 flash: flash@0 {
755185b2 727 compatible = "spansion,s25fl512s", "jedec,spi-nor";
9fe7c4f8
GU
728 reg = <0>;
729 spi-max-frequency = <30000000>;
9909d2cb
GU
730 spi-tx-bus-width = <4>;
731 spi-rx-bus-width = <4>;
cbf41168
HN
732 spi-cpha;
733 spi-cpol;
9fe7c4f8
GU
734 m25p,fast-read;
735
f58bac70 736 partitions {
b88ddbdd 737 compatible = "fixed-partitions";
f58bac70
GU
738 #address-cells = <1>;
739 #size-cells = <1>;
740
741 partition@0 {
742 label = "loader";
743 reg = <0x00000000 0x00040000>;
744 read-only;
745 };
746 partition@40000 {
747 label = "user";
748 reg = <0x00040000 0x00400000>;
749 read-only;
750 };
751 partition@440000 {
752 label = "flash";
753 reg = <0x00440000 0x03bc0000>;
754 };
9fe7c4f8
GU
755 };
756 };
757};
c6119944 758
430d7bad
UH
759&scif0 {
760 pinctrl-0 = <&scif0_pins>;
4e9c4877
LP
761 pinctrl-names = "default";
762
763 status = "okay";
764};
765
7c055894
WS
766&scifa1 {
767 pinctrl-0 = <&scifa1_pins>;
4e9c4877
LP
768 pinctrl-names = "default";
769
770 status = "okay";
771};
772
1781460c
GU
773&scif_clk {
774 clock-frequency = <14745600>;
1781460c
GU
775};
776
b0403b91
GU
777&msiof1 {
778 pinctrl-0 = <&msiof1_pins>;
779 pinctrl-names = "default";
780
781 status = "okay";
782
783 pmic: pmic@0 {
784 compatible = "renesas,r2a11302ft";
785 reg = <0>;
786 spi-max-frequency = <6000000>;
787 spi-cpol;
788 spi-cpha;
789 };
b0403b91
GU
790};
791
c6119944
KM
792&sdhi0 {
793 pinctrl-0 = <&sdhi0_pins>;
1ca79699
WS
794 pinctrl-1 = <&sdhi0_pins_uhs>;
795 pinctrl-names = "default", "state_uhs";
c6119944
KM
796
797 vmmc-supply = <&vcc_sdhi0>;
798 vqmmc-supply = <&vccq_sdhi0>;
799 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
1ca79699 800 sd-uhs-sdr50;
dcc2fe78 801 sd-uhs-sdr104;
c6119944
KM
802 status = "okay";
803};
804
805&sdhi2 {
806 pinctrl-0 = <&sdhi2_pins>;
1ca79699
WS
807 pinctrl-1 = <&sdhi2_pins_uhs>;
808 pinctrl-names = "default", "state_uhs";
c6119944
KM
809
810 vmmc-supply = <&vcc_sdhi2>;
811 vqmmc-supply = <&vccq_sdhi2>;
812 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
1ca79699 813 sd-uhs-sdr50;
c6119944
KM
814 status = "okay";
815};
05f72e03 816
b989e138
BC
817&cpu0 {
818 cpu0-supply = <&vdd_dvfs>;
819};
e489c2a9 820
880cb570
WS
821&i2c0 {
822 pinctrl-0 = <&i2c0_pins>;
1e26fcf3 823 pinctrl-names = "i2c-exio0";
880cb570
WS
824};
825
cb9a2b12 826&iic0 {
535118ca 827 pinctrl-0 = <&iic0_pins>;
1e26fcf3 828 pinctrl-names = "i2c-exio0";
e489c2a9
BD
829};
830
b2f15ca6
SH
831&i2c1 {
832 pinctrl-0 = <&i2c1_pins>;
833 pinctrl-names = "i2c-exio1";
834};
835
cb9a2b12 836&iic1 {
cb9a2b12 837 pinctrl-0 = <&iic1_pins>;
b2f15ca6 838 pinctrl-names = "i2c-exio1";
e489c2a9
BD
839};
840
4e65e1b6
WS
841&i2c2 {
842 pinctrl-0 = <&i2c2_pins>;
843 pinctrl-names = "i2c-hdmi";
d594c977 844
177d8bea 845 clock-frequency = <100000>;
4e65e1b6 846};
177d8bea 847
4e65e1b6
WS
848&iic2 {
849 pinctrl-0 = <&iic2_pins>;
850 pinctrl-names = "i2c-hdmi";
56548d0c 851
4e65e1b6 852 clock-frequency = <100000>;
e489c2a9
BD
853};
854
e6081b21
WS
855&i2c3 {
856 pinctrl-0 = <&i2c3_pins>;
857 pinctrl-names = "i2c-pwr";
858};
aca4ec44 859
e6081b21
WS
860&iic3 {
861 pinctrl-0 = <&iic3_pins>;
862 pinctrl-names = "i2c-pwr";
e489c2a9 863};
d8584660
BD
864
865&pci0 {
866 status = "okay";
867 pinctrl-0 = <&usb0_pins>;
868 pinctrl-names = "default";
869};
870
871&pci1 {
872 status = "okay";
873 pinctrl-0 = <&usb1_pins>;
874 pinctrl-names = "default";
875};
876
37f7c1b0
YS
877&xhci {
878 status = "okay";
879 pinctrl-0 = <&usb2_pins>;
880 pinctrl-names = "default";
881};
882
d8584660
BD
883&pci2 {
884 status = "okay";
885 pinctrl-0 = <&usb2_pins>;
886 pinctrl-names = "default";
887};
d594c977 888
e03074a7
YS
889&hsusb {
890 status = "okay";
891 pinctrl-0 = <&hsusb_pins>;
892 pinctrl-names = "default";
893 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
894};
895
6742cafb
SS
896&usbphy {
897 status = "okay";
898};
899
56548d0c
WT
900/* HDMI video input */
901&vin0 {
902 pinctrl-0 = <&vin0_pins>;
903 pinctrl-names = "default";
904
905 status = "okay";
906
907 port {
908 vin0ep2: endpoint {
909 remote-endpoint = <&adv7612_out>;
910 bus-width = <24>;
911 hsync-active = <0>;
912 vsync-active = <0>;
913 pclk-sample = <1>;
914 data-active = <1>;
915 };
916 };
917};
918
d594c977
BD
919/* composite video input */
920&vin1 {
921 pinctrl-0 = <&vin1_pins>;
922 pinctrl-names = "default";
923
fd7a8cbf 924 status = "okay";
d594c977
BD
925
926 port {
d594c977
BD
927 vin1ep0: endpoint {
928 remote-endpoint = <&adv7180>;
929 bus-width = <8>;
930 };
931 };
932};
8ea7a44a
KM
933
934&rcar_sound {
de16af56 935 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
8ea7a44a
KM
936 pinctrl-names = "default";
937
ad63241c 938 /* Single DAI */
8ea7a44a
KM
939 #sound-dai-cells = <0>;
940
941 status = "okay";
942
943 rcar_sound,dai {
944 dai0 {
23d2ed63
GU
945 playback = <&ssi0>, <&src2>, <&dvc0>;
946 capture = <&ssi1>, <&src3>, <&dvc1>;
8ea7a44a
KM
947 };
948 };
949};
950
53e480fc
GU
951&rwdt {
952 timeout-sec = <60>;
953 status = "okay";
954};
955
8ea7a44a 956&ssi1 {
8ea7a44a
KM
957 shared-pin;
958};