blob: 6e9a556e1509358842e1060dd735266dfd64985d [file] [log] [blame]
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +09001/*
2 * Device Tree Source for the r8a7791 SoC
3 *
4 * Copyright (C) 2013 Renesas Electronics Corporation
Sergei Shtylyov2e5d55c2014-02-20 02:27:04 +03005 * Copyright (C) 2013-2014 Renesas Solutions Corp.
6 * Copyright (C) 2014 Cogent Embedded Inc.
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +09007 *
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
Laurent Pinchart59e79892013-12-11 15:05:16 +010013#include <dt-bindings/clock/r8a7791-clock.h>
Laurent Pinchart5f75e732013-11-19 03:18:25 +010014#include <dt-bindings/interrupt-controller/arm-gic.h>
15#include <dt-bindings/interrupt-controller/irq.h>
16
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090017/ {
18 compatible = "renesas,r8a7791";
19 interrupt-parent = <&gic>;
20 #address-cells = <2>;
21 #size-cells = <2>;
22
Wolfram Sang5bd3de72014-02-17 11:44:41 +010023 aliases {
24 i2c0 = &i2c0;
25 i2c1 = &i2c1;
26 i2c2 = &i2c2;
27 i2c3 = &i2c3;
28 i2c4 = &i2c4;
29 i2c5 = &i2c5;
Wolfram Sang36408d92014-03-10 12:26:58 +010030 i2c6 = &i2c6;
31 i2c7 = &i2c7;
32 i2c8 = &i2c8;
Geert Uytterhoeven6f3e4ee2014-02-25 11:30:14 +010033 spi0 = &qspi;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +010034 spi1 = &msiof0;
35 spi2 = &msiof1;
36 spi3 = &msiof2;
Wolfram Sang5bd3de72014-02-17 11:44:41 +010037 };
38
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090039 cpus {
40 #address-cells = <1>;
41 #size-cells = <0>;
42
43 cpu0: cpu@0 {
44 device_type = "cpu";
45 compatible = "arm,cortex-a15";
46 reg = <0>;
Magnus Damm896b79d2014-03-06 12:15:36 +090047 clock-frequency = <1500000000>;
Gaku Inamia57004ec2014-06-03 21:03:10 +090048 voltage-tolerance = <1>; /* 1% */
49 clocks = <&cpg_clocks R8A7791_CLK_Z>;
50 clock-latency = <300000>; /* 300 us */
51
52 /* kHz - uV - OPPs unknown yet */
53 operating-points = <1500000 1000000>,
54 <1312500 1000000>,
55 <1125000 1000000>,
56 < 937500 1000000>,
57 < 750000 1000000>,
58 < 375000 1000000>;
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090059 };
Magnus Damm15ab4262013-10-01 17:13:07 +090060
61 cpu1: cpu@1 {
62 device_type = "cpu";
63 compatible = "arm,cortex-a15";
64 reg = <1>;
Magnus Damm896b79d2014-03-06 12:15:36 +090065 clock-frequency = <1500000000>;
Magnus Damm15ab4262013-10-01 17:13:07 +090066 };
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090067 };
68
69 gic: interrupt-controller@f1001000 {
70 compatible = "arm,cortex-a15-gic";
71 #interrupt-cells = <3>;
72 #address-cells = <0>;
73 interrupt-controller;
74 reg = <0 0xf1001000 0 0x1000>,
75 <0 0xf1002000 0 0x1000>,
76 <0 0xf1004000 0 0x2000>,
77 <0 0xf1006000 0 0x2000>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +010078 interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090079 };
Magnus Dammd77db732013-10-01 17:12:29 +090080
Magnus Damm89fbba12013-11-21 14:22:00 +090081 gpio0: gpio@e6050000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +090082 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +090083 reg = <0 0xe6050000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +010084 interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +090085 #gpio-cells = <2>;
86 gpio-controller;
87 gpio-ranges = <&pfc 0 0 32>;
88 #interrupt-cells = <2>;
89 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +020090 clocks = <&mstp9_clks R8A7791_CLK_GPIO0>;
Magnus Dammab87e3f2013-10-08 12:39:30 +090091 };
92
Magnus Damm89fbba12013-11-21 14:22:00 +090093 gpio1: gpio@e6051000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +090094 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +090095 reg = <0 0xe6051000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +010096 interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +090097 #gpio-cells = <2>;
98 gpio-controller;
99 gpio-ranges = <&pfc 0 32 32>;
100 #interrupt-cells = <2>;
101 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200102 clocks = <&mstp9_clks R8A7791_CLK_GPIO1>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900103 };
104
Magnus Damm89fbba12013-11-21 14:22:00 +0900105 gpio2: gpio@e6052000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900106 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900107 reg = <0 0xe6052000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100108 interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900109 #gpio-cells = <2>;
110 gpio-controller;
111 gpio-ranges = <&pfc 0 64 32>;
112 #interrupt-cells = <2>;
113 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200114 clocks = <&mstp9_clks R8A7791_CLK_GPIO2>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900115 };
116
Magnus Damm89fbba12013-11-21 14:22:00 +0900117 gpio3: gpio@e6053000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900118 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900119 reg = <0 0xe6053000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100120 interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900121 #gpio-cells = <2>;
122 gpio-controller;
123 gpio-ranges = <&pfc 0 96 32>;
124 #interrupt-cells = <2>;
125 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200126 clocks = <&mstp9_clks R8A7791_CLK_GPIO3>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900127 };
128
Magnus Damm89fbba12013-11-21 14:22:00 +0900129 gpio4: gpio@e6054000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900130 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900131 reg = <0 0xe6054000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100132 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900133 #gpio-cells = <2>;
134 gpio-controller;
135 gpio-ranges = <&pfc 0 128 32>;
136 #interrupt-cells = <2>;
137 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200138 clocks = <&mstp9_clks R8A7791_CLK_GPIO4>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900139 };
140
Magnus Damm89fbba12013-11-21 14:22:00 +0900141 gpio5: gpio@e6055000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900142 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900143 reg = <0 0xe6055000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100144 interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900145 #gpio-cells = <2>;
146 gpio-controller;
147 gpio-ranges = <&pfc 0 160 32>;
148 #interrupt-cells = <2>;
149 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200150 clocks = <&mstp9_clks R8A7791_CLK_GPIO5>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900151 };
152
Magnus Damm89fbba12013-11-21 14:22:00 +0900153 gpio6: gpio@e6055400 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900154 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900155 reg = <0 0xe6055400 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100156 interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900157 #gpio-cells = <2>;
158 gpio-controller;
159 gpio-ranges = <&pfc 0 192 32>;
160 #interrupt-cells = <2>;
161 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200162 clocks = <&mstp9_clks R8A7791_CLK_GPIO6>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900163 };
164
Magnus Damm89fbba12013-11-21 14:22:00 +0900165 gpio7: gpio@e6055800 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900166 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900167 reg = <0 0xe6055800 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100168 interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900169 #gpio-cells = <2>;
170 gpio-controller;
171 gpio-ranges = <&pfc 0 224 26>;
172 #interrupt-cells = <2>;
173 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200174 clocks = <&mstp9_clks R8A7791_CLK_GPIO7>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900175 };
176
Magnus Dammd103f4d2013-11-20 16:59:48 +0900177 thermal@e61f0000 {
178 compatible = "renesas,thermal-r8a7791", "renesas,rcar-thermal";
179 reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
Magnus Dammd103f4d2013-11-20 16:59:48 +0900180 interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven563bc8e2014-01-07 19:57:13 +0100181 clocks = <&mstp5_clks R8A7791_CLK_THERMAL>;
Magnus Dammd103f4d2013-11-20 16:59:48 +0900182 };
183
Magnus Damm03586ac2013-10-01 17:12:38 +0900184 timer {
185 compatible = "arm,armv7-timer";
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100186 interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
187 <1 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
188 <1 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
189 <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Magnus Damm03586ac2013-10-01 17:12:38 +0900190 };
191
Magnus Dammd77db732013-10-01 17:12:29 +0900192 irqc0: interrupt-controller@e61c0000 {
Magnus Damm26041b02013-11-20 13:18:05 +0900193 compatible = "renesas,irqc-r8a7791", "renesas,irqc";
Magnus Dammd77db732013-10-01 17:12:29 +0900194 #interrupt-cells = <2>;
195 interrupt-controller;
196 reg = <0 0xe61c0000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100197 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
198 <0 1 IRQ_TYPE_LEVEL_HIGH>,
199 <0 2 IRQ_TYPE_LEVEL_HIGH>,
200 <0 3 IRQ_TYPE_LEVEL_HIGH>,
201 <0 12 IRQ_TYPE_LEVEL_HIGH>,
202 <0 13 IRQ_TYPE_LEVEL_HIGH>,
203 <0 14 IRQ_TYPE_LEVEL_HIGH>,
204 <0 15 IRQ_TYPE_LEVEL_HIGH>,
205 <0 16 IRQ_TYPE_LEVEL_HIGH>,
206 <0 17 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammd77db732013-10-01 17:12:29 +0900207 };
Magnus Damm55146922013-10-08 12:39:01 +0900208
Wolfram Sang36408d92014-03-10 12:26:58 +0100209 /* The memory map in the User's Manual maps the cores to bus numbers */
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100210 i2c0: i2c@e6508000 {
211 #address-cells = <1>;
212 #size-cells = <0>;
213 compatible = "renesas,i2c-r8a7791";
214 reg = <0 0xe6508000 0 0x40>;
215 interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>;
216 clocks = <&mstp9_clks R8A7791_CLK_I2C0>;
217 status = "disabled";
218 };
219
220 i2c1: i2c@e6518000 {
221 #address-cells = <1>;
222 #size-cells = <0>;
223 compatible = "renesas,i2c-r8a7791";
224 reg = <0 0xe6518000 0 0x40>;
225 interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>;
226 clocks = <&mstp9_clks R8A7791_CLK_I2C1>;
227 status = "disabled";
228 };
229
230 i2c2: i2c@e6530000 {
231 #address-cells = <1>;
232 #size-cells = <0>;
233 compatible = "renesas,i2c-r8a7791";
234 reg = <0 0xe6530000 0 0x40>;
235 interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>;
236 clocks = <&mstp9_clks R8A7791_CLK_I2C2>;
237 status = "disabled";
238 };
239
240 i2c3: i2c@e6540000 {
241 #address-cells = <1>;
242 #size-cells = <0>;
243 compatible = "renesas,i2c-r8a7791";
244 reg = <0 0xe6540000 0 0x40>;
245 interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>;
246 clocks = <&mstp9_clks R8A7791_CLK_I2C3>;
247 status = "disabled";
248 };
249
250 i2c4: i2c@e6520000 {
251 #address-cells = <1>;
252 #size-cells = <0>;
253 compatible = "renesas,i2c-r8a7791";
254 reg = <0 0xe6520000 0 0x40>;
255 interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>;
256 clocks = <&mstp9_clks R8A7791_CLK_I2C4>;
257 status = "disabled";
258 };
259
260 i2c5: i2c@e6528000 {
Wolfram Sang36408d92014-03-10 12:26:58 +0100261 /* doesn't need pinmux */
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100262 #address-cells = <1>;
263 #size-cells = <0>;
264 compatible = "renesas,i2c-r8a7791";
265 reg = <0 0xe6528000 0 0x40>;
266 interrupts = <0 20 IRQ_TYPE_LEVEL_HIGH>;
267 clocks = <&mstp9_clks R8A7791_CLK_I2C5>;
268 status = "disabled";
269 };
270
Wolfram Sang36408d92014-03-10 12:26:58 +0100271 i2c6: i2c@e60b0000 {
272 /* doesn't need pinmux */
273 #address-cells = <1>;
274 #size-cells = <0>;
275 compatible = "renesas,iic-r8a7791", "renesas,rmobile-iic";
276 reg = <0 0xe60b0000 0 0x425>;
277 interrupts = <0 173 IRQ_TYPE_LEVEL_HIGH>;
278 clocks = <&mstp9_clks R8A7791_CLK_IICDVFS>;
279 status = "disabled";
280 };
281
282 i2c7: i2c@e6500000 {
283 #address-cells = <1>;
284 #size-cells = <0>;
285 compatible = "renesas,iic-r8a7791", "renesas,rmobile-iic";
286 reg = <0 0xe6500000 0 0x425>;
287 interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>;
288 clocks = <&mstp3_clks R8A7791_CLK_IIC0>;
289 status = "disabled";
290 };
291
292 i2c8: i2c@e6510000 {
293 #address-cells = <1>;
294 #size-cells = <0>;
295 compatible = "renesas,iic-r8a7791", "renesas,rmobile-iic";
296 reg = <0 0xe6510000 0 0x425>;
297 interrupts = <0 175 IRQ_TYPE_LEVEL_HIGH>;
298 clocks = <&mstp3_clks R8A7791_CLK_IIC1>;
299 status = "disabled";
300 };
301
Magnus Damm55146922013-10-08 12:39:01 +0900302 pfc: pfc@e6060000 {
303 compatible = "renesas,pfc-r8a7791";
304 reg = <0 0xe6060000 0 0x250>;
305 #gpio-range-cells = <3>;
306 };
Laurent Pinchart59e79892013-12-11 15:05:16 +0100307
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900308 sdhi0: sd@ee100000 {
309 compatible = "renesas,sdhi-r8a7791";
310 reg = <0 0xee100000 0 0x200>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900311 interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
312 clocks = <&mstp3_clks R8A7791_CLK_SDHI0>;
313 status = "disabled";
314 };
315
316 sdhi1: sd@ee140000 {
317 compatible = "renesas,sdhi-r8a7791";
318 reg = <0 0xee140000 0 0x100>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900319 interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
320 clocks = <&mstp3_clks R8A7791_CLK_SDHI1>;
321 status = "disabled";
322 };
323
324 sdhi2: sd@ee160000 {
325 compatible = "renesas,sdhi-r8a7791";
326 reg = <0 0xee160000 0 0x100>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900327 interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
328 clocks = <&mstp3_clks R8A7791_CLK_SDHI2>;
329 status = "disabled";
330 };
331
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100332 scifa0: serial@e6c40000 {
333 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
334 reg = <0 0xe6c40000 0 64>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100335 interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>;
336 clocks = <&mstp2_clks R8A7791_CLK_SCIFA0>;
337 clock-names = "sci_ick";
338 status = "disabled";
339 };
340
341 scifa1: serial@e6c50000 {
342 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100343 reg = <0 0xe6c50000 0 64>;
344 interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>;
345 clocks = <&mstp2_clks R8A7791_CLK_SCIFA1>;
346 clock-names = "sci_ick";
347 status = "disabled";
348 };
349
350 scifa2: serial@e6c60000 {
351 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100352 reg = <0 0xe6c60000 0 64>;
353 interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>;
354 clocks = <&mstp2_clks R8A7791_CLK_SCIFA2>;
355 clock-names = "sci_ick";
356 status = "disabled";
357 };
358
359 scifa3: serial@e6c70000 {
360 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100361 reg = <0 0xe6c70000 0 64>;
362 interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>;
363 clocks = <&mstp11_clks R8A7791_CLK_SCIFA3>;
364 clock-names = "sci_ick";
365 status = "disabled";
366 };
367
368 scifa4: serial@e6c78000 {
369 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100370 reg = <0 0xe6c78000 0 64>;
371 interrupts = <0 30 IRQ_TYPE_LEVEL_HIGH>;
372 clocks = <&mstp11_clks R8A7791_CLK_SCIFA4>;
373 clock-names = "sci_ick";
374 status = "disabled";
375 };
376
377 scifa5: serial@e6c80000 {
378 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100379 reg = <0 0xe6c80000 0 64>;
380 interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>;
381 clocks = <&mstp11_clks R8A7791_CLK_SCIFA5>;
382 clock-names = "sci_ick";
383 status = "disabled";
384 };
385
386 scifb0: serial@e6c20000 {
387 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100388 reg = <0 0xe6c20000 0 64>;
389 interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>;
390 clocks = <&mstp2_clks R8A7791_CLK_SCIFB0>;
391 clock-names = "sci_ick";
392 status = "disabled";
393 };
394
395 scifb1: serial@e6c30000 {
396 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100397 reg = <0 0xe6c30000 0 64>;
398 interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>;
399 clocks = <&mstp2_clks R8A7791_CLK_SCIFB1>;
400 clock-names = "sci_ick";
401 status = "disabled";
402 };
403
404 scifb2: serial@e6ce0000 {
405 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100406 reg = <0 0xe6ce0000 0 64>;
407 interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>;
408 clocks = <&mstp2_clks R8A7791_CLK_SCIFB2>;
409 clock-names = "sci_ick";
410 status = "disabled";
411 };
412
413 scif0: serial@e6e60000 {
414 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100415 reg = <0 0xe6e60000 0 64>;
416 interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>;
417 clocks = <&mstp7_clks R8A7791_CLK_SCIF0>;
418 clock-names = "sci_ick";
419 status = "disabled";
420 };
421
422 scif1: serial@e6e68000 {
423 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100424 reg = <0 0xe6e68000 0 64>;
425 interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>;
426 clocks = <&mstp7_clks R8A7791_CLK_SCIF1>;
427 clock-names = "sci_ick";
428 status = "disabled";
429 };
430
431 scif2: serial@e6e58000 {
432 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100433 reg = <0 0xe6e58000 0 64>;
434 interrupts = <0 22 IRQ_TYPE_LEVEL_HIGH>;
435 clocks = <&mstp7_clks R8A7791_CLK_SCIF2>;
436 clock-names = "sci_ick";
437 status = "disabled";
438 };
439
440 scif3: serial@e6ea8000 {
441 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100442 reg = <0 0xe6ea8000 0 64>;
443 interrupts = <0 23 IRQ_TYPE_LEVEL_HIGH>;
444 clocks = <&mstp7_clks R8A7791_CLK_SCIF3>;
445 clock-names = "sci_ick";
446 status = "disabled";
447 };
448
449 scif4: serial@e6ee0000 {
450 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100451 reg = <0 0xe6ee0000 0 64>;
452 interrupts = <0 24 IRQ_TYPE_LEVEL_HIGH>;
453 clocks = <&mstp7_clks R8A7791_CLK_SCIF4>;
454 clock-names = "sci_ick";
455 status = "disabled";
456 };
457
458 scif5: serial@e6ee8000 {
459 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100460 reg = <0 0xe6ee8000 0 64>;
461 interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>;
462 clocks = <&mstp7_clks R8A7791_CLK_SCIF5>;
463 clock-names = "sci_ick";
464 status = "disabled";
465 };
466
467 hscif0: serial@e62c0000 {
468 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100469 reg = <0 0xe62c0000 0 96>;
470 interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>;
471 clocks = <&mstp7_clks R8A7791_CLK_HSCIF0>;
472 clock-names = "sci_ick";
473 status = "disabled";
474 };
475
476 hscif1: serial@e62c8000 {
477 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100478 reg = <0 0xe62c8000 0 96>;
479 interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>;
480 clocks = <&mstp7_clks R8A7791_CLK_HSCIF1>;
481 clock-names = "sci_ick";
482 status = "disabled";
483 };
484
485 hscif2: serial@e62d0000 {
486 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100487 reg = <0 0xe62d0000 0 96>;
488 interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>;
489 clocks = <&mstp7_clks R8A7791_CLK_HSCIF2>;
490 clock-names = "sci_ick";
491 status = "disabled";
492 };
493
Sergei Shtylyov2e5d55c2014-02-20 02:27:04 +0300494 ether: ethernet@ee700000 {
495 compatible = "renesas,ether-r8a7791";
496 reg = <0 0xee700000 0 0x400>;
497 interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>;
498 clocks = <&mstp8_clks R8A7791_CLK_ETHER>;
499 phy-mode = "rmii";
500 #address-cells = <1>;
501 #size-cells = <0>;
502 status = "disabled";
503 };
504
Valentine Barshakb8532c62014-01-14 21:05:40 +0400505 sata0: sata@ee300000 {
506 compatible = "renesas,sata-r8a7791";
507 reg = <0 0xee300000 0 0x2000>;
Valentine Barshakb8532c62014-01-14 21:05:40 +0400508 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
509 clocks = <&mstp8_clks R8A7791_CLK_SATA0>;
510 status = "disabled";
511 };
512
513 sata1: sata@ee500000 {
514 compatible = "renesas,sata-r8a7791";
515 reg = <0 0xee500000 0 0x2000>;
Valentine Barshakb8532c62014-01-14 21:05:40 +0400516 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
517 clocks = <&mstp8_clks R8A7791_CLK_SATA1>;
518 status = "disabled";
519 };
520
Laurent Pinchart59e79892013-12-11 15:05:16 +0100521 clocks {
522 #address-cells = <2>;
523 #size-cells = <2>;
524 ranges;
525
526 /* External root clock */
527 extal_clk: extal_clk {
528 compatible = "fixed-clock";
529 #clock-cells = <0>;
530 /* This value must be overriden by the board. */
531 clock-frequency = <0>;
532 clock-output-names = "extal";
533 };
534
Kuninori Morimoto0d3dbde2014-06-11 21:44:04 -0700535 /*
536 * The external audio clocks are configured as 0 Hz fixed frequency clocks by
537 * default. Boards that provide audio clocks should override them.
538 */
539 audio_clk_a: audio_clk_a {
540 compatible = "fixed-clock";
541 #clock-cells = <0>;
542 clock-frequency = <0>;
543 clock-output-names = "audio_clk_a";
544 };
545 audio_clk_b: audio_clk_b {
546 compatible = "fixed-clock";
547 #clock-cells = <0>;
548 clock-frequency = <0>;
549 clock-output-names = "audio_clk_b";
550 };
551 audio_clk_c: audio_clk_c {
552 compatible = "fixed-clock";
553 #clock-cells = <0>;
554 clock-frequency = <0>;
555 clock-output-names = "audio_clk_c";
556 };
557
Phil Edworthy66c405e2014-06-13 10:37:19 +0100558 /* External PCIe clock - can be overridden by the board */
559 pcie_bus_clk: pcie_bus_clk {
560 compatible = "fixed-clock";
561 #clock-cells = <0>;
562 clock-frequency = <100000000>;
563 clock-output-names = "pcie_bus";
564 status = "disabled";
565 };
566
Laurent Pinchart59e79892013-12-11 15:05:16 +0100567 /* Special CPG clocks */
568 cpg_clocks: cpg_clocks@e6150000 {
569 compatible = "renesas,r8a7791-cpg-clocks",
570 "renesas,rcar-gen2-cpg-clocks";
571 reg = <0 0xe6150000 0 0x1000>;
572 clocks = <&extal_clk>;
573 #clock-cells = <1>;
574 clock-output-names = "main", "pll0", "pll1", "pll3",
575 "lb", "qspi", "sdh", "sd0", "z";
576 };
577
578 /* Variable factor clocks */
579 sd1_clk: sd2_clk@e6150078 {
580 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
581 reg = <0 0xe6150078 0 4>;
582 clocks = <&pll1_div2_clk>;
583 #clock-cells = <0>;
584 clock-output-names = "sd1";
585 };
586 sd2_clk: sd3_clk@e615007c {
587 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
588 reg = <0 0xe615007c 0 4>;
589 clocks = <&pll1_div2_clk>;
590 #clock-cells = <0>;
591 clock-output-names = "sd2";
592 };
593 mmc0_clk: mmc0_clk@e6150240 {
594 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
595 reg = <0 0xe6150240 0 4>;
596 clocks = <&pll1_div2_clk>;
597 #clock-cells = <0>;
598 clock-output-names = "mmc0";
599 };
600 ssp_clk: ssp_clk@e6150248 {
601 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
602 reg = <0 0xe6150248 0 4>;
603 clocks = <&pll1_div2_clk>;
604 #clock-cells = <0>;
605 clock-output-names = "ssp";
606 };
607 ssprs_clk: ssprs_clk@e615024c {
608 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
609 reg = <0 0xe615024c 0 4>;
610 clocks = <&pll1_div2_clk>;
611 #clock-cells = <0>;
612 clock-output-names = "ssprs";
613 };
614
615 /* Fixed factor clocks */
616 pll1_div2_clk: pll1_div2_clk {
617 compatible = "fixed-factor-clock";
618 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
619 #clock-cells = <0>;
620 clock-div = <2>;
621 clock-mult = <1>;
622 clock-output-names = "pll1_div2";
623 };
624 zg_clk: zg_clk {
625 compatible = "fixed-factor-clock";
626 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
627 #clock-cells = <0>;
628 clock-div = <3>;
629 clock-mult = <1>;
630 clock-output-names = "zg";
631 };
632 zx_clk: zx_clk {
633 compatible = "fixed-factor-clock";
634 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
635 #clock-cells = <0>;
636 clock-div = <3>;
637 clock-mult = <1>;
638 clock-output-names = "zx";
639 };
640 zs_clk: zs_clk {
641 compatible = "fixed-factor-clock";
642 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
643 #clock-cells = <0>;
644 clock-div = <6>;
645 clock-mult = <1>;
646 clock-output-names = "zs";
647 };
648 hp_clk: hp_clk {
649 compatible = "fixed-factor-clock";
650 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
651 #clock-cells = <0>;
652 clock-div = <12>;
653 clock-mult = <1>;
654 clock-output-names = "hp";
655 };
656 i_clk: i_clk {
657 compatible = "fixed-factor-clock";
658 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
659 #clock-cells = <0>;
660 clock-div = <2>;
661 clock-mult = <1>;
662 clock-output-names = "i";
663 };
664 b_clk: b_clk {
665 compatible = "fixed-factor-clock";
666 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
667 #clock-cells = <0>;
668 clock-div = <12>;
669 clock-mult = <1>;
670 clock-output-names = "b";
671 };
672 p_clk: p_clk {
673 compatible = "fixed-factor-clock";
674 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
675 #clock-cells = <0>;
676 clock-div = <24>;
677 clock-mult = <1>;
678 clock-output-names = "p";
679 };
680 cl_clk: cl_clk {
681 compatible = "fixed-factor-clock";
682 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
683 #clock-cells = <0>;
684 clock-div = <48>;
685 clock-mult = <1>;
686 clock-output-names = "cl";
687 };
688 m2_clk: m2_clk {
689 compatible = "fixed-factor-clock";
690 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
691 #clock-cells = <0>;
692 clock-div = <8>;
693 clock-mult = <1>;
694 clock-output-names = "m2";
695 };
696 imp_clk: imp_clk {
697 compatible = "fixed-factor-clock";
698 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
699 #clock-cells = <0>;
700 clock-div = <4>;
701 clock-mult = <1>;
702 clock-output-names = "imp";
703 };
704 rclk_clk: rclk_clk {
705 compatible = "fixed-factor-clock";
706 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
707 #clock-cells = <0>;
708 clock-div = <(48 * 1024)>;
709 clock-mult = <1>;
710 clock-output-names = "rclk";
711 };
712 oscclk_clk: oscclk_clk {
713 compatible = "fixed-factor-clock";
714 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
715 #clock-cells = <0>;
716 clock-div = <(12 * 1024)>;
717 clock-mult = <1>;
718 clock-output-names = "oscclk";
719 };
720 zb3_clk: zb3_clk {
721 compatible = "fixed-factor-clock";
722 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
723 #clock-cells = <0>;
724 clock-div = <4>;
725 clock-mult = <1>;
726 clock-output-names = "zb3";
727 };
728 zb3d2_clk: zb3d2_clk {
729 compatible = "fixed-factor-clock";
730 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
731 #clock-cells = <0>;
732 clock-div = <8>;
733 clock-mult = <1>;
734 clock-output-names = "zb3d2";
735 };
736 ddr_clk: ddr_clk {
737 compatible = "fixed-factor-clock";
738 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
739 #clock-cells = <0>;
740 clock-div = <8>;
741 clock-mult = <1>;
742 clock-output-names = "ddr";
743 };
744 mp_clk: mp_clk {
745 compatible = "fixed-factor-clock";
746 clocks = <&pll1_div2_clk>;
747 #clock-cells = <0>;
748 clock-div = <15>;
749 clock-mult = <1>;
750 clock-output-names = "mp";
751 };
752 cp_clk: cp_clk {
753 compatible = "fixed-factor-clock";
754 clocks = <&extal_clk>;
755 #clock-cells = <0>;
756 clock-div = <2>;
757 clock-mult = <1>;
758 clock-output-names = "cp";
759 };
760
761 /* Gate clocks */
Laurent Pinchartcded80f2013-12-19 16:51:02 +0100762 mstp0_clks: mstp0_clks@e6150130 {
763 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
764 reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
765 clocks = <&mp_clk>;
766 #clock-cells = <1>;
767 renesas,clock-indices = <R8A7791_CLK_MSIOF0>;
768 clock-output-names = "msiof0";
769 };
Laurent Pinchart59e79892013-12-11 15:05:16 +0100770 mstp1_clks: mstp1_clks@e6150134 {
771 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
772 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
773 clocks = <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>,
774 <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>;
775 #clock-cells = <1>;
776 renesas,clock-indices = <
777 R8A7791_CLK_TMU1 R8A7791_CLK_TMU3 R8A7791_CLK_TMU2
778 R8A7791_CLK_CMT0 R8A7791_CLK_TMU0 R8A7791_CLK_VSP1_DU1
Laurent Pinchart58ea1d52014-04-02 16:31:47 +0200779 R8A7791_CLK_VSP1_DU0 R8A7791_CLK_VSP1_S
Laurent Pinchart59e79892013-12-11 15:05:16 +0100780 >;
781 clock-output-names =
782 "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1",
783 "vsp1-du0", "vsp1-sy";
784 };
785 mstp2_clks: mstp2_clks@e6150138 {
786 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
787 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
788 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +0200789 <&mp_clk>, <&mp_clk>, <&mp_clk>,
790 <&zs_clk>, <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +0100791 #clock-cells = <1>;
792 renesas,clock-indices = <
793 R8A7791_CLK_SCIFA2 R8A7791_CLK_SCIFA1 R8A7791_CLK_SCIFA0
Laurent Pinchartcded80f2013-12-19 16:51:02 +0100794 R8A7791_CLK_MSIOF2 R8A7791_CLK_SCIFB0 R8A7791_CLK_SCIFB1
795 R8A7791_CLK_MSIOF1 R8A7791_CLK_SCIFB2
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +0200796 R8A7791_CLK_SYS_DMAC1 R8A7791_CLK_SYS_DMAC0
Laurent Pinchart59e79892013-12-11 15:05:16 +0100797 >;
798 clock-output-names =
Geert Uytterhoeven0c002ef2014-02-20 15:49:29 +0100799 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +0200800 "scifb1", "msiof1", "scifb2",
801 "sys-dmac1", "sys-dmac0";
Laurent Pinchart59e79892013-12-11 15:05:16 +0100802 };
803 mstp3_clks: mstp3_clks@e615013c {
804 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
805 reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
Wolfram Sangc08691b2014-03-10 12:26:57 +0100806 clocks = <&cp_clk>, <&sd2_clk>, <&sd1_clk>, <&cpg_clocks R8A7791_CLK_SD0>,
Phil Edworthy4bfb3762014-06-13 10:37:18 +0100807 <&mmc0_clk>, <&hp_clk>, <&mp_clk>, <&hp_clk>, <&mp_clk>, <&rclk_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +0100808 #clock-cells = <1>;
809 renesas,clock-indices = <
Wolfram Sangc08691b2014-03-10 12:26:57 +0100810 R8A7791_CLK_TPU0 R8A7791_CLK_SDHI2 R8A7791_CLK_SDHI1 R8A7791_CLK_SDHI0
Phil Edworthy4bfb3762014-06-13 10:37:18 +0100811 R8A7791_CLK_MMCIF0 R8A7791_CLK_IIC0 R8A7791_CLK_PCIEC R8A7791_CLK_IIC1
812 R8A7791_CLK_SSUSB R8A7791_CLK_CMT1
Laurent Pinchart59e79892013-12-11 15:05:16 +0100813 >;
814 clock-output-names =
Wolfram Sangc08691b2014-03-10 12:26:57 +0100815 "tpu0", "sdhi2", "sdhi1", "sdhi0",
Phil Edworthy4bfb3762014-06-13 10:37:18 +0100816 "mmcif0", "i2c7", "pciec", "i2c8", "ssusb", "cmt1";
Laurent Pinchart59e79892013-12-11 15:05:16 +0100817 };
818 mstp5_clks: mstp5_clks@e6150144 {
819 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
820 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
821 clocks = <&extal_clk>, <&p_clk>;
822 #clock-cells = <1>;
823 renesas,clock-indices = <R8A7791_CLK_THERMAL R8A7791_CLK_PWM>;
824 clock-output-names = "thermal", "pwm";
825 };
826 mstp7_clks: mstp7_clks@e615014c {
827 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
828 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
Magnus Damm6225b992014-04-07 15:04:21 +0900829 clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zs_clk>,
Laurent Pinchart59e79892013-12-11 15:05:16 +0100830 <&zs_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
831 <&zx_clk>, <&zx_clk>, <&zx_clk>;
832 #clock-cells = <1>;
833 renesas,clock-indices = <
Magnus Damm6225b992014-04-07 15:04:21 +0900834 R8A7791_CLK_EHCI R8A7791_CLK_HSUSB R8A7791_CLK_HSCIF2 R8A7791_CLK_SCIF5
Laurent Pinchart59e79892013-12-11 15:05:16 +0100835 R8A7791_CLK_SCIF4 R8A7791_CLK_HSCIF1 R8A7791_CLK_HSCIF0
836 R8A7791_CLK_SCIF3 R8A7791_CLK_SCIF2 R8A7791_CLK_SCIF1
837 R8A7791_CLK_SCIF0 R8A7791_CLK_DU1 R8A7791_CLK_DU0
838 R8A7791_CLK_LVDS0
839 >;
840 clock-output-names =
Magnus Damm6225b992014-04-07 15:04:21 +0900841 "ehci", "hsusb", "hscif2", "scif5", "scif4", "hscif1", "hscif0",
Laurent Pinchart59e79892013-12-11 15:05:16 +0100842 "scif3", "scif2", "scif1", "scif0", "du1", "du0", "lvds0";
843 };
844 mstp8_clks: mstp8_clks@e6150990 {
845 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
846 reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
Laurent Pinchart65f05c32014-01-07 09:22:56 +0100847 clocks = <&zg_clk>, <&zg_clk>, <&zg_clk>, <&p_clk>, <&zs_clk>,
848 <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +0100849 #clock-cells = <1>;
Laurent Pinchart09c98342014-01-07 09:22:54 +0100850 renesas,clock-indices = <
851 R8A7791_CLK_VIN2 R8A7791_CLK_VIN1 R8A7791_CLK_VIN0
Laurent Pinchart65f05c32014-01-07 09:22:56 +0100852 R8A7791_CLK_ETHER R8A7791_CLK_SATA1 R8A7791_CLK_SATA0
Laurent Pinchart09c98342014-01-07 09:22:54 +0100853 >;
Laurent Pinchart65f05c32014-01-07 09:22:56 +0100854 clock-output-names =
855 "vin2", "vin1", "vin0", "ether", "sata1", "sata0";
Laurent Pinchart59e79892013-12-11 15:05:16 +0100856 };
857 mstp9_clks: mstp9_clks@e6150994 {
858 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
859 reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200860 clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
861 <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
862 <&p_clk>, <&p_clk>, <&cpg_clocks R8A7791_CLK_QSPI>, <&hp_clk>,
Laurent Pinchart11b48db2014-04-01 13:02:18 +0200863 <&cp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>,
864 <&hp_clk>, <&hp_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +0100865 #clock-cells = <1>;
866 renesas,clock-indices = <
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200867 R8A7791_CLK_GPIO7 R8A7791_CLK_GPIO6 R8A7791_CLK_GPIO5 R8A7791_CLK_GPIO4
868 R8A7791_CLK_GPIO3 R8A7791_CLK_GPIO2 R8A7791_CLK_GPIO1 R8A7791_CLK_GPIO0
Wolfram Sangc08691b2014-03-10 12:26:57 +0100869 R8A7791_CLK_RCAN1 R8A7791_CLK_RCAN0 R8A7791_CLK_QSPI_MOD R8A7791_CLK_I2C5
870 R8A7791_CLK_IICDVFS R8A7791_CLK_I2C4 R8A7791_CLK_I2C3 R8A7791_CLK_I2C2
871 R8A7791_CLK_I2C1 R8A7791_CLK_I2C0
Laurent Pinchart59e79892013-12-11 15:05:16 +0100872 >;
873 clock-output-names =
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200874 "gpio7", "gpio6", "gpio5", "gpio4", "gpio3", "gpio2", "gpio1", "gpio0",
875 "rcan1", "rcan0", "qspi_mod", "i2c5", "i2c6", "i2c4", "i2c3", "i2c2",
876 "i2c1", "i2c0";
Laurent Pinchart59e79892013-12-11 15:05:16 +0100877 };
Kuninori Morimotoee914152014-06-11 21:44:16 -0700878 mstp10_clks: mstp10_clks@e6150998 {
879 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
880 reg = <0 0xe6150998 0 4>, <0 0xe61509a8 0 4>;
881 clocks = <&p_clk>,
882 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
883 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
884 <&p_clk>,
885 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
886 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
887 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
888 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
889 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
890 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>;
891
892 #clock-cells = <1>;
893 clock-indices = <
894 R8A7791_CLK_SSI_ALL
895 R8A7791_CLK_SSI9 R8A7791_CLK_SSI8 R8A7791_CLK_SSI7 R8A7791_CLK_SSI6 R8A7791_CLK_SSI5
896 R8A7791_CLK_SSI4 R8A7791_CLK_SSI3 R8A7791_CLK_SSI2 R8A7791_CLK_SSI1 R8A7791_CLK_SSI0
897 R8A7791_CLK_SCU_ALL
898 R8A7791_CLK_SCU_DVC1 R8A7791_CLK_SCU_DVC0
899 R8A7791_CLK_SCU_SRC9 R8A7791_CLK_SCU_SRC8 R8A7791_CLK_SCU_SRC7 R8A7791_CLK_SCU_SRC6 R8A7791_CLK_SCU_SRC5
900 R8A7791_CLK_SCU_SRC4 R8A7791_CLK_SCU_SRC3 R8A7791_CLK_SCU_SRC2 R8A7791_CLK_SCU_SRC1 R8A7791_CLK_SCU_SRC0
901 >;
902 clock-output-names =
903 "ssi-all",
904 "ssi9", "ssi8", "ssi7", "ssi6", "ssi5",
905 "ssi4", "ssi3", "ssi2", "ssi1", "ssi0",
906 "scu-all",
907 "scu-dvc1", "scu-dvc0",
908 "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5",
909 "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0";
910 };
Laurent Pinchart59e79892013-12-11 15:05:16 +0100911 mstp11_clks: mstp11_clks@e615099c {
912 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
913 reg = <0 0xe615099c 0 4>, <0 0xe61509ac 0 4>;
914 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>;
915 #clock-cells = <1>;
916 renesas,clock-indices = <
917 R8A7791_CLK_SCIFA3 R8A7791_CLK_SCIFA4 R8A7791_CLK_SCIFA5
918 >;
919 clock-output-names = "scifa3", "scifa4", "scifa5";
920 };
921 };
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +0100922
Geert Uytterhoeven6f3e4ee2014-02-25 11:30:14 +0100923 qspi: spi@e6b10000 {
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +0100924 compatible = "renesas,qspi-r8a7791", "renesas,qspi";
925 reg = <0 0xe6b10000 0 0x2c>;
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +0100926 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
927 clocks = <&mstp9_clks R8A7791_CLK_QSPI_MOD>;
928 num-cs = <1>;
929 #address-cells = <1>;
930 #size-cells = <0>;
931 status = "disabled";
932 };
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +0100933
934 msiof0: spi@e6e20000 {
935 compatible = "renesas,msiof-r8a7791";
936 reg = <0 0xe6e20000 0 0x0064>;
937 interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>;
938 clocks = <&mstp0_clks R8A7791_CLK_MSIOF0>;
939 #address-cells = <1>;
940 #size-cells = <0>;
941 status = "disabled";
942 };
943
944 msiof1: spi@e6e10000 {
945 compatible = "renesas,msiof-r8a7791";
946 reg = <0 0xe6e10000 0 0x0064>;
947 interrupts = <0 157 IRQ_TYPE_LEVEL_HIGH>;
948 clocks = <&mstp2_clks R8A7791_CLK_MSIOF1>;
949 #address-cells = <1>;
950 #size-cells = <0>;
951 status = "disabled";
952 };
953
954 msiof2: spi@e6e00000 {
955 compatible = "renesas,msiof-r8a7791";
956 reg = <0 0xe6e00000 0 0x0064>;
957 interrupts = <0 158 IRQ_TYPE_LEVEL_HIGH>;
958 clocks = <&mstp2_clks R8A7791_CLK_MSIOF2>;
959 #address-cells = <1>;
960 #size-cells = <0>;
961 status = "disabled";
962 };
Phil Edworthy811cdfa2014-06-13 10:37:20 +0100963
Sergei Shtylyovaace0802014-06-24 22:10:05 +0400964 pci0: pci@ee090000 {
965 compatible = "renesas,pci-r8a7791";
966 device_type = "pci";
967 clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
968 reg = <0 0xee090000 0 0xc00>,
969 <0 0xee080000 0 0x1100>;
970 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
971 status = "disabled";
972
973 bus-range = <0 0>;
974 #address-cells = <3>;
975 #size-cells = <2>;
976 #interrupt-cells = <1>;
977 ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>;
978 interrupt-map-mask = <0xff00 0 0 0x7>;
979 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
980 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
981 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
982 };
983
984 pci1: pci@ee0d0000 {
985 compatible = "renesas,pci-r8a7791";
986 device_type = "pci";
987 clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
988 reg = <0 0xee0d0000 0 0xc00>,
989 <0 0xee0c0000 0 0x1100>;
990 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
991 status = "disabled";
992
993 bus-range = <1 1>;
994 #address-cells = <3>;
995 #size-cells = <2>;
996 #interrupt-cells = <1>;
997 ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>;
998 interrupt-map-mask = <0xff00 0 0 0x7>;
999 interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1000 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1001 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
1002 };
1003
Phil Edworthy811cdfa2014-06-13 10:37:20 +01001004 pciec: pcie@fe000000 {
1005 compatible = "renesas,pcie-r8a7791";
1006 reg = <0 0xfe000000 0 0x80000>;
1007 #address-cells = <3>;
1008 #size-cells = <2>;
1009 bus-range = <0x00 0xff>;
1010 device_type = "pci";
1011 ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000
1012 0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000
1013 0x02000000 0 0x30000000 0 0x30000000 0 0x08000000
1014 0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;
1015 /* Map all possible DDR as inbound ranges */
1016 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000
1017 0x43000000 2 0x00000000 2 0x00000000 1 0x00000000>;
1018 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>,
1019 <0 117 IRQ_TYPE_LEVEL_HIGH>,
1020 <0 118 IRQ_TYPE_LEVEL_HIGH>;
1021 #interrupt-cells = <1>;
1022 interrupt-map-mask = <0 0 0 0>;
1023 interrupt-map = <0 0 0 0 &gic 0 116 IRQ_TYPE_LEVEL_HIGH>;
1024 clocks = <&mstp3_clks R8A7791_CLK_PCIEC>, <&pcie_bus_clk>;
1025 clock-names = "pcie", "pcie_bus";
1026 status = "disabled";
1027 };
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001028
1029 rcar_sound: rcar_sound@0xec500000 {
1030 #sound-dai-cells = <1>;
1031 compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2", "renesas,rcar_sound";
1032 interrupt-parent = <&gic>;
1033 reg = <0 0xec500000 0 0x1000>, /* SCU */
1034 <0 0xec5a0000 0 0x100>, /* ADG */
1035 <0 0xec540000 0 0x1000>, /* SSIU */
1036 <0 0xec541000 0 0x1280>; /* SSI */
1037 clocks = <&mstp10_clks R8A7791_CLK_SSI_ALL>,
1038 <&mstp10_clks R8A7791_CLK_SSI9>, <&mstp10_clks R8A7791_CLK_SSI8>,
1039 <&mstp10_clks R8A7791_CLK_SSI7>, <&mstp10_clks R8A7791_CLK_SSI6>,
1040 <&mstp10_clks R8A7791_CLK_SSI5>, <&mstp10_clks R8A7791_CLK_SSI4>,
1041 <&mstp10_clks R8A7791_CLK_SSI3>, <&mstp10_clks R8A7791_CLK_SSI2>,
1042 <&mstp10_clks R8A7791_CLK_SSI1>, <&mstp10_clks R8A7791_CLK_SSI0>,
1043 <&mstp10_clks R8A7791_CLK_SCU_SRC9>, <&mstp10_clks R8A7791_CLK_SCU_SRC8>,
1044 <&mstp10_clks R8A7791_CLK_SCU_SRC7>, <&mstp10_clks R8A7791_CLK_SCU_SRC6>,
1045 <&mstp10_clks R8A7791_CLK_SCU_SRC5>, <&mstp10_clks R8A7791_CLK_SCU_SRC4>,
1046 <&mstp10_clks R8A7791_CLK_SCU_SRC3>, <&mstp10_clks R8A7791_CLK_SCU_SRC2>,
1047 <&mstp10_clks R8A7791_CLK_SCU_SRC1>, <&mstp10_clks R8A7791_CLK_SCU_SRC0>,
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001048 <&mstp10_clks R8A7791_CLK_SCU_DVC0>, <&mstp10_clks R8A7791_CLK_SCU_DVC1>,
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001049 <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>;
1050 clock-names = "ssi-all",
1051 "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5",
1052 "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0",
1053 "src.9", "src.8", "src.7", "src.6", "src.5",
1054 "src.4", "src.3", "src.2", "src.1", "src.0",
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001055 "dvc.0", "dvc.1",
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001056 "clk_a", "clk_b", "clk_c", "clk_i";
1057
1058 status = "disabled";
1059
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001060 rcar_sound,dvc {
1061 dvc0: dvc@0 { };
1062 dvc1: dvc@1 { };
1063 };
1064
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001065 rcar_sound,src {
1066 src0: src@0 { };
1067 src1: src@1 { };
1068 src2: src@2 { };
1069 src3: src@3 { };
1070 src4: src@4 { };
1071 src5: src@5 { };
1072 src6: src@6 { };
1073 src7: src@7 { };
1074 src8: src@8 { };
1075 src9: src@9 { };
1076 };
1077
1078 rcar_sound,ssi {
1079 ssi0: ssi@0 { interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; };
1080 ssi1: ssi@1 { interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>; };
1081 ssi2: ssi@2 { interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>; };
1082 ssi3: ssi@3 { interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>; };
1083 ssi4: ssi@4 { interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>; };
1084 ssi5: ssi@5 { interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>; };
1085 ssi6: ssi@6 { interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>; };
1086 ssi7: ssi@7 { interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>; };
1087 ssi8: ssi@8 { interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>; };
1088 ssi9: ssi@9 { interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>; };
1089 };
1090 };
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +09001091};