blob: 379e1a505e33496618300414a9f899a5256c4e2f [file] [log] [blame]
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +09001/*
2 * Device Tree Source for the r8a7791 SoC
3 *
Kouei Abee4d2fd92014-10-14 16:01:41 +09004 * Copyright (C) 2013-2014 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;
Sergei Shtylyov0b8d1d52014-08-02 04:04:21 +040037 vin0 = &vin0;
38 vin1 = &vin1;
39 vin2 = &vin2;
Wolfram Sang5bd3de72014-02-17 11:44:41 +010040 };
41
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090042 cpus {
43 #address-cells = <1>;
44 #size-cells = <0>;
45
46 cpu0: cpu@0 {
47 device_type = "cpu";
48 compatible = "arm,cortex-a15";
49 reg = <0>;
Magnus Damm896b79d2014-03-06 12:15:36 +090050 clock-frequency = <1500000000>;
Gaku Inamia57004ec2014-06-03 21:03:10 +090051 voltage-tolerance = <1>; /* 1% */
52 clocks = <&cpg_clocks R8A7791_CLK_Z>;
53 clock-latency = <300000>; /* 300 us */
54
55 /* kHz - uV - OPPs unknown yet */
56 operating-points = <1500000 1000000>,
57 <1312500 1000000>,
58 <1125000 1000000>,
59 < 937500 1000000>,
60 < 750000 1000000>,
61 < 375000 1000000>;
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090062 };
Magnus Damm15ab4262013-10-01 17:13:07 +090063
64 cpu1: cpu@1 {
65 device_type = "cpu";
66 compatible = "arm,cortex-a15";
67 reg = <1>;
Magnus Damm896b79d2014-03-06 12:15:36 +090068 clock-frequency = <1500000000>;
Magnus Damm15ab4262013-10-01 17:13:07 +090069 };
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090070 };
71
72 gic: interrupt-controller@f1001000 {
73 compatible = "arm,cortex-a15-gic";
74 #interrupt-cells = <3>;
75 #address-cells = <0>;
76 interrupt-controller;
77 reg = <0 0xf1001000 0 0x1000>,
78 <0 0xf1002000 0 0x1000>,
79 <0 0xf1004000 0 0x2000>,
80 <0 0xf1006000 0 0x2000>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +010081 interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090082 };
Magnus Dammd77db732013-10-01 17:12:29 +090083
Magnus Damm89fbba12013-11-21 14:22:00 +090084 gpio0: gpio@e6050000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +090085 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +090086 reg = <0 0xe6050000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +010087 interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +090088 #gpio-cells = <2>;
89 gpio-controller;
90 gpio-ranges = <&pfc 0 0 32>;
91 #interrupt-cells = <2>;
92 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +020093 clocks = <&mstp9_clks R8A7791_CLK_GPIO0>;
Magnus Dammab87e3f2013-10-08 12:39:30 +090094 };
95
Magnus Damm89fbba12013-11-21 14:22:00 +090096 gpio1: gpio@e6051000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +090097 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +090098 reg = <0 0xe6051000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +010099 interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900100 #gpio-cells = <2>;
101 gpio-controller;
102 gpio-ranges = <&pfc 0 32 32>;
103 #interrupt-cells = <2>;
104 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200105 clocks = <&mstp9_clks R8A7791_CLK_GPIO1>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900106 };
107
Magnus Damm89fbba12013-11-21 14:22:00 +0900108 gpio2: gpio@e6052000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900109 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900110 reg = <0 0xe6052000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100111 interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900112 #gpio-cells = <2>;
113 gpio-controller;
114 gpio-ranges = <&pfc 0 64 32>;
115 #interrupt-cells = <2>;
116 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200117 clocks = <&mstp9_clks R8A7791_CLK_GPIO2>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900118 };
119
Magnus Damm89fbba12013-11-21 14:22:00 +0900120 gpio3: gpio@e6053000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900121 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900122 reg = <0 0xe6053000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100123 interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900124 #gpio-cells = <2>;
125 gpio-controller;
126 gpio-ranges = <&pfc 0 96 32>;
127 #interrupt-cells = <2>;
128 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200129 clocks = <&mstp9_clks R8A7791_CLK_GPIO3>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900130 };
131
Magnus Damm89fbba12013-11-21 14:22:00 +0900132 gpio4: gpio@e6054000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900133 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900134 reg = <0 0xe6054000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100135 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900136 #gpio-cells = <2>;
137 gpio-controller;
138 gpio-ranges = <&pfc 0 128 32>;
139 #interrupt-cells = <2>;
140 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200141 clocks = <&mstp9_clks R8A7791_CLK_GPIO4>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900142 };
143
Magnus Damm89fbba12013-11-21 14:22:00 +0900144 gpio5: gpio@e6055000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900145 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900146 reg = <0 0xe6055000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100147 interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900148 #gpio-cells = <2>;
149 gpio-controller;
150 gpio-ranges = <&pfc 0 160 32>;
151 #interrupt-cells = <2>;
152 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200153 clocks = <&mstp9_clks R8A7791_CLK_GPIO5>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900154 };
155
Magnus Damm89fbba12013-11-21 14:22:00 +0900156 gpio6: gpio@e6055400 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900157 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900158 reg = <0 0xe6055400 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100159 interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900160 #gpio-cells = <2>;
161 gpio-controller;
162 gpio-ranges = <&pfc 0 192 32>;
163 #interrupt-cells = <2>;
164 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200165 clocks = <&mstp9_clks R8A7791_CLK_GPIO6>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900166 };
167
Magnus Damm89fbba12013-11-21 14:22:00 +0900168 gpio7: gpio@e6055800 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900169 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900170 reg = <0 0xe6055800 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100171 interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900172 #gpio-cells = <2>;
173 gpio-controller;
174 gpio-ranges = <&pfc 0 224 26>;
175 #interrupt-cells = <2>;
176 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200177 clocks = <&mstp9_clks R8A7791_CLK_GPIO7>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900178 };
179
Magnus Dammd103f4d2013-11-20 16:59:48 +0900180 thermal@e61f0000 {
181 compatible = "renesas,thermal-r8a7791", "renesas,rcar-thermal";
182 reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
Magnus Dammd103f4d2013-11-20 16:59:48 +0900183 interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven563bc8e2014-01-07 19:57:13 +0100184 clocks = <&mstp5_clks R8A7791_CLK_THERMAL>;
Magnus Dammd103f4d2013-11-20 16:59:48 +0900185 };
186
Magnus Damm03586ac2013-10-01 17:12:38 +0900187 timer {
188 compatible = "arm,armv7-timer";
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100189 interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
190 <1 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
191 <1 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
192 <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Magnus Damm03586ac2013-10-01 17:12:38 +0900193 };
194
Laurent Pinchartceaa1892014-07-09 15:12:38 +0200195 cmt0: timer@ffca0000 {
Simon Horman4217f322014-09-08 09:27:46 +0900196 compatible = "renesas,cmt-48-r8a7791", "renesas,cmt-48-gen2";
Laurent Pinchartceaa1892014-07-09 15:12:38 +0200197 reg = <0 0xffca0000 0 0x1004>;
198 interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>,
199 <0 143 IRQ_TYPE_LEVEL_HIGH>;
200 clocks = <&mstp1_clks R8A7791_CLK_CMT0>;
201 clock-names = "fck";
202
203 renesas,channels-mask = <0x60>;
204
205 status = "disabled";
206 };
207
208 cmt1: timer@e6130000 {
Simon Horman4217f322014-09-08 09:27:46 +0900209 compatible = "renesas,cmt-48-r8a7791", "renesas,cmt-48-gen2";
Laurent Pinchartceaa1892014-07-09 15:12:38 +0200210 reg = <0 0xe6130000 0 0x1004>;
211 interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>,
212 <0 121 IRQ_TYPE_LEVEL_HIGH>,
213 <0 122 IRQ_TYPE_LEVEL_HIGH>,
214 <0 123 IRQ_TYPE_LEVEL_HIGH>,
215 <0 124 IRQ_TYPE_LEVEL_HIGH>,
216 <0 125 IRQ_TYPE_LEVEL_HIGH>,
217 <0 126 IRQ_TYPE_LEVEL_HIGH>,
218 <0 127 IRQ_TYPE_LEVEL_HIGH>;
219 clocks = <&mstp3_clks R8A7791_CLK_CMT1>;
220 clock-names = "fck";
221
222 renesas,channels-mask = <0xff>;
223
224 status = "disabled";
225 };
226
Magnus Dammd77db732013-10-01 17:12:29 +0900227 irqc0: interrupt-controller@e61c0000 {
Magnus Damm26041b02013-11-20 13:18:05 +0900228 compatible = "renesas,irqc-r8a7791", "renesas,irqc";
Magnus Dammd77db732013-10-01 17:12:29 +0900229 #interrupt-cells = <2>;
230 interrupt-controller;
231 reg = <0 0xe61c0000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100232 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
233 <0 1 IRQ_TYPE_LEVEL_HIGH>,
234 <0 2 IRQ_TYPE_LEVEL_HIGH>,
235 <0 3 IRQ_TYPE_LEVEL_HIGH>,
236 <0 12 IRQ_TYPE_LEVEL_HIGH>,
237 <0 13 IRQ_TYPE_LEVEL_HIGH>,
238 <0 14 IRQ_TYPE_LEVEL_HIGH>,
239 <0 15 IRQ_TYPE_LEVEL_HIGH>,
240 <0 16 IRQ_TYPE_LEVEL_HIGH>,
241 <0 17 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammd77db732013-10-01 17:12:29 +0900242 };
Magnus Damm55146922013-10-08 12:39:01 +0900243
Laurent Pinchartfde8fee2014-07-19 01:50:25 +0200244 dmac0: dma-controller@e6700000 {
245 compatible = "renesas,rcar-dmac";
246 reg = <0 0xe6700000 0 0x20000>;
247 interrupts = <0 197 IRQ_TYPE_LEVEL_HIGH
248 0 200 IRQ_TYPE_LEVEL_HIGH
249 0 201 IRQ_TYPE_LEVEL_HIGH
250 0 202 IRQ_TYPE_LEVEL_HIGH
251 0 203 IRQ_TYPE_LEVEL_HIGH
252 0 204 IRQ_TYPE_LEVEL_HIGH
253 0 205 IRQ_TYPE_LEVEL_HIGH
254 0 206 IRQ_TYPE_LEVEL_HIGH
255 0 207 IRQ_TYPE_LEVEL_HIGH
256 0 208 IRQ_TYPE_LEVEL_HIGH
257 0 209 IRQ_TYPE_LEVEL_HIGH
258 0 210 IRQ_TYPE_LEVEL_HIGH
259 0 211 IRQ_TYPE_LEVEL_HIGH
260 0 212 IRQ_TYPE_LEVEL_HIGH
261 0 213 IRQ_TYPE_LEVEL_HIGH
262 0 214 IRQ_TYPE_LEVEL_HIGH>;
263 interrupt-names = "error",
264 "ch0", "ch1", "ch2", "ch3",
265 "ch4", "ch5", "ch6", "ch7",
266 "ch8", "ch9", "ch10", "ch11",
267 "ch12", "ch13", "ch14";
268 clocks = <&mstp2_clks R8A7791_CLK_SYS_DMAC0>;
269 clock-names = "fck";
270 #dma-cells = <1>;
271 dma-channels = <15>;
272 };
273
274 dmac1: dma-controller@e6720000 {
275 compatible = "renesas,rcar-dmac";
276 reg = <0 0xe6720000 0 0x20000>;
277 interrupts = <0 220 IRQ_TYPE_LEVEL_HIGH
278 0 216 IRQ_TYPE_LEVEL_HIGH
279 0 217 IRQ_TYPE_LEVEL_HIGH
280 0 218 IRQ_TYPE_LEVEL_HIGH
281 0 219 IRQ_TYPE_LEVEL_HIGH
282 0 308 IRQ_TYPE_LEVEL_HIGH
283 0 309 IRQ_TYPE_LEVEL_HIGH
284 0 310 IRQ_TYPE_LEVEL_HIGH
285 0 311 IRQ_TYPE_LEVEL_HIGH
286 0 312 IRQ_TYPE_LEVEL_HIGH
287 0 313 IRQ_TYPE_LEVEL_HIGH
288 0 314 IRQ_TYPE_LEVEL_HIGH
289 0 315 IRQ_TYPE_LEVEL_HIGH
290 0 316 IRQ_TYPE_LEVEL_HIGH
291 0 317 IRQ_TYPE_LEVEL_HIGH
292 0 318 IRQ_TYPE_LEVEL_HIGH>;
293 interrupt-names = "error",
294 "ch0", "ch1", "ch2", "ch3",
295 "ch4", "ch5", "ch6", "ch7",
296 "ch8", "ch9", "ch10", "ch11",
297 "ch12", "ch13", "ch14";
298 clocks = <&mstp2_clks R8A7791_CLK_SYS_DMAC1>;
299 clock-names = "fck";
300 #dma-cells = <1>;
301 dma-channels = <15>;
302 };
303
Kuninori Morimoto8994fff2014-11-03 17:45:37 -0800304 audma0: dma-controller@ec700000 {
305 compatible = "renesas,rcar-dmac";
306 reg = <0 0xec700000 0 0x10000>;
307 interrupts = <0 346 IRQ_TYPE_LEVEL_HIGH
308 0 320 IRQ_TYPE_LEVEL_HIGH
309 0 321 IRQ_TYPE_LEVEL_HIGH
310 0 322 IRQ_TYPE_LEVEL_HIGH
311 0 323 IRQ_TYPE_LEVEL_HIGH
312 0 324 IRQ_TYPE_LEVEL_HIGH
313 0 325 IRQ_TYPE_LEVEL_HIGH
314 0 326 IRQ_TYPE_LEVEL_HIGH
315 0 327 IRQ_TYPE_LEVEL_HIGH
316 0 328 IRQ_TYPE_LEVEL_HIGH
317 0 329 IRQ_TYPE_LEVEL_HIGH
318 0 330 IRQ_TYPE_LEVEL_HIGH
319 0 331 IRQ_TYPE_LEVEL_HIGH
320 0 332 IRQ_TYPE_LEVEL_HIGH>;
321 interrupt-names = "error",
322 "ch0", "ch1", "ch2", "ch3",
323 "ch4", "ch5", "ch6", "ch7",
324 "ch8", "ch9", "ch10", "ch11",
325 "ch12";
326 clocks = <&mstp5_clks R8A7791_CLK_AUDIO_DMAC0>;
327 clock-names = "fck";
328 #dma-cells = <1>;
329 dma-channels = <13>;
330 };
331
332 audma1: dma-controller@ec720000 {
333 compatible = "renesas,rcar-dmac";
334 reg = <0 0xec720000 0 0x10000>;
335 interrupts = <0 347 IRQ_TYPE_LEVEL_HIGH
336 0 333 IRQ_TYPE_LEVEL_HIGH
337 0 334 IRQ_TYPE_LEVEL_HIGH
338 0 335 IRQ_TYPE_LEVEL_HIGH
339 0 336 IRQ_TYPE_LEVEL_HIGH
340 0 337 IRQ_TYPE_LEVEL_HIGH
341 0 338 IRQ_TYPE_LEVEL_HIGH
342 0 339 IRQ_TYPE_LEVEL_HIGH
343 0 340 IRQ_TYPE_LEVEL_HIGH
344 0 341 IRQ_TYPE_LEVEL_HIGH
345 0 342 IRQ_TYPE_LEVEL_HIGH
346 0 343 IRQ_TYPE_LEVEL_HIGH
347 0 344 IRQ_TYPE_LEVEL_HIGH
348 0 345 IRQ_TYPE_LEVEL_HIGH>;
349 interrupt-names = "error",
350 "ch0", "ch1", "ch2", "ch3",
351 "ch4", "ch5", "ch6", "ch7",
352 "ch8", "ch9", "ch10", "ch11",
353 "ch12";
354 clocks = <&mstp5_clks R8A7791_CLK_AUDIO_DMAC1>;
355 clock-names = "fck";
356 #dma-cells = <1>;
357 dma-channels = <13>;
358 };
359
Kuninori Morimoto40c6d9f2014-11-03 17:46:28 -0800360 audmapp: dma-controller@ec740000 {
361 compatible = "renesas,rcar-audmapp";
362 #dma-cells = <1>;
363
364 reg = <0 0xec740000 0 0x200>;
365 };
366
Wolfram Sang36408d92014-03-10 12:26:58 +0100367 /* The memory map in the User's Manual maps the cores to bus numbers */
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100368 i2c0: i2c@e6508000 {
369 #address-cells = <1>;
370 #size-cells = <0>;
371 compatible = "renesas,i2c-r8a7791";
372 reg = <0 0xe6508000 0 0x40>;
373 interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>;
374 clocks = <&mstp9_clks R8A7791_CLK_I2C0>;
375 status = "disabled";
376 };
377
378 i2c1: i2c@e6518000 {
379 #address-cells = <1>;
380 #size-cells = <0>;
381 compatible = "renesas,i2c-r8a7791";
382 reg = <0 0xe6518000 0 0x40>;
383 interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>;
384 clocks = <&mstp9_clks R8A7791_CLK_I2C1>;
385 status = "disabled";
386 };
387
388 i2c2: i2c@e6530000 {
389 #address-cells = <1>;
390 #size-cells = <0>;
391 compatible = "renesas,i2c-r8a7791";
392 reg = <0 0xe6530000 0 0x40>;
393 interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>;
394 clocks = <&mstp9_clks R8A7791_CLK_I2C2>;
395 status = "disabled";
396 };
397
398 i2c3: i2c@e6540000 {
399 #address-cells = <1>;
400 #size-cells = <0>;
401 compatible = "renesas,i2c-r8a7791";
402 reg = <0 0xe6540000 0 0x40>;
403 interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>;
404 clocks = <&mstp9_clks R8A7791_CLK_I2C3>;
405 status = "disabled";
406 };
407
408 i2c4: i2c@e6520000 {
409 #address-cells = <1>;
410 #size-cells = <0>;
411 compatible = "renesas,i2c-r8a7791";
412 reg = <0 0xe6520000 0 0x40>;
413 interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>;
414 clocks = <&mstp9_clks R8A7791_CLK_I2C4>;
415 status = "disabled";
416 };
417
418 i2c5: i2c@e6528000 {
Wolfram Sang36408d92014-03-10 12:26:58 +0100419 /* doesn't need pinmux */
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100420 #address-cells = <1>;
421 #size-cells = <0>;
422 compatible = "renesas,i2c-r8a7791";
423 reg = <0 0xe6528000 0 0x40>;
424 interrupts = <0 20 IRQ_TYPE_LEVEL_HIGH>;
425 clocks = <&mstp9_clks R8A7791_CLK_I2C5>;
426 status = "disabled";
427 };
428
Wolfram Sang36408d92014-03-10 12:26:58 +0100429 i2c6: i2c@e60b0000 {
430 /* doesn't need pinmux */
431 #address-cells = <1>;
432 #size-cells = <0>;
433 compatible = "renesas,iic-r8a7791", "renesas,rmobile-iic";
434 reg = <0 0xe60b0000 0 0x425>;
435 interrupts = <0 173 IRQ_TYPE_LEVEL_HIGH>;
436 clocks = <&mstp9_clks R8A7791_CLK_IICDVFS>;
437 status = "disabled";
438 };
439
440 i2c7: i2c@e6500000 {
441 #address-cells = <1>;
442 #size-cells = <0>;
443 compatible = "renesas,iic-r8a7791", "renesas,rmobile-iic";
444 reg = <0 0xe6500000 0 0x425>;
445 interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>;
446 clocks = <&mstp3_clks R8A7791_CLK_IIC0>;
447 status = "disabled";
448 };
449
450 i2c8: i2c@e6510000 {
451 #address-cells = <1>;
452 #size-cells = <0>;
453 compatible = "renesas,iic-r8a7791", "renesas,rmobile-iic";
454 reg = <0 0xe6510000 0 0x425>;
455 interrupts = <0 175 IRQ_TYPE_LEVEL_HIGH>;
456 clocks = <&mstp3_clks R8A7791_CLK_IIC1>;
457 status = "disabled";
458 };
459
Magnus Damm55146922013-10-08 12:39:01 +0900460 pfc: pfc@e6060000 {
461 compatible = "renesas,pfc-r8a7791";
462 reg = <0 0xe6060000 0 0x250>;
463 #gpio-range-cells = <3>;
464 };
Laurent Pinchart59e79892013-12-11 15:05:16 +0100465
Laurent Pinchart8edae492014-10-26 19:40:12 +0200466 mmcif0: mmc@ee200000 {
467 compatible = "renesas,mmcif-r8a7791", "renesas,sh-mmcif";
468 reg = <0 0xee200000 0 0x80>;
469 interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>;
470 clocks = <&mstp3_clks R8A7791_CLK_MMCIF0>;
Laurent Pinchart16b355b2014-10-26 19:40:14 +0200471 dmas = <&dmac0 0xd1>, <&dmac0 0xd2>;
472 dma-names = "tx", "rx";
Laurent Pinchart8edae492014-10-26 19:40:12 +0200473 reg-io-width = <4>;
474 status = "disabled";
475 };
476
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900477 sdhi0: sd@ee100000 {
478 compatible = "renesas,sdhi-r8a7791";
479 reg = <0 0xee100000 0 0x200>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900480 interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
481 clocks = <&mstp3_clks R8A7791_CLK_SDHI0>;
482 status = "disabled";
483 };
484
485 sdhi1: sd@ee140000 {
486 compatible = "renesas,sdhi-r8a7791";
487 reg = <0 0xee140000 0 0x100>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900488 interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
489 clocks = <&mstp3_clks R8A7791_CLK_SDHI1>;
490 status = "disabled";
491 };
492
493 sdhi2: sd@ee160000 {
494 compatible = "renesas,sdhi-r8a7791";
495 reg = <0 0xee160000 0 0x100>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900496 interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
497 clocks = <&mstp3_clks R8A7791_CLK_SDHI2>;
498 status = "disabled";
499 };
500
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100501 scifa0: serial@e6c40000 {
502 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
503 reg = <0 0xe6c40000 0 64>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100504 interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>;
505 clocks = <&mstp2_clks R8A7791_CLK_SCIFA0>;
506 clock-names = "sci_ick";
507 status = "disabled";
508 };
509
510 scifa1: serial@e6c50000 {
511 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100512 reg = <0 0xe6c50000 0 64>;
513 interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>;
514 clocks = <&mstp2_clks R8A7791_CLK_SCIFA1>;
515 clock-names = "sci_ick";
516 status = "disabled";
517 };
518
519 scifa2: serial@e6c60000 {
520 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100521 reg = <0 0xe6c60000 0 64>;
522 interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>;
523 clocks = <&mstp2_clks R8A7791_CLK_SCIFA2>;
524 clock-names = "sci_ick";
525 status = "disabled";
526 };
527
528 scifa3: serial@e6c70000 {
529 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100530 reg = <0 0xe6c70000 0 64>;
531 interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>;
532 clocks = <&mstp11_clks R8A7791_CLK_SCIFA3>;
533 clock-names = "sci_ick";
534 status = "disabled";
535 };
536
537 scifa4: serial@e6c78000 {
538 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100539 reg = <0 0xe6c78000 0 64>;
540 interrupts = <0 30 IRQ_TYPE_LEVEL_HIGH>;
541 clocks = <&mstp11_clks R8A7791_CLK_SCIFA4>;
542 clock-names = "sci_ick";
543 status = "disabled";
544 };
545
546 scifa5: serial@e6c80000 {
547 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100548 reg = <0 0xe6c80000 0 64>;
549 interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>;
550 clocks = <&mstp11_clks R8A7791_CLK_SCIFA5>;
551 clock-names = "sci_ick";
552 status = "disabled";
553 };
554
555 scifb0: serial@e6c20000 {
556 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100557 reg = <0 0xe6c20000 0 64>;
558 interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>;
559 clocks = <&mstp2_clks R8A7791_CLK_SCIFB0>;
560 clock-names = "sci_ick";
561 status = "disabled";
562 };
563
564 scifb1: serial@e6c30000 {
565 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100566 reg = <0 0xe6c30000 0 64>;
567 interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>;
568 clocks = <&mstp2_clks R8A7791_CLK_SCIFB1>;
569 clock-names = "sci_ick";
570 status = "disabled";
571 };
572
573 scifb2: serial@e6ce0000 {
574 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100575 reg = <0 0xe6ce0000 0 64>;
576 interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>;
577 clocks = <&mstp2_clks R8A7791_CLK_SCIFB2>;
578 clock-names = "sci_ick";
579 status = "disabled";
580 };
581
582 scif0: serial@e6e60000 {
583 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100584 reg = <0 0xe6e60000 0 64>;
585 interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>;
586 clocks = <&mstp7_clks R8A7791_CLK_SCIF0>;
587 clock-names = "sci_ick";
588 status = "disabled";
589 };
590
591 scif1: serial@e6e68000 {
592 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100593 reg = <0 0xe6e68000 0 64>;
594 interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>;
595 clocks = <&mstp7_clks R8A7791_CLK_SCIF1>;
596 clock-names = "sci_ick";
597 status = "disabled";
598 };
599
600 scif2: serial@e6e58000 {
601 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100602 reg = <0 0xe6e58000 0 64>;
603 interrupts = <0 22 IRQ_TYPE_LEVEL_HIGH>;
604 clocks = <&mstp7_clks R8A7791_CLK_SCIF2>;
605 clock-names = "sci_ick";
606 status = "disabled";
607 };
608
609 scif3: serial@e6ea8000 {
610 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100611 reg = <0 0xe6ea8000 0 64>;
612 interrupts = <0 23 IRQ_TYPE_LEVEL_HIGH>;
613 clocks = <&mstp7_clks R8A7791_CLK_SCIF3>;
614 clock-names = "sci_ick";
615 status = "disabled";
616 };
617
618 scif4: serial@e6ee0000 {
619 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100620 reg = <0 0xe6ee0000 0 64>;
621 interrupts = <0 24 IRQ_TYPE_LEVEL_HIGH>;
622 clocks = <&mstp7_clks R8A7791_CLK_SCIF4>;
623 clock-names = "sci_ick";
624 status = "disabled";
625 };
626
627 scif5: serial@e6ee8000 {
628 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100629 reg = <0 0xe6ee8000 0 64>;
630 interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>;
631 clocks = <&mstp7_clks R8A7791_CLK_SCIF5>;
632 clock-names = "sci_ick";
633 status = "disabled";
634 };
635
636 hscif0: serial@e62c0000 {
637 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100638 reg = <0 0xe62c0000 0 96>;
639 interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>;
640 clocks = <&mstp7_clks R8A7791_CLK_HSCIF0>;
641 clock-names = "sci_ick";
642 status = "disabled";
643 };
644
645 hscif1: serial@e62c8000 {
646 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100647 reg = <0 0xe62c8000 0 96>;
648 interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>;
649 clocks = <&mstp7_clks R8A7791_CLK_HSCIF1>;
650 clock-names = "sci_ick";
651 status = "disabled";
652 };
653
654 hscif2: serial@e62d0000 {
655 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100656 reg = <0 0xe62d0000 0 96>;
657 interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>;
658 clocks = <&mstp7_clks R8A7791_CLK_HSCIF2>;
659 clock-names = "sci_ick";
660 status = "disabled";
661 };
662
Sergei Shtylyov2e5d55c2014-02-20 02:27:04 +0300663 ether: ethernet@ee700000 {
664 compatible = "renesas,ether-r8a7791";
665 reg = <0 0xee700000 0 0x400>;
666 interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>;
667 clocks = <&mstp8_clks R8A7791_CLK_ETHER>;
668 phy-mode = "rmii";
669 #address-cells = <1>;
670 #size-cells = <0>;
671 status = "disabled";
672 };
673
Valentine Barshakb8532c62014-01-14 21:05:40 +0400674 sata0: sata@ee300000 {
675 compatible = "renesas,sata-r8a7791";
676 reg = <0 0xee300000 0 0x2000>;
Valentine Barshakb8532c62014-01-14 21:05:40 +0400677 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
678 clocks = <&mstp8_clks R8A7791_CLK_SATA0>;
679 status = "disabled";
680 };
681
682 sata1: sata@ee500000 {
683 compatible = "renesas,sata-r8a7791";
684 reg = <0 0xee500000 0 0x2000>;
Valentine Barshakb8532c62014-01-14 21:05:40 +0400685 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
686 clocks = <&mstp8_clks R8A7791_CLK_SATA1>;
687 status = "disabled";
688 };
689
Yoshihiro Shimoda1c1fee72014-10-24 19:45:06 +0900690 hsusb: usb@e6590000 {
691 compatible = "renesas,usbhs-r8a7791";
692 reg = <0 0xe6590000 0 0x100>;
693 interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
694 clocks = <&mstp7_clks R8A7791_CLK_HSUSB>;
695 renesas,buswait = <4>;
696 phys = <&usb0 1>;
697 phy-names = "usb";
698 status = "disabled";
699 };
700
Sergei Shtylyov3b7e5302014-09-27 01:08:12 +0400701 usbphy: usb-phy@e6590100 {
702 compatible = "renesas,usb-phy-r8a7791";
703 reg = <0 0xe6590100 0 0x100>;
704 #address-cells = <1>;
705 #size-cells = <0>;
706 clocks = <&mstp7_clks R8A7791_CLK_HSUSB>;
707 clock-names = "usbhs";
708 status = "disabled";
709
710 usb0: usb-channel@0 {
711 reg = <0>;
712 #phy-cells = <1>;
713 };
714 usb2: usb-channel@2 {
715 reg = <2>;
716 #phy-cells = <1>;
717 };
718 };
719
Sergei Shtylyov0b8d1d52014-08-02 04:04:21 +0400720 vin0: video@e6ef0000 {
721 compatible = "renesas,vin-r8a7791";
722 clocks = <&mstp8_clks R8A7791_CLK_VIN0>;
723 reg = <0 0xe6ef0000 0 0x1000>;
724 interrupts = <0 188 IRQ_TYPE_LEVEL_HIGH>;
725 status = "disabled";
726 };
727
728 vin1: video@e6ef1000 {
729 compatible = "renesas,vin-r8a7791";
730 clocks = <&mstp8_clks R8A7791_CLK_VIN1>;
731 reg = <0 0xe6ef1000 0 0x1000>;
732 interrupts = <0 189 IRQ_TYPE_LEVEL_HIGH>;
733 status = "disabled";
734 };
735
736 vin2: video@e6ef2000 {
737 compatible = "renesas,vin-r8a7791";
738 clocks = <&mstp8_clks R8A7791_CLK_VIN2>;
739 reg = <0 0xe6ef2000 0 0x1000>;
740 interrupts = <0 190 IRQ_TYPE_LEVEL_HIGH>;
741 status = "disabled";
742 };
743
Laurent Pinchart8eefac22014-01-21 16:00:46 +0100744 vsp1@fe928000 {
745 compatible = "renesas,vsp1";
746 reg = <0 0xfe928000 0 0x8000>;
747 interrupts = <0 267 IRQ_TYPE_LEVEL_HIGH>;
748 clocks = <&mstp1_clks R8A7791_CLK_VSP1_S>;
749
750 renesas,has-lut;
751 renesas,has-sru;
752 renesas,#rpf = <5>;
753 renesas,#uds = <3>;
754 renesas,#wpf = <4>;
755 };
756
757 vsp1@fe930000 {
758 compatible = "renesas,vsp1";
759 reg = <0 0xfe930000 0 0x8000>;
760 interrupts = <0 246 IRQ_TYPE_LEVEL_HIGH>;
761 clocks = <&mstp1_clks R8A7791_CLK_VSP1_DU0>;
762
763 renesas,has-lif;
764 renesas,has-lut;
765 renesas,#rpf = <4>;
766 renesas,#uds = <1>;
767 renesas,#wpf = <4>;
768 };
769
770 vsp1@fe938000 {
771 compatible = "renesas,vsp1";
772 reg = <0 0xfe938000 0 0x8000>;
773 interrupts = <0 247 IRQ_TYPE_LEVEL_HIGH>;
774 clocks = <&mstp1_clks R8A7791_CLK_VSP1_DU1>;
775
776 renesas,has-lif;
777 renesas,has-lut;
778 renesas,#rpf = <4>;
779 renesas,#uds = <1>;
780 renesas,#wpf = <4>;
781 };
782
783 du: display@feb00000 {
784 compatible = "renesas,du-r8a7791";
785 reg = <0 0xfeb00000 0 0x40000>,
786 <0 0xfeb90000 0 0x1c>;
787 reg-names = "du", "lvds.0";
788 interrupts = <0 256 IRQ_TYPE_LEVEL_HIGH>,
789 <0 268 IRQ_TYPE_LEVEL_HIGH>;
790 clocks = <&mstp7_clks R8A7791_CLK_DU0>,
791 <&mstp7_clks R8A7791_CLK_DU1>,
792 <&mstp7_clks R8A7791_CLK_LVDS0>;
793 clock-names = "du.0", "du.1", "lvds.0";
794 status = "disabled";
795
796 ports {
797 #address-cells = <1>;
798 #size-cells = <0>;
799
800 port@0 {
801 reg = <0>;
802 du_out_rgb: endpoint {
803 };
804 };
805 port@1 {
806 reg = <1>;
807 du_out_lvds0: endpoint {
808 };
809 };
810 };
811 };
812
Laurent Pinchart59e79892013-12-11 15:05:16 +0100813 clocks {
814 #address-cells = <2>;
815 #size-cells = <2>;
816 ranges;
817
818 /* External root clock */
819 extal_clk: extal_clk {
820 compatible = "fixed-clock";
821 #clock-cells = <0>;
822 /* This value must be overriden by the board. */
823 clock-frequency = <0>;
824 clock-output-names = "extal";
825 };
826
Kuninori Morimoto0d3dbde2014-06-11 21:44:04 -0700827 /*
828 * The external audio clocks are configured as 0 Hz fixed frequency clocks by
829 * default. Boards that provide audio clocks should override them.
830 */
831 audio_clk_a: audio_clk_a {
832 compatible = "fixed-clock";
833 #clock-cells = <0>;
834 clock-frequency = <0>;
835 clock-output-names = "audio_clk_a";
836 };
837 audio_clk_b: audio_clk_b {
838 compatible = "fixed-clock";
839 #clock-cells = <0>;
840 clock-frequency = <0>;
841 clock-output-names = "audio_clk_b";
842 };
843 audio_clk_c: audio_clk_c {
844 compatible = "fixed-clock";
845 #clock-cells = <0>;
846 clock-frequency = <0>;
847 clock-output-names = "audio_clk_c";
848 };
849
Phil Edworthy66c405e2014-06-13 10:37:19 +0100850 /* External PCIe clock - can be overridden by the board */
851 pcie_bus_clk: pcie_bus_clk {
852 compatible = "fixed-clock";
853 #clock-cells = <0>;
854 clock-frequency = <100000000>;
855 clock-output-names = "pcie_bus";
856 status = "disabled";
857 };
858
Laurent Pinchart59e79892013-12-11 15:05:16 +0100859 /* Special CPG clocks */
860 cpg_clocks: cpg_clocks@e6150000 {
861 compatible = "renesas,r8a7791-cpg-clocks",
862 "renesas,rcar-gen2-cpg-clocks";
863 reg = <0 0xe6150000 0 0x1000>;
864 clocks = <&extal_clk>;
865 #clock-cells = <1>;
866 clock-output-names = "main", "pll0", "pll1", "pll3",
867 "lb", "qspi", "sdh", "sd0", "z";
868 };
869
870 /* Variable factor clocks */
871 sd1_clk: sd2_clk@e6150078 {
872 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
873 reg = <0 0xe6150078 0 4>;
874 clocks = <&pll1_div2_clk>;
875 #clock-cells = <0>;
876 clock-output-names = "sd1";
877 };
Shinobu Ueharac9b22772014-07-21 22:04:29 -0700878 sd2_clk: sd3_clk@e615026c {
Laurent Pinchart59e79892013-12-11 15:05:16 +0100879 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
Shinobu Ueharac9b22772014-07-21 22:04:29 -0700880 reg = <0 0xe615026c 0 4>;
Laurent Pinchart59e79892013-12-11 15:05:16 +0100881 clocks = <&pll1_div2_clk>;
882 #clock-cells = <0>;
883 clock-output-names = "sd2";
884 };
885 mmc0_clk: mmc0_clk@e6150240 {
886 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
887 reg = <0 0xe6150240 0 4>;
888 clocks = <&pll1_div2_clk>;
889 #clock-cells = <0>;
890 clock-output-names = "mmc0";
891 };
892 ssp_clk: ssp_clk@e6150248 {
893 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
894 reg = <0 0xe6150248 0 4>;
895 clocks = <&pll1_div2_clk>;
896 #clock-cells = <0>;
897 clock-output-names = "ssp";
898 };
899 ssprs_clk: ssprs_clk@e615024c {
900 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
901 reg = <0 0xe615024c 0 4>;
902 clocks = <&pll1_div2_clk>;
903 #clock-cells = <0>;
904 clock-output-names = "ssprs";
905 };
906
907 /* Fixed factor clocks */
908 pll1_div2_clk: pll1_div2_clk {
909 compatible = "fixed-factor-clock";
910 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
911 #clock-cells = <0>;
912 clock-div = <2>;
913 clock-mult = <1>;
914 clock-output-names = "pll1_div2";
915 };
916 zg_clk: zg_clk {
917 compatible = "fixed-factor-clock";
918 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
919 #clock-cells = <0>;
920 clock-div = <3>;
921 clock-mult = <1>;
922 clock-output-names = "zg";
923 };
924 zx_clk: zx_clk {
925 compatible = "fixed-factor-clock";
926 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
927 #clock-cells = <0>;
928 clock-div = <3>;
929 clock-mult = <1>;
930 clock-output-names = "zx";
931 };
932 zs_clk: zs_clk {
933 compatible = "fixed-factor-clock";
934 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
935 #clock-cells = <0>;
936 clock-div = <6>;
937 clock-mult = <1>;
938 clock-output-names = "zs";
939 };
940 hp_clk: hp_clk {
941 compatible = "fixed-factor-clock";
942 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
943 #clock-cells = <0>;
944 clock-div = <12>;
945 clock-mult = <1>;
946 clock-output-names = "hp";
947 };
948 i_clk: i_clk {
949 compatible = "fixed-factor-clock";
950 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
951 #clock-cells = <0>;
952 clock-div = <2>;
953 clock-mult = <1>;
954 clock-output-names = "i";
955 };
956 b_clk: b_clk {
957 compatible = "fixed-factor-clock";
958 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
959 #clock-cells = <0>;
960 clock-div = <12>;
961 clock-mult = <1>;
962 clock-output-names = "b";
963 };
964 p_clk: p_clk {
965 compatible = "fixed-factor-clock";
966 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
967 #clock-cells = <0>;
968 clock-div = <24>;
969 clock-mult = <1>;
970 clock-output-names = "p";
971 };
972 cl_clk: cl_clk {
973 compatible = "fixed-factor-clock";
974 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
975 #clock-cells = <0>;
976 clock-div = <48>;
977 clock-mult = <1>;
978 clock-output-names = "cl";
979 };
980 m2_clk: m2_clk {
981 compatible = "fixed-factor-clock";
982 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
983 #clock-cells = <0>;
984 clock-div = <8>;
985 clock-mult = <1>;
986 clock-output-names = "m2";
987 };
988 imp_clk: imp_clk {
989 compatible = "fixed-factor-clock";
990 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
991 #clock-cells = <0>;
992 clock-div = <4>;
993 clock-mult = <1>;
994 clock-output-names = "imp";
995 };
996 rclk_clk: rclk_clk {
997 compatible = "fixed-factor-clock";
998 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
999 #clock-cells = <0>;
1000 clock-div = <(48 * 1024)>;
1001 clock-mult = <1>;
1002 clock-output-names = "rclk";
1003 };
1004 oscclk_clk: oscclk_clk {
1005 compatible = "fixed-factor-clock";
1006 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1007 #clock-cells = <0>;
1008 clock-div = <(12 * 1024)>;
1009 clock-mult = <1>;
1010 clock-output-names = "oscclk";
1011 };
1012 zb3_clk: zb3_clk {
1013 compatible = "fixed-factor-clock";
1014 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1015 #clock-cells = <0>;
1016 clock-div = <4>;
1017 clock-mult = <1>;
1018 clock-output-names = "zb3";
1019 };
1020 zb3d2_clk: zb3d2_clk {
1021 compatible = "fixed-factor-clock";
1022 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1023 #clock-cells = <0>;
1024 clock-div = <8>;
1025 clock-mult = <1>;
1026 clock-output-names = "zb3d2";
1027 };
1028 ddr_clk: ddr_clk {
1029 compatible = "fixed-factor-clock";
1030 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1031 #clock-cells = <0>;
1032 clock-div = <8>;
1033 clock-mult = <1>;
1034 clock-output-names = "ddr";
1035 };
1036 mp_clk: mp_clk {
1037 compatible = "fixed-factor-clock";
1038 clocks = <&pll1_div2_clk>;
1039 #clock-cells = <0>;
1040 clock-div = <15>;
1041 clock-mult = <1>;
1042 clock-output-names = "mp";
1043 };
1044 cp_clk: cp_clk {
1045 compatible = "fixed-factor-clock";
1046 clocks = <&extal_clk>;
1047 #clock-cells = <0>;
1048 clock-div = <2>;
1049 clock-mult = <1>;
1050 clock-output-names = "cp";
1051 };
1052
1053 /* Gate clocks */
Laurent Pinchartcded80f2013-12-19 16:51:02 +01001054 mstp0_clks: mstp0_clks@e6150130 {
1055 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1056 reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
1057 clocks = <&mp_clk>;
1058 #clock-cells = <1>;
1059 renesas,clock-indices = <R8A7791_CLK_MSIOF0>;
1060 clock-output-names = "msiof0";
1061 };
Laurent Pinchart59e79892013-12-11 15:05:16 +01001062 mstp1_clks: mstp1_clks@e6150134 {
1063 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1064 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001065 clocks = <&zs_clk>, <&zs_clk>, <&m2_clk>, <&zs_clk>, <&p_clk>,
1066 <&zg_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>,
1067 <&p_clk>, <&rclk_clk>, <&cp_clk>, <&zs_clk>, <&zs_clk>,
1068 <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001069 #clock-cells = <1>;
1070 renesas,clock-indices = <
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001071 R8A7791_CLK_VCP0 R8A7791_CLK_VPC0 R8A7791_CLK_JPU
1072 R8A7791_CLK_SSP1 R8A7791_CLK_TMU1 R8A7791_CLK_3DG
1073 R8A7791_CLK_2DDMAC R8A7791_CLK_FDP1_1 R8A7791_CLK_FDP1_0
1074 R8A7791_CLK_TMU3 R8A7791_CLK_TMU2 R8A7791_CLK_CMT0
1075 R8A7791_CLK_TMU0 R8A7791_CLK_VSP1_DU1 R8A7791_CLK_VSP1_DU0
1076 R8A7791_CLK_VSP1_S
Laurent Pinchart59e79892013-12-11 15:05:16 +01001077 >;
1078 clock-output-names =
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001079 "vcp0", "vpc0", "jpu", "ssp1", "tmu1", "3dg",
1080 "2ddmac", "fdp1-1", "fdp1-0", "tmu3", "tmu2", "cmt0",
1081 "tmu0", "vsp1-du1", "vsp1-du0", "vsp1-sy";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001082 };
1083 mstp2_clks: mstp2_clks@e6150138 {
1084 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1085 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
1086 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001087 <&mp_clk>, <&mp_clk>, <&mp_clk>,
1088 <&zs_clk>, <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001089 #clock-cells = <1>;
1090 renesas,clock-indices = <
1091 R8A7791_CLK_SCIFA2 R8A7791_CLK_SCIFA1 R8A7791_CLK_SCIFA0
Laurent Pinchartcded80f2013-12-19 16:51:02 +01001092 R8A7791_CLK_MSIOF2 R8A7791_CLK_SCIFB0 R8A7791_CLK_SCIFB1
1093 R8A7791_CLK_MSIOF1 R8A7791_CLK_SCIFB2
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001094 R8A7791_CLK_SYS_DMAC1 R8A7791_CLK_SYS_DMAC0
Laurent Pinchart59e79892013-12-11 15:05:16 +01001095 >;
1096 clock-output-names =
Geert Uytterhoeven0c002ef2014-02-20 15:49:29 +01001097 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001098 "scifb1", "msiof1", "scifb2",
1099 "sys-dmac1", "sys-dmac0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001100 };
1101 mstp3_clks: mstp3_clks@e615013c {
1102 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1103 reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
Wolfram Sangc08691b2014-03-10 12:26:57 +01001104 clocks = <&cp_clk>, <&sd2_clk>, <&sd1_clk>, <&cpg_clocks R8A7791_CLK_SD0>,
Phil Edworthy4bfb3762014-06-13 10:37:18 +01001105 <&mmc0_clk>, <&hp_clk>, <&mp_clk>, <&hp_clk>, <&mp_clk>, <&rclk_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001106 #clock-cells = <1>;
1107 renesas,clock-indices = <
Wolfram Sangc08691b2014-03-10 12:26:57 +01001108 R8A7791_CLK_TPU0 R8A7791_CLK_SDHI2 R8A7791_CLK_SDHI1 R8A7791_CLK_SDHI0
Phil Edworthy4bfb3762014-06-13 10:37:18 +01001109 R8A7791_CLK_MMCIF0 R8A7791_CLK_IIC0 R8A7791_CLK_PCIEC R8A7791_CLK_IIC1
1110 R8A7791_CLK_SSUSB R8A7791_CLK_CMT1
Laurent Pinchart59e79892013-12-11 15:05:16 +01001111 >;
1112 clock-output-names =
Wolfram Sangc08691b2014-03-10 12:26:57 +01001113 "tpu0", "sdhi2", "sdhi1", "sdhi0",
Phil Edworthy4bfb3762014-06-13 10:37:18 +01001114 "mmcif0", "i2c7", "pciec", "i2c8", "ssusb", "cmt1";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001115 };
1116 mstp5_clks: mstp5_clks@e6150144 {
1117 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1118 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
Kuninori Morimoto8994fff2014-11-03 17:45:37 -08001119 clocks = <&hp_clk>, <&hp_clk>, <&extal_clk>, <&p_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001120 #clock-cells = <1>;
Kuninori Morimoto8994fff2014-11-03 17:45:37 -08001121 renesas,clock-indices = <R8A7791_CLK_AUDIO_DMAC0 R8A7791_CLK_AUDIO_DMAC1
1122 R8A7791_CLK_THERMAL R8A7791_CLK_PWM>;
1123 clock-output-names = "audmac0", "audmac1", "thermal", "pwm";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001124 };
1125 mstp7_clks: mstp7_clks@e615014c {
1126 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1127 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
Magnus Damm6225b992014-04-07 15:04:21 +09001128 clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zs_clk>,
Laurent Pinchart59e79892013-12-11 15:05:16 +01001129 <&zs_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1130 <&zx_clk>, <&zx_clk>, <&zx_clk>;
1131 #clock-cells = <1>;
1132 renesas,clock-indices = <
Magnus Damm6225b992014-04-07 15:04:21 +09001133 R8A7791_CLK_EHCI R8A7791_CLK_HSUSB R8A7791_CLK_HSCIF2 R8A7791_CLK_SCIF5
Laurent Pinchart59e79892013-12-11 15:05:16 +01001134 R8A7791_CLK_SCIF4 R8A7791_CLK_HSCIF1 R8A7791_CLK_HSCIF0
1135 R8A7791_CLK_SCIF3 R8A7791_CLK_SCIF2 R8A7791_CLK_SCIF1
1136 R8A7791_CLK_SCIF0 R8A7791_CLK_DU1 R8A7791_CLK_DU0
1137 R8A7791_CLK_LVDS0
1138 >;
1139 clock-output-names =
Magnus Damm6225b992014-04-07 15:04:21 +09001140 "ehci", "hsusb", "hscif2", "scif5", "scif4", "hscif1", "hscif0",
Laurent Pinchart59e79892013-12-11 15:05:16 +01001141 "scif3", "scif2", "scif1", "scif0", "du1", "du0", "lvds0";
1142 };
1143 mstp8_clks: mstp8_clks@e6150990 {
1144 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1145 reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
Laurent Pinchart65f05c32014-01-07 09:22:56 +01001146 clocks = <&zg_clk>, <&zg_clk>, <&zg_clk>, <&p_clk>, <&zs_clk>,
1147 <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001148 #clock-cells = <1>;
Laurent Pinchart09c98342014-01-07 09:22:54 +01001149 renesas,clock-indices = <
1150 R8A7791_CLK_VIN2 R8A7791_CLK_VIN1 R8A7791_CLK_VIN0
Laurent Pinchart65f05c32014-01-07 09:22:56 +01001151 R8A7791_CLK_ETHER R8A7791_CLK_SATA1 R8A7791_CLK_SATA0
Laurent Pinchart09c98342014-01-07 09:22:54 +01001152 >;
Laurent Pinchart65f05c32014-01-07 09:22:56 +01001153 clock-output-names =
1154 "vin2", "vin1", "vin0", "ether", "sata1", "sata0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001155 };
1156 mstp9_clks: mstp9_clks@e6150994 {
1157 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1158 reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001159 clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
1160 <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
1161 <&p_clk>, <&p_clk>, <&cpg_clocks R8A7791_CLK_QSPI>, <&hp_clk>,
Laurent Pinchart11b48db2014-04-01 13:02:18 +02001162 <&cp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>,
1163 <&hp_clk>, <&hp_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001164 #clock-cells = <1>;
1165 renesas,clock-indices = <
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001166 R8A7791_CLK_GPIO7 R8A7791_CLK_GPIO6 R8A7791_CLK_GPIO5 R8A7791_CLK_GPIO4
1167 R8A7791_CLK_GPIO3 R8A7791_CLK_GPIO2 R8A7791_CLK_GPIO1 R8A7791_CLK_GPIO0
Wolfram Sangc08691b2014-03-10 12:26:57 +01001168 R8A7791_CLK_RCAN1 R8A7791_CLK_RCAN0 R8A7791_CLK_QSPI_MOD R8A7791_CLK_I2C5
1169 R8A7791_CLK_IICDVFS R8A7791_CLK_I2C4 R8A7791_CLK_I2C3 R8A7791_CLK_I2C2
1170 R8A7791_CLK_I2C1 R8A7791_CLK_I2C0
Laurent Pinchart59e79892013-12-11 15:05:16 +01001171 >;
1172 clock-output-names =
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001173 "gpio7", "gpio6", "gpio5", "gpio4", "gpio3", "gpio2", "gpio1", "gpio0",
1174 "rcan1", "rcan0", "qspi_mod", "i2c5", "i2c6", "i2c4", "i2c3", "i2c2",
1175 "i2c1", "i2c0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001176 };
Kuninori Morimotoee914152014-06-11 21:44:16 -07001177 mstp10_clks: mstp10_clks@e6150998 {
1178 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1179 reg = <0 0xe6150998 0 4>, <0 0xe61509a8 0 4>;
1180 clocks = <&p_clk>,
1181 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1182 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1183 <&p_clk>,
1184 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1185 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1186 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1187 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1188 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1189 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>;
1190
1191 #clock-cells = <1>;
1192 clock-indices = <
1193 R8A7791_CLK_SSI_ALL
1194 R8A7791_CLK_SSI9 R8A7791_CLK_SSI8 R8A7791_CLK_SSI7 R8A7791_CLK_SSI6 R8A7791_CLK_SSI5
1195 R8A7791_CLK_SSI4 R8A7791_CLK_SSI3 R8A7791_CLK_SSI2 R8A7791_CLK_SSI1 R8A7791_CLK_SSI0
1196 R8A7791_CLK_SCU_ALL
1197 R8A7791_CLK_SCU_DVC1 R8A7791_CLK_SCU_DVC0
1198 R8A7791_CLK_SCU_SRC9 R8A7791_CLK_SCU_SRC8 R8A7791_CLK_SCU_SRC7 R8A7791_CLK_SCU_SRC6 R8A7791_CLK_SCU_SRC5
1199 R8A7791_CLK_SCU_SRC4 R8A7791_CLK_SCU_SRC3 R8A7791_CLK_SCU_SRC2 R8A7791_CLK_SCU_SRC1 R8A7791_CLK_SCU_SRC0
1200 >;
1201 clock-output-names =
1202 "ssi-all",
1203 "ssi9", "ssi8", "ssi7", "ssi6", "ssi5",
1204 "ssi4", "ssi3", "ssi2", "ssi1", "ssi0",
1205 "scu-all",
1206 "scu-dvc1", "scu-dvc0",
1207 "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5",
1208 "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0";
1209 };
Laurent Pinchart59e79892013-12-11 15:05:16 +01001210 mstp11_clks: mstp11_clks@e615099c {
1211 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1212 reg = <0 0xe615099c 0 4>, <0 0xe61509ac 0 4>;
1213 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>;
1214 #clock-cells = <1>;
1215 renesas,clock-indices = <
1216 R8A7791_CLK_SCIFA3 R8A7791_CLK_SCIFA4 R8A7791_CLK_SCIFA5
1217 >;
1218 clock-output-names = "scifa3", "scifa4", "scifa5";
1219 };
1220 };
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001221
Geert Uytterhoeven6f3e4ee2014-02-25 11:30:14 +01001222 qspi: spi@e6b10000 {
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001223 compatible = "renesas,qspi-r8a7791", "renesas,qspi";
1224 reg = <0 0xe6b10000 0 0x2c>;
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001225 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
1226 clocks = <&mstp9_clks R8A7791_CLK_QSPI_MOD>;
Geert Uytterhoeven591f2fa2014-08-06 14:59:06 +02001227 dmas = <&dmac0 0x17>, <&dmac0 0x18>;
1228 dma-names = "tx", "rx";
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001229 num-cs = <1>;
1230 #address-cells = <1>;
1231 #size-cells = <0>;
1232 status = "disabled";
1233 };
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001234
1235 msiof0: spi@e6e20000 {
1236 compatible = "renesas,msiof-r8a7791";
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001237 reg = <0 0xe6e20000 0 0x0064>, <0 0xe7e20000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001238 interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>;
1239 clocks = <&mstp0_clks R8A7791_CLK_MSIOF0>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001240 dmas = <&dmac0 0x51>, <&dmac0 0x52>;
1241 dma-names = "tx", "rx";
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001242 #address-cells = <1>;
1243 #size-cells = <0>;
1244 status = "disabled";
1245 };
1246
1247 msiof1: spi@e6e10000 {
1248 compatible = "renesas,msiof-r8a7791";
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001249 reg = <0 0xe6e10000 0 0x0064>, <0 0xe7e10000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001250 interrupts = <0 157 IRQ_TYPE_LEVEL_HIGH>;
1251 clocks = <&mstp2_clks R8A7791_CLK_MSIOF1>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001252 dmas = <&dmac0 0x55>, <&dmac0 0x56>;
1253 dma-names = "tx", "rx";
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001254 #address-cells = <1>;
1255 #size-cells = <0>;
1256 status = "disabled";
1257 };
1258
1259 msiof2: spi@e6e00000 {
1260 compatible = "renesas,msiof-r8a7791";
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001261 reg = <0 0xe6e00000 0 0x0064>, <0 0xe7e00000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001262 interrupts = <0 158 IRQ_TYPE_LEVEL_HIGH>;
1263 clocks = <&mstp2_clks R8A7791_CLK_MSIOF2>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001264 dmas = <&dmac0 0x41>, <&dmac0 0x42>;
1265 dma-names = "tx", "rx";
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001266 #address-cells = <1>;
1267 #size-cells = <0>;
1268 status = "disabled";
1269 };
Phil Edworthy811cdfa2014-06-13 10:37:20 +01001270
Yoshihiro Shimodac1969312014-10-24 19:43:02 +09001271 xhci: usb@ee000000 {
1272 compatible = "renesas,xhci-r8a7791";
1273 reg = <0 0xee000000 0 0xc00>;
1274 interrupts = <0 101 IRQ_TYPE_LEVEL_HIGH>;
1275 clocks = <&mstp3_clks R8A7791_CLK_SSUSB>;
1276 phys = <&usb2 1>;
1277 phy-names = "usb";
1278 status = "disabled";
1279 };
1280
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001281 pci0: pci@ee090000 {
1282 compatible = "renesas,pci-r8a7791";
1283 device_type = "pci";
1284 clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
1285 reg = <0 0xee090000 0 0xc00>,
1286 <0 0xee080000 0 0x1100>;
1287 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
1288 status = "disabled";
1289
1290 bus-range = <0 0>;
1291 #address-cells = <3>;
1292 #size-cells = <2>;
1293 #interrupt-cells = <1>;
1294 ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>;
1295 interrupt-map-mask = <0xff00 0 0 0x7>;
1296 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1297 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1298 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyove1bce122014-09-29 22:23:11 +04001299
1300 usb@0,1 {
1301 reg = <0x800 0 0 0 0>;
1302 device_type = "pci";
1303 phys = <&usb0 0>;
1304 phy-names = "usb";
1305 };
1306
1307 usb@0,2 {
1308 reg = <0x1000 0 0 0 0>;
1309 device_type = "pci";
1310 phys = <&usb0 0>;
1311 phy-names = "usb";
1312 };
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001313 };
1314
1315 pci1: pci@ee0d0000 {
1316 compatible = "renesas,pci-r8a7791";
1317 device_type = "pci";
1318 clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
1319 reg = <0 0xee0d0000 0 0xc00>,
1320 <0 0xee0c0000 0 0x1100>;
1321 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
1322 status = "disabled";
1323
1324 bus-range = <1 1>;
1325 #address-cells = <3>;
1326 #size-cells = <2>;
1327 #interrupt-cells = <1>;
1328 ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>;
1329 interrupt-map-mask = <0xff00 0 0 0x7>;
1330 interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1331 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1332 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyove1bce122014-09-29 22:23:11 +04001333
1334 usb@0,1 {
1335 reg = <0x800 0 0 0 0>;
1336 device_type = "pci";
1337 phys = <&usb2 0>;
1338 phy-names = "usb";
1339 };
1340
1341 usb@0,2 {
1342 reg = <0x1000 0 0 0 0>;
1343 device_type = "pci";
1344 phys = <&usb2 0>;
1345 phy-names = "usb";
1346 };
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001347 };
1348
Phil Edworthy811cdfa2014-06-13 10:37:20 +01001349 pciec: pcie@fe000000 {
1350 compatible = "renesas,pcie-r8a7791";
1351 reg = <0 0xfe000000 0 0x80000>;
1352 #address-cells = <3>;
1353 #size-cells = <2>;
1354 bus-range = <0x00 0xff>;
1355 device_type = "pci";
1356 ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000
1357 0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000
1358 0x02000000 0 0x30000000 0 0x30000000 0 0x08000000
1359 0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;
1360 /* Map all possible DDR as inbound ranges */
1361 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000
1362 0x43000000 2 0x00000000 2 0x00000000 1 0x00000000>;
1363 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>,
1364 <0 117 IRQ_TYPE_LEVEL_HIGH>,
1365 <0 118 IRQ_TYPE_LEVEL_HIGH>;
1366 #interrupt-cells = <1>;
1367 interrupt-map-mask = <0 0 0 0>;
1368 interrupt-map = <0 0 0 0 &gic 0 116 IRQ_TYPE_LEVEL_HIGH>;
1369 clocks = <&mstp3_clks R8A7791_CLK_PCIEC>, <&pcie_bus_clk>;
1370 clock-names = "pcie", "pcie_bus";
1371 status = "disabled";
1372 };
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001373
1374 rcar_sound: rcar_sound@0xec500000 {
1375 #sound-dai-cells = <1>;
1376 compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2", "renesas,rcar_sound";
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001377 reg = <0 0xec500000 0 0x1000>, /* SCU */
1378 <0 0xec5a0000 0 0x100>, /* ADG */
1379 <0 0xec540000 0 0x1000>, /* SSIU */
1380 <0 0xec541000 0 0x1280>; /* SSI */
1381 clocks = <&mstp10_clks R8A7791_CLK_SSI_ALL>,
1382 <&mstp10_clks R8A7791_CLK_SSI9>, <&mstp10_clks R8A7791_CLK_SSI8>,
1383 <&mstp10_clks R8A7791_CLK_SSI7>, <&mstp10_clks R8A7791_CLK_SSI6>,
1384 <&mstp10_clks R8A7791_CLK_SSI5>, <&mstp10_clks R8A7791_CLK_SSI4>,
1385 <&mstp10_clks R8A7791_CLK_SSI3>, <&mstp10_clks R8A7791_CLK_SSI2>,
1386 <&mstp10_clks R8A7791_CLK_SSI1>, <&mstp10_clks R8A7791_CLK_SSI0>,
1387 <&mstp10_clks R8A7791_CLK_SCU_SRC9>, <&mstp10_clks R8A7791_CLK_SCU_SRC8>,
1388 <&mstp10_clks R8A7791_CLK_SCU_SRC7>, <&mstp10_clks R8A7791_CLK_SCU_SRC6>,
1389 <&mstp10_clks R8A7791_CLK_SCU_SRC5>, <&mstp10_clks R8A7791_CLK_SCU_SRC4>,
1390 <&mstp10_clks R8A7791_CLK_SCU_SRC3>, <&mstp10_clks R8A7791_CLK_SCU_SRC2>,
1391 <&mstp10_clks R8A7791_CLK_SCU_SRC1>, <&mstp10_clks R8A7791_CLK_SCU_SRC0>,
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001392 <&mstp10_clks R8A7791_CLK_SCU_DVC0>, <&mstp10_clks R8A7791_CLK_SCU_DVC1>,
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001393 <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>;
1394 clock-names = "ssi-all",
1395 "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5",
1396 "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0",
1397 "src.9", "src.8", "src.7", "src.6", "src.5",
1398 "src.4", "src.3", "src.2", "src.1", "src.0",
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001399 "dvc.0", "dvc.1",
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001400 "clk_a", "clk_b", "clk_c", "clk_i";
1401
1402 status = "disabled";
1403
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001404 rcar_sound,dvc {
1405 dvc0: dvc@0 { };
1406 dvc1: dvc@1 { };
1407 };
1408
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001409 rcar_sound,src {
1410 src0: src@0 { };
1411 src1: src@1 { };
1412 src2: src@2 { };
1413 src3: src@3 { };
1414 src4: src@4 { };
1415 src5: src@5 { };
1416 src6: src@6 { };
1417 src7: src@7 { };
1418 src8: src@8 { };
1419 src9: src@9 { };
1420 };
1421
1422 rcar_sound,ssi {
1423 ssi0: ssi@0 { interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; };
1424 ssi1: ssi@1 { interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>; };
1425 ssi2: ssi@2 { interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>; };
1426 ssi3: ssi@3 { interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>; };
1427 ssi4: ssi@4 { interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>; };
1428 ssi5: ssi@5 { interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>; };
1429 ssi6: ssi@6 { interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>; };
1430 ssi7: ssi@7 { interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>; };
1431 ssi8: ssi@8 { interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>; };
1432 ssi9: ssi@9 { interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>; };
1433 };
1434 };
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +09001435};