Commit | Line | Data |
---|---|---|
cdbfaf64 | 1 | // SPDX-License-Identifier: GPL-2.0 |
1f52c659 HN |
2 | /* |
3 | * Device Tree Source for the Koelsch board | |
4 | * | |
5 | * Copyright (C) 2013 Renesas Electronics Corporation | |
08e8f0f3 SS |
6 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
7 | * Copyright (C) 2014 Cogent Embedded, Inc. | |
1f52c659 HN |
8 | */ |
9 | ||
b160f615 KM |
10 | /* |
11 | * SSI-AK4643 | |
12 | * | |
13 | * SW1: 1: AK4643 | |
14 | * 2: CN22 | |
15 | * 3: ADV7511 | |
16 | * | |
17 | * This command is required when Playback/Capture | |
18 | * | |
19 | * amixer set "LINEOUT Mixer DACL" on | |
5c6d4b94 KM |
20 | * amixer set "DVC Out" 100% |
21 | * amixer set "DVC In" 100% | |
22 | * | |
23 | * You can use Mute | |
24 | * | |
25 | * amixer set "DVC Out Mute" on | |
26 | * amixer set "DVC In Mute" on | |
ce474816 KM |
27 | * |
28 | * You can use Volume Ramp | |
29 | * | |
30 | * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps" | |
31 | * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps" | |
32 | * amixer set "DVC Out Ramp" on | |
33 | * aplay xxx.wav & | |
34 | * amixer set "DVC Out" 80% // Volume Down | |
35 | * amixer set "DVC Out" 100% // Volume Up | |
b160f615 KM |
36 | */ |
37 | ||
1f52c659 | 38 | /dts-v1/; |
31c46cbf | 39 | #include "r8a7791.dtsi" |
f8e2535d | 40 | #include <dt-bindings/gpio/gpio.h> |
7f168b1e | 41 | #include <dt-bindings/input/input.h> |
1f52c659 HN |
42 | |
43 | / { | |
44 | model = "Koelsch"; | |
45 | compatible = "renesas,koelsch", "renesas,r8a7791"; | |
46 | ||
5ba55fa8 | 47 | aliases { |
1f75cdac LP |
48 | serial0 = &scif0; |
49 | serial1 = &scif1; | |
6723438b | 50 | i2c9 = &gpioi2c1; |
168a7099 | 51 | i2c10 = &gpioi2c2; |
be93275c | 52 | i2c11 = &gpioi2c4; |
6723438b | 53 | i2c12 = &i2cexio1; |
168a7099 | 54 | i2c13 = &i2chdmi; |
be93275c | 55 | i2c14 = &i2cexio4; |
da926e81 YS |
56 | mmc0 = &sdhi0; |
57 | mmc1 = &sdhi1; | |
58 | mmc2 = &sdhi2; | |
5ba55fa8 LP |
59 | }; |
60 | ||
1f52c659 | 61 | chosen { |
07d2bf96 | 62 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; |
832dae1f | 63 | stdout-path = "serial0:115200n8"; |
1f52c659 HN |
64 | }; |
65 | ||
66 | memory@40000000 { | |
67 | device_type = "memory"; | |
4cd1bad4 TY |
68 | reg = <0 0x40000000 0 0x40000000>; |
69 | }; | |
70 | ||
71 | memory@200000000 { | |
72 | device_type = "memory"; | |
73 | reg = <2 0x00000000 0 0x40000000>; | |
1f52c659 HN |
74 | }; |
75 | ||
d3aaec83 | 76 | keyboard { |
aff5274f LP |
77 | compatible = "gpio-keys"; |
78 | ||
8c10e004 | 79 | pinctrl-0 = <&keyboard_pins>; |
3287a7a8 GU |
80 | pinctrl-names = "default"; |
81 | ||
7f168b1e MD |
82 | key-1 { |
83 | gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; | |
84 | linux,code = <KEY_1>; | |
85 | label = "SW2-1"; | |
0cc16889 | 86 | wakeup-source; |
7f168b1e MD |
87 | debounce-interval = <20>; |
88 | }; | |
89 | key-2 { | |
90 | gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; | |
91 | linux,code = <KEY_2>; | |
92 | label = "SW2-2"; | |
0cc16889 | 93 | wakeup-source; |
7f168b1e MD |
94 | debounce-interval = <20>; |
95 | }; | |
96 | key-3 { | |
97 | gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; | |
98 | linux,code = <KEY_3>; | |
99 | label = "SW2-3"; | |
0cc16889 | 100 | wakeup-source; |
7f168b1e MD |
101 | debounce-interval = <20>; |
102 | }; | |
103 | key-4 { | |
104 | gpios = <&gpio5 3 GPIO_ACTIVE_LOW>; | |
105 | linux,code = <KEY_4>; | |
106 | label = "SW2-4"; | |
0cc16889 | 107 | wakeup-source; |
7f168b1e MD |
108 | debounce-interval = <20>; |
109 | }; | |
aff5274f LP |
110 | key-a { |
111 | gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; | |
7f168b1e | 112 | linux,code = <KEY_A>; |
aff5274f | 113 | label = "SW30"; |
0cc16889 | 114 | wakeup-source; |
aff5274f LP |
115 | debounce-interval = <20>; |
116 | }; | |
117 | key-b { | |
118 | gpios = <&gpio7 1 GPIO_ACTIVE_LOW>; | |
7f168b1e | 119 | linux,code = <KEY_B>; |
aff5274f | 120 | label = "SW31"; |
0cc16889 | 121 | wakeup-source; |
aff5274f LP |
122 | debounce-interval = <20>; |
123 | }; | |
124 | key-c { | |
125 | gpios = <&gpio7 2 GPIO_ACTIVE_LOW>; | |
7f168b1e | 126 | linux,code = <KEY_C>; |
aff5274f | 127 | label = "SW32"; |
0cc16889 | 128 | wakeup-source; |
aff5274f LP |
129 | debounce-interval = <20>; |
130 | }; | |
131 | key-d { | |
132 | gpios = <&gpio7 3 GPIO_ACTIVE_LOW>; | |
7f168b1e | 133 | linux,code = <KEY_D>; |
aff5274f | 134 | label = "SW33"; |
0cc16889 | 135 | wakeup-source; |
aff5274f LP |
136 | debounce-interval = <20>; |
137 | }; | |
138 | key-e { | |
139 | gpios = <&gpio7 4 GPIO_ACTIVE_LOW>; | |
7f168b1e | 140 | linux,code = <KEY_E>; |
aff5274f | 141 | label = "SW34"; |
0cc16889 | 142 | wakeup-source; |
aff5274f LP |
143 | debounce-interval = <20>; |
144 | }; | |
145 | key-f { | |
146 | gpios = <&gpio7 5 GPIO_ACTIVE_LOW>; | |
7f168b1e | 147 | linux,code = <KEY_F>; |
aff5274f | 148 | label = "SW35"; |
0cc16889 | 149 | wakeup-source; |
aff5274f LP |
150 | debounce-interval = <20>; |
151 | }; | |
152 | key-g { | |
153 | gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; | |
7f168b1e | 154 | linux,code = <KEY_G>; |
aff5274f | 155 | label = "SW36"; |
0cc16889 | 156 | wakeup-source; |
aff5274f LP |
157 | debounce-interval = <20>; |
158 | }; | |
159 | }; | |
160 | ||
f8e2535d LP |
161 | leds { |
162 | compatible = "gpio-leds"; | |
163 | led6 { | |
164 | gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; | |
352faa5f | 165 | label = "LED6"; |
f8e2535d LP |
166 | }; |
167 | led7 { | |
168 | gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>; | |
352faa5f | 169 | label = "LED7"; |
f8e2535d LP |
170 | }; |
171 | led8 { | |
172 | gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; | |
352faa5f | 173 | label = "LED8"; |
f8e2535d LP |
174 | }; |
175 | }; | |
2c60a7df | 176 | |
cc75154c GU |
177 | reg_1p8v: regulator-1v8 { |
178 | compatible = "regulator-fixed"; | |
179 | regulator-name = "fixed-1.8V"; | |
180 | regulator-min-microvolt = <1800000>; | |
181 | regulator-max-microvolt = <1800000>; | |
182 | regulator-boot-on; | |
183 | regulator-always-on; | |
184 | }; | |
185 | ||
186 | reg_3p3v: regulator-3v3 { | |
187 | compatible = "regulator-fixed"; | |
188 | regulator-name = "fixed-3.3V"; | |
189 | regulator-min-microvolt = <3300000>; | |
190 | regulator-max-microvolt = <3300000>; | |
191 | regulator-boot-on; | |
192 | regulator-always-on; | |
193 | }; | |
194 | ||
a704b276 | 195 | vcc_sdhi0: regulator-vcc-sdhi0 { |
2c60a7df MD |
196 | compatible = "regulator-fixed"; |
197 | ||
198 | regulator-name = "SDHI0 Vcc"; | |
199 | regulator-min-microvolt = <3300000>; | |
200 | regulator-max-microvolt = <3300000>; | |
201 | ||
202 | gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>; | |
203 | enable-active-high; | |
204 | }; | |
205 | ||
a704b276 | 206 | vccq_sdhi0: regulator-vccq-sdhi0 { |
2c60a7df MD |
207 | compatible = "regulator-gpio"; |
208 | ||
209 | regulator-name = "SDHI0 VccQ"; | |
210 | regulator-min-microvolt = <1800000>; | |
211 | regulator-max-microvolt = <3300000>; | |
212 | ||
213 | gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; | |
214 | gpios-states = <1>; | |
8a481af1 | 215 | states = <3300000 1>, <1800000 0>; |
2c60a7df MD |
216 | }; |
217 | ||
a704b276 | 218 | vcc_sdhi1: regulator-vcc-sdhi1 { |
2c60a7df MD |
219 | compatible = "regulator-fixed"; |
220 | ||
221 | regulator-name = "SDHI1 Vcc"; | |
222 | regulator-min-microvolt = <3300000>; | |
223 | regulator-max-microvolt = <3300000>; | |
224 | ||
225 | gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>; | |
226 | enable-active-high; | |
227 | }; | |
228 | ||
a704b276 | 229 | vccq_sdhi1: regulator-vccq-sdhi1 { |
2c60a7df MD |
230 | compatible = "regulator-gpio"; |
231 | ||
232 | regulator-name = "SDHI1 VccQ"; | |
233 | regulator-min-microvolt = <1800000>; | |
234 | regulator-max-microvolt = <3300000>; | |
235 | ||
236 | gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; | |
237 | gpios-states = <1>; | |
8a481af1 | 238 | states = <3300000 1>, <1800000 0>; |
2c60a7df MD |
239 | }; |
240 | ||
a704b276 | 241 | vcc_sdhi2: regulator-vcc-sdhi2 { |
2c60a7df MD |
242 | compatible = "regulator-fixed"; |
243 | ||
244 | regulator-name = "SDHI2 Vcc"; | |
245 | regulator-min-microvolt = <3300000>; | |
246 | regulator-max-microvolt = <3300000>; | |
247 | ||
248 | gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>; | |
249 | enable-active-high; | |
250 | }; | |
251 | ||
a704b276 | 252 | vccq_sdhi2: regulator-vccq-sdhi2 { |
2c60a7df MD |
253 | compatible = "regulator-gpio"; |
254 | ||
255 | regulator-name = "SDHI2 VccQ"; | |
256 | regulator-min-microvolt = <1800000>; | |
257 | regulator-max-microvolt = <3300000>; | |
258 | ||
259 | gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; | |
260 | gpios-states = <1>; | |
8a481af1 | 261 | states = <3300000 1>, <1800000 0>; |
2c60a7df | 262 | }; |
b160f615 | 263 | |
62c7e9da | 264 | audio_clock: audio_clock { |
c19c84ff KM |
265 | compatible = "fixed-clock"; |
266 | #clock-cells = <0>; | |
267 | clock-frequency = <11289600>; | |
c19c84ff KM |
268 | }; |
269 | ||
18f88d22 | 270 | rsnd_ak4643: sound { |
b160f615 KM |
271 | compatible = "simple-audio-card"; |
272 | ||
273 | simple-audio-card,format = "left_j"; | |
274 | simple-audio-card,bitclock-master = <&sndcodec>; | |
275 | simple-audio-card,frame-master = <&sndcodec>; | |
276 | ||
277 | sndcpu: simple-audio-card,cpu { | |
278 | sound-dai = <&rcar_sound>; | |
279 | }; | |
280 | ||
281 | sndcodec: simple-audio-card,codec { | |
282 | sound-dai = <&ak4643>; | |
c19c84ff | 283 | clocks = <&audio_clock>; |
b160f615 KM |
284 | }; |
285 | }; | |
83a0731b | 286 | |
84e3a746 HV |
287 | hdmi-in { |
288 | compatible = "hdmi-connector"; | |
289 | type = "a"; | |
290 | ||
291 | port { | |
292 | hdmi_con_in: endpoint { | |
293 | remote-endpoint = <&adv7612_in>; | |
294 | }; | |
295 | }; | |
296 | }; | |
297 | ||
d72f4f03 SH |
298 | cec_clock: cec-clock { |
299 | compatible = "fixed-clock"; | |
300 | #clock-cells = <0>; | |
301 | clock-frequency = <12000000>; | |
302 | }; | |
303 | ||
83a0731b LP |
304 | hdmi-out { |
305 | compatible = "hdmi-connector"; | |
306 | type = "a"; | |
307 | ||
308 | port { | |
84e3a746 | 309 | hdmi_con_out: endpoint { |
83a0731b LP |
310 | remote-endpoint = <&adv7511_out>; |
311 | }; | |
312 | }; | |
313 | }; | |
cd21cb46 LP |
314 | |
315 | x2_clk: x2-clock { | |
316 | compatible = "fixed-clock"; | |
317 | #clock-cells = <0>; | |
ebf06af5 | 318 | clock-frequency = <74250000>; |
cd21cb46 LP |
319 | }; |
320 | ||
321 | x13_clk: x13-clock { | |
322 | compatible = "fixed-clock"; | |
323 | #clock-cells = <0>; | |
324 | clock-frequency = <148500000>; | |
325 | }; | |
6723438b SH |
326 | |
327 | gpioi2c1: i2c-9 { | |
328 | #address-cells = <1>; | |
329 | #size-cells = <0>; | |
330 | compatible = "i2c-gpio"; | |
331 | status = "disabled"; | |
c14f3ec4 | 332 | scl-gpios = <&gpio7 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
168a7099 WS |
333 | sda-gpios = <&gpio7 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
334 | i2c-gpio,delay-us = <5>; | |
335 | }; | |
336 | ||
337 | gpioi2c2: i2c-10 { | |
338 | #address-cells = <1>; | |
339 | #size-cells = <0>; | |
340 | compatible = "i2c-gpio"; | |
341 | status = "disabled"; | |
342 | scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; | |
343 | sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; | |
6723438b SH |
344 | i2c-gpio,delay-us = <5>; |
345 | }; | |
346 | ||
be93275c WS |
347 | gpioi2c4: i2c-11 { |
348 | #address-cells = <1>; | |
349 | #size-cells = <0>; | |
350 | compatible = "i2c-gpio"; | |
351 | status = "disabled"; | |
352 | scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; | |
353 | sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; | |
354 | i2c-gpio,delay-us = <5>; | |
355 | }; | |
356 | ||
6723438b SH |
357 | /* |
358 | * I2C1 is routed to EXIO connector B, pins 64 (SCL) + 66 (SDA). | |
359 | * A fallback to GPIO is provided. | |
360 | */ | |
a84e0556 | 361 | i2cexio1: i2c-mux1 { |
6723438b SH |
362 | compatible = "i2c-demux-pinctrl"; |
363 | i2c-parent = <&i2c1>, <&gpioi2c1>; | |
364 | i2c-bus-name = "i2c-exio1"; | |
365 | #address-cells = <1>; | |
366 | #size-cells = <0>; | |
367 | }; | |
168a7099 WS |
368 | |
369 | /* | |
370 | * A fallback to GPIO is provided for I2C2. | |
371 | */ | |
a84e0556 | 372 | i2chdmi: i2c-mux2 { |
168a7099 WS |
373 | compatible = "i2c-demux-pinctrl"; |
374 | i2c-parent = <&i2c2>, <&gpioi2c2>; | |
375 | i2c-bus-name = "i2c-hdmi"; | |
376 | #address-cells = <1>; | |
377 | #size-cells = <0>; | |
378 | ||
379 | ak4643: codec@12 { | |
380 | compatible = "asahi-kasei,ak4643"; | |
381 | #sound-dai-cells = <0>; | |
382 | reg = <0x12>; | |
383 | }; | |
384 | ||
385 | composite-in@20 { | |
386 | compatible = "adi,adv7180"; | |
387 | reg = <0x20>; | |
168a7099 WS |
388 | |
389 | port { | |
390 | adv7180: endpoint { | |
391 | bus-width = <8>; | |
392 | remote-endpoint = <&vin1ep>; | |
393 | }; | |
394 | }; | |
395 | }; | |
396 | ||
397 | hdmi@39 { | |
398 | compatible = "adi,adv7511w"; | |
399 | reg = <0x39>; | |
400 | interrupt-parent = <&gpio3>; | |
401 | interrupts = <29 IRQ_TYPE_LEVEL_LOW>; | |
402 | clocks = <&cec_clock>; | |
403 | clock-names = "cec"; | |
404 | ||
cc75154c GU |
405 | avdd-supply = <®_1p8v>; |
406 | dvdd-supply = <®_1p8v>; | |
407 | pvdd-supply = <®_1p8v>; | |
408 | dvdd-3v-supply = <®_3p3v>; | |
409 | bgvdd-supply = <®_1p8v>; | |
410 | ||
168a7099 WS |
411 | adi,input-depth = <8>; |
412 | adi,input-colorspace = "rgb"; | |
413 | adi,input-clock = "1x"; | |
168a7099 WS |
414 | |
415 | ports { | |
416 | #address-cells = <1>; | |
417 | #size-cells = <0>; | |
418 | ||
419 | port@0 { | |
420 | reg = <0>; | |
421 | adv7511_in: endpoint { | |
422 | remote-endpoint = <&du_out_rgb>; | |
423 | }; | |
424 | }; | |
425 | ||
426 | port@1 { | |
427 | reg = <1>; | |
428 | adv7511_out: endpoint { | |
429 | remote-endpoint = <&hdmi_con_out>; | |
430 | }; | |
431 | }; | |
432 | }; | |
433 | }; | |
434 | ||
435 | hdmi-in@4c { | |
436 | compatible = "adi,adv7612"; | |
437 | reg = <0x4c>; | |
438 | interrupt-parent = <&gpio4>; | |
439 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; | |
440 | default-input = <0>; | |
441 | ||
442 | ports { | |
443 | #address-cells = <1>; | |
444 | #size-cells = <0>; | |
445 | ||
446 | port@0 { | |
447 | reg = <0>; | |
448 | adv7612_in: endpoint { | |
449 | remote-endpoint = <&hdmi_con_in>; | |
450 | }; | |
451 | }; | |
452 | ||
453 | port@2 { | |
454 | reg = <2>; | |
455 | adv7612_out: endpoint { | |
456 | remote-endpoint = <&vin0ep2>; | |
457 | }; | |
458 | }; | |
459 | }; | |
460 | }; | |
461 | ||
462 | eeprom@50 { | |
463 | compatible = "renesas,r1ex24002", "atmel,24c02"; | |
464 | reg = <0x50>; | |
465 | pagesize = <16>; | |
466 | }; | |
467 | }; | |
be93275c WS |
468 | |
469 | /* | |
470 | * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA). | |
471 | * A fallback to GPIO is provided. | |
472 | */ | |
a84e0556 | 473 | i2cexio4: i2c-mux3 { |
be93275c WS |
474 | compatible = "i2c-demux-pinctrl"; |
475 | i2c-parent = <&i2c4>, <&gpioi2c4>; | |
476 | i2c-bus-name = "i2c-exio4"; | |
477 | #address-cells = <1>; | |
478 | #size-cells = <0>; | |
479 | }; | |
f8e2535d LP |
480 | }; |
481 | ||
0ee56d40 LP |
482 | &du { |
483 | pinctrl-0 = <&du_pins>; | |
484 | pinctrl-names = "default"; | |
485 | status = "okay"; | |
486 | ||
e5c3f470 | 487 | clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, |
cd21cb46 | 488 | <&x13_clk>, <&x2_clk>; |
e5c3f470 | 489 | clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1"; |
cd21cb46 | 490 | |
0ee56d40 | 491 | ports { |
83a0731b LP |
492 | port@0 { |
493 | endpoint { | |
494 | remote-endpoint = <&adv7511_in>; | |
495 | }; | |
496 | }; | |
e5c3f470 LP |
497 | }; |
498 | }; | |
499 | ||
500 | &lvds0 { | |
e5c3f470 | 501 | ports { |
0ee56d40 LP |
502 | port@1 { |
503 | lvds_connector: endpoint { | |
504 | }; | |
505 | }; | |
506 | }; | |
507 | }; | |
508 | ||
fcf0c725 LP |
509 | &extal_clk { |
510 | clock-frequency = <20000000>; | |
511 | }; | |
512 | ||
f8e2535d | 513 | &pfc { |
338f7ebf GU |
514 | pinctrl-0 = <&scif_clk_pins>; |
515 | pinctrl-names = "default"; | |
516 | ||
6723438b SH |
517 | i2c1_pins: i2c1 { |
518 | groups = "i2c1"; | |
519 | function = "i2c1"; | |
520 | }; | |
521 | ||
e6a4c001 | 522 | i2c2_pins: i2c2 { |
fec7b9f8 SH |
523 | groups = "i2c2"; |
524 | function = "i2c2"; | |
38c53516 WS |
525 | }; |
526 | ||
be93275c WS |
527 | i2c4_pins: i2c4 { |
528 | groups = "i2c4_c"; | |
529 | function = "i2c4"; | |
530 | }; | |
531 | ||
afba941c | 532 | du_pins: du { |
fec7b9f8 SH |
533 | groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0"; |
534 | function = "du"; | |
afba941c LP |
535 | }; |
536 | ||
b71b8346 | 537 | scif0_pins: scif0 { |
fec7b9f8 SH |
538 | groups = "scif0_data_d"; |
539 | function = "scif0"; | |
f8e2535d LP |
540 | }; |
541 | ||
b71b8346 | 542 | scif1_pins: scif1 { |
fec7b9f8 SH |
543 | groups = "scif1_data_d"; |
544 | function = "scif1"; | |
f8e2535d | 545 | }; |
e02ee513 | 546 | |
338f7ebf | 547 | scif_clk_pins: scif_clk { |
fec7b9f8 SH |
548 | groups = "scif_clk"; |
549 | function = "scif_clk"; | |
338f7ebf GU |
550 | }; |
551 | ||
08e8f0f3 | 552 | ether_pins: ether { |
fec7b9f8 SH |
553 | groups = "eth_link", "eth_mdio", "eth_rmii"; |
554 | function = "eth"; | |
08e8f0f3 SS |
555 | }; |
556 | ||
557 | phy1_pins: phy1 { | |
fec7b9f8 SH |
558 | groups = "intc_irq0"; |
559 | function = "intc"; | |
08e8f0f3 SS |
560 | }; |
561 | ||
185555ff MV |
562 | pmic_irq_pins: pmicirq { |
563 | groups = "intc_irq2"; | |
564 | function = "intc"; | |
565 | }; | |
566 | ||
2c60a7df | 567 | sdhi0_pins: sd0 { |
fec7b9f8 SH |
568 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
569 | function = "sdhi0"; | |
d3cec922 SH |
570 | power-source = <3300>; |
571 | }; | |
572 | ||
573 | sdhi0_pins_uhs: sd0_uhs { | |
574 | groups = "sdhi0_data4", "sdhi0_ctrl"; | |
575 | function = "sdhi0"; | |
576 | power-source = <1800>; | |
2c60a7df MD |
577 | }; |
578 | ||
579 | sdhi1_pins: sd1 { | |
fec7b9f8 SH |
580 | groups = "sdhi1_data4", "sdhi1_ctrl"; |
581 | function = "sdhi1"; | |
d3cec922 SH |
582 | power-source = <3300>; |
583 | }; | |
584 | ||
585 | sdhi1_pins_uhs: sd1_uhs { | |
586 | groups = "sdhi1_data4", "sdhi1_ctrl"; | |
587 | function = "sdhi1"; | |
588 | power-source = <1800>; | |
2c60a7df MD |
589 | }; |
590 | ||
591 | sdhi2_pins: sd2 { | |
fec7b9f8 SH |
592 | groups = "sdhi2_data4", "sdhi2_ctrl"; |
593 | function = "sdhi2"; | |
d3cec922 SH |
594 | power-source = <3300>; |
595 | }; | |
596 | ||
597 | sdhi2_pins_uhs: sd2_uhs { | |
598 | groups = "sdhi2_data4", "sdhi2_ctrl"; | |
599 | function = "sdhi2"; | |
600 | power-source = <1800>; | |
2c60a7df MD |
601 | }; |
602 | ||
a4d98bed | 603 | qspi_pins: qspi { |
fec7b9f8 SH |
604 | groups = "qspi_ctrl", "qspi_data4"; |
605 | function = "qspi"; | |
e02ee513 | 606 | }; |
b16f05ab | 607 | |
a4d98bed | 608 | msiof0_pins: msiof0 { |
fec7b9f8 | 609 | groups = "msiof0_clk", "msiof0_sync", "msiof0_rx", |
b16f05ab | 610 | "msiof0_tx"; |
fec7b9f8 | 611 | function = "msiof0"; |
b16f05ab | 612 | }; |
1d41f36a | 613 | |
7540aeb0 | 614 | usb0_pins: usb0 { |
fec7b9f8 SH |
615 | groups = "usb0"; |
616 | function = "usb0"; | |
7540aeb0 SS |
617 | }; |
618 | ||
619 | usb1_pins: usb1 { | |
fec7b9f8 SH |
620 | groups = "usb1"; |
621 | function = "usb1"; | |
7540aeb0 | 622 | }; |
2cf08810 | 623 | |
84e3a746 HV |
624 | vin0_pins: vin0 { |
625 | groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk"; | |
626 | function = "vin0"; | |
627 | }; | |
628 | ||
2cf08810 | 629 | vin1_pins: vin1 { |
fec7b9f8 SH |
630 | groups = "vin1_data8", "vin1_clk"; |
631 | function = "vin1"; | |
2cf08810 | 632 | }; |
b160f615 KM |
633 | |
634 | sound_pins: sound { | |
fec7b9f8 SH |
635 | groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data"; |
636 | function = "ssi"; | |
b160f615 KM |
637 | }; |
638 | ||
639 | sound_clk_pins: sound_clk { | |
fec7b9f8 SH |
640 | groups = "audio_clk_a"; |
641 | function = "audio_clk"; | |
b160f615 | 642 | }; |
3287a7a8 | 643 | |
8c10e004 | 644 | keyboard_pins: keyboard { |
3287a7a8 GU |
645 | pins = "GP_5_0", "GP_5_1", "GP_5_2", "GP_5_3"; |
646 | bias-pull-up; | |
647 | }; | |
1f52c659 | 648 | }; |
760c277b | 649 | |
08e8f0f3 | 650 | ðer { |
de16af56 | 651 | pinctrl-0 = <ðer_pins>, <&phy1_pins>; |
08e8f0f3 SS |
652 | pinctrl-names = "default"; |
653 | ||
654 | phy-handle = <&phy1>; | |
655 | renesas,ether-link-active-low; | |
815446d6 | 656 | status = "okay"; |
08e8f0f3 SS |
657 | |
658 | phy1: ethernet-phy@1 { | |
18474181 GU |
659 | compatible = "ethernet-phy-id0022.1537", |
660 | "ethernet-phy-ieee802.3-c22"; | |
08e8f0f3 SS |
661 | reg = <1>; |
662 | interrupt-parent = <&irqc0>; | |
663 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | |
19f647cb | 664 | micrel,led-mode = <1>; |
516f6894 | 665 | reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>; |
08e8f0f3 SS |
666 | }; |
667 | }; | |
668 | ||
6a1d9460 | 669 | &cmt0 { |
815446d6 | 670 | status = "okay"; |
6a1d9460 LP |
671 | }; |
672 | ||
9245dccc GU |
673 | &rwdt { |
674 | timeout-sec = <60>; | |
675 | status = "okay"; | |
676 | }; | |
677 | ||
760c277b VB |
678 | &sata0 { |
679 | status = "okay"; | |
680 | }; | |
e02ee513 | 681 | |
5ba55fa8 LP |
682 | &scif0 { |
683 | pinctrl-0 = <&scif0_pins>; | |
684 | pinctrl-names = "default"; | |
685 | ||
686 | status = "okay"; | |
687 | }; | |
688 | ||
689 | &scif1 { | |
690 | pinctrl-0 = <&scif1_pins>; | |
691 | pinctrl-names = "default"; | |
692 | ||
693 | status = "okay"; | |
694 | }; | |
695 | ||
338f7ebf GU |
696 | &scif_clk { |
697 | clock-frequency = <14745600>; | |
338f7ebf GU |
698 | }; |
699 | ||
2c60a7df MD |
700 | &sdhi0 { |
701 | pinctrl-0 = <&sdhi0_pins>; | |
d3cec922 SH |
702 | pinctrl-1 = <&sdhi0_pins_uhs>; |
703 | pinctrl-names = "default", "state_uhs"; | |
2c60a7df MD |
704 | |
705 | vmmc-supply = <&vcc_sdhi0>; | |
706 | vqmmc-supply = <&vccq_sdhi0>; | |
707 | cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>; | |
708 | wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; | |
d3cec922 | 709 | sd-uhs-sdr50; |
0726729a | 710 | sd-uhs-sdr104; |
2c60a7df MD |
711 | status = "okay"; |
712 | }; | |
713 | ||
714 | &sdhi1 { | |
715 | pinctrl-0 = <&sdhi1_pins>; | |
d3cec922 SH |
716 | pinctrl-1 = <&sdhi1_pins_uhs>; |
717 | pinctrl-names = "default", "state_uhs"; | |
2c60a7df MD |
718 | |
719 | vmmc-supply = <&vcc_sdhi1>; | |
720 | vqmmc-supply = <&vccq_sdhi1>; | |
721 | cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; | |
722 | wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>; | |
d3cec922 | 723 | sd-uhs-sdr50; |
2c60a7df MD |
724 | status = "okay"; |
725 | }; | |
726 | ||
727 | &sdhi2 { | |
728 | pinctrl-0 = <&sdhi2_pins>; | |
d3cec922 SH |
729 | pinctrl-1 = <&sdhi2_pins_uhs>; |
730 | pinctrl-names = "default", "state_uhs"; | |
2c60a7df MD |
731 | |
732 | vmmc-supply = <&vcc_sdhi2>; | |
733 | vqmmc-supply = <&vccq_sdhi2>; | |
734 | cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; | |
d3cec922 | 735 | sd-uhs-sdr50; |
2c60a7df MD |
736 | status = "okay"; |
737 | }; | |
738 | ||
6f3e4ee3 | 739 | &qspi { |
e02ee513 GU |
740 | pinctrl-0 = <&qspi_pins>; |
741 | pinctrl-names = "default"; | |
742 | ||
743 | status = "okay"; | |
744 | ||
745 | flash: flash@0 { | |
cc3db02c | 746 | compatible = "spansion,s25fl512s", "jedec,spi-nor"; |
e02ee513 GU |
747 | reg = <0>; |
748 | spi-max-frequency = <30000000>; | |
ed56083a GU |
749 | spi-tx-bus-width = <4>; |
750 | spi-rx-bus-width = <4>; | |
9c5becce HN |
751 | spi-cpha; |
752 | spi-cpol; | |
e02ee513 GU |
753 | m25p,fast-read; |
754 | ||
27fa0a6c | 755 | partitions { |
f6531bb5 | 756 | compatible = "fixed-partitions"; |
27fa0a6c GU |
757 | #address-cells = <1>; |
758 | #size-cells = <1>; | |
759 | ||
760 | partition@0 { | |
761 | label = "loader"; | |
762 | reg = <0x00000000 0x00080000>; | |
763 | read-only; | |
764 | }; | |
765 | partition@80000 { | |
766 | label = "user"; | |
767 | reg = <0x00080000 0x00580000>; | |
768 | read-only; | |
769 | }; | |
770 | partition@600000 { | |
771 | label = "flash"; | |
772 | reg = <0x00600000 0x03a00000>; | |
773 | }; | |
e02ee513 GU |
774 | }; |
775 | }; | |
776 | }; | |
b16f05ab GU |
777 | |
778 | &msiof0 { | |
779 | pinctrl-0 = <&msiof0_pins>; | |
780 | pinctrl-names = "default"; | |
781 | ||
782 | status = "okay"; | |
783 | ||
784 | pmic: pmic@0 { | |
785 | compatible = "renesas,r2a11302ft"; | |
786 | reg = <0>; | |
787 | spi-max-frequency = <6000000>; | |
788 | spi-cpol; | |
789 | spi-cpha; | |
790 | }; | |
791 | }; | |
1d41f36a | 792 | |
6723438b SH |
793 | &i2c1 { |
794 | pinctrl-0 = <&i2c1_pins>; | |
795 | pinctrl-names = "i2c-exio1"; | |
796 | }; | |
797 | ||
897dfdbc SH |
798 | &i2c2 { |
799 | pinctrl-0 = <&i2c2_pins>; | |
168a7099 | 800 | pinctrl-names = "i2c-hdmi"; |
897dfdbc | 801 | |
a8d943ed | 802 | clock-frequency = <100000>; |
897dfdbc SH |
803 | }; |
804 | ||
be93275c WS |
805 | &i2c4 { |
806 | pinctrl-0 = <&i2c4_pins>; | |
807 | pinctrl-names = "i2c-exio4"; | |
808 | }; | |
809 | ||
1d41f36a | 810 | &i2c6 { |
185555ff MV |
811 | pinctrl-names = "default"; |
812 | pinctrl-0 = <&pmic_irq_pins>; | |
1d41f36a | 813 | status = "okay"; |
897dfdbc | 814 | clock-frequency = <100000>; |
1d41f36a | 815 | |
a6b42266 GU |
816 | pmic@58 { |
817 | compatible = "dlg,da9063"; | |
818 | reg = <0x58>; | |
819 | interrupt-parent = <&irqc0>; | |
820 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; | |
821 | interrupt-controller; | |
8c987693 | 822 | #interrupt-cells = <2>; |
a6b42266 GU |
823 | |
824 | rtc { | |
825 | compatible = "dlg,da9063-rtc"; | |
826 | }; | |
827 | ||
82678395 | 828 | watchdog { |
a6b42266 GU |
829 | compatible = "dlg,da9063-watchdog"; |
830 | }; | |
831 | }; | |
832 | ||
1d41f36a | 833 | vdd_dvfs: regulator@68 { |
bd597f47 | 834 | compatible = "dlg,da9210"; |
1d41f36a | 835 | reg = <0x68>; |
4be7338d GU |
836 | interrupt-parent = <&irqc0>; |
837 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; | |
1d41f36a GI |
838 | |
839 | regulator-min-microvolt = <1000000>; | |
840 | regulator-max-microvolt = <1000000>; | |
841 | regulator-boot-on; | |
842 | regulator-always-on; | |
843 | }; | |
844 | }; | |
a57004ec | 845 | |
7540aeb0 SS |
846 | &pci0 { |
847 | status = "okay"; | |
848 | pinctrl-0 = <&usb0_pins>; | |
849 | pinctrl-names = "default"; | |
850 | }; | |
851 | ||
852 | &pci1 { | |
853 | status = "okay"; | |
854 | pinctrl-0 = <&usb1_pins>; | |
855 | pinctrl-names = "default"; | |
856 | }; | |
857 | ||
fc4a00b7 YS |
858 | &hsusb { |
859 | status = "okay"; | |
860 | pinctrl-0 = <&usb0_pins>; | |
861 | pinctrl-names = "default"; | |
862 | renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>; | |
863 | }; | |
864 | ||
dc80d8bc SS |
865 | &usbphy { |
866 | status = "okay"; | |
867 | }; | |
868 | ||
998d7d64 | 869 | &pcie_bus_clk { |
ac6908b3 | 870 | clock-frequency = <100000000>; |
998d7d64 PE |
871 | }; |
872 | ||
873 | &pciec { | |
874 | status = "okay"; | |
875 | }; | |
876 | ||
a57004ec GI |
877 | &cpu0 { |
878 | cpu0-supply = <&vdd_dvfs>; | |
879 | }; | |
2cf08810 | 880 | |
84e3a746 HV |
881 | /* HDMI video input */ |
882 | &vin0 { | |
883 | status = "okay"; | |
884 | pinctrl-0 = <&vin0_pins>; | |
885 | pinctrl-names = "default"; | |
886 | ||
887 | port { | |
84e3a746 HV |
888 | vin0ep2: endpoint { |
889 | remote-endpoint = <&adv7612_out>; | |
890 | bus-width = <24>; | |
891 | hsync-active = <0>; | |
892 | vsync-active = <0>; | |
893 | pclk-sample = <1>; | |
894 | data-active = <1>; | |
895 | }; | |
896 | }; | |
897 | }; | |
898 | ||
2cf08810 | 899 | /* composite video input */ |
900 | &vin1 { | |
815446d6 | 901 | status = "okay"; |
2cf08810 | 902 | pinctrl-0 = <&vin1_pins>; |
903 | pinctrl-names = "default"; | |
904 | ||
905 | port { | |
2cf08810 | 906 | vin1ep: endpoint { |
907 | remote-endpoint = <&adv7180>; | |
908 | bus-width = <8>; | |
909 | }; | |
910 | }; | |
911 | }; | |
b160f615 KM |
912 | |
913 | &rcar_sound { | |
de16af56 | 914 | pinctrl-0 = <&sound_pins>, <&sound_clk_pins>; |
b160f615 KM |
915 | pinctrl-names = "default"; |
916 | ||
d2b541c9 | 917 | /* Single DAI */ |
b160f615 KM |
918 | #sound-dai-cells = <0>; |
919 | ||
920 | status = "okay"; | |
921 | ||
922 | rcar_sound,dai { | |
923 | dai0 { | |
23d2ed63 GU |
924 | playback = <&ssi0>, <&src2>, <&dvc0>; |
925 | capture = <&ssi1>, <&src3>, <&dvc1>; | |
b160f615 KM |
926 | }; |
927 | }; | |
928 | }; | |
929 | ||
b160f615 | 930 | &ssi1 { |
b160f615 KM |
931 | shared-pin; |
932 | }; |