Commit | Line | Data |
---|---|---|
cdbfaf64 | 1 | // SPDX-License-Identifier: GPL-2.0 |
b8af4591 UH |
2 | /* |
3 | * Device Tree Source for the Gose board | |
4 | * | |
5 | * Copyright (C) 2014-2015 Renesas Electronics Corporation | |
b8af4591 UH |
6 | */ |
7 | ||
f8905ce8 SH |
8 | /* |
9 | * SSI-AK4643 | |
10 | * | |
11 | * SW1: 1: AK4643 | |
12 | * 2: CN22 | |
13 | * 3: ADV7511 | |
14 | * | |
15 | * This command is required when Playback/Capture | |
16 | * | |
17 | * amixer set "LINEOUT Mixer DACL" on | |
ae79f66d SH |
18 | * amixer set "DVC Out" 100% |
19 | * amixer set "DVC In" 100% | |
20 | * | |
21 | * You can use Mute | |
22 | * | |
23 | * amixer set "DVC Out Mute" on | |
24 | * amixer set "DVC In Mute" on | |
25 | * | |
26 | * You can use Volume Ramp | |
27 | * | |
28 | * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps" | |
29 | * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps" | |
30 | * amixer set "DVC Out Ramp" on | |
31 | * aplay xxx.wav & | |
32 | * amixer set "DVC Out" 80% // Volume Down | |
33 | * amixer set "DVC Out" 100% // Volume Up | |
f8905ce8 | 34 | */ |
ae79f66d | 35 | |
b8af4591 UH |
36 | /dts-v1/; |
37 | #include "r8a7793.dtsi" | |
38 | #include <dt-bindings/gpio/gpio.h> | |
39 | #include <dt-bindings/input/input.h> | |
40 | ||
41 | / { | |
42 | model = "Gose"; | |
43 | compatible = "renesas,gose", "renesas,r8a7793"; | |
44 | ||
45 | aliases { | |
46 | serial0 = &scif0; | |
47 | serial1 = &scif1; | |
786ef2ee | 48 | i2c9 = &gpioi2c2; |
931bc7ec | 49 | i2c10 = &gpioi2c4; |
786ef2ee | 50 | i2c11 = &i2chdmi; |
931bc7ec | 51 | i2c12 = &i2cexio4; |
b8af4591 UH |
52 | }; |
53 | ||
54 | chosen { | |
55 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; | |
16010a3e | 56 | stdout-path = "serial0:115200n8"; |
b8af4591 UH |
57 | }; |
58 | ||
59 | memory@40000000 { | |
60 | device_type = "memory"; | |
61 | reg = <0 0x40000000 0 0x40000000>; | |
62 | }; | |
d7d5974b SH |
63 | |
64 | gpio-keys { | |
65 | compatible = "gpio-keys"; | |
66 | ||
67 | key-1 { | |
68 | gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; | |
69 | linux,code = <KEY_1>; | |
70 | label = "SW2-1"; | |
c816617e | 71 | wakeup-source; |
d7d5974b SH |
72 | debounce-interval = <20>; |
73 | }; | |
74 | key-2 { | |
75 | gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; | |
76 | linux,code = <KEY_2>; | |
77 | label = "SW2-2"; | |
c816617e | 78 | wakeup-source; |
d7d5974b SH |
79 | debounce-interval = <20>; |
80 | }; | |
81 | key-3 { | |
82 | gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; | |
83 | linux,code = <KEY_3>; | |
84 | label = "SW2-3"; | |
c816617e | 85 | wakeup-source; |
d7d5974b SH |
86 | debounce-interval = <20>; |
87 | }; | |
88 | key-4 { | |
89 | gpios = <&gpio5 3 GPIO_ACTIVE_LOW>; | |
90 | linux,code = <KEY_4>; | |
91 | label = "SW2-4"; | |
c816617e | 92 | wakeup-source; |
d7d5974b SH |
93 | debounce-interval = <20>; |
94 | }; | |
95 | key-a { | |
96 | gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; | |
97 | linux,code = <KEY_A>; | |
98 | label = "SW30"; | |
c816617e | 99 | wakeup-source; |
d7d5974b SH |
100 | debounce-interval = <20>; |
101 | }; | |
102 | key-b { | |
103 | gpios = <&gpio7 1 GPIO_ACTIVE_LOW>; | |
104 | linux,code = <KEY_B>; | |
105 | label = "SW31"; | |
c816617e | 106 | wakeup-source; |
d7d5974b SH |
107 | debounce-interval = <20>; |
108 | }; | |
109 | key-c { | |
110 | gpios = <&gpio7 2 GPIO_ACTIVE_LOW>; | |
111 | linux,code = <KEY_C>; | |
112 | label = "SW32"; | |
c816617e | 113 | wakeup-source; |
d7d5974b SH |
114 | debounce-interval = <20>; |
115 | }; | |
116 | key-d { | |
117 | gpios = <&gpio7 3 GPIO_ACTIVE_LOW>; | |
118 | linux,code = <KEY_D>; | |
119 | label = "SW33"; | |
c816617e | 120 | wakeup-source; |
d7d5974b SH |
121 | debounce-interval = <20>; |
122 | }; | |
123 | key-e { | |
124 | gpios = <&gpio7 4 GPIO_ACTIVE_LOW>; | |
125 | linux,code = <KEY_E>; | |
126 | label = "SW34"; | |
c816617e | 127 | wakeup-source; |
d7d5974b SH |
128 | debounce-interval = <20>; |
129 | }; | |
130 | key-f { | |
131 | gpios = <&gpio7 5 GPIO_ACTIVE_LOW>; | |
132 | linux,code = <KEY_F>; | |
133 | label = "SW35"; | |
c816617e | 134 | wakeup-source; |
d7d5974b SH |
135 | debounce-interval = <20>; |
136 | }; | |
137 | key-g { | |
138 | gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; | |
139 | linux,code = <KEY_G>; | |
140 | label = "SW36"; | |
c816617e | 141 | wakeup-source; |
d7d5974b SH |
142 | debounce-interval = <20>; |
143 | }; | |
144 | }; | |
3b18d859 SH |
145 | |
146 | leds { | |
147 | compatible = "gpio-leds"; | |
148 | led6 { | |
149 | gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; | |
150 | label = "LED6"; | |
151 | }; | |
152 | led7 { | |
153 | gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>; | |
154 | label = "LED7"; | |
155 | }; | |
156 | led8 { | |
157 | gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; | |
158 | label = "LED8"; | |
159 | }; | |
160 | }; | |
8871eb07 | 161 | |
b6dfc0d4 | 162 | vcc_sdhi0: regulator-vcc-sdhi0 { |
6f92cb2f UH |
163 | compatible = "regulator-fixed"; |
164 | ||
165 | regulator-name = "SDHI0 Vcc"; | |
166 | regulator-min-microvolt = <3300000>; | |
167 | regulator-max-microvolt = <3300000>; | |
168 | ||
169 | gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>; | |
170 | enable-active-high; | |
171 | }; | |
172 | ||
b6dfc0d4 | 173 | vccq_sdhi0: regulator-vccq-sdhi0 { |
6f92cb2f UH |
174 | compatible = "regulator-gpio"; |
175 | ||
176 | regulator-name = "SDHI0 VccQ"; | |
177 | regulator-min-microvolt = <1800000>; | |
178 | regulator-max-microvolt = <3300000>; | |
179 | ||
180 | gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; | |
181 | gpios-states = <1>; | |
182 | states = <3300000 1 | |
183 | 1800000 0>; | |
184 | }; | |
185 | ||
b6dfc0d4 | 186 | vcc_sdhi1: regulator-vcc-sdhi1 { |
6f92cb2f UH |
187 | compatible = "regulator-fixed"; |
188 | ||
189 | regulator-name = "SDHI1 Vcc"; | |
190 | regulator-min-microvolt = <3300000>; | |
191 | regulator-max-microvolt = <3300000>; | |
192 | ||
193 | gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>; | |
194 | enable-active-high; | |
195 | }; | |
196 | ||
b6dfc0d4 | 197 | vccq_sdhi1: regulator-vccq-sdhi1 { |
6f92cb2f UH |
198 | compatible = "regulator-gpio"; |
199 | ||
200 | regulator-name = "SDHI1 VccQ"; | |
201 | regulator-min-microvolt = <1800000>; | |
202 | regulator-max-microvolt = <3300000>; | |
203 | ||
204 | gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; | |
205 | gpios-states = <1>; | |
206 | states = <3300000 1 | |
207 | 1800000 0>; | |
208 | }; | |
209 | ||
b6dfc0d4 | 210 | vcc_sdhi2: regulator-vcc-sdhi2 { |
6f92cb2f UH |
211 | compatible = "regulator-fixed"; |
212 | ||
213 | regulator-name = "SDHI2 Vcc"; | |
214 | regulator-min-microvolt = <3300000>; | |
215 | regulator-max-microvolt = <3300000>; | |
216 | ||
217 | gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>; | |
218 | enable-active-high; | |
219 | }; | |
220 | ||
b6dfc0d4 | 221 | vccq_sdhi2: regulator-vccq-sdhi2 { |
6f92cb2f UH |
222 | compatible = "regulator-gpio"; |
223 | ||
224 | regulator-name = "SDHI2 VccQ"; | |
225 | regulator-min-microvolt = <1800000>; | |
226 | regulator-max-microvolt = <3300000>; | |
227 | ||
228 | gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; | |
229 | gpios-states = <1>; | |
230 | states = <3300000 1 | |
231 | 1800000 0>; | |
232 | }; | |
233 | ||
45e4f513 | 234 | audio_clock: audio_clock { |
f8905ce8 SH |
235 | compatible = "fixed-clock"; |
236 | #clock-cells = <0>; | |
237 | clock-frequency = <11289600>; | |
f8905ce8 SH |
238 | }; |
239 | ||
240 | rsnd_ak4643: sound { | |
241 | compatible = "simple-audio-card"; | |
242 | ||
243 | simple-audio-card,format = "left_j"; | |
244 | simple-audio-card,bitclock-master = <&sndcodec>; | |
245 | simple-audio-card,frame-master = <&sndcodec>; | |
246 | ||
247 | sndcpu: simple-audio-card,cpu { | |
248 | sound-dai = <&rcar_sound>; | |
249 | }; | |
250 | ||
251 | sndcodec: simple-audio-card,codec { | |
252 | sound-dai = <&ak4643>; | |
253 | clocks = <&audio_clock>; | |
254 | }; | |
255 | }; | |
256 | ||
bc63cd87 UH |
257 | hdmi-in { |
258 | compatible = "hdmi-connector"; | |
259 | type = "a"; | |
260 | ||
261 | port { | |
262 | hdmi_con_in: endpoint { | |
263 | remote-endpoint = <&adv7612_in>; | |
264 | }; | |
265 | }; | |
266 | }; | |
267 | ||
8871eb07 MD |
268 | hdmi-out { |
269 | compatible = "hdmi-connector"; | |
270 | type = "a"; | |
271 | ||
272 | port { | |
bc63cd87 | 273 | hdmi_con_out: endpoint { |
8871eb07 MD |
274 | remote-endpoint = <&adv7511_out>; |
275 | }; | |
276 | }; | |
277 | }; | |
278 | ||
8cae3590 UH |
279 | composite-in { |
280 | compatible = "composite-video-connector"; | |
281 | ||
282 | port { | |
283 | composite_con_in: endpoint { | |
284 | remote-endpoint = <&adv7180_in>; | |
285 | }; | |
286 | }; | |
287 | }; | |
288 | ||
8871eb07 MD |
289 | x2_clk: x2-clock { |
290 | compatible = "fixed-clock"; | |
291 | #clock-cells = <0>; | |
292 | clock-frequency = <74250000>; | |
293 | }; | |
294 | ||
295 | x13_clk: x13-clock { | |
296 | compatible = "fixed-clock"; | |
297 | #clock-cells = <0>; | |
298 | clock-frequency = <148500000>; | |
299 | }; | |
786ef2ee WS |
300 | |
301 | gpioi2c2: i2c-9 { | |
302 | #address-cells = <1>; | |
303 | #size-cells = <0>; | |
304 | compatible = "i2c-gpio"; | |
305 | status = "disabled"; | |
306 | scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; | |
307 | sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; | |
308 | i2c-gpio,delay-us = <5>; | |
309 | }; | |
310 | ||
931bc7ec WS |
311 | gpioi2c4: i2c-10 { |
312 | #address-cells = <1>; | |
313 | #size-cells = <0>; | |
314 | compatible = "i2c-gpio"; | |
315 | status = "disabled"; | |
316 | scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; | |
317 | sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; | |
318 | i2c-gpio,delay-us = <5>; | |
319 | }; | |
320 | ||
786ef2ee WS |
321 | /* |
322 | * A fallback to GPIO is provided for I2C2. | |
323 | */ | |
324 | i2chdmi: i2c-11 { | |
325 | compatible = "i2c-demux-pinctrl"; | |
326 | i2c-parent = <&i2c2>, <&gpioi2c2>; | |
327 | i2c-bus-name = "i2c-hdmi"; | |
328 | #address-cells = <1>; | |
329 | #size-cells = <0>; | |
330 | ||
331 | ak4643: codec@12 { | |
332 | compatible = "asahi-kasei,ak4643"; | |
333 | #sound-dai-cells = <0>; | |
334 | reg = <0x12>; | |
335 | }; | |
336 | ||
337 | composite-in@20 { | |
338 | compatible = "adi,adv7180cp"; | |
339 | reg = <0x20>; | |
340 | remote = <&vin1>; | |
341 | ||
342 | port { | |
343 | #address-cells = <1>; | |
344 | #size-cells = <0>; | |
345 | ||
346 | port@0 { | |
347 | reg = <0>; | |
348 | adv7180_in: endpoint { | |
349 | remote-endpoint = <&composite_con_in>; | |
350 | }; | |
351 | }; | |
352 | ||
353 | port@3 { | |
354 | reg = <3>; | |
355 | adv7180_out: endpoint { | |
356 | bus-width = <8>; | |
357 | remote-endpoint = <&vin1ep>; | |
358 | }; | |
359 | }; | |
360 | }; | |
361 | }; | |
362 | ||
363 | hdmi@39 { | |
364 | compatible = "adi,adv7511w"; | |
365 | reg = <0x39>; | |
366 | interrupt-parent = <&gpio3>; | |
367 | interrupts = <29 IRQ_TYPE_LEVEL_LOW>; | |
368 | ||
369 | adi,input-depth = <8>; | |
370 | adi,input-colorspace = "rgb"; | |
371 | adi,input-clock = "1x"; | |
372 | adi,input-style = <1>; | |
373 | adi,input-justification = "evenly"; | |
374 | ||
375 | ports { | |
376 | #address-cells = <1>; | |
377 | #size-cells = <0>; | |
378 | ||
379 | port@0 { | |
380 | reg = <0>; | |
381 | adv7511_in: endpoint { | |
382 | remote-endpoint = <&du_out_rgb>; | |
383 | }; | |
384 | }; | |
385 | ||
386 | port@1 { | |
387 | reg = <1>; | |
388 | adv7511_out: endpoint { | |
389 | remote-endpoint = <&hdmi_con_out>; | |
390 | }; | |
391 | }; | |
392 | }; | |
393 | }; | |
394 | ||
395 | hdmi-in@4c { | |
396 | compatible = "adi,adv7612"; | |
397 | reg = <0x4c>; | |
398 | interrupt-parent = <&gpio4>; | |
399 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; | |
400 | default-input = <0>; | |
401 | ||
402 | port { | |
403 | #address-cells = <1>; | |
404 | #size-cells = <0>; | |
405 | ||
406 | port@0 { | |
407 | reg = <0>; | |
408 | adv7612_in: endpoint { | |
409 | remote-endpoint = <&hdmi_con_in>; | |
410 | }; | |
411 | }; | |
412 | ||
413 | port@2 { | |
414 | reg = <2>; | |
415 | adv7612_out: endpoint { | |
416 | remote-endpoint = <&vin0ep2>; | |
417 | }; | |
418 | }; | |
419 | }; | |
420 | }; | |
421 | ||
422 | eeprom@50 { | |
423 | compatible = "renesas,r1ex24002", "atmel,24c02"; | |
424 | reg = <0x50>; | |
425 | pagesize = <16>; | |
426 | }; | |
427 | }; | |
931bc7ec WS |
428 | |
429 | /* | |
430 | * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA). | |
431 | * A fallback to GPIO is provided. | |
432 | */ | |
433 | i2cexio4: i2c-12 { | |
434 | compatible = "i2c-demux-pinctrl"; | |
435 | i2c-parent = <&i2c4>, <&gpioi2c4>; | |
436 | i2c-bus-name = "i2c-exio4"; | |
437 | #address-cells = <1>; | |
438 | #size-cells = <0>; | |
439 | }; | |
8871eb07 MD |
440 | }; |
441 | ||
442 | &du { | |
443 | pinctrl-0 = <&du_pins>; | |
444 | pinctrl-names = "default"; | |
445 | status = "okay"; | |
446 | ||
edb0c3af | 447 | clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, |
8871eb07 | 448 | <&x13_clk>, <&x2_clk>; |
edb0c3af | 449 | clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1"; |
8871eb07 MD |
450 | |
451 | ports { | |
452 | port@0 { | |
453 | endpoint { | |
454 | remote-endpoint = <&adv7511_in>; | |
455 | }; | |
456 | }; | |
edb0c3af LP |
457 | }; |
458 | }; | |
459 | ||
460 | &lvds0 { | |
461 | ports { | |
8871eb07 MD |
462 | port@1 { |
463 | lvds_connector: endpoint { | |
464 | }; | |
465 | }; | |
466 | }; | |
b8af4591 UH |
467 | }; |
468 | ||
469 | &extal_clk { | |
470 | clock-frequency = <20000000>; | |
471 | }; | |
472 | ||
a81f0508 | 473 | &pfc { |
81a81ba9 GU |
474 | pinctrl-0 = <&scif_clk_pins>; |
475 | pinctrl-names = "default"; | |
476 | ||
f6890af3 | 477 | i2c2_pins: i2c2 { |
2e207c1c SH |
478 | groups = "i2c2"; |
479 | function = "i2c2"; | |
f6890af3 SH |
480 | }; |
481 | ||
931bc7ec WS |
482 | i2c4_pins: i2c4 { |
483 | groups = "i2c4_c"; | |
484 | function = "i2c4"; | |
485 | }; | |
486 | ||
8871eb07 | 487 | du_pins: du { |
2e207c1c SH |
488 | groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0"; |
489 | function = "du"; | |
8871eb07 MD |
490 | }; |
491 | ||
167d34af | 492 | scif0_pins: scif0 { |
2e207c1c SH |
493 | groups = "scif0_data_d"; |
494 | function = "scif0"; | |
a81f0508 SH |
495 | }; |
496 | ||
167d34af | 497 | scif1_pins: scif1 { |
2e207c1c SH |
498 | groups = "scif1_data_d"; |
499 | function = "scif1"; | |
a81f0508 SH |
500 | }; |
501 | ||
81a81ba9 | 502 | scif_clk_pins: scif_clk { |
2e207c1c SH |
503 | groups = "scif_clk"; |
504 | function = "scif_clk"; | |
81a81ba9 GU |
505 | }; |
506 | ||
a81f0508 | 507 | ether_pins: ether { |
2e207c1c SH |
508 | groups = "eth_link", "eth_mdio", "eth_rmii"; |
509 | function = "eth"; | |
a81f0508 SH |
510 | }; |
511 | ||
512 | phy1_pins: phy1 { | |
2e207c1c SH |
513 | groups = "intc_irq0"; |
514 | function = "intc"; | |
a81f0508 | 515 | }; |
6380d62a | 516 | |
6f92cb2f | 517 | sdhi0_pins: sd0 { |
af897250 SH |
518 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
519 | function = "sdhi0"; | |
6d25a418 SH |
520 | power-source = <3300>; |
521 | }; | |
522 | ||
523 | sdhi0_pins_uhs: sd0_uhs { | |
524 | groups = "sdhi0_data4", "sdhi0_ctrl"; | |
525 | function = "sdhi0"; | |
526 | power-source = <1800>; | |
6f92cb2f UH |
527 | }; |
528 | ||
529 | sdhi1_pins: sd1 { | |
af897250 SH |
530 | groups = "sdhi1_data4", "sdhi1_ctrl"; |
531 | function = "sdhi1"; | |
6d25a418 SH |
532 | power-source = <3300>; |
533 | }; | |
534 | ||
535 | sdhi1_pins_uhs: sd1_uhs { | |
536 | groups = "sdhi1_data4", "sdhi1_ctrl"; | |
537 | function = "sdhi1"; | |
538 | power-source = <1800>; | |
6f92cb2f UH |
539 | }; |
540 | ||
541 | sdhi2_pins: sd2 { | |
af897250 SH |
542 | groups = "sdhi2_data4", "sdhi2_ctrl"; |
543 | function = "sdhi2"; | |
6d25a418 SH |
544 | power-source = <3300>; |
545 | }; | |
546 | ||
547 | sdhi2_pins_uhs: sd2_uhs { | |
548 | groups = "sdhi2_data4", "sdhi2_ctrl"; | |
549 | function = "sdhi2"; | |
550 | power-source = <1800>; | |
6f92cb2f UH |
551 | }; |
552 | ||
740f5c80 | 553 | qspi_pins: qspi { |
2e207c1c SH |
554 | groups = "qspi_ctrl", "qspi_data4"; |
555 | function = "qspi"; | |
6380d62a | 556 | }; |
f8905ce8 SH |
557 | |
558 | sound_pins: sound { | |
2e207c1c SH |
559 | groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; |
560 | function = "ssi"; | |
f8905ce8 SH |
561 | }; |
562 | ||
563 | sound_clk_pins: sound_clk { | |
2e207c1c SH |
564 | groups = "audio_clk_a"; |
565 | function = "audio_clk"; | |
f8905ce8 | 566 | }; |
bc63cd87 UH |
567 | |
568 | vin0_pins: vin0 { | |
569 | groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk"; | |
570 | function = "vin0"; | |
571 | }; | |
8cae3590 UH |
572 | |
573 | vin1_pins: vin1 { | |
574 | groups = "vin1_data8", "vin1_clk"; | |
575 | function = "vin1"; | |
576 | }; | |
a81f0508 SH |
577 | }; |
578 | ||
b8af4591 | 579 | ðer { |
a81f0508 SH |
580 | pinctrl-0 = <ðer_pins &phy1_pins>; |
581 | pinctrl-names = "default"; | |
582 | ||
b8af4591 UH |
583 | phy-handle = <&phy1>; |
584 | renesas,ether-link-active-low; | |
585 | status = "okay"; | |
586 | ||
587 | phy1: ethernet-phy@1 { | |
588 | reg = <1>; | |
589 | interrupt-parent = <&irqc0>; | |
590 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | |
591 | micrel,led-mode = <1>; | |
592 | }; | |
593 | }; | |
594 | ||
595 | &cmt0 { | |
596 | status = "okay"; | |
597 | }; | |
598 | ||
d17f45eb MV |
599 | &cpu0 { |
600 | cpu0-supply = <&vdd_dvfs>; | |
601 | }; | |
602 | ||
80aed52a GU |
603 | &rwdt { |
604 | timeout-sec = <60>; | |
605 | status = "okay"; | |
606 | }; | |
607 | ||
b8af4591 | 608 | &scif0 { |
a81f0508 SH |
609 | pinctrl-0 = <&scif0_pins>; |
610 | pinctrl-names = "default"; | |
611 | ||
b8af4591 UH |
612 | status = "okay"; |
613 | }; | |
614 | ||
615 | &scif1 { | |
a81f0508 SH |
616 | pinctrl-0 = <&scif1_pins>; |
617 | pinctrl-names = "default"; | |
618 | ||
b8af4591 UH |
619 | status = "okay"; |
620 | }; | |
6380d62a | 621 | |
81a81ba9 GU |
622 | &scif_clk { |
623 | clock-frequency = <14745600>; | |
81a81ba9 GU |
624 | }; |
625 | ||
6f92cb2f UH |
626 | &sdhi0 { |
627 | pinctrl-0 = <&sdhi0_pins>; | |
6d25a418 SH |
628 | pinctrl-1 = <&sdhi0_pins_uhs>; |
629 | pinctrl-names = "default", "state_uhs"; | |
6f92cb2f UH |
630 | |
631 | vmmc-supply = <&vcc_sdhi0>; | |
632 | vqmmc-supply = <&vccq_sdhi0>; | |
633 | cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>; | |
634 | wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; | |
6d25a418 SH |
635 | sd-uhs-sdr50; |
636 | sd-uhs-sdr104; | |
6f92cb2f UH |
637 | status = "okay"; |
638 | }; | |
639 | ||
640 | &sdhi1 { | |
641 | pinctrl-0 = <&sdhi1_pins>; | |
6d25a418 SH |
642 | pinctrl-1 = <&sdhi1_pins_uhs>; |
643 | pinctrl-names = "default", "state_uhs"; | |
6f92cb2f UH |
644 | |
645 | vmmc-supply = <&vcc_sdhi1>; | |
646 | vqmmc-supply = <&vccq_sdhi1>; | |
647 | cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; | |
648 | wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>; | |
6d25a418 | 649 | sd-uhs-sdr50; |
6f92cb2f UH |
650 | status = "okay"; |
651 | }; | |
652 | ||
653 | &sdhi2 { | |
654 | pinctrl-0 = <&sdhi2_pins>; | |
6d25a418 SH |
655 | pinctrl-1 = <&sdhi2_pins_uhs>; |
656 | pinctrl-names = "default", "state_uhs"; | |
6f92cb2f UH |
657 | |
658 | vmmc-supply = <&vcc_sdhi2>; | |
659 | vqmmc-supply = <&vccq_sdhi2>; | |
660 | cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; | |
6d25a418 | 661 | sd-uhs-sdr50; |
6f92cb2f UH |
662 | status = "okay"; |
663 | }; | |
664 | ||
6380d62a SH |
665 | &qspi { |
666 | pinctrl-0 = <&qspi_pins>; | |
667 | pinctrl-names = "default"; | |
668 | ||
669 | status = "okay"; | |
670 | ||
671 | flash@0 { | |
672 | compatible = "spansion,s25fl512s", "jedec,spi-nor"; | |
673 | reg = <0>; | |
674 | spi-max-frequency = <30000000>; | |
675 | spi-tx-bus-width = <4>; | |
676 | spi-rx-bus-width = <4>; | |
677 | spi-cpol; | |
678 | spi-cpha; | |
679 | m25p,fast-read; | |
680 | ||
681 | partitions { | |
e5e6f9b4 | 682 | compatible = "fixed-partitions"; |
6380d62a SH |
683 | #address-cells = <1>; |
684 | #size-cells = <1>; | |
685 | ||
686 | partition@0 { | |
687 | label = "loader"; | |
688 | reg = <0x00000000 0x00040000>; | |
689 | read-only; | |
690 | }; | |
691 | partition@40000 { | |
692 | label = "user"; | |
693 | reg = <0x00040000 0x00400000>; | |
694 | read-only; | |
695 | }; | |
696 | partition@440000 { | |
697 | label = "flash"; | |
698 | reg = <0x00440000 0x03bc0000>; | |
699 | }; | |
700 | }; | |
701 | }; | |
702 | }; | |
f6890af3 SH |
703 | |
704 | &i2c2 { | |
705 | pinctrl-0 = <&i2c2_pins>; | |
786ef2ee | 706 | pinctrl-names = "i2c-hdmi"; |
f6890af3 SH |
707 | |
708 | status = "okay"; | |
709 | clock-frequency = <100000>; | |
710 | ||
f6890af3 | 711 | }; |
f8905ce8 | 712 | |
c20839a3 GU |
713 | &i2c6 { |
714 | status = "okay"; | |
715 | clock-frequency = <100000>; | |
716 | ||
717 | pmic@58 { | |
718 | compatible = "dlg,da9063"; | |
719 | reg = <0x58>; | |
720 | interrupt-parent = <&irqc0>; | |
721 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; | |
722 | interrupt-controller; | |
723 | ||
724 | rtc { | |
725 | compatible = "dlg,da9063-rtc"; | |
726 | }; | |
727 | ||
728 | wdt { | |
729 | compatible = "dlg,da9063-watchdog"; | |
730 | }; | |
731 | }; | |
d17f45eb MV |
732 | |
733 | vdd_dvfs: regulator@68 { | |
734 | compatible = "dlg,da9210"; | |
735 | reg = <0x68>; | |
736 | interrupt-parent = <&irqc0>; | |
737 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; | |
738 | ||
739 | regulator-min-microvolt = <1000000>; | |
740 | regulator-max-microvolt = <1000000>; | |
741 | regulator-boot-on; | |
742 | regulator-always-on; | |
743 | }; | |
c20839a3 GU |
744 | }; |
745 | ||
931bc7ec WS |
746 | &i2c4 { |
747 | pinctrl-0 = <&i2c4_pins>; | |
748 | pinctrl-names = "i2c-exio4"; | |
749 | }; | |
750 | ||
f8905ce8 SH |
751 | &rcar_sound { |
752 | pinctrl-0 = <&sound_pins &sound_clk_pins>; | |
753 | pinctrl-names = "default"; | |
754 | ||
755 | /* Single DAI */ | |
756 | #sound-dai-cells = <0>; | |
757 | ||
758 | status = "okay"; | |
759 | ||
760 | rcar_sound,dai { | |
761 | dai0 { | |
ae79f66d SH |
762 | playback = <&ssi0 &src2 &dvc0>; |
763 | capture = <&ssi1 &src3 &dvc1>; | |
f8905ce8 SH |
764 | }; |
765 | }; | |
766 | }; | |
767 | ||
f8905ce8 | 768 | &ssi1 { |
f8905ce8 SH |
769 | shared-pin; |
770 | }; | |
bc63cd87 UH |
771 | |
772 | /* HDMI video input */ | |
773 | &vin0 { | |
774 | status = "okay"; | |
775 | pinctrl-0 = <&vin0_pins>; | |
776 | pinctrl-names = "default"; | |
777 | ||
778 | port { | |
bc63cd87 UH |
779 | vin0ep2: endpoint { |
780 | remote-endpoint = <&adv7612_out>; | |
781 | bus-width = <24>; | |
782 | hsync-active = <0>; | |
783 | vsync-active = <0>; | |
784 | pclk-sample = <1>; | |
785 | data-active = <1>; | |
786 | }; | |
787 | }; | |
788 | }; | |
8cae3590 UH |
789 | |
790 | /* composite video input */ | |
791 | &vin1 { | |
792 | pinctrl-0 = <&vin1_pins>; | |
793 | pinctrl-names = "default"; | |
794 | ||
795 | status = "okay"; | |
796 | ||
797 | port { | |
8cae3590 UH |
798 | vin1ep: endpoint { |
799 | remote-endpoint = <&adv7180_out>; | |
800 | bus-width = <8>; | |
801 | }; | |
802 | }; | |
803 | }; |