ARM: shmobile: henninger dts: Replace status value "ok" by "okay"
[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
LP
50 aliases {
51 serial6 = &scif0;
52 serial7 = &scif1;
53 };
54
1f52c659 55 chosen {
79e69d17 56 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
17323b36 57 stdout-path = &scif0;
1f52c659
HN
58 };
59
60 memory@40000000 {
61 device_type = "memory";
4cd1bad4
TY
62 reg = <0 0x40000000 0 0x40000000>;
63 };
64
65 memory@200000000 {
66 device_type = "memory";
67 reg = <2 0x00000000 0 0x40000000>;
1f52c659
HN
68 };
69
70 lbsc {
71 #address-cells = <1>;
72 #size-cells = <1>;
73 };
f8e2535d 74
d3aaec83 75 keyboard {
aff5274f
LP
76 compatible = "gpio-keys";
77
7f168b1e
MD
78 key-1 {
79 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_1>;
81 label = "SW2-1";
82 gpio-key,wakeup;
83 debounce-interval = <20>;
84 };
85 key-2 {
86 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_2>;
88 label = "SW2-2";
89 gpio-key,wakeup;
90 debounce-interval = <20>;
91 };
92 key-3 {
93 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
94 linux,code = <KEY_3>;
95 label = "SW2-3";
96 gpio-key,wakeup;
97 debounce-interval = <20>;
98 };
99 key-4 {
100 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_4>;
102 label = "SW2-4";
103 gpio-key,wakeup;
104 debounce-interval = <20>;
105 };
aff5274f
LP
106 key-a {
107 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
7f168b1e 108 linux,code = <KEY_A>;
aff5274f
LP
109 label = "SW30";
110 gpio-key,wakeup;
111 debounce-interval = <20>;
112 };
113 key-b {
114 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
7f168b1e 115 linux,code = <KEY_B>;
aff5274f
LP
116 label = "SW31";
117 gpio-key,wakeup;
118 debounce-interval = <20>;
119 };
120 key-c {
121 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
7f168b1e 122 linux,code = <KEY_C>;
aff5274f
LP
123 label = "SW32";
124 gpio-key,wakeup;
125 debounce-interval = <20>;
126 };
127 key-d {
128 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
7f168b1e 129 linux,code = <KEY_D>;
aff5274f
LP
130 label = "SW33";
131 gpio-key,wakeup;
132 debounce-interval = <20>;
133 };
134 key-e {
135 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
7f168b1e 136 linux,code = <KEY_E>;
aff5274f
LP
137 label = "SW34";
138 gpio-key,wakeup;
139 debounce-interval = <20>;
140 };
141 key-f {
142 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
7f168b1e 143 linux,code = <KEY_F>;
aff5274f
LP
144 label = "SW35";
145 gpio-key,wakeup;
146 debounce-interval = <20>;
147 };
148 key-g {
149 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
7f168b1e 150 linux,code = <KEY_G>;
aff5274f
LP
151 label = "SW36";
152 gpio-key,wakeup;
153 debounce-interval = <20>;
154 };
155 };
156
f8e2535d
LP
157 leds {
158 compatible = "gpio-leds";
159 led6 {
160 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
352faa5f 161 label = "LED6";
f8e2535d
LP
162 };
163 led7 {
164 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
352faa5f 165 label = "LED7";
f8e2535d
LP
166 };
167 led8 {
168 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
352faa5f 169 label = "LED8";
f8e2535d
LP
170 };
171 };
2c60a7df
MD
172
173 vcc_sdhi0: regulator@0 {
174 compatible = "regulator-fixed";
175
176 regulator-name = "SDHI0 Vcc";
177 regulator-min-microvolt = <3300000>;
178 regulator-max-microvolt = <3300000>;
179
180 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
181 enable-active-high;
182 };
183
184 vccq_sdhi0: regulator@1 {
185 compatible = "regulator-gpio";
186
187 regulator-name = "SDHI0 VccQ";
188 regulator-min-microvolt = <1800000>;
189 regulator-max-microvolt = <3300000>;
190
191 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
192 gpios-states = <1>;
193 states = <3300000 1
194 1800000 0>;
195 };
196
197 vcc_sdhi1: regulator@2 {
198 compatible = "regulator-fixed";
199
200 regulator-name = "SDHI1 Vcc";
201 regulator-min-microvolt = <3300000>;
202 regulator-max-microvolt = <3300000>;
203
204 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
205 enable-active-high;
206 };
207
208 vccq_sdhi1: regulator@3 {
209 compatible = "regulator-gpio";
210
211 regulator-name = "SDHI1 VccQ";
212 regulator-min-microvolt = <1800000>;
213 regulator-max-microvolt = <3300000>;
214
215 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
216 gpios-states = <1>;
217 states = <3300000 1
218 1800000 0>;
219 };
220
221 vcc_sdhi2: regulator@4 {
222 compatible = "regulator-fixed";
223
224 regulator-name = "SDHI2 Vcc";
225 regulator-min-microvolt = <3300000>;
226 regulator-max-microvolt = <3300000>;
227
228 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
229 enable-active-high;
230 };
231
232 vccq_sdhi2: regulator@5 {
233 compatible = "regulator-gpio";
234
235 regulator-name = "SDHI2 VccQ";
236 regulator-min-microvolt = <1800000>;
237 regulator-max-microvolt = <3300000>;
238
239 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
240 gpios-states = <1>;
241 states = <3300000 1
242 1800000 0>;
243 };
b160f615
KM
244
245 sound {
246 compatible = "simple-audio-card";
247
248 simple-audio-card,format = "left_j";
249 simple-audio-card,bitclock-master = <&sndcodec>;
250 simple-audio-card,frame-master = <&sndcodec>;
251
252 sndcpu: simple-audio-card,cpu {
253 sound-dai = <&rcar_sound>;
254 };
255
256 sndcodec: simple-audio-card,codec {
257 sound-dai = <&ak4643>;
258 system-clock-frequency = <11289600>;
259 };
260 };
f8e2535d
LP
261};
262
0ee56d40
LP
263&du {
264 pinctrl-0 = <&du_pins>;
265 pinctrl-names = "default";
266 status = "okay";
267
268 ports {
269 port@1 {
270 lvds_connector: endpoint {
271 };
272 };
273 };
274};
275
fcf0c725
LP
276&extal_clk {
277 clock-frequency = <20000000>;
278};
279
f8e2535d 280&pfc {
e6a4c001 281 i2c2_pins: i2c2 {
38c53516
WS
282 renesas,groups = "i2c2";
283 renesas,function = "i2c2";
284 };
285
afba941c
LP
286 du_pins: du {
287 renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0";
288 renesas,function = "du";
289 };
290
f8e2535d
LP
291 scif0_pins: serial0 {
292 renesas,groups = "scif0_data_d";
293 renesas,function = "scif0";
294 };
295
296 scif1_pins: serial1 {
297 renesas,groups = "scif1_data_d";
298 renesas,function = "scif1";
299 };
e02ee513 300
08e8f0f3
SS
301 ether_pins: ether {
302 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
303 renesas,function = "eth";
304 };
305
306 phy1_pins: phy1 {
307 renesas,groups = "intc_irq0";
308 renesas,function = "intc";
309 };
310
2c60a7df 311 sdhi0_pins: sd0 {
d5dda038 312 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
2c60a7df
MD
313 renesas,function = "sdhi0";
314 };
315
316 sdhi1_pins: sd1 {
d5dda038 317 renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
2c60a7df
MD
318 renesas,function = "sdhi1";
319 };
320
321 sdhi2_pins: sd2 {
d5dda038 322 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
2c60a7df
MD
323 renesas,function = "sdhi2";
324 };
325
6f3e4ee3 326 qspi_pins: spi0 {
e02ee513
GU
327 renesas,groups = "qspi_ctrl", "qspi_data4";
328 renesas,function = "qspi";
329 };
b16f05ab
GU
330
331 msiof0_pins: spi1 {
332 renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
333 "msiof0_tx";
334 renesas,function = "msiof0";
335 };
1d41f36a 336
7540aeb0
SS
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 };
2cf08810 346
347 vin1_pins: vin1 {
348 renesas,groups = "vin1_data8", "vin1_clk";
349 renesas,function = "vin1";
350 };
b160f615
KM
351
352 sound_pins: sound {
353 renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
354 renesas,function = "ssi";
355 };
356
357 sound_clk_pins: sound_clk {
358 renesas,groups = "audio_clk_a";
359 renesas,function = "audio_clk";
360 };
1f52c659 361};
760c277b 362
08e8f0f3
SS
363&ether {
364 pinctrl-0 = <&ether_pins &phy1_pins>;
365 pinctrl-names = "default";
366
367 phy-handle = <&phy1>;
368 renesas,ether-link-active-low;
369 status = "ok";
370
371 phy1: ethernet-phy@1 {
372 reg = <1>;
373 interrupt-parent = <&irqc0>;
374 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
19f647cb 375 micrel,led-mode = <1>;
08e8f0f3
SS
376 };
377};
378
6a1d9460
LP
379&cmt0 {
380 status = "ok";
381};
382
760c277b
VB
383&sata0 {
384 status = "okay";
385};
e02ee513 386
5ba55fa8
LP
387&scif0 {
388 pinctrl-0 = <&scif0_pins>;
389 pinctrl-names = "default";
390
391 status = "okay";
392};
393
394&scif1 {
395 pinctrl-0 = <&scif1_pins>;
396 pinctrl-names = "default";
397
398 status = "okay";
399};
400
2c60a7df
MD
401&sdhi0 {
402 pinctrl-0 = <&sdhi0_pins>;
403 pinctrl-names = "default";
404
405 vmmc-supply = <&vcc_sdhi0>;
406 vqmmc-supply = <&vccq_sdhi0>;
407 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
408 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
409 status = "okay";
410};
411
412&sdhi1 {
413 pinctrl-0 = <&sdhi1_pins>;
414 pinctrl-names = "default";
415
416 vmmc-supply = <&vcc_sdhi1>;
417 vqmmc-supply = <&vccq_sdhi1>;
418 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
419 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
420 status = "okay";
421};
422
423&sdhi2 {
424 pinctrl-0 = <&sdhi2_pins>;
425 pinctrl-names = "default";
426
427 vmmc-supply = <&vcc_sdhi2>;
428 vqmmc-supply = <&vccq_sdhi2>;
429 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
430 status = "okay";
431};
432
6f3e4ee3 433&qspi {
e02ee513
GU
434 pinctrl-0 = <&qspi_pins>;
435 pinctrl-names = "default";
436
437 status = "okay";
438
439 flash: flash@0 {
440 #address-cells = <1>;
441 #size-cells = <1>;
442 compatible = "spansion,s25fl512s";
443 reg = <0>;
444 spi-max-frequency = <30000000>;
ed56083a
GU
445 spi-tx-bus-width = <4>;
446 spi-rx-bus-width = <4>;
e02ee513
GU
447 m25p,fast-read;
448
449 partition@0 {
450 label = "loader";
451 reg = <0x00000000 0x00080000>;
452 read-only;
453 };
454 partition@80000 {
455 label = "bootenv";
456 reg = <0x00080000 0x00080000>;
457 read-only;
458 };
459 partition@100000 {
460 label = "data";
461 reg = <0x00100000 0x03f00000>;
462 };
463 };
464};
b16f05ab
GU
465
466&msiof0 {
467 pinctrl-0 = <&msiof0_pins>;
468 pinctrl-names = "default";
469
470 status = "okay";
471
472 pmic: pmic@0 {
473 compatible = "renesas,r2a11302ft";
474 reg = <0>;
475 spi-max-frequency = <6000000>;
476 spi-cpol;
477 spi-cpha;
478 };
479};
1d41f36a 480
897dfdbc
SH
481&i2c2 {
482 pinctrl-0 = <&i2c2_pins>;
483 pinctrl-names = "default";
484
485 status = "okay";
a8d943ed 486 clock-frequency = <100000>;
897dfdbc 487
b160f615
KM
488 ak4643: sound-codec@12 {
489 compatible = "asahi-kasei,ak4643";
490 #sound-dai-cells = <0>;
491 reg = <0x12>;
492 };
897dfdbc 493
2cf08810 494 composite-in@20 {
495 compatible = "adi,adv7180";
496 reg = <0x20>;
497 remote = <&vin1>;
498
499 port {
500 adv7180: endpoint {
501 bus-width = <8>;
502 remote-endpoint = <&vin1ep>;
503 };
504 };
505 };
506
897dfdbc
SH
507 eeprom@50 {
508 compatible = "renesas,24c02";
509 reg = <0x50>;
510 pagesize = <16>;
511 };
512};
513
1d41f36a 514&i2c6 {
1d41f36a 515 status = "okay";
897dfdbc 516 clock-frequency = <100000>;
1d41f36a
GI
517
518 vdd_dvfs: regulator@68 {
bd597f47 519 compatible = "dlg,da9210";
1d41f36a
GI
520 reg = <0x68>;
521
522 regulator-min-microvolt = <1000000>;
523 regulator-max-microvolt = <1000000>;
524 regulator-boot-on;
525 regulator-always-on;
526 };
527};
a57004ec 528
7540aeb0
SS
529&pci0 {
530 status = "okay";
531 pinctrl-0 = <&usb0_pins>;
532 pinctrl-names = "default";
533};
534
535&pci1 {
536 status = "okay";
537 pinctrl-0 = <&usb1_pins>;
538 pinctrl-names = "default";
539};
540
fc4a00b7
YS
541&hsusb {
542 status = "okay";
543 pinctrl-0 = <&usb0_pins>;
544 pinctrl-names = "default";
545 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
546};
547
dc80d8bc
SS
548&usbphy {
549 status = "okay";
550};
551
998d7d64
PE
552&pcie_bus_clk {
553 status = "okay";
554};
555
556&pciec {
557 status = "okay";
558};
559
a57004ec
GI
560&cpu0 {
561 cpu0-supply = <&vdd_dvfs>;
562};
2cf08810 563
564/* composite video input */
565&vin1 {
566 status = "ok";
567 pinctrl-0 = <&vin1_pins>;
568 pinctrl-names = "default";
569
570 port {
571 #address-cells = <1>;
572 #size-cells = <0>;
573
574 vin1ep: endpoint {
575 remote-endpoint = <&adv7180>;
576 bus-width = <8>;
577 };
578 };
579};
b160f615
KM
580
581&rcar_sound {
582 pinctrl-0 = <&sound_pins &sound_clk_pins>;
583 pinctrl-names = "default";
584
585 #sound-dai-cells = <0>;
586
587 status = "okay";
588
589 rcar_sound,dai {
590 dai0 {
5c6d4b94
KM
591 playback = <&ssi0 &src2 &dvc0>;
592 capture = <&ssi1 &src3 &dvc1>;
b160f615
KM
593 };
594 };
595};
596
b160f615 597&ssi1 {
b160f615
KM
598 shared-pin;
599};