Commit | Line | Data |
---|---|---|
3cc828fd MD |
1 | /* |
2 | * Device Tree Source for the Lager board | |
3 | * | |
da4ea951 SS |
4 | * Copyright (C) 2013-2014 Renesas Solutions Corp. |
5 | * Copyright (C) 2014 Cogent Embedded, Inc. | |
3cc828fd MD |
6 | * |
7 | * This file is licensed under the terms of the GNU General Public License | |
8 | * version 2. This program is licensed "as is" without any warranty of any | |
9 | * kind, whether express or implied. | |
10 | */ | |
11 | ||
12 | /dts-v1/; | |
31c46cbf | 13 | #include "r8a7790.dtsi" |
39fa511b | 14 | #include <dt-bindings/gpio/gpio.h> |
f7dcd382 | 15 | #include <dt-bindings/input/input.h> |
3cc828fd MD |
16 | |
17 | / { | |
18 | model = "Lager"; | |
19 | compatible = "renesas,lager", "renesas,r8a7790"; | |
20 | ||
4e9c4877 | 21 | aliases { |
7c055894 WS |
22 | serial6 = &scifa0; |
23 | serial7 = &scifa1; | |
4e9c4877 LP |
24 | }; |
25 | ||
3cc828fd | 26 | chosen { |
dcbbbaf2 | 27 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
cf855816 | 28 | stdout-path = &scifa0; |
3cc828fd MD |
29 | }; |
30 | ||
31 | memory@40000000 { | |
32 | device_type = "memory"; | |
7b16c61a | 33 | reg = <0 0x40000000 0 0x40000000>; |
3cc828fd MD |
34 | }; |
35 | ||
126f998e | 36 | memory@140000000 { |
62bc32a2 | 37 | device_type = "memory"; |
7b16c61a | 38 | reg = <1 0x40000000 0 0xc0000000>; |
62bc32a2 MD |
39 | }; |
40 | ||
3cc828fd MD |
41 | lbsc { |
42 | #address-cells = <1>; | |
43 | #size-cells = <1>; | |
44 | }; | |
39fa511b | 45 | |
f7dcd382 MD |
46 | gpio_keys { |
47 | compatible = "gpio-keys"; | |
48 | ||
49 | button@1 { | |
50 | linux,code = <KEY_1>; | |
51 | label = "SW2-1"; | |
52 | gpio-key,wakeup; | |
53 | debounce-interval = <20>; | |
54 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; | |
55 | }; | |
56 | button@2 { | |
57 | linux,code = <KEY_2>; | |
58 | label = "SW2-2"; | |
59 | gpio-key,wakeup; | |
60 | debounce-interval = <20>; | |
61 | gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; | |
62 | }; | |
63 | button@3 { | |
64 | linux,code = <KEY_3>; | |
65 | label = "SW2-3"; | |
66 | gpio-key,wakeup; | |
67 | debounce-interval = <20>; | |
68 | gpios = <&gpio1 26 GPIO_ACTIVE_LOW>; | |
69 | }; | |
70 | button@4 { | |
71 | linux,code = <KEY_4>; | |
72 | label = "SW2-4"; | |
73 | gpio-key,wakeup; | |
74 | debounce-interval = <20>; | |
75 | gpios = <&gpio1 28 GPIO_ACTIVE_LOW>; | |
76 | }; | |
77 | }; | |
78 | ||
39fa511b LP |
79 | leds { |
80 | compatible = "gpio-leds"; | |
81 | led6 { | |
82 | gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>; | |
83 | }; | |
84 | led7 { | |
85 | gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>; | |
86 | }; | |
87 | led8 { | |
88 | gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>; | |
89 | }; | |
90 | }; | |
91 | ||
92 | fixedregulator3v3: fixedregulator@0 { | |
93 | compatible = "regulator-fixed"; | |
94 | regulator-name = "fixed-3.3V"; | |
95 | regulator-min-microvolt = <3300000>; | |
96 | regulator-max-microvolt = <3300000>; | |
97 | regulator-boot-on; | |
98 | regulator-always-on; | |
99 | }; | |
c6119944 KM |
100 | |
101 | vcc_sdhi0: regulator@1 { | |
102 | compatible = "regulator-fixed"; | |
103 | ||
104 | regulator-name = "SDHI0 Vcc"; | |
105 | regulator-min-microvolt = <3300000>; | |
106 | regulator-max-microvolt = <3300000>; | |
107 | ||
108 | gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>; | |
109 | enable-active-high; | |
110 | }; | |
111 | ||
112 | vccq_sdhi0: regulator@2 { | |
113 | compatible = "regulator-gpio"; | |
114 | ||
115 | regulator-name = "SDHI0 VccQ"; | |
116 | regulator-min-microvolt = <1800000>; | |
117 | regulator-max-microvolt = <3300000>; | |
118 | ||
119 | gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>; | |
120 | gpios-states = <1>; | |
121 | states = <3300000 1 | |
122 | 1800000 0>; | |
123 | }; | |
124 | ||
125 | vcc_sdhi2: regulator@3 { | |
126 | compatible = "regulator-fixed"; | |
127 | ||
128 | regulator-name = "SDHI2 Vcc"; | |
129 | regulator-min-microvolt = <3300000>; | |
130 | regulator-max-microvolt = <3300000>; | |
131 | ||
132 | gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>; | |
133 | enable-active-high; | |
134 | }; | |
135 | ||
136 | vccq_sdhi2: regulator@4 { | |
137 | compatible = "regulator-gpio"; | |
138 | ||
139 | regulator-name = "SDHI2 VccQ"; | |
140 | regulator-min-microvolt = <1800000>; | |
141 | regulator-max-microvolt = <3300000>; | |
142 | ||
143 | gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>; | |
144 | gpios-states = <1>; | |
145 | states = <3300000 1 | |
146 | 1800000 0>; | |
147 | }; | |
3edd18ff LP |
148 | |
149 | vga-encoder { | |
150 | compatible = "adi,adv7123"; | |
151 | ||
152 | ports { | |
153 | #address-cells = <1>; | |
154 | #size-cells = <0>; | |
155 | ||
156 | port@0 { | |
157 | reg = <0>; | |
158 | adv7123_in: endpoint { | |
159 | remote-endpoint = <&du_out_rgb>; | |
160 | }; | |
161 | }; | |
162 | port@1 { | |
163 | reg = <1>; | |
164 | adv7123_out: endpoint { | |
165 | remote-endpoint = <&vga_in>; | |
166 | }; | |
167 | }; | |
168 | }; | |
169 | }; | |
170 | ||
171 | vga { | |
172 | compatible = "vga-connector"; | |
173 | ||
174 | port { | |
175 | vga_in: endpoint { | |
176 | remote-endpoint = <&adv7123_out>; | |
177 | }; | |
178 | }; | |
179 | }; | |
180 | }; | |
181 | ||
182 | &du { | |
183 | pinctrl-0 = <&du_pins>; | |
184 | pinctrl-names = "default"; | |
185 | status = "okay"; | |
186 | ||
187 | ports { | |
188 | port@0 { | |
189 | endpoint { | |
190 | remote-endpoint = <&adv7123_in>; | |
191 | }; | |
192 | }; | |
193 | port@2 { | |
194 | lvds_connector: endpoint { | |
195 | }; | |
196 | }; | |
197 | }; | |
39fa511b LP |
198 | }; |
199 | ||
62e43056 LP |
200 | &extal_clk { |
201 | clock-frequency = <20000000>; | |
202 | }; | |
203 | ||
39fa511b | 204 | &pfc { |
3024f507 LP |
205 | du_pins: du { |
206 | renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0"; | |
207 | renesas,function = "du"; | |
208 | }; | |
209 | ||
7c055894 WS |
210 | scifa0_pins: serial0 { |
211 | renesas,groups = "scifa0_data"; | |
212 | renesas,function = "scifa0"; | |
39fa511b LP |
213 | }; |
214 | ||
da4ea951 SS |
215 | ether_pins: ether { |
216 | renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; | |
217 | renesas,function = "eth"; | |
218 | }; | |
219 | ||
220 | phy1_pins: phy1 { | |
221 | renesas,groups = "intc_irq0"; | |
222 | renesas,function = "intc"; | |
223 | }; | |
224 | ||
7c055894 WS |
225 | scifa1_pins: serial1 { |
226 | renesas,groups = "scifa1_data"; | |
227 | renesas,function = "scifa1"; | |
39fa511b LP |
228 | }; |
229 | ||
c6119944 | 230 | sdhi0_pins: sd0 { |
b08eed0c | 231 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl"; |
c6119944 KM |
232 | renesas,function = "sdhi0"; |
233 | }; | |
234 | ||
235 | sdhi2_pins: sd2 { | |
b08eed0c | 236 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; |
c6119944 KM |
237 | renesas,function = "sdhi2"; |
238 | }; | |
239 | ||
39fa511b LP |
240 | mmc1_pins: mmc1 { |
241 | renesas,groups = "mmc1_data8", "mmc1_ctrl"; | |
242 | renesas,function = "mmc1"; | |
243 | }; | |
9fe7c4f8 | 244 | |
fad6d45c | 245 | qspi_pins: spi0 { |
9fe7c4f8 GU |
246 | renesas,groups = "qspi_ctrl", "qspi_data4"; |
247 | renesas,function = "qspi"; | |
248 | }; | |
b0403b91 GU |
249 | |
250 | msiof1_pins: spi2 { | |
251 | renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx", | |
252 | "msiof1_tx"; | |
253 | renesas,function = "msiof1"; | |
254 | }; | |
05f72e03 | 255 | |
cb9a2b12 WS |
256 | iic1_pins: iic1 { |
257 | renesas,groups = "iic1"; | |
258 | renesas,function = "iic1"; | |
d90bf60c SH |
259 | }; |
260 | ||
cb9a2b12 WS |
261 | iic2_pins: iic2 { |
262 | renesas,groups = "iic2"; | |
263 | renesas,function = "iic2"; | |
d90bf60c SH |
264 | }; |
265 | ||
5179ffd0 KN |
266 | iic3_pins: iic3 { |
267 | renesas,groups = "iic3"; | |
268 | renesas,function = "iic3"; | |
05f72e03 | 269 | }; |
d8584660 BD |
270 | |
271 | usb0_pins: usb0 { | |
272 | renesas,groups = "usb0"; | |
273 | renesas,function = "usb0"; | |
274 | }; | |
275 | ||
276 | usb1_pins: usb1 { | |
277 | renesas,groups = "usb1"; | |
278 | renesas,function = "usb1"; | |
279 | }; | |
280 | ||
281 | usb2_pins: usb2 { | |
282 | renesas,groups = "usb2"; | |
283 | renesas,function = "usb2"; | |
284 | }; | |
d594c977 BD |
285 | |
286 | vin1_pins: vin { | |
287 | renesas,groups = "vin1_data8", "vin1_clk"; | |
288 | renesas,function = "vin1"; | |
289 | }; | |
39fa511b LP |
290 | }; |
291 | ||
da4ea951 SS |
292 | ðer { |
293 | pinctrl-0 = <ðer_pins &phy1_pins>; | |
294 | pinctrl-names = "default"; | |
295 | ||
296 | phy-handle = <&phy1>; | |
297 | renesas,ether-link-active-low; | |
298 | status = "ok"; | |
299 | ||
300 | phy1: ethernet-phy@1 { | |
301 | reg = <1>; | |
302 | interrupt-parent = <&irqc0>; | |
303 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | |
1c47a6aa | 304 | micrel,led-mode = <1>; |
da4ea951 SS |
305 | }; |
306 | }; | |
307 | ||
247fd5ec LP |
308 | &cmt0 { |
309 | status = "ok"; | |
310 | }; | |
311 | ||
39fa511b LP |
312 | &mmcif1 { |
313 | pinctrl-0 = <&mmc1_pins>; | |
314 | pinctrl-names = "default"; | |
315 | ||
316 | vmmc-supply = <&fixedregulator3v3>; | |
317 | bus-width = <8>; | |
318 | non-removable; | |
319 | status = "okay"; | |
3cc828fd | 320 | }; |
c6181b9f VB |
321 | |
322 | &sata1 { | |
323 | status = "okay"; | |
324 | }; | |
9fe7c4f8 | 325 | |
fad6d45c | 326 | &qspi { |
9fe7c4f8 GU |
327 | pinctrl-0 = <&qspi_pins>; |
328 | pinctrl-names = "default"; | |
329 | ||
330 | status = "okay"; | |
331 | ||
332 | flash: flash@0 { | |
333 | #address-cells = <1>; | |
334 | #size-cells = <1>; | |
335 | compatible = "spansion,s25fl512s"; | |
336 | reg = <0>; | |
337 | spi-max-frequency = <30000000>; | |
9909d2cb GU |
338 | spi-tx-bus-width = <4>; |
339 | spi-rx-bus-width = <4>; | |
9fe7c4f8 GU |
340 | m25p,fast-read; |
341 | ||
342 | partition@0 { | |
343 | label = "loader"; | |
344 | reg = <0x00000000 0x00040000>; | |
345 | read-only; | |
346 | }; | |
347 | partition@40000 { | |
348 | label = "user"; | |
349 | reg = <0x00040000 0x00400000>; | |
350 | read-only; | |
351 | }; | |
352 | partition@440000 { | |
353 | label = "flash"; | |
354 | reg = <0x00440000 0x03bc0000>; | |
355 | }; | |
356 | }; | |
357 | }; | |
c6119944 | 358 | |
7c055894 WS |
359 | &scifa0 { |
360 | pinctrl-0 = <&scifa0_pins>; | |
4e9c4877 LP |
361 | pinctrl-names = "default"; |
362 | ||
363 | status = "okay"; | |
364 | }; | |
365 | ||
7c055894 WS |
366 | &scifa1 { |
367 | pinctrl-0 = <&scifa1_pins>; | |
4e9c4877 LP |
368 | pinctrl-names = "default"; |
369 | ||
370 | status = "okay"; | |
371 | }; | |
372 | ||
b0403b91 GU |
373 | &msiof1 { |
374 | pinctrl-0 = <&msiof1_pins>; | |
375 | pinctrl-names = "default"; | |
376 | ||
377 | status = "okay"; | |
378 | ||
379 | pmic: pmic@0 { | |
380 | compatible = "renesas,r2a11302ft"; | |
381 | reg = <0>; | |
382 | spi-max-frequency = <6000000>; | |
383 | spi-cpol; | |
384 | spi-cpha; | |
385 | }; | |
b0403b91 GU |
386 | }; |
387 | ||
c6119944 KM |
388 | &sdhi0 { |
389 | pinctrl-0 = <&sdhi0_pins>; | |
390 | pinctrl-names = "default"; | |
391 | ||
392 | vmmc-supply = <&vcc_sdhi0>; | |
393 | vqmmc-supply = <&vccq_sdhi0>; | |
394 | cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; | |
395 | status = "okay"; | |
396 | }; | |
397 | ||
398 | &sdhi2 { | |
399 | pinctrl-0 = <&sdhi2_pins>; | |
400 | pinctrl-names = "default"; | |
401 | ||
402 | vmmc-supply = <&vcc_sdhi2>; | |
403 | vqmmc-supply = <&vccq_sdhi2>; | |
404 | cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>; | |
405 | status = "okay"; | |
406 | }; | |
05f72e03 | 407 | |
b989e138 BC |
408 | &cpu0 { |
409 | cpu0-supply = <&vdd_dvfs>; | |
410 | }; | |
e489c2a9 | 411 | |
cb9a2b12 | 412 | &iic0 { |
e489c2a9 BD |
413 | status = "ok"; |
414 | }; | |
415 | ||
cb9a2b12 | 416 | &iic1 { |
e489c2a9 | 417 | status = "ok"; |
cb9a2b12 | 418 | pinctrl-0 = <&iic1_pins>; |
e1a2c4eb | 419 | pinctrl-names = "default"; |
e489c2a9 BD |
420 | }; |
421 | ||
cb9a2b12 | 422 | &iic2 { |
e489c2a9 | 423 | status = "ok"; |
cb9a2b12 | 424 | pinctrl-0 = <&iic2_pins>; |
e1a2c4eb | 425 | pinctrl-names = "default"; |
d594c977 BD |
426 | |
427 | composite-in@20 { | |
428 | compatible = "adi,adv7180"; | |
429 | reg = <0x20>; | |
430 | remote = <&vin1>; | |
431 | ||
432 | port { | |
433 | adv7180: endpoint { | |
434 | bus-width = <8>; | |
435 | remote-endpoint = <&vin1ep0>; | |
436 | }; | |
437 | }; | |
438 | }; | |
e489c2a9 BD |
439 | }; |
440 | ||
5179ffd0 | 441 | &iic3 { |
aca4ec44 | 442 | pinctrl-names = "default"; |
5179ffd0 | 443 | pinctrl-0 = <&iic3_pins>; |
aca4ec44 SH |
444 | status = "okay"; |
445 | ||
446 | vdd_dvfs: regulator@68 { | |
bd597f47 | 447 | compatible = "dlg,da9210"; |
aca4ec44 SH |
448 | reg = <0x68>; |
449 | ||
450 | regulator-min-microvolt = <1000000>; | |
451 | regulator-max-microvolt = <1000000>; | |
452 | regulator-boot-on; | |
453 | regulator-always-on; | |
454 | }; | |
e489c2a9 | 455 | }; |
d8584660 BD |
456 | |
457 | &pci0 { | |
458 | status = "okay"; | |
459 | pinctrl-0 = <&usb0_pins>; | |
460 | pinctrl-names = "default"; | |
461 | }; | |
462 | ||
463 | &pci1 { | |
464 | status = "okay"; | |
465 | pinctrl-0 = <&usb1_pins>; | |
466 | pinctrl-names = "default"; | |
467 | }; | |
468 | ||
37f7c1b0 YS |
469 | &xhci { |
470 | status = "okay"; | |
471 | pinctrl-0 = <&usb2_pins>; | |
472 | pinctrl-names = "default"; | |
473 | }; | |
474 | ||
d8584660 BD |
475 | &pci2 { |
476 | status = "okay"; | |
477 | pinctrl-0 = <&usb2_pins>; | |
478 | pinctrl-names = "default"; | |
479 | }; | |
d594c977 | 480 | |
6742cafb SS |
481 | &usbphy { |
482 | status = "okay"; | |
483 | }; | |
484 | ||
d594c977 BD |
485 | /* composite video input */ |
486 | &vin1 { | |
487 | pinctrl-0 = <&vin1_pins>; | |
488 | pinctrl-names = "default"; | |
489 | ||
490 | status = "ok"; | |
491 | ||
492 | port { | |
493 | #address-cells = <1>; | |
494 | #size-cells = <0>; | |
495 | ||
496 | vin1ep0: endpoint { | |
497 | remote-endpoint = <&adv7180>; | |
498 | bus-width = <8>; | |
499 | }; | |
500 | }; | |
501 | }; |