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