]> git.ipfire.org Git - thirdparty/linux.git/blame - arch/arm/boot/dts/r8a7794-silk.dts
Merge tag 'io_uring-5.7-2020-05-22' of git://git.kernel.dk/linux-block
[thirdparty/linux.git] / arch / arm / boot / dts / r8a7794-silk.dts
CommitLineData
cdbfaf64 1// SPDX-License-Identifier: GPL-2.0
a42fc57a
SS
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.
a42fc57a
SS
8 */
9
feb13b95
SS
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
a42fc57a
SS
21/dts-v1/;
22#include "r8a7794.dtsi"
761b11e1 23#include <dt-bindings/gpio/gpio.h>
a24a5821 24#include <dt-bindings/input/input.h>
a42fc57a
SS
25
26/ {
27 model = "SILK";
28 compatible = "renesas,silk", "renesas,r8a7794";
29
30 aliases {
31 serial0 = &scif2;
d4c1ce28
WS
32 i2c9 = &gpioi2c1;
33 i2c10 = &i2chdmi;
a42fc57a
SS
34 };
35
36 chosen {
07d2bf96 37 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
5995e9f0 38 stdout-path = "serial0:115200n8";
a42fc57a
SS
39 };
40
41 memory@40000000 {
42 device_type = "memory";
43 reg = <0 0x40000000 0 0x40000000>;
44 };
054531e7 45
a24a5821
MD
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
b6960f19 100 d3_3v: regulator-d3-3v {
054531e7
SS
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 };
761b11e1 108
b6960f19 109 vcc_sdhi1: regulator-vcc-sdhi1 {
761b11e1
SS
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
b6960f19 120 vccq_sdhi1: regulator-vccq-sdhi1 {
761b11e1
SS
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>;
8a481af1 129 states = <3300000 1>, <1800000 0>;
761b11e1 130 };
84e734f4
SS
131
132 vga-encoder {
133 compatible = "adi,adv7123";
134
135 ports {
136 #address-cells = <1>;
137 #size-cells = <0>;
138
139 port@0 {
140 reg = <0>;
141 adv7123_in: endpoint {
142 remote-endpoint = <&du_out_rgb1>;
143 };
144 };
145 port@1 {
146 reg = <1>;
147 adv7123_out: endpoint {
148 remote-endpoint = <&vga_in>;
149 };
150 };
151 };
152 };
153
154 hdmi-out {
155 compatible = "hdmi-connector";
156 type = "a";
157
158 port {
159 hdmi_con: endpoint {
160 remote-endpoint = <&adv7511_out>;
161 };
162 };
163 };
164
165 vga {
166 compatible = "vga-connector";
167
168 port {
169 vga_in: endpoint {
170 remote-endpoint = <&adv7123_out>;
171 };
172 };
173 };
174
175 x2_clk: x2-clock {
176 compatible = "fixed-clock";
177 #clock-cells = <0>;
178 clock-frequency = <148500000>;
179 };
180
181 x3_clk: x3-clock {
182 compatible = "fixed-clock";
183 #clock-cells = <0>;
184 clock-frequency = <74250000>;
185 };
feb13b95
SS
186
187 x9_clk: audio_clock {
188 compatible = "fixed-clock";
189 #clock-cells = <0>;
190 clock-frequency = <12288000>;
191 };
192
193 sound {
194 compatible = "simple-audio-card";
195
196 simple-audio-card,format = "left_j";
197 simple-audio-card,bitclock-master = <&soundcodec>;
198 simple-audio-card,frame-master = <&soundcodec>;
199
200 simple-audio-card,cpu {
201 sound-dai = <&rcar_sound>;
202 };
203
204 soundcodec: simple-audio-card,codec {
205 sound-dai = <&ak4643>;
206 clocks = <&x9_clk>;
207 };
208 };
d4c1ce28
WS
209
210 gpioi2c1: i2c-9 {
211 #address-cells = <1>;
212 #size-cells = <0>;
213 compatible = "i2c-gpio";
214 status = "disabled";
215 scl-gpios = <&gpio4 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
216 sda-gpios = <&gpio4 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
217 i2c-gpio,delay-us = <5>;
218 };
219
220 /*
221 * A fallback to GPIO is provided for I2C1.
222 */
223 i2chdmi: i2c-10 {
224 compatible = "i2c-demux-pinctrl";
225 i2c-parent = <&i2c1>, <&gpioi2c1>;
226 i2c-bus-name = "i2c-hdmi";
227 #address-cells = <1>;
228 #size-cells = <0>;
229
230 ak4643: codec@12 {
231 compatible = "asahi-kasei,ak4643";
232 #sound-dai-cells = <0>;
233 reg = <0x12>;
234 };
235
236 composite-in@20 {
237 compatible = "adi,adv7180";
238 reg = <0x20>;
239 remote = <&vin0>;
240
241 port {
242 adv7180: endpoint {
243 bus-width = <8>;
244 remote-endpoint = <&vin0ep>;
245 };
246 };
247 };
248
249 hdmi@39 {
250 compatible = "adi,adv7511w";
251 reg = <0x39>;
252 interrupt-parent = <&gpio5>;
253 interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
254
255 adi,input-depth = <8>;
256 adi,input-colorspace = "rgb";
257 adi,input-clock = "1x";
d4c1ce28
WS
258
259 ports {
260 #address-cells = <1>;
261 #size-cells = <0>;
262
263 port@0 {
264 reg = <0>;
265 adv7511_in: endpoint {
266 remote-endpoint = <&du_out_rgb0>;
267 };
268 };
269
270 port@1 {
271 reg = <1>;
272 adv7511_out: endpoint {
273 remote-endpoint = <&hdmi_con>;
274 };
275 };
276 };
277 };
7f8f74cd
MD
278
279 eeprom@50 {
280 compatible = "renesas,r1ex24002", "atmel,24c02";
281 reg = <0x50>;
282 pagesize = <16>;
283 };
d4c1ce28 284 };
a42fc57a
SS
285};
286
287&extal_clk {
288 clock-frequency = <20000000>;
289};
290
291&pfc {
c3373b09
GU
292 pinctrl-0 = <&scif_clk_pins>;
293 pinctrl-names = "default";
294
092599d6 295 scif2_pins: scif2 {
4386ed21
SH
296 groups = "scif2_data";
297 function = "scif2";
a42fc57a 298 };
dad5c83d 299
c3373b09 300 scif_clk_pins: scif_clk {
4386ed21
SH
301 groups = "scif_clk";
302 function = "scif_clk";
c3373b09
GU
303 };
304
dad5c83d 305 ether_pins: ether {
4386ed21
SH
306 groups = "eth_link", "eth_mdio", "eth_rmii";
307 function = "eth";
dad5c83d
SS
308 };
309
310 phy1_pins: phy1 {
4386ed21
SH
311 groups = "intc_irq8";
312 function = "intc";
dad5c83d 313 };
054531e7 314
fa070791 315 i2c1_pins: i2c1 {
4386ed21
SH
316 groups = "i2c1";
317 function = "i2c1";
fa070791
SS
318 };
319
054531e7 320 mmcif0_pins: mmcif0 {
4386ed21
SH
321 groups = "mmc_data8", "mmc_ctrl";
322 function = "mmc";
054531e7 323 };
0ebdbc50 324
761b11e1 325 sdhi1_pins: sd1 {
4386ed21
SH
326 groups = "sdhi1_data4", "sdhi1_ctrl";
327 function = "sdhi1";
761b11e1
SS
328 };
329
a35cc9d2 330 qspi_pins: qspi {
4386ed21
SH
331 groups = "qspi_ctrl", "qspi_data4";
332 function = "qspi";
0ebdbc50 333 };
8614daf2
SS
334
335 vin0_pins: vin0 {
4386ed21
SH
336 groups = "vin0_data8", "vin0_clk";
337 function = "vin0";
8614daf2 338 };
f409ed0f
SS
339
340 usb0_pins: usb0 {
4386ed21
SH
341 groups = "usb0";
342 function = "usb0";
f409ed0f
SS
343 };
344
345 usb1_pins: usb1 {
4386ed21
SH
346 groups = "usb1";
347 function = "usb1";
f409ed0f 348 };
adc47ecf
SS
349
350 du0_pins: du0 {
351 groups = "du0_rgb888", "du0_sync", "du0_disp", "du0_clk0_out";
352 function = "du0";
353 };
354
355 du1_pins: du1 {
356 groups = "du1_rgb666", "du1_sync", "du1_disp", "du1_clk0_out";
357 function = "du1";
358 };
feb13b95
SS
359
360 ssi_pins: sound {
361 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
362 function = "ssi";
363 };
364
365 audio_clk_pins: audio_clk {
366 groups = "audio_clkc";
367 function = "audio_clk";
368 };
a42fc57a
SS
369};
370
371&scif2 {
372 pinctrl-0 = <&scif2_pins>;
373 pinctrl-names = "default";
374
375 status = "okay";
376};
dad5c83d 377
c3373b09
GU
378&scif_clk {
379 clock-frequency = <14745600>;
c3373b09
GU
380};
381
dad5c83d
SS
382&ether {
383 pinctrl-0 = <&ether_pins &phy1_pins>;
384 pinctrl-names = "default";
385
386 phy-handle = <&phy1>;
387 renesas,ether-link-active-low;
388 status = "okay";
389
390 phy1: ethernet-phy@1 {
391 reg = <1>;
392 interrupt-parent = <&irqc0>;
393 interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
394 micrel,led-mode = <1>;
516f6894 395 reset-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
dad5c83d
SS
396 };
397};
054531e7 398
fa070791
SS
399&i2c1 {
400 pinctrl-0 = <&i2c1_pins>;
d4c1ce28 401 pinctrl-names = "i2c-hdmi";
fa070791 402
fa070791
SS
403 clock-frequency = <400000>;
404};
405
bce6d67d
MV
406&i2c7 {
407 status = "okay";
408 clock-frequency = <100000>;
409
410 pmic@58 {
411 compatible = "dlg,da9063";
412 reg = <0x58>;
413 interrupt-parent = <&gpio3>;
414 interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
415 interrupt-controller;
416
d688a83a
MV
417 onkey {
418 compatible = "dlg,da9063-onkey";
419 };
420
421 rtc {
422 compatible = "dlg,da9063-rtc";
423 };
424
bce6d67d
MV
425 wdt {
426 compatible = "dlg,da9063-watchdog";
427 };
428 };
429};
430
054531e7
SS
431&mmcif0 {
432 pinctrl-0 = <&mmcif0_pins>;
433 pinctrl-names = "default";
434
435 vmmc-supply = <&d3_3v>;
436 vqmmc-supply = <&d3_3v>;
437 bus-width = <8>;
438 non-removable;
439 status = "okay";
440};
0ebdbc50 441
761b11e1
SS
442&sdhi1 {
443 pinctrl-0 = <&sdhi1_pins>;
444 pinctrl-names = "default";
445
446 vmmc-supply = <&vcc_sdhi1>;
447 vqmmc-supply = <&vccq_sdhi1>;
448 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
449 status = "okay";
450};
451
0ebdbc50
SS
452&qspi {
453 pinctrl-0 = <&qspi_pins>;
454 pinctrl-names = "default";
455
456 status = "okay";
457
458 flash@0 {
0ebdbc50
SS
459 compatible = "spansion,s25fl512s", "jedec,spi-nor";
460 reg = <0>;
461 spi-max-frequency = <30000000>;
462 spi-tx-bus-width = <4>;
463 spi-rx-bus-width = <4>;
464 spi-cpol;
465 spi-cpha;
466 m25p,fast-read;
467
99e14b36 468 partitions {
8bc403b7 469 compatible = "fixed-partitions";
99e14b36
GU
470 #address-cells = <1>;
471 #size-cells = <1>;
472
473 partition@0 {
474 label = "loader";
475 reg = <0x00000000 0x00040000>;
476 read-only;
477 };
478 partition@40000 {
479 label = "user";
480 reg = <0x00040000 0x00400000>;
481 read-only;
482 };
483 partition@440000 {
484 label = "flash";
485 reg = <0x00440000 0x03bc0000>;
486 };
0ebdbc50
SS
487 };
488 };
489};
8614daf2
SS
490
491/* composite video input */
492&vin0 {
493 status = "okay";
494 pinctrl-0 = <&vin0_pins>;
495 pinctrl-names = "default";
496
497 port {
8614daf2
SS
498 vin0ep: endpoint {
499 remote-endpoint = <&adv7180>;
500 bus-width = <8>;
501 };
502 };
503};
f409ed0f
SS
504
505&pci0 {
506 status = "okay";
507 pinctrl-0 = <&usb0_pins>;
508 pinctrl-names = "default";
509};
510
511&pci1 {
512 status = "okay";
513 pinctrl-0 = <&usb1_pins>;
514 pinctrl-names = "default";
515};
1f4f6317
SS
516
517&usbphy {
518 status = "okay";
519};
84e734f4
SS
520
521&du {
adc47ecf
SS
522 pinctrl-0 = <&du0_pins &du1_pins>;
523 pinctrl-names = "default";
84e734f4
SS
524 status = "okay";
525
58d6c357 526 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
84e734f4
SS
527 <&x2_clk>, <&x3_clk>;
528 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
529
530 ports {
531 port@0 {
532 endpoint {
533 remote-endpoint = <&adv7511_in>;
534 };
535 };
536 port@1 {
537 endpoint {
538 remote-endpoint = <&adv7123_in>;
539 };
540 };
541 };
542};
feb13b95
SS
543
544&rcar_sound {
545 pinctrl-0 = <&ssi_pins &audio_clk_pins>;
546 pinctrl-names = "default";
547 status = "okay";
548
549 /* Single DAI */
550 #sound-dai-cells = <0>;
551
552 rcar_sound,dai {
553 dai0 {
554 playback = <&ssi0>;
555 capture = <&ssi1>;
556 };
557 };
558};
559
c9603026
GU
560&rwdt {
561 timeout-sec = <60>;
562 status = "okay";
563};
564
feb13b95
SS
565&ssi1 {
566 shared-pin;
567};