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