]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/arm/boot/dts/r8a7790-lager.dts
ARM: shmobile: koelsch: Add DU external pixel clocks to DT
[mirror_ubuntu-artful-kernel.git] / arch / arm / boot / dts / r8a7790-lager.dts
CommitLineData
3cc828fd
MD
1/*
2 * Device Tree Source for the Lager board
3 *
da4ea951
SS
4 * Copyright (C) 2013-2014 Renesas Solutions Corp.
5 * Copyright (C) 2014 Cogent Embedded, Inc.
3cc828fd
MD
6 *
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
10 */
11
8ea7a44a
KM
12/*
13 * SSI-AK4643
14 *
15 * SW1: 1: AK4643
16 * 2: CN22
17 * 3: ADV7511
18 *
19 * This command is required when Playback/Capture
20 *
21 * amixer set "LINEOUT Mixer DACL" on
e110c541
KM
22 * amixer set "DVC Out" 100%
23 * amixer set "DVC In" 100%
24 *
25 * You can use Mute
26 *
27 * amixer set "DVC Out Mute" on
28 * amixer set "DVC In Mute" on
bd2e4a62
KM
29 *
30 * You can use Volume Ramp
31 *
32 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
33 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
34 * amixer set "DVC Out Ramp" on
35 * aplay xxx.wav &
36 * amixer set "DVC Out" 80% // Volume Down
37 * amixer set "DVC Out" 100% // Volume Up
8ea7a44a
KM
38 */
39
3cc828fd 40/dts-v1/;
31c46cbf 41#include "r8a7790.dtsi"
39fa511b 42#include <dt-bindings/gpio/gpio.h>
f7dcd382 43#include <dt-bindings/input/input.h>
3cc828fd
MD
44
45/ {
46 model = "Lager";
47 compatible = "renesas,lager", "renesas,r8a7790";
48
4e9c4877 49 aliases {
78c11ec2
LP
50 serial0 = &scifa0;
51 serial1 = &scifa1;
4e9c4877
LP
52 };
53
3cc828fd 54 chosen {
569dd56c 55 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
cf855816 56 stdout-path = &scifa0;
3cc828fd
MD
57 };
58
59 memory@40000000 {
60 device_type = "memory";
7b16c61a 61 reg = <0 0x40000000 0 0x40000000>;
3cc828fd
MD
62 };
63
126f998e 64 memory@140000000 {
62bc32a2 65 device_type = "memory";
7b16c61a 66 reg = <1 0x40000000 0 0xc0000000>;
62bc32a2
MD
67 };
68
3cc828fd
MD
69 lbsc {
70 #address-cells = <1>;
71 #size-cells = <1>;
72 };
39fa511b 73
54caf681 74 keyboard {
f7dcd382
MD
75 compatible = "gpio-keys";
76
77 button@1 {
78 linux,code = <KEY_1>;
79 label = "SW2-1";
80 gpio-key,wakeup;
81 debounce-interval = <20>;
82 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
83 };
84 button@2 {
85 linux,code = <KEY_2>;
86 label = "SW2-2";
87 gpio-key,wakeup;
88 debounce-interval = <20>;
89 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
90 };
91 button@3 {
92 linux,code = <KEY_3>;
93 label = "SW2-3";
94 gpio-key,wakeup;
95 debounce-interval = <20>;
96 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
97 };
98 button@4 {
99 linux,code = <KEY_4>;
100 label = "SW2-4";
101 gpio-key,wakeup;
102 debounce-interval = <20>;
103 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
104 };
105 };
106
39fa511b
LP
107 leds {
108 compatible = "gpio-leds";
109 led6 {
110 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
111 };
112 led7 {
113 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
114 };
115 led8 {
116 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
117 };
118 };
119
120 fixedregulator3v3: fixedregulator@0 {
121 compatible = "regulator-fixed";
122 regulator-name = "fixed-3.3V";
123 regulator-min-microvolt = <3300000>;
124 regulator-max-microvolt = <3300000>;
125 regulator-boot-on;
126 regulator-always-on;
127 };
c6119944
KM
128
129 vcc_sdhi0: regulator@1 {
130 compatible = "regulator-fixed";
131
132 regulator-name = "SDHI0 Vcc";
133 regulator-min-microvolt = <3300000>;
134 regulator-max-microvolt = <3300000>;
135
136 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
137 enable-active-high;
138 };
139
140 vccq_sdhi0: regulator@2 {
141 compatible = "regulator-gpio";
142
143 regulator-name = "SDHI0 VccQ";
144 regulator-min-microvolt = <1800000>;
145 regulator-max-microvolt = <3300000>;
146
147 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
148 gpios-states = <1>;
149 states = <3300000 1
150 1800000 0>;
151 };
152
153 vcc_sdhi2: regulator@3 {
154 compatible = "regulator-fixed";
155
156 regulator-name = "SDHI2 Vcc";
157 regulator-min-microvolt = <3300000>;
158 regulator-max-microvolt = <3300000>;
159
160 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
161 enable-active-high;
162 };
163
164 vccq_sdhi2: regulator@4 {
165 compatible = "regulator-gpio";
166
167 regulator-name = "SDHI2 VccQ";
168 regulator-min-microvolt = <1800000>;
169 regulator-max-microvolt = <3300000>;
170
171 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
172 gpios-states = <1>;
173 states = <3300000 1
174 1800000 0>;
175 };
3edd18ff 176
8ea7a44a
KM
177 sound {
178 compatible = "simple-audio-card";
179
180 simple-audio-card,format = "left_j";
181 simple-audio-card,bitclock-master = <&sndcodec>;
182 simple-audio-card,frame-master = <&sndcodec>;
183
184 sndcpu: simple-audio-card,cpu {
185 sound-dai = <&rcar_sound>;
186 };
187
188 sndcodec: simple-audio-card,codec {
189 sound-dai = <&ak4643>;
190 system-clock-frequency = <11289600>;
191 };
192 };
193
3edd18ff
LP
194 vga-encoder {
195 compatible = "adi,adv7123";
196
197 ports {
198 #address-cells = <1>;
199 #size-cells = <0>;
200
201 port@0 {
202 reg = <0>;
203 adv7123_in: endpoint {
204 remote-endpoint = <&du_out_rgb>;
205 };
206 };
207 port@1 {
208 reg = <1>;
209 adv7123_out: endpoint {
210 remote-endpoint = <&vga_in>;
211 };
212 };
213 };
214 };
215
216 vga {
217 compatible = "vga-connector";
218
219 port {
220 vga_in: endpoint {
221 remote-endpoint = <&adv7123_out>;
222 };
223 };
224 };
fd25cdd1
LP
225
226 hdmi-out {
227 compatible = "hdmi-connector";
228 type = "a";
229
230 port {
231 hdmi_con: endpoint {
232 remote-endpoint = <&adv7511_out>;
233 };
234 };
235 };
3edd18ff
LP
236};
237
238&du {
239 pinctrl-0 = <&du_pins>;
240 pinctrl-names = "default";
241 status = "okay";
242
243 ports {
244 port@0 {
245 endpoint {
246 remote-endpoint = <&adv7123_in>;
247 };
248 };
fd25cdd1
LP
249 port@1 {
250 endpoint {
251 remote-endpoint = <&adv7511_in>;
252 };
253 };
3edd18ff
LP
254 port@2 {
255 lvds_connector: endpoint {
256 };
257 };
258 };
39fa511b
LP
259};
260
62e43056
LP
261&extal_clk {
262 clock-frequency = <20000000>;
263};
264
39fa511b 265&pfc {
3024f507
LP
266 du_pins: du {
267 renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
268 renesas,function = "du";
269 };
270
7c055894
WS
271 scifa0_pins: serial0 {
272 renesas,groups = "scifa0_data";
273 renesas,function = "scifa0";
39fa511b
LP
274 };
275
da4ea951
SS
276 ether_pins: ether {
277 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
278 renesas,function = "eth";
279 };
280
281 phy1_pins: phy1 {
282 renesas,groups = "intc_irq0";
283 renesas,function = "intc";
284 };
285
7c055894
WS
286 scifa1_pins: serial1 {
287 renesas,groups = "scifa1_data";
288 renesas,function = "scifa1";
39fa511b
LP
289 };
290
c6119944 291 sdhi0_pins: sd0 {
b08eed0c 292 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
c6119944
KM
293 renesas,function = "sdhi0";
294 };
295
296 sdhi2_pins: sd2 {
b08eed0c 297 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
c6119944
KM
298 renesas,function = "sdhi2";
299 };
300
39fa511b
LP
301 mmc1_pins: mmc1 {
302 renesas,groups = "mmc1_data8", "mmc1_ctrl";
303 renesas,function = "mmc1";
304 };
9fe7c4f8 305
fad6d45c 306 qspi_pins: spi0 {
9fe7c4f8
GU
307 renesas,groups = "qspi_ctrl", "qspi_data4";
308 renesas,function = "qspi";
309 };
b0403b91
GU
310
311 msiof1_pins: spi2 {
312 renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
313 "msiof1_tx";
314 renesas,function = "msiof1";
315 };
05f72e03 316
cb9a2b12
WS
317 iic1_pins: iic1 {
318 renesas,groups = "iic1";
319 renesas,function = "iic1";
d90bf60c
SH
320 };
321
cb9a2b12
WS
322 iic2_pins: iic2 {
323 renesas,groups = "iic2";
324 renesas,function = "iic2";
d90bf60c
SH
325 };
326
5179ffd0
KN
327 iic3_pins: iic3 {
328 renesas,groups = "iic3";
329 renesas,function = "iic3";
05f72e03 330 };
d8584660 331
e03074a7
YS
332 hsusb_pins: hsusb {
333 renesas,groups = "usb0_ovc_vbus";
334 renesas,function = "usb0";
335 };
336
d8584660
BD
337 usb0_pins: usb0 {
338 renesas,groups = "usb0";
339 renesas,function = "usb0";
340 };
341
342 usb1_pins: usb1 {
343 renesas,groups = "usb1";
344 renesas,function = "usb1";
345 };
346
347 usb2_pins: usb2 {
348 renesas,groups = "usb2";
349 renesas,function = "usb2";
350 };
d594c977
BD
351
352 vin1_pins: vin {
353 renesas,groups = "vin1_data8", "vin1_clk";
354 renesas,function = "vin1";
355 };
8ea7a44a
KM
356
357 sound_pins: sound {
358 renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
359 renesas,function = "ssi";
360 };
361
362 sound_clk_pins: sound_clk {
363 renesas,groups = "audio_clk_a";
364 renesas,function = "audio_clk";
365 };
39fa511b
LP
366};
367
da4ea951
SS
368&ether {
369 pinctrl-0 = <&ether_pins &phy1_pins>;
370 pinctrl-names = "default";
371
372 phy-handle = <&phy1>;
373 renesas,ether-link-active-low;
fd7a8cbf 374 status = "okay";
da4ea951
SS
375
376 phy1: ethernet-phy@1 {
377 reg = <1>;
378 interrupt-parent = <&irqc0>;
379 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
1c47a6aa 380 micrel,led-mode = <1>;
da4ea951
SS
381 };
382};
383
247fd5ec 384&cmt0 {
fd7a8cbf 385 status = "okay";
247fd5ec
LP
386};
387
39fa511b
LP
388&mmcif1 {
389 pinctrl-0 = <&mmc1_pins>;
390 pinctrl-names = "default";
391
392 vmmc-supply = <&fixedregulator3v3>;
393 bus-width = <8>;
394 non-removable;
395 status = "okay";
3cc828fd 396};
c6181b9f
VB
397
398&sata1 {
399 status = "okay";
400};
9fe7c4f8 401
fad6d45c 402&qspi {
9fe7c4f8
GU
403 pinctrl-0 = <&qspi_pins>;
404 pinctrl-names = "default";
405
406 status = "okay";
407
408 flash: flash@0 {
409 #address-cells = <1>;
410 #size-cells = <1>;
411 compatible = "spansion,s25fl512s";
412 reg = <0>;
413 spi-max-frequency = <30000000>;
9909d2cb
GU
414 spi-tx-bus-width = <4>;
415 spi-rx-bus-width = <4>;
cbf41168
HN
416 spi-cpha;
417 spi-cpol;
9fe7c4f8
GU
418 m25p,fast-read;
419
420 partition@0 {
421 label = "loader";
422 reg = <0x00000000 0x00040000>;
423 read-only;
424 };
425 partition@40000 {
426 label = "user";
427 reg = <0x00040000 0x00400000>;
428 read-only;
429 };
430 partition@440000 {
431 label = "flash";
432 reg = <0x00440000 0x03bc0000>;
433 };
434 };
435};
c6119944 436
7c055894
WS
437&scifa0 {
438 pinctrl-0 = <&scifa0_pins>;
4e9c4877
LP
439 pinctrl-names = "default";
440
441 status = "okay";
442};
443
7c055894
WS
444&scifa1 {
445 pinctrl-0 = <&scifa1_pins>;
4e9c4877
LP
446 pinctrl-names = "default";
447
448 status = "okay";
449};
450
b0403b91
GU
451&msiof1 {
452 pinctrl-0 = <&msiof1_pins>;
453 pinctrl-names = "default";
454
455 status = "okay";
456
457 pmic: pmic@0 {
458 compatible = "renesas,r2a11302ft";
459 reg = <0>;
460 spi-max-frequency = <6000000>;
461 spi-cpol;
462 spi-cpha;
463 };
b0403b91
GU
464};
465
c6119944
KM
466&sdhi0 {
467 pinctrl-0 = <&sdhi0_pins>;
468 pinctrl-names = "default";
469
470 vmmc-supply = <&vcc_sdhi0>;
471 vqmmc-supply = <&vccq_sdhi0>;
472 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
473 status = "okay";
474};
475
476&sdhi2 {
477 pinctrl-0 = <&sdhi2_pins>;
478 pinctrl-names = "default";
479
480 vmmc-supply = <&vcc_sdhi2>;
481 vqmmc-supply = <&vccq_sdhi2>;
482 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
483 status = "okay";
484};
05f72e03 485
b989e138
BC
486&cpu0 {
487 cpu0-supply = <&vdd_dvfs>;
488};
e489c2a9 489
cb9a2b12 490&iic0 {
fd7a8cbf 491 status = "okay";
e489c2a9
BD
492};
493
cb9a2b12 494&iic1 {
fd7a8cbf 495 status = "okay";
cb9a2b12 496 pinctrl-0 = <&iic1_pins>;
e1a2c4eb 497 pinctrl-names = "default";
e489c2a9
BD
498};
499
cb9a2b12 500&iic2 {
fd7a8cbf 501 status = "okay";
cb9a2b12 502 pinctrl-0 = <&iic2_pins>;
e1a2c4eb 503 pinctrl-names = "default";
d594c977 504
177d8bea
KM
505 clock-frequency = <100000>;
506
8ea7a44a
KM
507 ak4643: sound-codec@12 {
508 compatible = "asahi-kasei,ak4643";
509 #sound-dai-cells = <0>;
510 reg = <0x12>;
511 };
512
d594c977
BD
513 composite-in@20 {
514 compatible = "adi,adv7180";
515 reg = <0x20>;
516 remote = <&vin1>;
517
518 port {
519 adv7180: endpoint {
520 bus-width = <8>;
521 remote-endpoint = <&vin1ep0>;
522 };
523 };
524 };
fd25cdd1
LP
525
526 hdmi@39 {
527 compatible = "adi,adv7511w";
528 reg = <0x39>;
529 interrupt-parent = <&gpio1>;
530 interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
531
532 adi,input-depth = <8>;
533 adi,input-colorspace = "rgb";
534 adi,input-clock = "1x";
535 adi,input-style = <1>;
536 adi,input-justification = "evenly";
537
538 ports {
539 #address-cells = <1>;
540 #size-cells = <0>;
541
542 port@0 {
543 reg = <0>;
544 adv7511_in: endpoint {
545 remote-endpoint = <&du_out_lvds0>;
546 };
547 };
548
549 port@1 {
550 reg = <1>;
551 adv7511_out: endpoint {
552 remote-endpoint = <&hdmi_con>;
553 };
554 };
555 };
556 };
e489c2a9
BD
557};
558
5179ffd0 559&iic3 {
aca4ec44 560 pinctrl-names = "default";
5179ffd0 561 pinctrl-0 = <&iic3_pins>;
aca4ec44
SH
562 status = "okay";
563
564 vdd_dvfs: regulator@68 {
bd597f47 565 compatible = "dlg,da9210";
aca4ec44
SH
566 reg = <0x68>;
567
568 regulator-min-microvolt = <1000000>;
569 regulator-max-microvolt = <1000000>;
570 regulator-boot-on;
571 regulator-always-on;
572 };
e489c2a9 573};
d8584660
BD
574
575&pci0 {
576 status = "okay";
577 pinctrl-0 = <&usb0_pins>;
578 pinctrl-names = "default";
579};
580
581&pci1 {
582 status = "okay";
583 pinctrl-0 = <&usb1_pins>;
584 pinctrl-names = "default";
585};
586
37f7c1b0
YS
587&xhci {
588 status = "okay";
589 pinctrl-0 = <&usb2_pins>;
590 pinctrl-names = "default";
591};
592
d8584660
BD
593&pci2 {
594 status = "okay";
595 pinctrl-0 = <&usb2_pins>;
596 pinctrl-names = "default";
597};
d594c977 598
e03074a7
YS
599&hsusb {
600 status = "okay";
601 pinctrl-0 = <&hsusb_pins>;
602 pinctrl-names = "default";
603 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
604};
605
6742cafb
SS
606&usbphy {
607 status = "okay";
608};
609
d594c977
BD
610/* composite video input */
611&vin1 {
612 pinctrl-0 = <&vin1_pins>;
613 pinctrl-names = "default";
614
fd7a8cbf 615 status = "okay";
d594c977
BD
616
617 port {
618 #address-cells = <1>;
619 #size-cells = <0>;
620
621 vin1ep0: endpoint {
622 remote-endpoint = <&adv7180>;
623 bus-width = <8>;
624 };
625 };
626};
8ea7a44a
KM
627
628&rcar_sound {
629 pinctrl-0 = <&sound_pins &sound_clk_pins>;
630 pinctrl-names = "default";
631
ad63241c 632 /* Single DAI */
8ea7a44a
KM
633 #sound-dai-cells = <0>;
634
635 status = "okay";
636
637 rcar_sound,dai {
638 dai0 {
e110c541
KM
639 playback = <&ssi0 &src2 &dvc0>;
640 capture = <&ssi1 &src3 &dvc1>;
8ea7a44a
KM
641 };
642 };
643};
644
8ea7a44a 645&ssi1 {
8ea7a44a
KM
646 shared-pin;
647};