blob: 69098b906b3919d2653dd244b6cc3220d6dfb741 [file] [log] [blame]
Magnus Damm3cc828f2013-03-29 17:49:37 +09001/*
2 * Device Tree Source for the Lager board
3 *
Sergei Shtylyovda4ea952014-02-20 02:22:31 +03004 * Copyright (C) 2013-2014 Renesas Solutions Corp.
5 * Copyright (C) 2014 Cogent Embedded, Inc.
Magnus Damm3cc828f2013-03-29 17:49:37 +09006 *
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/;
Laurent Pinchart31c46cb2013-11-09 13:23:53 +010013#include "r8a7790.dtsi"
Laurent Pinchart39fa5112013-12-11 15:13:47 +010014#include <dt-bindings/gpio/gpio.h>
Magnus Dammf7dcd382014-03-18 21:57:48 +090015#include <dt-bindings/input/input.h>
Magnus Damm3cc828f2013-03-29 17:49:37 +090016
17/ {
18 model = "Lager";
19 compatible = "renesas,lager", "renesas,r8a7790";
20
Laurent Pinchart4e9c4872014-04-30 02:31:45 +020021 aliases {
22 serial6 = &scif0;
23 serial7 = &scif1;
24 };
25
Magnus Damm3cc828f2013-03-29 17:49:37 +090026 chosen {
Simon Hormandcbbbaf2013-08-06 16:50:11 +090027 bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
Magnus Damm3cc828f2013-03-29 17:49:37 +090028 };
29
30 memory@40000000 {
31 device_type = "memory";
Magnus Damm7b16c612014-06-06 15:40:26 +090032 reg = <0 0x40000000 0 0x40000000>;
Magnus Damm3cc828f2013-03-29 17:49:37 +090033 };
34
Simon Horman126f9982014-09-03 09:49:01 +090035 memory@140000000 {
Magnus Damm62bc32a2013-10-31 12:21:41 +090036 device_type = "memory";
Magnus Damm7b16c612014-06-06 15:40:26 +090037 reg = <1 0x40000000 0 0xc0000000>;
Magnus Damm62bc32a2013-10-31 12:21:41 +090038 };
39
Magnus Damm3cc828f2013-03-29 17:49:37 +090040 lbsc {
41 #address-cells = <1>;
42 #size-cells = <1>;
43 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +010044
Magnus Dammf7dcd382014-03-18 21:57:48 +090045 gpio_keys {
46 compatible = "gpio-keys";
47
48 button@1 {
49 linux,code = <KEY_1>;
50 label = "SW2-1";
51 gpio-key,wakeup;
52 debounce-interval = <20>;
53 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
54 };
55 button@2 {
56 linux,code = <KEY_2>;
57 label = "SW2-2";
58 gpio-key,wakeup;
59 debounce-interval = <20>;
60 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
61 };
62 button@3 {
63 linux,code = <KEY_3>;
64 label = "SW2-3";
65 gpio-key,wakeup;
66 debounce-interval = <20>;
67 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
68 };
69 button@4 {
70 linux,code = <KEY_4>;
71 label = "SW2-4";
72 gpio-key,wakeup;
73 debounce-interval = <20>;
74 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
75 };
76 };
77
Laurent Pinchart39fa5112013-12-11 15:13:47 +010078 leds {
79 compatible = "gpio-leds";
80 led6 {
81 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
82 };
83 led7 {
84 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
85 };
86 led8 {
87 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
88 };
89 };
90
91 fixedregulator3v3: fixedregulator@0 {
92 compatible = "regulator-fixed";
93 regulator-name = "fixed-3.3V";
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
96 regulator-boot-on;
97 regulator-always-on;
98 };
Kuninori Morimotoc6119942014-02-12 21:43:19 -080099
100 vcc_sdhi0: regulator@1 {
101 compatible = "regulator-fixed";
102
103 regulator-name = "SDHI0 Vcc";
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
106
107 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
108 enable-active-high;
109 };
110
111 vccq_sdhi0: regulator@2 {
112 compatible = "regulator-gpio";
113
114 regulator-name = "SDHI0 VccQ";
115 regulator-min-microvolt = <1800000>;
116 regulator-max-microvolt = <3300000>;
117
118 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
119 gpios-states = <1>;
120 states = <3300000 1
121 1800000 0>;
122 };
123
124 vcc_sdhi2: regulator@3 {
125 compatible = "regulator-fixed";
126
127 regulator-name = "SDHI2 Vcc";
128 regulator-min-microvolt = <3300000>;
129 regulator-max-microvolt = <3300000>;
130
131 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
132 enable-active-high;
133 };
134
135 vccq_sdhi2: regulator@4 {
136 compatible = "regulator-gpio";
137
138 regulator-name = "SDHI2 VccQ";
139 regulator-min-microvolt = <1800000>;
140 regulator-max-microvolt = <3300000>;
141
142 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
143 gpios-states = <1>;
144 states = <3300000 1
145 1800000 0>;
146 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100147};
148
Laurent Pinchart62e43052013-12-11 15:13:49 +0100149&extal_clk {
150 clock-frequency = <20000000>;
151};
152
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100153&pfc {
Laurent Pinchart4e9c4872014-04-30 02:31:45 +0200154 pinctrl-0 = <&du_pins>;
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100155 pinctrl-names = "default";
156
Laurent Pinchart3024f502014-02-16 22:31:59 +0100157 du_pins: du {
158 renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
159 renesas,function = "du";
160 };
161
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100162 scif0_pins: serial0 {
163 renesas,groups = "scif0_data";
164 renesas,function = "scif0";
165 };
166
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300167 ether_pins: ether {
168 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
169 renesas,function = "eth";
170 };
171
172 phy1_pins: phy1 {
173 renesas,groups = "intc_irq0";
174 renesas,function = "intc";
175 };
176
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100177 scif1_pins: serial1 {
178 renesas,groups = "scif1_data";
179 renesas,function = "scif1";
180 };
181
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800182 sdhi0_pins: sd0 {
Rob Taylorb08eed02014-04-07 20:16:52 +0100183 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800184 renesas,function = "sdhi0";
185 };
186
187 sdhi2_pins: sd2 {
Rob Taylorb08eed02014-04-07 20:16:52 +0100188 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800189 renesas,function = "sdhi2";
190 };
191
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100192 mmc1_pins: mmc1 {
193 renesas,groups = "mmc1_data8", "mmc1_ctrl";
194 renesas,function = "mmc1";
195 };
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100196
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +0100197 qspi_pins: spi0 {
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100198 renesas,groups = "qspi_ctrl", "qspi_data4";
199 renesas,function = "qspi";
200 };
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100201
202 msiof1_pins: spi2 {
203 renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
204 "msiof1_tx";
205 renesas,function = "msiof1";
206 };
Benoit Cousson05f72e02014-06-03 21:02:12 +0900207
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200208 iic1_pins: iic1 {
209 renesas,groups = "iic1";
210 renesas,function = "iic1";
Simon Hormand90bf602014-06-06 16:11:00 +0900211 };
212
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200213 iic2_pins: iic2 {
214 renesas,groups = "iic2";
215 renesas,function = "iic2";
Simon Hormand90bf602014-06-06 16:11:00 +0900216 };
217
Khiem Nguyen5179ffd2014-07-04 09:19:51 +0900218 iic3_pins: iic3 {
219 renesas,groups = "iic3";
220 renesas,function = "iic3";
Benoit Cousson05f72e02014-06-03 21:02:12 +0900221 };
Ben Dooksd8584662014-06-24 22:02:21 +0400222
223 usb0_pins: usb0 {
224 renesas,groups = "usb0";
225 renesas,function = "usb0";
226 };
227
228 usb1_pins: usb1 {
229 renesas,groups = "usb1";
230 renesas,function = "usb1";
231 };
232
233 usb2_pins: usb2 {
234 renesas,groups = "usb2";
235 renesas,function = "usb2";
236 };
Ben Dooksd594c972014-08-13 00:18:26 +0400237
238 vin1_pins: vin {
239 renesas,groups = "vin1_data8", "vin1_clk";
240 renesas,function = "vin1";
241 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100242};
243
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300244&ether {
245 pinctrl-0 = <&ether_pins &phy1_pins>;
246 pinctrl-names = "default";
247
248 phy-handle = <&phy1>;
249 renesas,ether-link-active-low;
250 status = "ok";
251
252 phy1: ethernet-phy@1 {
253 reg = <1>;
254 interrupt-parent = <&irqc0>;
255 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
Simon Horman1c47a6a2014-04-08 09:21:35 +0900256 micrel,led-mode = <1>;
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300257 };
258};
259
Laurent Pinchart247fd5e2014-07-09 15:12:41 +0200260&cmt0 {
261 status = "ok";
262};
263
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100264&mmcif1 {
265 pinctrl-0 = <&mmc1_pins>;
266 pinctrl-names = "default";
267
268 vmmc-supply = <&fixedregulator3v3>;
269 bus-width = <8>;
270 non-removable;
271 status = "okay";
Magnus Damm3cc828f2013-03-29 17:49:37 +0900272};
Valentine Barshakc6181b92014-01-14 21:05:31 +0400273
274&sata1 {
275 status = "okay";
276};
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100277
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +0100278&qspi {
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100279 pinctrl-0 = <&qspi_pins>;
280 pinctrl-names = "default";
281
282 status = "okay";
283
284 flash: flash@0 {
285 #address-cells = <1>;
286 #size-cells = <1>;
287 compatible = "spansion,s25fl512s";
288 reg = <0>;
289 spi-max-frequency = <30000000>;
Geert Uytterhoeven9909d2c2014-04-14 19:36:00 +0200290 spi-tx-bus-width = <4>;
291 spi-rx-bus-width = <4>;
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100292 m25p,fast-read;
293
294 partition@0 {
295 label = "loader";
296 reg = <0x00000000 0x00040000>;
297 read-only;
298 };
299 partition@40000 {
300 label = "user";
301 reg = <0x00040000 0x00400000>;
302 read-only;
303 };
304 partition@440000 {
305 label = "flash";
306 reg = <0x00440000 0x03bc0000>;
307 };
308 };
309};
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800310
Laurent Pinchart4e9c4872014-04-30 02:31:45 +0200311&scif0 {
312 pinctrl-0 = <&scif0_pins>;
313 pinctrl-names = "default";
314
315 status = "okay";
316};
317
318&scif1 {
319 pinctrl-0 = <&scif1_pins>;
320 pinctrl-names = "default";
321
322 status = "okay";
323};
324
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100325&msiof1 {
326 pinctrl-0 = <&msiof1_pins>;
327 pinctrl-names = "default";
328
329 status = "okay";
330
331 pmic: pmic@0 {
332 compatible = "renesas,r2a11302ft";
333 reg = <0>;
334 spi-max-frequency = <6000000>;
335 spi-cpol;
336 spi-cpha;
337 };
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100338};
339
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800340&sdhi0 {
341 pinctrl-0 = <&sdhi0_pins>;
342 pinctrl-names = "default";
343
344 vmmc-supply = <&vcc_sdhi0>;
345 vqmmc-supply = <&vccq_sdhi0>;
346 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
347 status = "okay";
348};
349
350&sdhi2 {
351 pinctrl-0 = <&sdhi2_pins>;
352 pinctrl-names = "default";
353
354 vmmc-supply = <&vcc_sdhi2>;
355 vqmmc-supply = <&vccq_sdhi2>;
356 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
357 status = "okay";
358};
Benoit Cousson05f72e02014-06-03 21:02:12 +0900359
Benoit Coussonb989e132014-06-03 21:02:24 +0900360&cpu0 {
361 cpu0-supply = <&vdd_dvfs>;
362};
Ben Dookse489c2a2014-02-12 17:04:33 +0000363
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200364&iic0 {
Ben Dookse489c2a2014-02-12 17:04:33 +0000365 status = "ok";
366};
367
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200368&iic1 {
Ben Dookse489c2a2014-02-12 17:04:33 +0000369 status = "ok";
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200370 pinctrl-0 = <&iic1_pins>;
Ben Dookse1a2c4e2014-02-12 17:04:34 +0000371 pinctrl-names = "default";
Ben Dookse489c2a2014-02-12 17:04:33 +0000372};
373
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200374&iic2 {
Ben Dookse489c2a2014-02-12 17:04:33 +0000375 status = "ok";
Wolfram Sangcb9a2b12014-07-10 12:50:56 +0200376 pinctrl-0 = <&iic2_pins>;
Ben Dookse1a2c4e2014-02-12 17:04:34 +0000377 pinctrl-names = "default";
Ben Dooksd594c972014-08-13 00:18:26 +0400378
379 composite-in@20 {
380 compatible = "adi,adv7180";
381 reg = <0x20>;
382 remote = <&vin1>;
383
384 port {
385 adv7180: endpoint {
386 bus-width = <8>;
387 remote-endpoint = <&vin1ep0>;
388 };
389 };
390 };
Ben Dookse489c2a2014-02-12 17:04:33 +0000391};
392
Khiem Nguyen5179ffd2014-07-04 09:19:51 +0900393&iic3 {
Simon Hormanaca4ec42014-06-09 11:09:44 +0900394 pinctrl-names = "default";
Khiem Nguyen5179ffd2014-07-04 09:19:51 +0900395 pinctrl-0 = <&iic3_pins>;
Simon Hormanaca4ec42014-06-09 11:09:44 +0900396 status = "okay";
397
398 vdd_dvfs: regulator@68 {
Steve Twissbd597f42014-08-22 15:26:55 +0100399 compatible = "dlg,da9210";
Simon Hormanaca4ec42014-06-09 11:09:44 +0900400 reg = <0x68>;
401
402 regulator-min-microvolt = <1000000>;
403 regulator-max-microvolt = <1000000>;
404 regulator-boot-on;
405 regulator-always-on;
406 };
Ben Dookse489c2a2014-02-12 17:04:33 +0000407};
Ben Dooksd8584662014-06-24 22:02:21 +0400408
409&pci0 {
410 status = "okay";
411 pinctrl-0 = <&usb0_pins>;
412 pinctrl-names = "default";
413};
414
415&pci1 {
416 status = "okay";
417 pinctrl-0 = <&usb1_pins>;
418 pinctrl-names = "default";
419};
420
421&pci2 {
422 status = "okay";
423 pinctrl-0 = <&usb2_pins>;
424 pinctrl-names = "default";
425};
Ben Dooksd594c972014-08-13 00:18:26 +0400426
427/* composite video input */
428&vin1 {
429 pinctrl-0 = <&vin1_pins>;
430 pinctrl-names = "default";
431
432 status = "ok";
433
434 port {
435 #address-cells = <1>;
436 #size-cells = <0>;
437
438 vin1ep0: endpoint {
439 remote-endpoint = <&adv7180>;
440 bus-width = <8>;
441 };
442 };
443};