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 | ||
13 | /dts-v1/; | |
31c46cbf | 14 | #include "r8a7791.dtsi" |
f8e2535d | 15 | #include <dt-bindings/gpio/gpio.h> |
7f168b1e | 16 | #include <dt-bindings/input/input.h> |
1f52c659 HN |
17 | |
18 | / { | |
19 | model = "Koelsch"; | |
20 | compatible = "renesas,koelsch", "renesas,r8a7791"; | |
21 | ||
5ba55fa8 LP |
22 | aliases { |
23 | serial6 = &scif0; | |
24 | serial7 = &scif1; | |
25 | }; | |
26 | ||
1f52c659 HN |
27 | chosen { |
28 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; | |
17323b36 | 29 | stdout-path = &scif0; |
1f52c659 HN |
30 | }; |
31 | ||
32 | memory@40000000 { | |
33 | device_type = "memory"; | |
4cd1bad4 TY |
34 | reg = <0 0x40000000 0 0x40000000>; |
35 | }; | |
36 | ||
37 | memory@200000000 { | |
38 | device_type = "memory"; | |
39 | reg = <2 0x00000000 0 0x40000000>; | |
1f52c659 HN |
40 | }; |
41 | ||
42 | lbsc { | |
43 | #address-cells = <1>; | |
44 | #size-cells = <1>; | |
45 | }; | |
f8e2535d | 46 | |
aff5274f LP |
47 | gpio-keys { |
48 | compatible = "gpio-keys"; | |
49 | ||
7f168b1e MD |
50 | key-1 { |
51 | gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; | |
52 | linux,code = <KEY_1>; | |
53 | label = "SW2-1"; | |
54 | gpio-key,wakeup; | |
55 | debounce-interval = <20>; | |
56 | }; | |
57 | key-2 { | |
58 | gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; | |
59 | linux,code = <KEY_2>; | |
60 | label = "SW2-2"; | |
61 | gpio-key,wakeup; | |
62 | debounce-interval = <20>; | |
63 | }; | |
64 | key-3 { | |
65 | gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; | |
66 | linux,code = <KEY_3>; | |
67 | label = "SW2-3"; | |
68 | gpio-key,wakeup; | |
69 | debounce-interval = <20>; | |
70 | }; | |
71 | key-4 { | |
72 | gpios = <&gpio5 3 GPIO_ACTIVE_LOW>; | |
73 | linux,code = <KEY_4>; | |
74 | label = "SW2-4"; | |
75 | gpio-key,wakeup; | |
76 | debounce-interval = <20>; | |
77 | }; | |
aff5274f LP |
78 | key-a { |
79 | gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; | |
7f168b1e | 80 | linux,code = <KEY_A>; |
aff5274f LP |
81 | label = "SW30"; |
82 | gpio-key,wakeup; | |
83 | debounce-interval = <20>; | |
84 | }; | |
85 | key-b { | |
86 | gpios = <&gpio7 1 GPIO_ACTIVE_LOW>; | |
7f168b1e | 87 | linux,code = <KEY_B>; |
aff5274f LP |
88 | label = "SW31"; |
89 | gpio-key,wakeup; | |
90 | debounce-interval = <20>; | |
91 | }; | |
92 | key-c { | |
93 | gpios = <&gpio7 2 GPIO_ACTIVE_LOW>; | |
7f168b1e | 94 | linux,code = <KEY_C>; |
aff5274f LP |
95 | label = "SW32"; |
96 | gpio-key,wakeup; | |
97 | debounce-interval = <20>; | |
98 | }; | |
99 | key-d { | |
100 | gpios = <&gpio7 3 GPIO_ACTIVE_LOW>; | |
7f168b1e | 101 | linux,code = <KEY_D>; |
aff5274f LP |
102 | label = "SW33"; |
103 | gpio-key,wakeup; | |
104 | debounce-interval = <20>; | |
105 | }; | |
106 | key-e { | |
107 | gpios = <&gpio7 4 GPIO_ACTIVE_LOW>; | |
7f168b1e | 108 | linux,code = <KEY_E>; |
aff5274f LP |
109 | label = "SW34"; |
110 | gpio-key,wakeup; | |
111 | debounce-interval = <20>; | |
112 | }; | |
113 | key-f { | |
114 | gpios = <&gpio7 5 GPIO_ACTIVE_LOW>; | |
7f168b1e | 115 | linux,code = <KEY_F>; |
aff5274f LP |
116 | label = "SW35"; |
117 | gpio-key,wakeup; | |
118 | debounce-interval = <20>; | |
119 | }; | |
120 | key-g { | |
121 | gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; | |
7f168b1e | 122 | linux,code = <KEY_G>; |
aff5274f LP |
123 | label = "SW36"; |
124 | gpio-key,wakeup; | |
125 | debounce-interval = <20>; | |
126 | }; | |
127 | }; | |
128 | ||
f8e2535d LP |
129 | leds { |
130 | compatible = "gpio-leds"; | |
131 | led6 { | |
132 | gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; | |
133 | }; | |
134 | led7 { | |
135 | gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>; | |
136 | }; | |
137 | led8 { | |
138 | gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; | |
139 | }; | |
140 | }; | |
2c60a7df MD |
141 | |
142 | vcc_sdhi0: regulator@0 { | |
143 | compatible = "regulator-fixed"; | |
144 | ||
145 | regulator-name = "SDHI0 Vcc"; | |
146 | regulator-min-microvolt = <3300000>; | |
147 | regulator-max-microvolt = <3300000>; | |
148 | ||
149 | gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>; | |
150 | enable-active-high; | |
151 | }; | |
152 | ||
153 | vccq_sdhi0: regulator@1 { | |
154 | compatible = "regulator-gpio"; | |
155 | ||
156 | regulator-name = "SDHI0 VccQ"; | |
157 | regulator-min-microvolt = <1800000>; | |
158 | regulator-max-microvolt = <3300000>; | |
159 | ||
160 | gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; | |
161 | gpios-states = <1>; | |
162 | states = <3300000 1 | |
163 | 1800000 0>; | |
164 | }; | |
165 | ||
166 | vcc_sdhi1: regulator@2 { | |
167 | compatible = "regulator-fixed"; | |
168 | ||
169 | regulator-name = "SDHI1 Vcc"; | |
170 | regulator-min-microvolt = <3300000>; | |
171 | regulator-max-microvolt = <3300000>; | |
172 | ||
173 | gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>; | |
174 | enable-active-high; | |
175 | }; | |
176 | ||
177 | vccq_sdhi1: regulator@3 { | |
178 | compatible = "regulator-gpio"; | |
179 | ||
180 | regulator-name = "SDHI1 VccQ"; | |
181 | regulator-min-microvolt = <1800000>; | |
182 | regulator-max-microvolt = <3300000>; | |
183 | ||
184 | gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; | |
185 | gpios-states = <1>; | |
186 | states = <3300000 1 | |
187 | 1800000 0>; | |
188 | }; | |
189 | ||
190 | vcc_sdhi2: regulator@4 { | |
191 | compatible = "regulator-fixed"; | |
192 | ||
193 | regulator-name = "SDHI2 Vcc"; | |
194 | regulator-min-microvolt = <3300000>; | |
195 | regulator-max-microvolt = <3300000>; | |
196 | ||
197 | gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>; | |
198 | enable-active-high; | |
199 | }; | |
200 | ||
201 | vccq_sdhi2: regulator@5 { | |
202 | compatible = "regulator-gpio"; | |
203 | ||
204 | regulator-name = "SDHI2 VccQ"; | |
205 | regulator-min-microvolt = <1800000>; | |
206 | regulator-max-microvolt = <3300000>; | |
207 | ||
208 | gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; | |
209 | gpios-states = <1>; | |
210 | states = <3300000 1 | |
211 | 1800000 0>; | |
212 | }; | |
f8e2535d LP |
213 | }; |
214 | ||
fcf0c725 LP |
215 | &extal_clk { |
216 | clock-frequency = <20000000>; | |
217 | }; | |
218 | ||
f8e2535d | 219 | &pfc { |
5ba55fa8 | 220 | pinctrl-0 = <&du_pins>; |
f8e2535d LP |
221 | pinctrl-names = "default"; |
222 | ||
e6a4c001 | 223 | i2c2_pins: i2c2 { |
38c53516 WS |
224 | renesas,groups = "i2c2"; |
225 | renesas,function = "i2c2"; | |
226 | }; | |
227 | ||
afba941c LP |
228 | du_pins: du { |
229 | renesas,groups = "du_rgb666", "du_sync", "du_clk_out_0"; | |
230 | renesas,function = "du"; | |
231 | }; | |
232 | ||
f8e2535d LP |
233 | scif0_pins: serial0 { |
234 | renesas,groups = "scif0_data_d"; | |
235 | renesas,function = "scif0"; | |
236 | }; | |
237 | ||
238 | scif1_pins: serial1 { | |
239 | renesas,groups = "scif1_data_d"; | |
240 | renesas,function = "scif1"; | |
241 | }; | |
e02ee513 | 242 | |
08e8f0f3 SS |
243 | ether_pins: ether { |
244 | renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; | |
245 | renesas,function = "eth"; | |
246 | }; | |
247 | ||
248 | phy1_pins: phy1 { | |
249 | renesas,groups = "intc_irq0"; | |
250 | renesas,function = "intc"; | |
251 | }; | |
252 | ||
2c60a7df | 253 | sdhi0_pins: sd0 { |
d5dda038 | 254 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl"; |
2c60a7df MD |
255 | renesas,function = "sdhi0"; |
256 | }; | |
257 | ||
258 | sdhi1_pins: sd1 { | |
d5dda038 | 259 | renesas,groups = "sdhi1_data4", "sdhi1_ctrl"; |
2c60a7df MD |
260 | renesas,function = "sdhi1"; |
261 | }; | |
262 | ||
263 | sdhi2_pins: sd2 { | |
d5dda038 | 264 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; |
2c60a7df MD |
265 | renesas,function = "sdhi2"; |
266 | }; | |
267 | ||
6f3e4ee3 | 268 | qspi_pins: spi0 { |
e02ee513 GU |
269 | renesas,groups = "qspi_ctrl", "qspi_data4"; |
270 | renesas,function = "qspi"; | |
271 | }; | |
b16f05ab GU |
272 | |
273 | msiof0_pins: spi1 { | |
274 | renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx", | |
275 | "msiof0_tx"; | |
276 | renesas,function = "msiof0"; | |
277 | }; | |
1d41f36a | 278 | |
7540aeb0 SS |
279 | usb0_pins: usb0 { |
280 | renesas,groups = "usb0"; | |
281 | renesas,function = "usb0"; | |
282 | }; | |
283 | ||
284 | usb1_pins: usb1 { | |
285 | renesas,groups = "usb1"; | |
286 | renesas,function = "usb1"; | |
287 | }; | |
2cf08810 | 288 | |
289 | vin1_pins: vin1 { | |
290 | renesas,groups = "vin1_data8", "vin1_clk"; | |
291 | renesas,function = "vin1"; | |
292 | }; | |
1f52c659 | 293 | }; |
760c277b | 294 | |
08e8f0f3 SS |
295 | ðer { |
296 | pinctrl-0 = <ðer_pins &phy1_pins>; | |
297 | pinctrl-names = "default"; | |
298 | ||
299 | phy-handle = <&phy1>; | |
300 | renesas,ether-link-active-low; | |
301 | status = "ok"; | |
302 | ||
303 | phy1: ethernet-phy@1 { | |
304 | reg = <1>; | |
305 | interrupt-parent = <&irqc0>; | |
306 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | |
19f647cb | 307 | micrel,led-mode = <1>; |
08e8f0f3 SS |
308 | }; |
309 | }; | |
310 | ||
6a1d9460 LP |
311 | &cmt0 { |
312 | status = "ok"; | |
313 | }; | |
314 | ||
760c277b VB |
315 | &sata0 { |
316 | status = "okay"; | |
317 | }; | |
e02ee513 | 318 | |
5ba55fa8 LP |
319 | &scif0 { |
320 | pinctrl-0 = <&scif0_pins>; | |
321 | pinctrl-names = "default"; | |
322 | ||
323 | status = "okay"; | |
324 | }; | |
325 | ||
326 | &scif1 { | |
327 | pinctrl-0 = <&scif1_pins>; | |
328 | pinctrl-names = "default"; | |
329 | ||
330 | status = "okay"; | |
331 | }; | |
332 | ||
2c60a7df MD |
333 | &sdhi0 { |
334 | pinctrl-0 = <&sdhi0_pins>; | |
335 | pinctrl-names = "default"; | |
336 | ||
337 | vmmc-supply = <&vcc_sdhi0>; | |
338 | vqmmc-supply = <&vccq_sdhi0>; | |
339 | cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>; | |
340 | wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; | |
341 | status = "okay"; | |
342 | }; | |
343 | ||
344 | &sdhi1 { | |
345 | pinctrl-0 = <&sdhi1_pins>; | |
346 | pinctrl-names = "default"; | |
347 | ||
348 | vmmc-supply = <&vcc_sdhi1>; | |
349 | vqmmc-supply = <&vccq_sdhi1>; | |
350 | cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; | |
351 | wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>; | |
352 | status = "okay"; | |
353 | }; | |
354 | ||
355 | &sdhi2 { | |
356 | pinctrl-0 = <&sdhi2_pins>; | |
357 | pinctrl-names = "default"; | |
358 | ||
359 | vmmc-supply = <&vcc_sdhi2>; | |
360 | vqmmc-supply = <&vccq_sdhi2>; | |
361 | cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; | |
362 | status = "okay"; | |
363 | }; | |
364 | ||
6f3e4ee3 | 365 | &qspi { |
e02ee513 GU |
366 | pinctrl-0 = <&qspi_pins>; |
367 | pinctrl-names = "default"; | |
368 | ||
369 | status = "okay"; | |
370 | ||
371 | flash: flash@0 { | |
372 | #address-cells = <1>; | |
373 | #size-cells = <1>; | |
374 | compatible = "spansion,s25fl512s"; | |
375 | reg = <0>; | |
376 | spi-max-frequency = <30000000>; | |
ed56083a GU |
377 | spi-tx-bus-width = <4>; |
378 | spi-rx-bus-width = <4>; | |
e02ee513 GU |
379 | m25p,fast-read; |
380 | ||
381 | partition@0 { | |
382 | label = "loader"; | |
383 | reg = <0x00000000 0x00080000>; | |
384 | read-only; | |
385 | }; | |
386 | partition@80000 { | |
387 | label = "bootenv"; | |
388 | reg = <0x00080000 0x00080000>; | |
389 | read-only; | |
390 | }; | |
391 | partition@100000 { | |
392 | label = "data"; | |
393 | reg = <0x00100000 0x03f00000>; | |
394 | }; | |
395 | }; | |
396 | }; | |
b16f05ab GU |
397 | |
398 | &msiof0 { | |
399 | pinctrl-0 = <&msiof0_pins>; | |
400 | pinctrl-names = "default"; | |
401 | ||
402 | status = "okay"; | |
403 | ||
404 | pmic: pmic@0 { | |
405 | compatible = "renesas,r2a11302ft"; | |
406 | reg = <0>; | |
407 | spi-max-frequency = <6000000>; | |
408 | spi-cpol; | |
409 | spi-cpha; | |
410 | }; | |
411 | }; | |
1d41f36a | 412 | |
897dfdbc SH |
413 | &i2c2 { |
414 | pinctrl-0 = <&i2c2_pins>; | |
415 | pinctrl-names = "default"; | |
416 | ||
417 | status = "okay"; | |
418 | clock-frequency = <400000>; | |
419 | ||
2cf08810 | 420 | composite-in@20 { |
421 | compatible = "adi,adv7180"; | |
422 | reg = <0x20>; | |
423 | remote = <&vin1>; | |
424 | ||
425 | port { | |
426 | adv7180: endpoint { | |
427 | bus-width = <8>; | |
428 | remote-endpoint = <&vin1ep>; | |
429 | }; | |
430 | }; | |
431 | }; | |
432 | ||
897dfdbc SH |
433 | eeprom@50 { |
434 | compatible = "renesas,24c02"; | |
435 | reg = <0x50>; | |
436 | pagesize = <16>; | |
437 | }; | |
438 | }; | |
439 | ||
1d41f36a | 440 | &i2c6 { |
1d41f36a | 441 | status = "okay"; |
897dfdbc | 442 | clock-frequency = <100000>; |
1d41f36a GI |
443 | |
444 | vdd_dvfs: regulator@68 { | |
bd597f47 | 445 | compatible = "dlg,da9210"; |
1d41f36a GI |
446 | reg = <0x68>; |
447 | ||
448 | regulator-min-microvolt = <1000000>; | |
449 | regulator-max-microvolt = <1000000>; | |
450 | regulator-boot-on; | |
451 | regulator-always-on; | |
452 | }; | |
453 | }; | |
a57004ec | 454 | |
7540aeb0 SS |
455 | &pci0 { |
456 | status = "okay"; | |
457 | pinctrl-0 = <&usb0_pins>; | |
458 | pinctrl-names = "default"; | |
459 | }; | |
460 | ||
461 | &pci1 { | |
462 | status = "okay"; | |
463 | pinctrl-0 = <&usb1_pins>; | |
464 | pinctrl-names = "default"; | |
465 | }; | |
466 | ||
998d7d64 PE |
467 | &pcie_bus_clk { |
468 | status = "okay"; | |
469 | }; | |
470 | ||
471 | &pciec { | |
472 | status = "okay"; | |
473 | }; | |
474 | ||
a57004ec GI |
475 | &cpu0 { |
476 | cpu0-supply = <&vdd_dvfs>; | |
477 | }; | |
2cf08810 | 478 | |
479 | /* composite video input */ | |
480 | &vin1 { | |
481 | status = "ok"; | |
482 | pinctrl-0 = <&vin1_pins>; | |
483 | pinctrl-names = "default"; | |
484 | ||
485 | port { | |
486 | #address-cells = <1>; | |
487 | #size-cells = <0>; | |
488 | ||
489 | vin1ep: endpoint { | |
490 | remote-endpoint = <&adv7180>; | |
491 | bus-width = <8>; | |
492 | }; | |
493 | }; | |
494 | }; |