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