Loading...
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the SILK board
4 *
5 * Copyright (C) 2014 Renesas Electronics Corporation
6 * Copyright (C) 2014-2015 Renesas Solutions Corp.
7 * Copyright (C) 2014-2015 Cogent Embedded, Inc.
8 */
9
10/*
11 * SSI-AK4643
12 *
13 * SW1: 2-1: AK4643
14 * 2-3: ADV7511
15 *
16 * This command is required before playback/capture:
17 *
18 * amixer set "LINEOUT Mixer DACL" on
19 */
20
21/dts-v1/;
22#include "r8a7794.dtsi"
23#include <dt-bindings/gpio/gpio.h>
24#include <dt-bindings/input/input.h>
25
26/ {
27 model = "SILK";
28 compatible = "renesas,silk", "renesas,r8a7794";
29
30 aliases {
31 serial0 = &scif2;
32 i2c9 = &gpioi2c1;
33 i2c10 = &i2chdmi;
34 };
35
36 chosen {
37 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
38 stdout-path = "serial0:115200n8";
39 };
40
41 memory@40000000 {
42 device_type = "memory";
43 reg = <0 0x40000000 0 0x40000000>;
44 };
45
46 gpio-keys {
47 compatible = "gpio-keys";
48
49 key-3 {
50 gpios = <&gpio5 10 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_3>;
52 label = "SW3";
53 wakeup-source;
54 debounce-interval = <20>;
55 };
56 key-4 {
57 gpios = <&gpio5 11 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_4>;
59 label = "SW4";
60 wakeup-source;
61 debounce-interval = <20>;
62 };
63 key-6 {
64 gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_6>;
66 label = "SW6";
67 wakeup-source;
68 debounce-interval = <20>;
69 };
70 key-a {
71 gpios = <&gpio3 9 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_A>;
73 label = "SW12-1";
74 wakeup-source;
75 debounce-interval = <20>;
76 };
77 key-b {
78 gpios = <&gpio3 10 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_B>;
80 label = "SW12-2";
81 wakeup-source;
82 debounce-interval = <20>;
83 };
84 key-c {
85 gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_C>;
87 label = "SW12-3";
88 wakeup-source;
89 debounce-interval = <20>;
90 };
91 key-d {
92 gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_D>;
94 label = "SW12-4";
95 wakeup-source;
96 debounce-interval = <20>;
97 };
98 };
99
100 d3_3v: regulator-d3-3v {
101 compatible = "regulator-fixed";
102 regulator-name = "D3.3V";
103 regulator-min-microvolt = <3300000>;
104 regulator-max-microvolt = <3300000>;
105 regulator-boot-on;
106 regulator-always-on;
107 };
108
109 vcc_sdhi1: regulator-vcc-sdhi1 {
110 compatible = "regulator-fixed";
111
112 regulator-name = "SDHI1 Vcc";
113 regulator-min-microvolt = <3300000>;
114 regulator-max-microvolt = <3300000>;
115
116 gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
117 enable-active-high;
118 };
119
120 vccq_sdhi1: regulator-vccq-sdhi1 {
121 compatible = "regulator-gpio";
122
123 regulator-name = "SDHI1 VccQ";
124 regulator-min-microvolt = <1800000>;
125 regulator-max-microvolt = <3300000>;
126
127 gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
128 gpios-states = <1>;
129 states = <3300000 1
130 1800000 0>;
131 };
132
133 vga-encoder {
134 compatible = "adi,adv7123";
135
136 ports {
137 #address-cells = <1>;
138 #size-cells = <0>;
139
140 port@0 {
141 reg = <0>;
142 adv7123_in: endpoint {
143 remote-endpoint = <&du_out_rgb1>;
144 };
145 };
146 port@1 {
147 reg = <1>;
148 adv7123_out: endpoint {
149 remote-endpoint = <&vga_in>;
150 };
151 };
152 };
153 };
154
155 hdmi-out {
156 compatible = "hdmi-connector";
157 type = "a";
158
159 port {
160 hdmi_con: endpoint {
161 remote-endpoint = <&adv7511_out>;
162 };
163 };
164 };
165
166 vga {
167 compatible = "vga-connector";
168
169 port {
170 vga_in: endpoint {
171 remote-endpoint = <&adv7123_out>;
172 };
173 };
174 };
175
176 x2_clk: x2-clock {
177 compatible = "fixed-clock";
178 #clock-cells = <0>;
179 clock-frequency = <148500000>;
180 };
181
182 x3_clk: x3-clock {
183 compatible = "fixed-clock";
184 #clock-cells = <0>;
185 clock-frequency = <74250000>;
186 };
187
188 x9_clk: audio_clock {
189 compatible = "fixed-clock";
190 #clock-cells = <0>;
191 clock-frequency = <12288000>;
192 };
193
194 sound {
195 compatible = "simple-audio-card";
196
197 simple-audio-card,format = "left_j";
198 simple-audio-card,bitclock-master = <&soundcodec>;
199 simple-audio-card,frame-master = <&soundcodec>;
200
201 simple-audio-card,cpu {
202 sound-dai = <&rcar_sound>;
203 };
204
205 soundcodec: simple-audio-card,codec {
206 sound-dai = <&ak4643>;
207 clocks = <&x9_clk>;
208 };
209 };
210
211 gpioi2c1: i2c-9 {
212 #address-cells = <1>;
213 #size-cells = <0>;
214 compatible = "i2c-gpio";
215 status = "disabled";
216 scl-gpios = <&gpio4 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
217 sda-gpios = <&gpio4 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
218 i2c-gpio,delay-us = <5>;
219 };
220
221 /*
222 * A fallback to GPIO is provided for I2C1.
223 */
224 i2chdmi: i2c-10 {
225 compatible = "i2c-demux-pinctrl";
226 i2c-parent = <&i2c1>, <&gpioi2c1>;
227 i2c-bus-name = "i2c-hdmi";
228 #address-cells = <1>;
229 #size-cells = <0>;
230
231 ak4643: codec@12 {
232 compatible = "asahi-kasei,ak4643";
233 #sound-dai-cells = <0>;
234 reg = <0x12>;
235 };
236
237 composite-in@20 {
238 compatible = "adi,adv7180";
239 reg = <0x20>;
240 remote = <&vin0>;
241
242 port {
243 adv7180: endpoint {
244 bus-width = <8>;
245 remote-endpoint = <&vin0ep>;
246 };
247 };
248 };
249
250 hdmi@39 {
251 compatible = "adi,adv7511w";
252 reg = <0x39>;
253 interrupt-parent = <&gpio5>;
254 interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
255
256 adi,input-depth = <8>;
257 adi,input-colorspace = "rgb";
258 adi,input-clock = "1x";
259 adi,input-style = <1>;
260 adi,input-justification = "evenly";
261
262 ports {
263 #address-cells = <1>;
264 #size-cells = <0>;
265
266 port@0 {
267 reg = <0>;
268 adv7511_in: endpoint {
269 remote-endpoint = <&du_out_rgb0>;
270 };
271 };
272
273 port@1 {
274 reg = <1>;
275 adv7511_out: endpoint {
276 remote-endpoint = <&hdmi_con>;
277 };
278 };
279 };
280 };
281
282 eeprom@50 {
283 compatible = "renesas,r1ex24002", "atmel,24c02";
284 reg = <0x50>;
285 pagesize = <16>;
286 };
287 };
288};
289
290&extal_clk {
291 clock-frequency = <20000000>;
292};
293
294&pfc {
295 pinctrl-0 = <&scif_clk_pins>;
296 pinctrl-names = "default";
297
298 scif2_pins: scif2 {
299 groups = "scif2_data";
300 function = "scif2";
301 };
302
303 scif_clk_pins: scif_clk {
304 groups = "scif_clk";
305 function = "scif_clk";
306 };
307
308 ether_pins: ether {
309 groups = "eth_link", "eth_mdio", "eth_rmii";
310 function = "eth";
311 };
312
313 phy1_pins: phy1 {
314 groups = "intc_irq8";
315 function = "intc";
316 };
317
318 i2c1_pins: i2c1 {
319 groups = "i2c1";
320 function = "i2c1";
321 };
322
323 mmcif0_pins: mmcif0 {
324 groups = "mmc_data8", "mmc_ctrl";
325 function = "mmc";
326 };
327
328 sdhi1_pins: sd1 {
329 groups = "sdhi1_data4", "sdhi1_ctrl";
330 function = "sdhi1";
331 };
332
333 qspi_pins: qspi {
334 groups = "qspi_ctrl", "qspi_data4";
335 function = "qspi";
336 };
337
338 vin0_pins: vin0 {
339 groups = "vin0_data8", "vin0_clk";
340 function = "vin0";
341 };
342
343 usb0_pins: usb0 {
344 groups = "usb0";
345 function = "usb0";
346 };
347
348 usb1_pins: usb1 {
349 groups = "usb1";
350 function = "usb1";
351 };
352
353 du0_pins: du0 {
354 groups = "du0_rgb888", "du0_sync", "du0_disp", "du0_clk0_out";
355 function = "du0";
356 };
357
358 du1_pins: du1 {
359 groups = "du1_rgb666", "du1_sync", "du1_disp", "du1_clk0_out";
360 function = "du1";
361 };
362
363 ssi_pins: sound {
364 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
365 function = "ssi";
366 };
367
368 audio_clk_pins: audio_clk {
369 groups = "audio_clkc";
370 function = "audio_clk";
371 };
372};
373
374&scif2 {
375 pinctrl-0 = <&scif2_pins>;
376 pinctrl-names = "default";
377
378 status = "okay";
379};
380
381&scif_clk {
382 clock-frequency = <14745600>;
383};
384
385ðer {
386 pinctrl-0 = <ðer_pins &phy1_pins>;
387 pinctrl-names = "default";
388
389 phy-handle = <&phy1>;
390 renesas,ether-link-active-low;
391 status = "okay";
392
393 phy1: ethernet-phy@1 {
394 reg = <1>;
395 interrupt-parent = <&irqc0>;
396 interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
397 micrel,led-mode = <1>;
398 };
399};
400
401&i2c1 {
402 pinctrl-0 = <&i2c1_pins>;
403 pinctrl-names = "i2c-hdmi";
404
405 clock-frequency = <400000>;
406};
407
408&i2c7 {
409 status = "okay";
410 clock-frequency = <100000>;
411
412 pmic@58 {
413 compatible = "dlg,da9063";
414 reg = <0x58>;
415 interrupt-parent = <&gpio3>;
416 interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
417 interrupt-controller;
418
419 onkey {
420 compatible = "dlg,da9063-onkey";
421 };
422
423 rtc {
424 compatible = "dlg,da9063-rtc";
425 };
426
427 wdt {
428 compatible = "dlg,da9063-watchdog";
429 };
430 };
431};
432
433&mmcif0 {
434 pinctrl-0 = <&mmcif0_pins>;
435 pinctrl-names = "default";
436
437 vmmc-supply = <&d3_3v>;
438 vqmmc-supply = <&d3_3v>;
439 bus-width = <8>;
440 non-removable;
441 status = "okay";
442};
443
444&sdhi1 {
445 pinctrl-0 = <&sdhi1_pins>;
446 pinctrl-names = "default";
447
448 vmmc-supply = <&vcc_sdhi1>;
449 vqmmc-supply = <&vccq_sdhi1>;
450 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
451 status = "okay";
452};
453
454&qspi {
455 pinctrl-0 = <&qspi_pins>;
456 pinctrl-names = "default";
457
458 status = "okay";
459
460 flash@0 {
461 compatible = "spansion,s25fl512s", "jedec,spi-nor";
462 reg = <0>;
463 spi-max-frequency = <30000000>;
464 spi-tx-bus-width = <4>;
465 spi-rx-bus-width = <4>;
466 spi-cpol;
467 spi-cpha;
468 m25p,fast-read;
469
470 partitions {
471 compatible = "fixed-partitions";
472 #address-cells = <1>;
473 #size-cells = <1>;
474
475 partition@0 {
476 label = "loader";
477 reg = <0x00000000 0x00040000>;
478 read-only;
479 };
480 partition@40000 {
481 label = "user";
482 reg = <0x00040000 0x00400000>;
483 read-only;
484 };
485 partition@440000 {
486 label = "flash";
487 reg = <0x00440000 0x03bc0000>;
488 };
489 };
490 };
491};
492
493/* composite video input */
494&vin0 {
495 status = "okay";
496 pinctrl-0 = <&vin0_pins>;
497 pinctrl-names = "default";
498
499 port {
500 vin0ep: endpoint {
501 remote-endpoint = <&adv7180>;
502 bus-width = <8>;
503 };
504 };
505};
506
507&pci0 {
508 status = "okay";
509 pinctrl-0 = <&usb0_pins>;
510 pinctrl-names = "default";
511};
512
513&pci1 {
514 status = "okay";
515 pinctrl-0 = <&usb1_pins>;
516 pinctrl-names = "default";
517};
518
519&usbphy {
520 status = "okay";
521};
522
523&du {
524 pinctrl-0 = <&du0_pins &du1_pins>;
525 pinctrl-names = "default";
526 status = "okay";
527
528 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
529 <&x2_clk>, <&x3_clk>;
530 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
531
532 ports {
533 port@0 {
534 endpoint {
535 remote-endpoint = <&adv7511_in>;
536 };
537 };
538 port@1 {
539 endpoint {
540 remote-endpoint = <&adv7123_in>;
541 };
542 };
543 };
544};
545
546&rcar_sound {
547 pinctrl-0 = <&ssi_pins &audio_clk_pins>;
548 pinctrl-names = "default";
549 status = "okay";
550
551 /* Single DAI */
552 #sound-dai-cells = <0>;
553
554 rcar_sound,dai {
555 dai0 {
556 playback = <&ssi0>;
557 capture = <&ssi1>;
558 };
559 };
560};
561
562&rwdt {
563 timeout-sec = <60>;
564 status = "okay";
565};
566
567&ssi1 {
568 shared-pin;
569};
1/*
2 * Device Tree Source for the SILK board
3 *
4 * Copyright (C) 2014 Renesas Electronics Corporation
5 * Copyright (C) 2014-2015 Renesas Solutions Corp.
6 * Copyright (C) 2014-2015 Cogent Embedded, Inc.
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
13/*
14 * SSI-AK4643
15 *
16 * SW1: 2-1: AK4643
17 * 2-3: ADV7511
18 *
19 * This command is required before playback/capture:
20 *
21 * amixer set "LINEOUT Mixer DACL" on
22 */
23
24/dts-v1/;
25#include "r8a7794.dtsi"
26#include <dt-bindings/gpio/gpio.h>
27#include <dt-bindings/input/input.h>
28
29/ {
30 model = "SILK";
31 compatible = "renesas,silk", "renesas,r8a7794";
32
33 aliases {
34 serial0 = &scif2;
35 i2c9 = &gpioi2c1;
36 i2c10 = &i2chdmi;
37 };
38
39 chosen {
40 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
41 stdout-path = "serial0:115200n8";
42 };
43
44 memory@40000000 {
45 device_type = "memory";
46 reg = <0 0x40000000 0 0x40000000>;
47 };
48
49 gpio-keys {
50 compatible = "gpio-keys";
51
52 key-3 {
53 gpios = <&gpio5 10 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_3>;
55 label = "SW3";
56 wakeup-source;
57 debounce-interval = <20>;
58 };
59 key-4 {
60 gpios = <&gpio5 11 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_4>;
62 label = "SW4";
63 wakeup-source;
64 debounce-interval = <20>;
65 };
66 key-6 {
67 gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_6>;
69 label = "SW6";
70 wakeup-source;
71 debounce-interval = <20>;
72 };
73 key-a {
74 gpios = <&gpio3 9 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_A>;
76 label = "SW12-1";
77 wakeup-source;
78 debounce-interval = <20>;
79 };
80 key-b {
81 gpios = <&gpio3 10 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_B>;
83 label = "SW12-2";
84 wakeup-source;
85 debounce-interval = <20>;
86 };
87 key-c {
88 gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_C>;
90 label = "SW12-3";
91 wakeup-source;
92 debounce-interval = <20>;
93 };
94 key-d {
95 gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_D>;
97 label = "SW12-4";
98 wakeup-source;
99 debounce-interval = <20>;
100 };
101 };
102
103 d3_3v: regulator-d3-3v {
104 compatible = "regulator-fixed";
105 regulator-name = "D3.3V";
106 regulator-min-microvolt = <3300000>;
107 regulator-max-microvolt = <3300000>;
108 regulator-boot-on;
109 regulator-always-on;
110 };
111
112 vcc_sdhi1: regulator-vcc-sdhi1 {
113 compatible = "regulator-fixed";
114
115 regulator-name = "SDHI1 Vcc";
116 regulator-min-microvolt = <3300000>;
117 regulator-max-microvolt = <3300000>;
118
119 gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
120 enable-active-high;
121 };
122
123 vccq_sdhi1: regulator-vccq-sdhi1 {
124 compatible = "regulator-gpio";
125
126 regulator-name = "SDHI1 VccQ";
127 regulator-min-microvolt = <1800000>;
128 regulator-max-microvolt = <3300000>;
129
130 gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
131 gpios-states = <1>;
132 states = <3300000 1
133 1800000 0>;
134 };
135
136 vga-encoder {
137 compatible = "adi,adv7123";
138
139 ports {
140 #address-cells = <1>;
141 #size-cells = <0>;
142
143 port@0 {
144 reg = <0>;
145 adv7123_in: endpoint {
146 remote-endpoint = <&du_out_rgb1>;
147 };
148 };
149 port@1 {
150 reg = <1>;
151 adv7123_out: endpoint {
152 remote-endpoint = <&vga_in>;
153 };
154 };
155 };
156 };
157
158 hdmi-out {
159 compatible = "hdmi-connector";
160 type = "a";
161
162 port {
163 hdmi_con: endpoint {
164 remote-endpoint = <&adv7511_out>;
165 };
166 };
167 };
168
169 vga {
170 compatible = "vga-connector";
171
172 port {
173 vga_in: endpoint {
174 remote-endpoint = <&adv7123_out>;
175 };
176 };
177 };
178
179 x2_clk: x2-clock {
180 compatible = "fixed-clock";
181 #clock-cells = <0>;
182 clock-frequency = <148500000>;
183 };
184
185 x3_clk: x3-clock {
186 compatible = "fixed-clock";
187 #clock-cells = <0>;
188 clock-frequency = <74250000>;
189 };
190
191 x9_clk: audio_clock {
192 compatible = "fixed-clock";
193 #clock-cells = <0>;
194 clock-frequency = <12288000>;
195 };
196
197 sound {
198 compatible = "simple-audio-card";
199
200 simple-audio-card,format = "left_j";
201 simple-audio-card,bitclock-master = <&soundcodec>;
202 simple-audio-card,frame-master = <&soundcodec>;
203
204 simple-audio-card,cpu {
205 sound-dai = <&rcar_sound>;
206 };
207
208 soundcodec: simple-audio-card,codec {
209 sound-dai = <&ak4643>;
210 clocks = <&x9_clk>;
211 };
212 };
213
214 gpioi2c1: i2c-9 {
215 #address-cells = <1>;
216 #size-cells = <0>;
217 compatible = "i2c-gpio";
218 status = "disabled";
219 scl-gpios = <&gpio4 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
220 sda-gpios = <&gpio4 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
221 i2c-gpio,delay-us = <5>;
222 };
223
224 /*
225 * A fallback to GPIO is provided for I2C1.
226 */
227 i2chdmi: i2c-10 {
228 compatible = "i2c-demux-pinctrl";
229 i2c-parent = <&i2c1>, <&gpioi2c1>;
230 i2c-bus-name = "i2c-hdmi";
231 #address-cells = <1>;
232 #size-cells = <0>;
233
234 ak4643: codec@12 {
235 compatible = "asahi-kasei,ak4643";
236 #sound-dai-cells = <0>;
237 reg = <0x12>;
238 };
239
240 composite-in@20 {
241 compatible = "adi,adv7180";
242 reg = <0x20>;
243 remote = <&vin0>;
244
245 port {
246 adv7180: endpoint {
247 bus-width = <8>;
248 remote-endpoint = <&vin0ep>;
249 };
250 };
251 };
252
253 hdmi@39 {
254 compatible = "adi,adv7511w";
255 reg = <0x39>;
256 interrupt-parent = <&gpio5>;
257 interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
258
259 adi,input-depth = <8>;
260 adi,input-colorspace = "rgb";
261 adi,input-clock = "1x";
262 adi,input-style = <1>;
263 adi,input-justification = "evenly";
264
265 ports {
266 #address-cells = <1>;
267 #size-cells = <0>;
268
269 port@0 {
270 reg = <0>;
271 adv7511_in: endpoint {
272 remote-endpoint = <&du_out_rgb0>;
273 };
274 };
275
276 port@1 {
277 reg = <1>;
278 adv7511_out: endpoint {
279 remote-endpoint = <&hdmi_con>;
280 };
281 };
282 };
283 };
284
285 eeprom@50 {
286 compatible = "renesas,r1ex24002", "atmel,24c02";
287 reg = <0x50>;
288 pagesize = <16>;
289 };
290 };
291};
292
293&extal_clk {
294 clock-frequency = <20000000>;
295};
296
297&pfc {
298 pinctrl-0 = <&scif_clk_pins>;
299 pinctrl-names = "default";
300
301 scif2_pins: scif2 {
302 groups = "scif2_data";
303 function = "scif2";
304 };
305
306 scif_clk_pins: scif_clk {
307 groups = "scif_clk";
308 function = "scif_clk";
309 };
310
311 ether_pins: ether {
312 groups = "eth_link", "eth_mdio", "eth_rmii";
313 function = "eth";
314 };
315
316 phy1_pins: phy1 {
317 groups = "intc_irq8";
318 function = "intc";
319 };
320
321 i2c1_pins: i2c1 {
322 groups = "i2c1";
323 function = "i2c1";
324 };
325
326 mmcif0_pins: mmcif0 {
327 groups = "mmc_data8", "mmc_ctrl";
328 function = "mmc";
329 };
330
331 sdhi1_pins: sd1 {
332 groups = "sdhi1_data4", "sdhi1_ctrl";
333 function = "sdhi1";
334 };
335
336 qspi_pins: qspi {
337 groups = "qspi_ctrl", "qspi_data4";
338 function = "qspi";
339 };
340
341 vin0_pins: vin0 {
342 groups = "vin0_data8", "vin0_clk";
343 function = "vin0";
344 };
345
346 usb0_pins: usb0 {
347 groups = "usb0";
348 function = "usb0";
349 };
350
351 usb1_pins: usb1 {
352 groups = "usb1";
353 function = "usb1";
354 };
355
356 du0_pins: du0 {
357 groups = "du0_rgb888", "du0_sync", "du0_disp", "du0_clk0_out";
358 function = "du0";
359 };
360
361 du1_pins: du1 {
362 groups = "du1_rgb666", "du1_sync", "du1_disp", "du1_clk0_out";
363 function = "du1";
364 };
365
366 ssi_pins: sound {
367 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
368 function = "ssi";
369 };
370
371 audio_clk_pins: audio_clk {
372 groups = "audio_clkc";
373 function = "audio_clk";
374 };
375};
376
377&scif2 {
378 pinctrl-0 = <&scif2_pins>;
379 pinctrl-names = "default";
380
381 status = "okay";
382};
383
384&scif_clk {
385 clock-frequency = <14745600>;
386};
387
388ðer {
389 pinctrl-0 = <ðer_pins &phy1_pins>;
390 pinctrl-names = "default";
391
392 phy-handle = <&phy1>;
393 renesas,ether-link-active-low;
394 status = "okay";
395
396 phy1: ethernet-phy@1 {
397 reg = <1>;
398 interrupt-parent = <&irqc0>;
399 interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
400 micrel,led-mode = <1>;
401 };
402};
403
404&i2c1 {
405 pinctrl-0 = <&i2c1_pins>;
406 pinctrl-names = "i2c-hdmi";
407
408 clock-frequency = <400000>;
409};
410
411&mmcif0 {
412 pinctrl-0 = <&mmcif0_pins>;
413 pinctrl-names = "default";
414
415 vmmc-supply = <&d3_3v>;
416 vqmmc-supply = <&d3_3v>;
417 bus-width = <8>;
418 non-removable;
419 status = "okay";
420};
421
422&sdhi1 {
423 pinctrl-0 = <&sdhi1_pins>;
424 pinctrl-names = "default";
425
426 vmmc-supply = <&vcc_sdhi1>;
427 vqmmc-supply = <&vccq_sdhi1>;
428 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
429 status = "okay";
430};
431
432&qspi {
433 pinctrl-0 = <&qspi_pins>;
434 pinctrl-names = "default";
435
436 status = "okay";
437
438 flash@0 {
439 compatible = "spansion,s25fl512s", "jedec,spi-nor";
440 reg = <0>;
441 spi-max-frequency = <30000000>;
442 spi-tx-bus-width = <4>;
443 spi-rx-bus-width = <4>;
444 spi-cpol;
445 spi-cpha;
446 m25p,fast-read;
447
448 partitions {
449 compatible = "fixed-partitions";
450 #address-cells = <1>;
451 #size-cells = <1>;
452
453 partition@0 {
454 label = "loader";
455 reg = <0x00000000 0x00040000>;
456 read-only;
457 };
458 partition@40000 {
459 label = "user";
460 reg = <0x00040000 0x00400000>;
461 read-only;
462 };
463 partition@440000 {
464 label = "flash";
465 reg = <0x00440000 0x03bc0000>;
466 };
467 };
468 };
469};
470
471/* composite video input */
472&vin0 {
473 status = "okay";
474 pinctrl-0 = <&vin0_pins>;
475 pinctrl-names = "default";
476
477 port {
478 #address-cells = <1>;
479 #size-cells = <0>;
480
481 vin0ep: endpoint {
482 remote-endpoint = <&adv7180>;
483 bus-width = <8>;
484 };
485 };
486};
487
488&pci0 {
489 status = "okay";
490 pinctrl-0 = <&usb0_pins>;
491 pinctrl-names = "default";
492};
493
494&pci1 {
495 status = "okay";
496 pinctrl-0 = <&usb1_pins>;
497 pinctrl-names = "default";
498};
499
500&usbphy {
501 status = "okay";
502};
503
504&du {
505 pinctrl-0 = <&du0_pins &du1_pins>;
506 pinctrl-names = "default";
507 status = "okay";
508
509 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
510 <&x2_clk>, <&x3_clk>;
511 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
512
513 ports {
514 port@0 {
515 endpoint {
516 remote-endpoint = <&adv7511_in>;
517 };
518 };
519 port@1 {
520 endpoint {
521 remote-endpoint = <&adv7123_in>;
522 };
523 };
524 };
525};
526
527&rcar_sound {
528 pinctrl-0 = <&ssi_pins &audio_clk_pins>;
529 pinctrl-names = "default";
530 status = "okay";
531
532 /* Single DAI */
533 #sound-dai-cells = <0>;
534
535 rcar_sound,dai {
536 dai0 {
537 playback = <&ssi0>;
538 capture = <&ssi1>;
539 };
540 };
541};
542
543&ssi1 {
544 shared-pin;
545};