]> git.ipfire.org Git - thirdparty/linux.git/blame - arch/arm/boot/dts/r8a7790-lager.dts
Merge tag 'io_uring-5.7-2020-05-22' of git://git.kernel.dk/linux-block
[thirdparty/linux.git] / arch / arm / boot / dts / 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;
4e9c4877
LP
56 };
57
3cc828fd 58 chosen {
07d2bf96 59 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
57d19f81 60 stdout-path = "serial0:115200n8";
3cc828fd
MD
61 };
62
63 memory@40000000 {
64 device_type = "memory";
7b16c61a 65 reg = <0 0x40000000 0 0x40000000>;
3cc828fd
MD
66 };
67
126f998e 68 memory@140000000 {
62bc32a2 69 device_type = "memory";
7b16c61a 70 reg = <1 0x40000000 0 0xc0000000>;
62bc32a2
MD
71 };
72
3cc828fd
MD
73 lbsc {
74 #address-cells = <1>;
75 #size-cells = <1>;
76 };
39fa511b 77
54caf681 78 keyboard {
f7dcd382
MD
79 compatible = "gpio-keys";
80
affe802c 81 one {
f7dcd382
MD
82 linux,code = <KEY_1>;
83 label = "SW2-1";
0cc16889 84 wakeup-source;
f7dcd382
MD
85 debounce-interval = <20>;
86 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
87 };
affe802c 88 two {
f7dcd382
MD
89 linux,code = <KEY_2>;
90 label = "SW2-2";
0cc16889 91 wakeup-source;
f7dcd382
MD
92 debounce-interval = <20>;
93 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
94 };
affe802c 95 three {
f7dcd382
MD
96 linux,code = <KEY_3>;
97 label = "SW2-3";
0cc16889 98 wakeup-source;
f7dcd382
MD
99 debounce-interval = <20>;
100 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
101 };
affe802c 102 four {
f7dcd382
MD
103 linux,code = <KEY_4>;
104 label = "SW2-4";
0cc16889 105 wakeup-source;
f7dcd382
MD
106 debounce-interval = <20>;
107 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
108 };
109 };
110
39fa511b
LP
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
affe802c 124 fixedregulator3v3: regulator-3v3 {
39fa511b
LP
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 };
c6119944 132
affe802c 133 vcc_sdhi0: regulator-vcc-sdhi0 {
c6119944
KM
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
affe802c 144 vccq_sdhi0: regulator-vccq-sdhi0 {
c6119944
KM
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>;
8a481af1 153 states = <3300000 1>, <1800000 0>;
c6119944
KM
154 };
155
affe802c 156 vcc_sdhi2: regulator-vcc-sdhi2 {
c6119944
KM
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
affe802c 167 vccq_sdhi2: regulator-vccq-sdhi2 {
c6119944
KM
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>;
8a481af1 176 states = <3300000 1>, <1800000 0>;
c6119944 177 };
3edd18ff 178
a5bad2c7 179 audio_clock: audio_clock {
6bc651af
KM
180 compatible = "fixed-clock";
181 #clock-cells = <0>;
182 clock-frequency = <11289600>;
6bc651af
KM
183 };
184
30be0ba5 185 rsnd_ak4643: sound {
8ea7a44a
KM
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>;
6bc651af 198 clocks = <&audio_clock>;
8ea7a44a
KM
199 };
200 };
201
3edd18ff
LP
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 };
fd25cdd1 233
56548d0c
WT
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
fe61513f
GU
245 cec_clock: cec-clock {
246 compatible = "fixed-clock";
247 #clock-cells = <0>;
248 clock-frequency = <12000000>;
249 };
250
fd25cdd1
LP
251 hdmi-out {
252 compatible = "hdmi-connector";
253 type = "a";
254
255 port {
56548d0c 256 hdmi_con_out: endpoint {
fd25cdd1
LP
257 remote-endpoint = <&adv7511_out>;
258 };
259 };
260 };
26c00ab4
LP
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 };
880cb570 273
b2f15ca6
SH
274 gpioi2c1: i2c-8 {
275 #address-cells = <1>;
276 #size-cells = <0>;
277 compatible = "i2c-gpio";
278 status = "disabled";
e99185b2 279 scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
4e65e1b6
WS
280 sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
281 i2c-gpio,delay-us = <5>;
282 };
283
284 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)>;
b2f15ca6
SH
291 i2c-gpio,delay-us = <5>;
292 };
293
880cb570
WS
294 /*
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.
1e26fcf3
SH
302 *
303 * IIC0/I2C0 does not appear to support fallback to GPIO.
880cb570 304 */
1e26fcf3 305 i2cexio0: i2c-10 {
880cb570
WS
306 compatible = "i2c-demux-pinctrl";
307 i2c-parent = <&iic0>, <&i2c0>;
1e26fcf3 308 i2c-bus-name = "i2c-exio0";
880cb570
WS
309 #address-cells = <1>;
310 #size-cells = <0>;
311 };
b2f15ca6
SH
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>;
324 };
4e65e1b6 325
9d6f4d4d
GU
326 /*
327 * IIC2 and I2C2 may be switched using pinmux.
328 * A fallback to GPIO is also provided.
329 */
4e65e1b6
WS
330 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
4e65e1b6
WS
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";
4e65e1b6
WS
367
368 ports {
369 #address-cells = <1>;
370 #size-cells = <0>;
371
372 port@0 {
373 reg = <0>;
374 adv7511_in: endpoint {
15a1ff30 375 remote-endpoint = <&lvds0_out>;
4e65e1b6
WS
376 };
377 };
378
379 port@1 {
380 reg = <1>;
381 adv7511_out: endpoint {
382 remote-endpoint = <&hdmi_con_out>;
383 };
384 };
385 };
386 };
387
388 hdmi-in@4c {
389 compatible = "adi,adv7612";
390 reg = <0x4c>;
391 interrupt-parent = <&gpio1>;
392 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
393 default-input = <0>;
394
395 ports {
396 #address-cells = <1>;
397 #size-cells = <0>;
398
399 port@0 {
400 reg = <0>;
401 adv7612_in: endpoint {
402 remote-endpoint = <&hdmi_con_in>;
403 };
404 };
405
406 port@2 {
407 reg = <2>;
408 adv7612_out: endpoint {
409 remote-endpoint = <&vin0ep2>;
410 };
411 };
412 };
413 };
414 };
e6081b21
WS
415
416 /*
417 * IIC3 and I2C3 may be switched using pinmux.
418 * IIC3/I2C3 does not appear to support fallback to GPIO.
419 */
420 i2cpwr: i2c-13 {
421 compatible = "i2c-demux-pinctrl";
185555ff
MV
422 pinctrl-names = "default";
423 pinctrl-0 = <&pmic_irq_pins>;
e6081b21
WS
424 i2c-parent = <&iic3>, <&i2c3>;
425 i2c-bus-name = "i2c-pwr";
426 #address-cells = <1>;
427 #size-cells = <0>;
428
429 pmic@58 {
430 compatible = "dlg,da9063";
431 reg = <0x58>;
432 interrupt-parent = <&irqc0>;
433 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
434 interrupt-controller;
435
436 rtc {
437 compatible = "dlg,da9063-rtc";
438 };
439
440 wdt {
441 compatible = "dlg,da9063-watchdog";
442 };
443 };
444
445 vdd_dvfs: regulator@68 {
446 compatible = "dlg,da9210";
447 reg = <0x68>;
448 interrupt-parent = <&irqc0>;
449 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
450
451 regulator-min-microvolt = <1000000>;
452 regulator-max-microvolt = <1000000>;
453 regulator-boot-on;
454 regulator-always-on;
455 };
456 };
3edd18ff
LP
457};
458
459&du {
460 pinctrl-0 = <&du_pins>;
461 pinctrl-names = "default";
462 status = "okay";
463
5802c420 464 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
26c00ab4 465 <&x13_clk>, <&x2_clk>;
15a1ff30 466 clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1";
26c00ab4 467
3edd18ff
LP
468 ports {
469 port@0 {
470 endpoint {
471 remote-endpoint = <&adv7123_in>;
472 };
473 };
15a1ff30
LP
474 };
475};
476
477&lvds0 {
478 status = "okay";
479
480 ports {
fd25cdd1
LP
481 port@1 {
482 endpoint {
483 remote-endpoint = <&adv7511_in>;
484 };
485 };
15a1ff30
LP
486 };
487};
488
489&lvds1 {
15a1ff30
LP
490 ports {
491 port@1 {
3edd18ff
LP
492 lvds_connector: endpoint {
493 };
494 };
495 };
39fa511b
LP
496};
497
62e43056
LP
498&extal_clk {
499 clock-frequency = <20000000>;
500};
501
39fa511b 502&pfc {
1781460c
GU
503 pinctrl-0 = <&scif_clk_pins>;
504 pinctrl-names = "default";
505
3024f507 506 du_pins: du {
2ffc224f
SH
507 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
508 function = "du";
3024f507
LP
509 };
510
ca348298 511 scif0_pins: scif0 {
2ffc224f
SH
512 groups = "scif0_data";
513 function = "scif0";
39fa511b
LP
514 };
515
1781460c 516 scif_clk_pins: scif_clk {
2ffc224f
SH
517 groups = "scif_clk";
518 function = "scif_clk";
1781460c
GU
519 };
520
da4ea951 521 ether_pins: ether {
2ffc224f
SH
522 groups = "eth_link", "eth_mdio", "eth_rmii";
523 function = "eth";
da4ea951
SS
524 };
525
526 phy1_pins: phy1 {
2ffc224f
SH
527 groups = "intc_irq0";
528 function = "intc";
da4ea951
SS
529 };
530
ca348298 531 scifa1_pins: scifa1 {
2ffc224f
SH
532 groups = "scifa1_data";
533 function = "scifa1";
39fa511b
LP
534 };
535
c6119944 536 sdhi0_pins: sd0 {
2ffc224f
SH
537 groups = "sdhi0_data4", "sdhi0_ctrl";
538 function = "sdhi0";
1ca79699
WS
539 power-source = <3300>;
540 };
541
542 sdhi0_pins_uhs: sd0_uhs {
543 groups = "sdhi0_data4", "sdhi0_ctrl";
544 function = "sdhi0";
545 power-source = <1800>;
c6119944
KM
546 };
547
548 sdhi2_pins: sd2 {
2ffc224f
SH
549 groups = "sdhi2_data4", "sdhi2_ctrl";
550 function = "sdhi2";
1ca79699
WS
551 power-source = <3300>;
552 };
553
554 sdhi2_pins_uhs: sd2_uhs {
555 groups = "sdhi2_data4", "sdhi2_ctrl";
556 function = "sdhi2";
557 power-source = <1800>;
c6119944
KM
558 };
559
39fa511b 560 mmc1_pins: mmc1 {
2ffc224f
SH
561 groups = "mmc1_data8", "mmc1_ctrl";
562 function = "mmc1";
39fa511b 563 };
9fe7c4f8 564
85c5e4c4 565 qspi_pins: qspi {
2ffc224f
SH
566 groups = "qspi_ctrl", "qspi_data4";
567 function = "qspi";
9fe7c4f8 568 };
b0403b91 569
85c5e4c4 570 msiof1_pins: msiof1 {
2ffc224f 571 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
b0403b91 572 "msiof1_tx";
2ffc224f 573 function = "msiof1";
b0403b91 574 };
05f72e03 575
880cb570 576 i2c0_pins: i2c0 {
2ffc224f
SH
577 groups = "i2c0";
578 function = "i2c0";
880cb570
WS
579 };
580
535118ca 581 iic0_pins: iic0 {
2ffc224f
SH
582 groups = "iic0";
583 function = "iic0";
535118ca
WS
584 };
585
b2f15ca6
SH
586 i2c1_pins: i2c1 {
587 groups = "i2c1";
588 function = "i2c1";
589 };
590
cb9a2b12 591 iic1_pins: iic1 {
2ffc224f
SH
592 groups = "iic1";
593 function = "iic1";
d90bf60c
SH
594 };
595
4e65e1b6
WS
596 i2c2_pins: i2c2 {
597 groups = "i2c2";
598 function = "i2c2";
599 };
600
cb9a2b12 601 iic2_pins: iic2 {
2ffc224f
SH
602 groups = "iic2";
603 function = "iic2";
d90bf60c
SH
604 };
605
e6081b21
WS
606 i2c3_pins: i2c3 {
607 groups = "i2c3";
608 function = "i2c3";
609 };
610
5179ffd0 611 iic3_pins: iic3 {
2ffc224f
SH
612 groups = "iic3";
613 function = "iic3";
05f72e03 614 };
d8584660 615
185555ff
MV
616 pmic_irq_pins: pmicirq {
617 groups = "intc_irq2";
618 function = "intc";
619 };
620
e03074a7 621 hsusb_pins: hsusb {
2ffc224f
SH
622 groups = "usb0_ovc_vbus";
623 function = "usb0";
e03074a7
YS
624 };
625
d8584660 626 usb0_pins: usb0 {
2ffc224f
SH
627 groups = "usb0";
628 function = "usb0";
d8584660
BD
629 };
630
631 usb1_pins: usb1 {
2ffc224f
SH
632 groups = "usb1";
633 function = "usb1";
d8584660
BD
634 };
635
636 usb2_pins: usb2 {
2ffc224f
SH
637 groups = "usb2";
638 function = "usb2";
d8584660 639 };
d594c977 640
56548d0c
WT
641 vin0_pins: vin0 {
642 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
643 function = "vin0";
644 };
645
da84fd93 646 vin1_pins: vin1 {
2ffc224f
SH
647 groups = "vin1_data8", "vin1_clk";
648 function = "vin1";
d594c977 649 };
8ea7a44a
KM
650
651 sound_pins: sound {
2ffc224f
SH
652 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
653 function = "ssi";
8ea7a44a
KM
654 };
655
656 sound_clk_pins: sound_clk {
2ffc224f
SH
657 groups = "audio_clk_a";
658 function = "audio_clk";
8ea7a44a 659 };
39fa511b
LP
660};
661
da4ea951
SS
662&ether {
663 pinctrl-0 = <&ether_pins &phy1_pins>;
664 pinctrl-names = "default";
665
666 phy-handle = <&phy1>;
667 renesas,ether-link-active-low;
fd7a8cbf 668 status = "okay";
da4ea951
SS
669
670 phy1: ethernet-phy@1 {
671 reg = <1>;
672 interrupt-parent = <&irqc0>;
673 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
1c47a6aa 674 micrel,led-mode = <1>;
516f6894 675 reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>;
da4ea951
SS
676 };
677};
678
247fd5ec 679&cmt0 {
fd7a8cbf 680 status = "okay";
247fd5ec
LP
681};
682
39fa511b
LP
683&mmcif1 {
684 pinctrl-0 = <&mmc1_pins>;
685 pinctrl-names = "default";
686
687 vmmc-supply = <&fixedregulator3v3>;
688 bus-width = <8>;
689 non-removable;
690 status = "okay";
3cc828fd 691};
c6181b9f
VB
692
693&sata1 {
694 status = "okay";
695};
9fe7c4f8 696
fad6d45c 697&qspi {
9fe7c4f8
GU
698 pinctrl-0 = <&qspi_pins>;
699 pinctrl-names = "default";
700
701 status = "okay";
702
703 flash: flash@0 {
755185b2 704 compatible = "spansion,s25fl512s", "jedec,spi-nor";
9fe7c4f8
GU
705 reg = <0>;
706 spi-max-frequency = <30000000>;
9909d2cb
GU
707 spi-tx-bus-width = <4>;
708 spi-rx-bus-width = <4>;
cbf41168
HN
709 spi-cpha;
710 spi-cpol;
9fe7c4f8
GU
711 m25p,fast-read;
712
f58bac70 713 partitions {
b88ddbdd 714 compatible = "fixed-partitions";
f58bac70
GU
715 #address-cells = <1>;
716 #size-cells = <1>;
717
718 partition@0 {
719 label = "loader";
720 reg = <0x00000000 0x00040000>;
721 read-only;
722 };
723 partition@40000 {
724 label = "user";
725 reg = <0x00040000 0x00400000>;
726 read-only;
727 };
728 partition@440000 {
729 label = "flash";
730 reg = <0x00440000 0x03bc0000>;
731 };
9fe7c4f8
GU
732 };
733 };
734};
c6119944 735
430d7bad
UH
736&scif0 {
737 pinctrl-0 = <&scif0_pins>;
4e9c4877
LP
738 pinctrl-names = "default";
739
740 status = "okay";
741};
742
7c055894
WS
743&scifa1 {
744 pinctrl-0 = <&scifa1_pins>;
4e9c4877
LP
745 pinctrl-names = "default";
746
747 status = "okay";
748};
749
1781460c
GU
750&scif_clk {
751 clock-frequency = <14745600>;
1781460c
GU
752};
753
b0403b91
GU
754&msiof1 {
755 pinctrl-0 = <&msiof1_pins>;
756 pinctrl-names = "default";
757
758 status = "okay";
759
760 pmic: pmic@0 {
761 compatible = "renesas,r2a11302ft";
762 reg = <0>;
763 spi-max-frequency = <6000000>;
764 spi-cpol;
765 spi-cpha;
766 };
b0403b91
GU
767};
768
c6119944
KM
769&sdhi0 {
770 pinctrl-0 = <&sdhi0_pins>;
1ca79699
WS
771 pinctrl-1 = <&sdhi0_pins_uhs>;
772 pinctrl-names = "default", "state_uhs";
c6119944
KM
773
774 vmmc-supply = <&vcc_sdhi0>;
775 vqmmc-supply = <&vccq_sdhi0>;
776 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
1ca79699 777 sd-uhs-sdr50;
dcc2fe78 778 sd-uhs-sdr104;
c6119944
KM
779 status = "okay";
780};
781
782&sdhi2 {
783 pinctrl-0 = <&sdhi2_pins>;
1ca79699
WS
784 pinctrl-1 = <&sdhi2_pins_uhs>;
785 pinctrl-names = "default", "state_uhs";
c6119944
KM
786
787 vmmc-supply = <&vcc_sdhi2>;
788 vqmmc-supply = <&vccq_sdhi2>;
789 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
1ca79699 790 sd-uhs-sdr50;
c6119944
KM
791 status = "okay";
792};
05f72e03 793
b989e138
BC
794&cpu0 {
795 cpu0-supply = <&vdd_dvfs>;
796};
e489c2a9 797
880cb570
WS
798&i2c0 {
799 pinctrl-0 = <&i2c0_pins>;
1e26fcf3 800 pinctrl-names = "i2c-exio0";
880cb570
WS
801};
802
cb9a2b12 803&iic0 {
535118ca 804 pinctrl-0 = <&iic0_pins>;
1e26fcf3 805 pinctrl-names = "i2c-exio0";
e489c2a9
BD
806};
807
b2f15ca6
SH
808&i2c1 {
809 pinctrl-0 = <&i2c1_pins>;
810 pinctrl-names = "i2c-exio1";
811};
812
cb9a2b12 813&iic1 {
cb9a2b12 814 pinctrl-0 = <&iic1_pins>;
b2f15ca6 815 pinctrl-names = "i2c-exio1";
e489c2a9
BD
816};
817
4e65e1b6
WS
818&i2c2 {
819 pinctrl-0 = <&i2c2_pins>;
820 pinctrl-names = "i2c-hdmi";
d594c977 821
177d8bea 822 clock-frequency = <100000>;
4e65e1b6 823};
177d8bea 824
4e65e1b6
WS
825&iic2 {
826 pinctrl-0 = <&iic2_pins>;
827 pinctrl-names = "i2c-hdmi";
56548d0c 828
4e65e1b6 829 clock-frequency = <100000>;
e489c2a9
BD
830};
831
e6081b21
WS
832&i2c3 {
833 pinctrl-0 = <&i2c3_pins>;
834 pinctrl-names = "i2c-pwr";
835};
aca4ec44 836
e6081b21
WS
837&iic3 {
838 pinctrl-0 = <&iic3_pins>;
839 pinctrl-names = "i2c-pwr";
e489c2a9 840};
d8584660
BD
841
842&pci0 {
843 status = "okay";
844 pinctrl-0 = <&usb0_pins>;
845 pinctrl-names = "default";
846};
847
848&pci1 {
849 status = "okay";
850 pinctrl-0 = <&usb1_pins>;
851 pinctrl-names = "default";
852};
853
37f7c1b0
YS
854&xhci {
855 status = "okay";
856 pinctrl-0 = <&usb2_pins>;
857 pinctrl-names = "default";
858};
859
d8584660
BD
860&pci2 {
861 status = "okay";
862 pinctrl-0 = <&usb2_pins>;
863 pinctrl-names = "default";
864};
d594c977 865
e03074a7
YS
866&hsusb {
867 status = "okay";
868 pinctrl-0 = <&hsusb_pins>;
869 pinctrl-names = "default";
870 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
871};
872
6742cafb
SS
873&usbphy {
874 status = "okay";
875};
876
56548d0c
WT
877/* HDMI video input */
878&vin0 {
879 pinctrl-0 = <&vin0_pins>;
880 pinctrl-names = "default";
881
882 status = "okay";
883
884 port {
885 vin0ep2: endpoint {
886 remote-endpoint = <&adv7612_out>;
887 bus-width = <24>;
888 hsync-active = <0>;
889 vsync-active = <0>;
890 pclk-sample = <1>;
891 data-active = <1>;
892 };
893 };
894};
895
d594c977
BD
896/* composite video input */
897&vin1 {
898 pinctrl-0 = <&vin1_pins>;
899 pinctrl-names = "default";
900
fd7a8cbf 901 status = "okay";
d594c977
BD
902
903 port {
d594c977
BD
904 vin1ep0: endpoint {
905 remote-endpoint = <&adv7180>;
906 bus-width = <8>;
907 };
908 };
909};
8ea7a44a
KM
910
911&rcar_sound {
912 pinctrl-0 = <&sound_pins &sound_clk_pins>;
913 pinctrl-names = "default";
914
ad63241c 915 /* Single DAI */
8ea7a44a
KM
916 #sound-dai-cells = <0>;
917
918 status = "okay";
919
920 rcar_sound,dai {
921 dai0 {
e110c541
KM
922 playback = <&ssi0 &src2 &dvc0>;
923 capture = <&ssi1 &src3 &dvc1>;
8ea7a44a
KM
924 };
925 };
926};
927
53e480fc
GU
928&rwdt {
929 timeout-sec = <60>;
930 status = "okay";
931};
932
8ea7a44a 933&ssi1 {
8ea7a44a
KM
934 shared-pin;
935};