blob: e35812a0d8d40e8c986c58ea71f529b54c1f5cc6 [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>;
Geert Uytterhoevenaa5404f2014-11-27 11:57:16 +010081 interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(2) | 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";
Geert Uytterhoevenaa5404f2014-11-27 11:57:16 +0100189 interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
190 <1 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
191 <1 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
192 <1 10 (GIC_CPU_MASK_SIMPLE(2) | 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>;
Wolfram Sang3f58c542014-11-07 11:11:44 +0100437 dmas = <&dmac0 0x77>, <&dmac0 0x78>;
438 dma-names = "tx", "rx";
Wolfram Sang36408d92014-03-10 12:26:58 +0100439 status = "disabled";
440 };
441
442 i2c7: i2c@e6500000 {
443 #address-cells = <1>;
444 #size-cells = <0>;
445 compatible = "renesas,iic-r8a7791", "renesas,rmobile-iic";
446 reg = <0 0xe6500000 0 0x425>;
447 interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>;
448 clocks = <&mstp3_clks R8A7791_CLK_IIC0>;
Wolfram Sang3f58c542014-11-07 11:11:44 +0100449 dmas = <&dmac0 0x61>, <&dmac0 0x62>;
450 dma-names = "tx", "rx";
Wolfram Sang36408d92014-03-10 12:26:58 +0100451 status = "disabled";
452 };
453
454 i2c8: i2c@e6510000 {
455 #address-cells = <1>;
456 #size-cells = <0>;
457 compatible = "renesas,iic-r8a7791", "renesas,rmobile-iic";
458 reg = <0 0xe6510000 0 0x425>;
459 interrupts = <0 175 IRQ_TYPE_LEVEL_HIGH>;
460 clocks = <&mstp3_clks R8A7791_CLK_IIC1>;
Wolfram Sang3f58c542014-11-07 11:11:44 +0100461 dmas = <&dmac0 0x65>, <&dmac0 0x66>;
462 dma-names = "tx", "rx";
Wolfram Sang36408d92014-03-10 12:26:58 +0100463 status = "disabled";
464 };
465
Magnus Damm55146922013-10-08 12:39:01 +0900466 pfc: pfc@e6060000 {
467 compatible = "renesas,pfc-r8a7791";
468 reg = <0 0xe6060000 0 0x250>;
469 #gpio-range-cells = <3>;
470 };
Laurent Pinchart59e79892013-12-11 15:05:16 +0100471
Laurent Pinchart8edae492014-10-26 19:40:12 +0200472 mmcif0: mmc@ee200000 {
473 compatible = "renesas,mmcif-r8a7791", "renesas,sh-mmcif";
474 reg = <0 0xee200000 0 0x80>;
475 interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>;
476 clocks = <&mstp3_clks R8A7791_CLK_MMCIF0>;
Laurent Pinchart16b355b2014-10-26 19:40:14 +0200477 dmas = <&dmac0 0xd1>, <&dmac0 0xd2>;
478 dma-names = "tx", "rx";
Laurent Pinchart8edae492014-10-26 19:40:12 +0200479 reg-io-width = <4>;
480 status = "disabled";
481 };
482
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900483 sdhi0: sd@ee100000 {
484 compatible = "renesas,sdhi-r8a7791";
485 reg = <0 0xee100000 0 0x200>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900486 interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
487 clocks = <&mstp3_clks R8A7791_CLK_SDHI0>;
488 status = "disabled";
489 };
490
491 sdhi1: sd@ee140000 {
492 compatible = "renesas,sdhi-r8a7791";
493 reg = <0 0xee140000 0 0x100>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900494 interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
495 clocks = <&mstp3_clks R8A7791_CLK_SDHI1>;
496 status = "disabled";
497 };
498
499 sdhi2: sd@ee160000 {
500 compatible = "renesas,sdhi-r8a7791";
501 reg = <0 0xee160000 0 0x100>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900502 interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
503 clocks = <&mstp3_clks R8A7791_CLK_SDHI2>;
504 status = "disabled";
505 };
506
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100507 scifa0: serial@e6c40000 {
508 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
509 reg = <0 0xe6c40000 0 64>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100510 interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>;
511 clocks = <&mstp2_clks R8A7791_CLK_SCIFA0>;
512 clock-names = "sci_ick";
513 status = "disabled";
514 };
515
516 scifa1: serial@e6c50000 {
517 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100518 reg = <0 0xe6c50000 0 64>;
519 interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>;
520 clocks = <&mstp2_clks R8A7791_CLK_SCIFA1>;
521 clock-names = "sci_ick";
522 status = "disabled";
523 };
524
525 scifa2: serial@e6c60000 {
526 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100527 reg = <0 0xe6c60000 0 64>;
528 interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>;
529 clocks = <&mstp2_clks R8A7791_CLK_SCIFA2>;
530 clock-names = "sci_ick";
531 status = "disabled";
532 };
533
534 scifa3: serial@e6c70000 {
535 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100536 reg = <0 0xe6c70000 0 64>;
537 interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>;
538 clocks = <&mstp11_clks R8A7791_CLK_SCIFA3>;
539 clock-names = "sci_ick";
540 status = "disabled";
541 };
542
543 scifa4: serial@e6c78000 {
544 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100545 reg = <0 0xe6c78000 0 64>;
546 interrupts = <0 30 IRQ_TYPE_LEVEL_HIGH>;
547 clocks = <&mstp11_clks R8A7791_CLK_SCIFA4>;
548 clock-names = "sci_ick";
549 status = "disabled";
550 };
551
552 scifa5: serial@e6c80000 {
553 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100554 reg = <0 0xe6c80000 0 64>;
555 interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>;
556 clocks = <&mstp11_clks R8A7791_CLK_SCIFA5>;
557 clock-names = "sci_ick";
558 status = "disabled";
559 };
560
561 scifb0: serial@e6c20000 {
562 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100563 reg = <0 0xe6c20000 0 64>;
564 interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>;
565 clocks = <&mstp2_clks R8A7791_CLK_SCIFB0>;
566 clock-names = "sci_ick";
567 status = "disabled";
568 };
569
570 scifb1: serial@e6c30000 {
571 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100572 reg = <0 0xe6c30000 0 64>;
573 interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>;
574 clocks = <&mstp2_clks R8A7791_CLK_SCIFB1>;
575 clock-names = "sci_ick";
576 status = "disabled";
577 };
578
579 scifb2: serial@e6ce0000 {
580 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100581 reg = <0 0xe6ce0000 0 64>;
582 interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>;
583 clocks = <&mstp2_clks R8A7791_CLK_SCIFB2>;
584 clock-names = "sci_ick";
585 status = "disabled";
586 };
587
588 scif0: serial@e6e60000 {
589 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100590 reg = <0 0xe6e60000 0 64>;
591 interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>;
592 clocks = <&mstp7_clks R8A7791_CLK_SCIF0>;
593 clock-names = "sci_ick";
594 status = "disabled";
595 };
596
597 scif1: serial@e6e68000 {
598 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100599 reg = <0 0xe6e68000 0 64>;
600 interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>;
601 clocks = <&mstp7_clks R8A7791_CLK_SCIF1>;
602 clock-names = "sci_ick";
603 status = "disabled";
604 };
605
606 scif2: serial@e6e58000 {
607 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100608 reg = <0 0xe6e58000 0 64>;
609 interrupts = <0 22 IRQ_TYPE_LEVEL_HIGH>;
610 clocks = <&mstp7_clks R8A7791_CLK_SCIF2>;
611 clock-names = "sci_ick";
612 status = "disabled";
613 };
614
615 scif3: serial@e6ea8000 {
616 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100617 reg = <0 0xe6ea8000 0 64>;
618 interrupts = <0 23 IRQ_TYPE_LEVEL_HIGH>;
619 clocks = <&mstp7_clks R8A7791_CLK_SCIF3>;
620 clock-names = "sci_ick";
621 status = "disabled";
622 };
623
624 scif4: serial@e6ee0000 {
625 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100626 reg = <0 0xe6ee0000 0 64>;
627 interrupts = <0 24 IRQ_TYPE_LEVEL_HIGH>;
628 clocks = <&mstp7_clks R8A7791_CLK_SCIF4>;
629 clock-names = "sci_ick";
630 status = "disabled";
631 };
632
633 scif5: serial@e6ee8000 {
634 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100635 reg = <0 0xe6ee8000 0 64>;
636 interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>;
637 clocks = <&mstp7_clks R8A7791_CLK_SCIF5>;
638 clock-names = "sci_ick";
639 status = "disabled";
640 };
641
642 hscif0: serial@e62c0000 {
643 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100644 reg = <0 0xe62c0000 0 96>;
645 interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>;
646 clocks = <&mstp7_clks R8A7791_CLK_HSCIF0>;
647 clock-names = "sci_ick";
648 status = "disabled";
649 };
650
651 hscif1: serial@e62c8000 {
652 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100653 reg = <0 0xe62c8000 0 96>;
654 interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>;
655 clocks = <&mstp7_clks R8A7791_CLK_HSCIF1>;
656 clock-names = "sci_ick";
657 status = "disabled";
658 };
659
660 hscif2: serial@e62d0000 {
661 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100662 reg = <0 0xe62d0000 0 96>;
663 interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>;
664 clocks = <&mstp7_clks R8A7791_CLK_HSCIF2>;
665 clock-names = "sci_ick";
666 status = "disabled";
667 };
668
Sergei Shtylyov2e5d55c2014-02-20 02:27:04 +0300669 ether: ethernet@ee700000 {
670 compatible = "renesas,ether-r8a7791";
671 reg = <0 0xee700000 0 0x400>;
672 interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>;
673 clocks = <&mstp8_clks R8A7791_CLK_ETHER>;
674 phy-mode = "rmii";
675 #address-cells = <1>;
676 #size-cells = <0>;
677 status = "disabled";
678 };
679
Valentine Barshakb8532c62014-01-14 21:05:40 +0400680 sata0: sata@ee300000 {
681 compatible = "renesas,sata-r8a7791";
682 reg = <0 0xee300000 0 0x2000>;
Valentine Barshakb8532c62014-01-14 21:05:40 +0400683 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
684 clocks = <&mstp8_clks R8A7791_CLK_SATA0>;
685 status = "disabled";
686 };
687
688 sata1: sata@ee500000 {
689 compatible = "renesas,sata-r8a7791";
690 reg = <0 0xee500000 0 0x2000>;
Valentine Barshakb8532c62014-01-14 21:05:40 +0400691 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
692 clocks = <&mstp8_clks R8A7791_CLK_SATA1>;
693 status = "disabled";
694 };
695
Yoshihiro Shimoda1c1fee72014-10-24 19:45:06 +0900696 hsusb: usb@e6590000 {
697 compatible = "renesas,usbhs-r8a7791";
698 reg = <0 0xe6590000 0 0x100>;
699 interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
700 clocks = <&mstp7_clks R8A7791_CLK_HSUSB>;
701 renesas,buswait = <4>;
702 phys = <&usb0 1>;
703 phy-names = "usb";
704 status = "disabled";
705 };
706
Sergei Shtylyov3b7e5302014-09-27 01:08:12 +0400707 usbphy: usb-phy@e6590100 {
708 compatible = "renesas,usb-phy-r8a7791";
709 reg = <0 0xe6590100 0 0x100>;
710 #address-cells = <1>;
711 #size-cells = <0>;
712 clocks = <&mstp7_clks R8A7791_CLK_HSUSB>;
713 clock-names = "usbhs";
714 status = "disabled";
715
716 usb0: usb-channel@0 {
717 reg = <0>;
718 #phy-cells = <1>;
719 };
720 usb2: usb-channel@2 {
721 reg = <2>;
722 #phy-cells = <1>;
723 };
724 };
725
Sergei Shtylyov0b8d1d52014-08-02 04:04:21 +0400726 vin0: video@e6ef0000 {
727 compatible = "renesas,vin-r8a7791";
728 clocks = <&mstp8_clks R8A7791_CLK_VIN0>;
729 reg = <0 0xe6ef0000 0 0x1000>;
730 interrupts = <0 188 IRQ_TYPE_LEVEL_HIGH>;
731 status = "disabled";
732 };
733
734 vin1: video@e6ef1000 {
735 compatible = "renesas,vin-r8a7791";
736 clocks = <&mstp8_clks R8A7791_CLK_VIN1>;
737 reg = <0 0xe6ef1000 0 0x1000>;
738 interrupts = <0 189 IRQ_TYPE_LEVEL_HIGH>;
739 status = "disabled";
740 };
741
742 vin2: video@e6ef2000 {
743 compatible = "renesas,vin-r8a7791";
744 clocks = <&mstp8_clks R8A7791_CLK_VIN2>;
745 reg = <0 0xe6ef2000 0 0x1000>;
746 interrupts = <0 190 IRQ_TYPE_LEVEL_HIGH>;
747 status = "disabled";
748 };
749
Laurent Pinchart8eefac22014-01-21 16:00:46 +0100750 vsp1@fe928000 {
751 compatible = "renesas,vsp1";
752 reg = <0 0xfe928000 0 0x8000>;
753 interrupts = <0 267 IRQ_TYPE_LEVEL_HIGH>;
754 clocks = <&mstp1_clks R8A7791_CLK_VSP1_S>;
755
756 renesas,has-lut;
757 renesas,has-sru;
758 renesas,#rpf = <5>;
759 renesas,#uds = <3>;
760 renesas,#wpf = <4>;
761 };
762
763 vsp1@fe930000 {
764 compatible = "renesas,vsp1";
765 reg = <0 0xfe930000 0 0x8000>;
766 interrupts = <0 246 IRQ_TYPE_LEVEL_HIGH>;
767 clocks = <&mstp1_clks R8A7791_CLK_VSP1_DU0>;
768
769 renesas,has-lif;
770 renesas,has-lut;
771 renesas,#rpf = <4>;
772 renesas,#uds = <1>;
773 renesas,#wpf = <4>;
774 };
775
776 vsp1@fe938000 {
777 compatible = "renesas,vsp1";
778 reg = <0 0xfe938000 0 0x8000>;
779 interrupts = <0 247 IRQ_TYPE_LEVEL_HIGH>;
780 clocks = <&mstp1_clks R8A7791_CLK_VSP1_DU1>;
781
782 renesas,has-lif;
783 renesas,has-lut;
784 renesas,#rpf = <4>;
785 renesas,#uds = <1>;
786 renesas,#wpf = <4>;
787 };
788
789 du: display@feb00000 {
790 compatible = "renesas,du-r8a7791";
791 reg = <0 0xfeb00000 0 0x40000>,
792 <0 0xfeb90000 0 0x1c>;
793 reg-names = "du", "lvds.0";
794 interrupts = <0 256 IRQ_TYPE_LEVEL_HIGH>,
795 <0 268 IRQ_TYPE_LEVEL_HIGH>;
796 clocks = <&mstp7_clks R8A7791_CLK_DU0>,
797 <&mstp7_clks R8A7791_CLK_DU1>,
798 <&mstp7_clks R8A7791_CLK_LVDS0>;
799 clock-names = "du.0", "du.1", "lvds.0";
800 status = "disabled";
801
802 ports {
803 #address-cells = <1>;
804 #size-cells = <0>;
805
806 port@0 {
807 reg = <0>;
808 du_out_rgb: endpoint {
809 };
810 };
811 port@1 {
812 reg = <1>;
813 du_out_lvds0: endpoint {
814 };
815 };
816 };
817 };
818
Laurent Pinchart59e79892013-12-11 15:05:16 +0100819 clocks {
820 #address-cells = <2>;
821 #size-cells = <2>;
822 ranges;
823
824 /* External root clock */
825 extal_clk: extal_clk {
826 compatible = "fixed-clock";
827 #clock-cells = <0>;
828 /* This value must be overriden by the board. */
829 clock-frequency = <0>;
830 clock-output-names = "extal";
831 };
832
Kuninori Morimoto0d3dbde2014-06-11 21:44:04 -0700833 /*
834 * The external audio clocks are configured as 0 Hz fixed frequency clocks by
835 * default. Boards that provide audio clocks should override them.
836 */
837 audio_clk_a: audio_clk_a {
838 compatible = "fixed-clock";
839 #clock-cells = <0>;
840 clock-frequency = <0>;
841 clock-output-names = "audio_clk_a";
842 };
843 audio_clk_b: audio_clk_b {
844 compatible = "fixed-clock";
845 #clock-cells = <0>;
846 clock-frequency = <0>;
847 clock-output-names = "audio_clk_b";
848 };
849 audio_clk_c: audio_clk_c {
850 compatible = "fixed-clock";
851 #clock-cells = <0>;
852 clock-frequency = <0>;
853 clock-output-names = "audio_clk_c";
854 };
855
Phil Edworthy66c405e2014-06-13 10:37:19 +0100856 /* External PCIe clock - can be overridden by the board */
857 pcie_bus_clk: pcie_bus_clk {
858 compatible = "fixed-clock";
859 #clock-cells = <0>;
860 clock-frequency = <100000000>;
861 clock-output-names = "pcie_bus";
862 status = "disabled";
863 };
864
Laurent Pinchart59e79892013-12-11 15:05:16 +0100865 /* Special CPG clocks */
866 cpg_clocks: cpg_clocks@e6150000 {
867 compatible = "renesas,r8a7791-cpg-clocks",
868 "renesas,rcar-gen2-cpg-clocks";
869 reg = <0 0xe6150000 0 0x1000>;
870 clocks = <&extal_clk>;
871 #clock-cells = <1>;
872 clock-output-names = "main", "pll0", "pll1", "pll3",
873 "lb", "qspi", "sdh", "sd0", "z";
874 };
875
876 /* Variable factor clocks */
877 sd1_clk: sd2_clk@e6150078 {
878 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
879 reg = <0 0xe6150078 0 4>;
880 clocks = <&pll1_div2_clk>;
881 #clock-cells = <0>;
882 clock-output-names = "sd1";
883 };
Shinobu Ueharac9b22772014-07-21 22:04:29 -0700884 sd2_clk: sd3_clk@e615026c {
Laurent Pinchart59e79892013-12-11 15:05:16 +0100885 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
Shinobu Ueharac9b22772014-07-21 22:04:29 -0700886 reg = <0 0xe615026c 0 4>;
Laurent Pinchart59e79892013-12-11 15:05:16 +0100887 clocks = <&pll1_div2_clk>;
888 #clock-cells = <0>;
889 clock-output-names = "sd2";
890 };
891 mmc0_clk: mmc0_clk@e6150240 {
892 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
893 reg = <0 0xe6150240 0 4>;
894 clocks = <&pll1_div2_clk>;
895 #clock-cells = <0>;
896 clock-output-names = "mmc0";
897 };
898 ssp_clk: ssp_clk@e6150248 {
899 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
900 reg = <0 0xe6150248 0 4>;
901 clocks = <&pll1_div2_clk>;
902 #clock-cells = <0>;
903 clock-output-names = "ssp";
904 };
905 ssprs_clk: ssprs_clk@e615024c {
906 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
907 reg = <0 0xe615024c 0 4>;
908 clocks = <&pll1_div2_clk>;
909 #clock-cells = <0>;
910 clock-output-names = "ssprs";
911 };
912
913 /* Fixed factor clocks */
914 pll1_div2_clk: pll1_div2_clk {
915 compatible = "fixed-factor-clock";
916 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
917 #clock-cells = <0>;
918 clock-div = <2>;
919 clock-mult = <1>;
920 clock-output-names = "pll1_div2";
921 };
922 zg_clk: zg_clk {
923 compatible = "fixed-factor-clock";
924 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
925 #clock-cells = <0>;
926 clock-div = <3>;
927 clock-mult = <1>;
928 clock-output-names = "zg";
929 };
930 zx_clk: zx_clk {
931 compatible = "fixed-factor-clock";
932 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
933 #clock-cells = <0>;
934 clock-div = <3>;
935 clock-mult = <1>;
936 clock-output-names = "zx";
937 };
938 zs_clk: zs_clk {
939 compatible = "fixed-factor-clock";
940 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
941 #clock-cells = <0>;
942 clock-div = <6>;
943 clock-mult = <1>;
944 clock-output-names = "zs";
945 };
946 hp_clk: hp_clk {
947 compatible = "fixed-factor-clock";
948 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
949 #clock-cells = <0>;
950 clock-div = <12>;
951 clock-mult = <1>;
952 clock-output-names = "hp";
953 };
954 i_clk: i_clk {
955 compatible = "fixed-factor-clock";
956 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
957 #clock-cells = <0>;
958 clock-div = <2>;
959 clock-mult = <1>;
960 clock-output-names = "i";
961 };
962 b_clk: b_clk {
963 compatible = "fixed-factor-clock";
964 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
965 #clock-cells = <0>;
966 clock-div = <12>;
967 clock-mult = <1>;
968 clock-output-names = "b";
969 };
970 p_clk: p_clk {
971 compatible = "fixed-factor-clock";
972 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
973 #clock-cells = <0>;
974 clock-div = <24>;
975 clock-mult = <1>;
976 clock-output-names = "p";
977 };
978 cl_clk: cl_clk {
979 compatible = "fixed-factor-clock";
980 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
981 #clock-cells = <0>;
982 clock-div = <48>;
983 clock-mult = <1>;
984 clock-output-names = "cl";
985 };
986 m2_clk: m2_clk {
987 compatible = "fixed-factor-clock";
988 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
989 #clock-cells = <0>;
990 clock-div = <8>;
991 clock-mult = <1>;
992 clock-output-names = "m2";
993 };
994 imp_clk: imp_clk {
995 compatible = "fixed-factor-clock";
996 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
997 #clock-cells = <0>;
998 clock-div = <4>;
999 clock-mult = <1>;
1000 clock-output-names = "imp";
1001 };
1002 rclk_clk: rclk_clk {
1003 compatible = "fixed-factor-clock";
1004 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1005 #clock-cells = <0>;
1006 clock-div = <(48 * 1024)>;
1007 clock-mult = <1>;
1008 clock-output-names = "rclk";
1009 };
1010 oscclk_clk: oscclk_clk {
1011 compatible = "fixed-factor-clock";
1012 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1013 #clock-cells = <0>;
1014 clock-div = <(12 * 1024)>;
1015 clock-mult = <1>;
1016 clock-output-names = "oscclk";
1017 };
1018 zb3_clk: zb3_clk {
1019 compatible = "fixed-factor-clock";
1020 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1021 #clock-cells = <0>;
1022 clock-div = <4>;
1023 clock-mult = <1>;
1024 clock-output-names = "zb3";
1025 };
1026 zb3d2_clk: zb3d2_clk {
1027 compatible = "fixed-factor-clock";
1028 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1029 #clock-cells = <0>;
1030 clock-div = <8>;
1031 clock-mult = <1>;
1032 clock-output-names = "zb3d2";
1033 };
1034 ddr_clk: ddr_clk {
1035 compatible = "fixed-factor-clock";
1036 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1037 #clock-cells = <0>;
1038 clock-div = <8>;
1039 clock-mult = <1>;
1040 clock-output-names = "ddr";
1041 };
1042 mp_clk: mp_clk {
1043 compatible = "fixed-factor-clock";
1044 clocks = <&pll1_div2_clk>;
1045 #clock-cells = <0>;
1046 clock-div = <15>;
1047 clock-mult = <1>;
1048 clock-output-names = "mp";
1049 };
1050 cp_clk: cp_clk {
1051 compatible = "fixed-factor-clock";
1052 clocks = <&extal_clk>;
1053 #clock-cells = <0>;
1054 clock-div = <2>;
1055 clock-mult = <1>;
1056 clock-output-names = "cp";
1057 };
1058
1059 /* Gate clocks */
Laurent Pinchartcded80f2013-12-19 16:51:02 +01001060 mstp0_clks: mstp0_clks@e6150130 {
1061 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1062 reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
1063 clocks = <&mp_clk>;
1064 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001065 clock-indices = <R8A7791_CLK_MSIOF0>;
Laurent Pinchartcded80f2013-12-19 16:51:02 +01001066 clock-output-names = "msiof0";
1067 };
Laurent Pinchart59e79892013-12-11 15:05:16 +01001068 mstp1_clks: mstp1_clks@e6150134 {
1069 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1070 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001071 clocks = <&zs_clk>, <&zs_clk>, <&m2_clk>, <&zs_clk>, <&p_clk>,
1072 <&zg_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>,
1073 <&p_clk>, <&rclk_clk>, <&cp_clk>, <&zs_clk>, <&zs_clk>,
1074 <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001075 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001076 clock-indices = <
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001077 R8A7791_CLK_VCP0 R8A7791_CLK_VPC0 R8A7791_CLK_JPU
1078 R8A7791_CLK_SSP1 R8A7791_CLK_TMU1 R8A7791_CLK_3DG
1079 R8A7791_CLK_2DDMAC R8A7791_CLK_FDP1_1 R8A7791_CLK_FDP1_0
1080 R8A7791_CLK_TMU3 R8A7791_CLK_TMU2 R8A7791_CLK_CMT0
1081 R8A7791_CLK_TMU0 R8A7791_CLK_VSP1_DU1 R8A7791_CLK_VSP1_DU0
1082 R8A7791_CLK_VSP1_S
Laurent Pinchart59e79892013-12-11 15:05:16 +01001083 >;
1084 clock-output-names =
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001085 "vcp0", "vpc0", "jpu", "ssp1", "tmu1", "3dg",
1086 "2ddmac", "fdp1-1", "fdp1-0", "tmu3", "tmu2", "cmt0",
1087 "tmu0", "vsp1-du1", "vsp1-du0", "vsp1-sy";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001088 };
1089 mstp2_clks: mstp2_clks@e6150138 {
1090 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1091 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
1092 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001093 <&mp_clk>, <&mp_clk>, <&mp_clk>,
1094 <&zs_clk>, <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001095 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001096 clock-indices = <
Laurent Pinchart59e79892013-12-11 15:05:16 +01001097 R8A7791_CLK_SCIFA2 R8A7791_CLK_SCIFA1 R8A7791_CLK_SCIFA0
Laurent Pinchartcded80f2013-12-19 16:51:02 +01001098 R8A7791_CLK_MSIOF2 R8A7791_CLK_SCIFB0 R8A7791_CLK_SCIFB1
1099 R8A7791_CLK_MSIOF1 R8A7791_CLK_SCIFB2
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001100 R8A7791_CLK_SYS_DMAC1 R8A7791_CLK_SYS_DMAC0
Laurent Pinchart59e79892013-12-11 15:05:16 +01001101 >;
1102 clock-output-names =
Geert Uytterhoeven0c002ef2014-02-20 15:49:29 +01001103 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001104 "scifb1", "msiof1", "scifb2",
1105 "sys-dmac1", "sys-dmac0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001106 };
1107 mstp3_clks: mstp3_clks@e615013c {
1108 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1109 reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
Wolfram Sangc08691b2014-03-10 12:26:57 +01001110 clocks = <&cp_clk>, <&sd2_clk>, <&sd1_clk>, <&cpg_clocks R8A7791_CLK_SD0>,
Yoshihiro Shimodab9473d92014-11-17 18:25:25 +09001111 <&mmc0_clk>, <&hp_clk>, <&mp_clk>, <&hp_clk>, <&mp_clk>, <&rclk_clk>,
1112 <&hp_clk>, <&hp_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001113 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001114 clock-indices = <
Wolfram Sangc08691b2014-03-10 12:26:57 +01001115 R8A7791_CLK_TPU0 R8A7791_CLK_SDHI2 R8A7791_CLK_SDHI1 R8A7791_CLK_SDHI0
Phil Edworthy4bfb3762014-06-13 10:37:18 +01001116 R8A7791_CLK_MMCIF0 R8A7791_CLK_IIC0 R8A7791_CLK_PCIEC R8A7791_CLK_IIC1
1117 R8A7791_CLK_SSUSB R8A7791_CLK_CMT1
Yoshihiro Shimodab9473d92014-11-17 18:25:25 +09001118 R8A7791_CLK_USBDMAC0 R8A7791_CLK_USBDMAC1
Laurent Pinchart59e79892013-12-11 15:05:16 +01001119 >;
1120 clock-output-names =
Wolfram Sangc08691b2014-03-10 12:26:57 +01001121 "tpu0", "sdhi2", "sdhi1", "sdhi0",
Yoshihiro Shimodab9473d92014-11-17 18:25:25 +09001122 "mmcif0", "i2c7", "pciec", "i2c8", "ssusb", "cmt1",
1123 "usbdmac0", "usbdmac1";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001124 };
1125 mstp5_clks: mstp5_clks@e6150144 {
1126 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1127 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
Kuninori Morimoto8994fff2014-11-03 17:45:37 -08001128 clocks = <&hp_clk>, <&hp_clk>, <&extal_clk>, <&p_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001129 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001130 clock-indices = <
1131 R8A7791_CLK_AUDIO_DMAC0 R8A7791_CLK_AUDIO_DMAC1
1132 R8A7791_CLK_THERMAL R8A7791_CLK_PWM
1133 >;
Kuninori Morimoto8994fff2014-11-03 17:45:37 -08001134 clock-output-names = "audmac0", "audmac1", "thermal", "pwm";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001135 };
1136 mstp7_clks: mstp7_clks@e615014c {
1137 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1138 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
Magnus Damm6225b992014-04-07 15:04:21 +09001139 clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zs_clk>,
Laurent Pinchart59e79892013-12-11 15:05:16 +01001140 <&zs_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1141 <&zx_clk>, <&zx_clk>, <&zx_clk>;
1142 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001143 clock-indices = <
Magnus Damm6225b992014-04-07 15:04:21 +09001144 R8A7791_CLK_EHCI R8A7791_CLK_HSUSB R8A7791_CLK_HSCIF2 R8A7791_CLK_SCIF5
Laurent Pinchart59e79892013-12-11 15:05:16 +01001145 R8A7791_CLK_SCIF4 R8A7791_CLK_HSCIF1 R8A7791_CLK_HSCIF0
1146 R8A7791_CLK_SCIF3 R8A7791_CLK_SCIF2 R8A7791_CLK_SCIF1
1147 R8A7791_CLK_SCIF0 R8A7791_CLK_DU1 R8A7791_CLK_DU0
1148 R8A7791_CLK_LVDS0
1149 >;
1150 clock-output-names =
Magnus Damm6225b992014-04-07 15:04:21 +09001151 "ehci", "hsusb", "hscif2", "scif5", "scif4", "hscif1", "hscif0",
Laurent Pinchart59e79892013-12-11 15:05:16 +01001152 "scif3", "scif2", "scif1", "scif0", "du1", "du0", "lvds0";
1153 };
1154 mstp8_clks: mstp8_clks@e6150990 {
1155 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1156 reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
Sergei Shtylyov2fd4e092015-01-13 01:31:14 +03001157 clocks = <&zg_clk>, <&hp_clk>, <&zg_clk>, <&zg_clk>,
Andrey Gusakov7408d302014-12-18 23:43:03 +03001158 <&zg_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001159 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001160 clock-indices = <
Andrey Gusakov7408d302014-12-18 23:43:03 +03001161 R8A7791_CLK_IPMMU_SGX R8A7791_CLK_MLB
Laurent Pinchart09c98342014-01-07 09:22:54 +01001162 R8A7791_CLK_VIN2 R8A7791_CLK_VIN1 R8A7791_CLK_VIN0
Laurent Pinchart65f05c32014-01-07 09:22:56 +01001163 R8A7791_CLK_ETHER R8A7791_CLK_SATA1 R8A7791_CLK_SATA0
Laurent Pinchart09c98342014-01-07 09:22:54 +01001164 >;
Laurent Pinchart65f05c32014-01-07 09:22:56 +01001165 clock-output-names =
Andrey Gusakov7408d302014-12-18 23:43:03 +03001166 "ipmmu_sgx", "mlb", "vin2", "vin1", "vin0", "ether",
1167 "sata1", "sata0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001168 };
1169 mstp9_clks: mstp9_clks@e6150994 {
1170 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1171 reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001172 clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
1173 <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
1174 <&p_clk>, <&p_clk>, <&cpg_clocks R8A7791_CLK_QSPI>, <&hp_clk>,
Laurent Pinchart11b48db2014-04-01 13:02:18 +02001175 <&cp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>,
1176 <&hp_clk>, <&hp_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001177 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001178 clock-indices = <
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001179 R8A7791_CLK_GPIO7 R8A7791_CLK_GPIO6 R8A7791_CLK_GPIO5 R8A7791_CLK_GPIO4
1180 R8A7791_CLK_GPIO3 R8A7791_CLK_GPIO2 R8A7791_CLK_GPIO1 R8A7791_CLK_GPIO0
Wolfram Sangc08691b2014-03-10 12:26:57 +01001181 R8A7791_CLK_RCAN1 R8A7791_CLK_RCAN0 R8A7791_CLK_QSPI_MOD R8A7791_CLK_I2C5
1182 R8A7791_CLK_IICDVFS R8A7791_CLK_I2C4 R8A7791_CLK_I2C3 R8A7791_CLK_I2C2
1183 R8A7791_CLK_I2C1 R8A7791_CLK_I2C0
Laurent Pinchart59e79892013-12-11 15:05:16 +01001184 >;
1185 clock-output-names =
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001186 "gpio7", "gpio6", "gpio5", "gpio4", "gpio3", "gpio2", "gpio1", "gpio0",
1187 "rcan1", "rcan0", "qspi_mod", "i2c5", "i2c6", "i2c4", "i2c3", "i2c2",
1188 "i2c1", "i2c0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001189 };
Kuninori Morimotoee914152014-06-11 21:44:16 -07001190 mstp10_clks: mstp10_clks@e6150998 {
1191 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1192 reg = <0 0xe6150998 0 4>, <0 0xe61509a8 0 4>;
1193 clocks = <&p_clk>,
1194 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1195 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1196 <&p_clk>,
1197 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1198 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1199 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1200 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1201 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1202 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>;
1203
1204 #clock-cells = <1>;
1205 clock-indices = <
1206 R8A7791_CLK_SSI_ALL
1207 R8A7791_CLK_SSI9 R8A7791_CLK_SSI8 R8A7791_CLK_SSI7 R8A7791_CLK_SSI6 R8A7791_CLK_SSI5
1208 R8A7791_CLK_SSI4 R8A7791_CLK_SSI3 R8A7791_CLK_SSI2 R8A7791_CLK_SSI1 R8A7791_CLK_SSI0
1209 R8A7791_CLK_SCU_ALL
1210 R8A7791_CLK_SCU_DVC1 R8A7791_CLK_SCU_DVC0
1211 R8A7791_CLK_SCU_SRC9 R8A7791_CLK_SCU_SRC8 R8A7791_CLK_SCU_SRC7 R8A7791_CLK_SCU_SRC6 R8A7791_CLK_SCU_SRC5
1212 R8A7791_CLK_SCU_SRC4 R8A7791_CLK_SCU_SRC3 R8A7791_CLK_SCU_SRC2 R8A7791_CLK_SCU_SRC1 R8A7791_CLK_SCU_SRC0
1213 >;
1214 clock-output-names =
1215 "ssi-all",
1216 "ssi9", "ssi8", "ssi7", "ssi6", "ssi5",
1217 "ssi4", "ssi3", "ssi2", "ssi1", "ssi0",
1218 "scu-all",
1219 "scu-dvc1", "scu-dvc0",
1220 "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5",
1221 "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0";
1222 };
Laurent Pinchart59e79892013-12-11 15:05:16 +01001223 mstp11_clks: mstp11_clks@e615099c {
1224 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1225 reg = <0 0xe615099c 0 4>, <0 0xe61509ac 0 4>;
1226 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>;
1227 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001228 clock-indices = <
Laurent Pinchart59e79892013-12-11 15:05:16 +01001229 R8A7791_CLK_SCIFA3 R8A7791_CLK_SCIFA4 R8A7791_CLK_SCIFA5
1230 >;
1231 clock-output-names = "scifa3", "scifa4", "scifa5";
1232 };
1233 };
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001234
Geert Uytterhoeven6f3e4ee2014-02-25 11:30:14 +01001235 qspi: spi@e6b10000 {
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001236 compatible = "renesas,qspi-r8a7791", "renesas,qspi";
1237 reg = <0 0xe6b10000 0 0x2c>;
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001238 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
1239 clocks = <&mstp9_clks R8A7791_CLK_QSPI_MOD>;
Geert Uytterhoeven591f2fa2014-08-06 14:59:06 +02001240 dmas = <&dmac0 0x17>, <&dmac0 0x18>;
1241 dma-names = "tx", "rx";
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001242 num-cs = <1>;
1243 #address-cells = <1>;
1244 #size-cells = <0>;
1245 status = "disabled";
1246 };
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001247
1248 msiof0: spi@e6e20000 {
1249 compatible = "renesas,msiof-r8a7791";
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001250 reg = <0 0xe6e20000 0 0x0064>, <0 0xe7e20000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001251 interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>;
1252 clocks = <&mstp0_clks R8A7791_CLK_MSIOF0>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001253 dmas = <&dmac0 0x51>, <&dmac0 0x52>;
1254 dma-names = "tx", "rx";
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001255 #address-cells = <1>;
1256 #size-cells = <0>;
1257 status = "disabled";
1258 };
1259
1260 msiof1: spi@e6e10000 {
1261 compatible = "renesas,msiof-r8a7791";
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001262 reg = <0 0xe6e10000 0 0x0064>, <0 0xe7e10000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001263 interrupts = <0 157 IRQ_TYPE_LEVEL_HIGH>;
1264 clocks = <&mstp2_clks R8A7791_CLK_MSIOF1>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001265 dmas = <&dmac0 0x55>, <&dmac0 0x56>;
1266 dma-names = "tx", "rx";
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001267 #address-cells = <1>;
1268 #size-cells = <0>;
1269 status = "disabled";
1270 };
1271
1272 msiof2: spi@e6e00000 {
1273 compatible = "renesas,msiof-r8a7791";
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001274 reg = <0 0xe6e00000 0 0x0064>, <0 0xe7e00000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001275 interrupts = <0 158 IRQ_TYPE_LEVEL_HIGH>;
1276 clocks = <&mstp2_clks R8A7791_CLK_MSIOF2>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001277 dmas = <&dmac0 0x41>, <&dmac0 0x42>;
1278 dma-names = "tx", "rx";
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001279 #address-cells = <1>;
1280 #size-cells = <0>;
1281 status = "disabled";
1282 };
Phil Edworthy811cdfa2014-06-13 10:37:20 +01001283
Yoshihiro Shimodac1969312014-10-24 19:43:02 +09001284 xhci: usb@ee000000 {
1285 compatible = "renesas,xhci-r8a7791";
1286 reg = <0 0xee000000 0 0xc00>;
1287 interrupts = <0 101 IRQ_TYPE_LEVEL_HIGH>;
1288 clocks = <&mstp3_clks R8A7791_CLK_SSUSB>;
1289 phys = <&usb2 1>;
1290 phy-names = "usb";
1291 status = "disabled";
1292 };
1293
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001294 pci0: pci@ee090000 {
1295 compatible = "renesas,pci-r8a7791";
1296 device_type = "pci";
1297 clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
1298 reg = <0 0xee090000 0 0xc00>,
1299 <0 0xee080000 0 0x1100>;
1300 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
1301 status = "disabled";
1302
1303 bus-range = <0 0>;
1304 #address-cells = <3>;
1305 #size-cells = <2>;
1306 #interrupt-cells = <1>;
1307 ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>;
1308 interrupt-map-mask = <0xff00 0 0 0x7>;
1309 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1310 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1311 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyove1bce122014-09-29 22:23:11 +04001312
1313 usb@0,1 {
1314 reg = <0x800 0 0 0 0>;
1315 device_type = "pci";
1316 phys = <&usb0 0>;
1317 phy-names = "usb";
1318 };
1319
1320 usb@0,2 {
1321 reg = <0x1000 0 0 0 0>;
1322 device_type = "pci";
1323 phys = <&usb0 0>;
1324 phy-names = "usb";
1325 };
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001326 };
1327
1328 pci1: pci@ee0d0000 {
1329 compatible = "renesas,pci-r8a7791";
1330 device_type = "pci";
1331 clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
1332 reg = <0 0xee0d0000 0 0xc00>,
1333 <0 0xee0c0000 0 0x1100>;
1334 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
1335 status = "disabled";
1336
1337 bus-range = <1 1>;
1338 #address-cells = <3>;
1339 #size-cells = <2>;
1340 #interrupt-cells = <1>;
1341 ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>;
1342 interrupt-map-mask = <0xff00 0 0 0x7>;
1343 interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1344 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1345 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyove1bce122014-09-29 22:23:11 +04001346
1347 usb@0,1 {
1348 reg = <0x800 0 0 0 0>;
1349 device_type = "pci";
1350 phys = <&usb2 0>;
1351 phy-names = "usb";
1352 };
1353
1354 usb@0,2 {
1355 reg = <0x1000 0 0 0 0>;
1356 device_type = "pci";
1357 phys = <&usb2 0>;
1358 phy-names = "usb";
1359 };
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001360 };
1361
Phil Edworthy811cdfa2014-06-13 10:37:20 +01001362 pciec: pcie@fe000000 {
1363 compatible = "renesas,pcie-r8a7791";
1364 reg = <0 0xfe000000 0 0x80000>;
1365 #address-cells = <3>;
1366 #size-cells = <2>;
1367 bus-range = <0x00 0xff>;
1368 device_type = "pci";
1369 ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000
1370 0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000
1371 0x02000000 0 0x30000000 0 0x30000000 0 0x08000000
1372 0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;
1373 /* Map all possible DDR as inbound ranges */
1374 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000
1375 0x43000000 2 0x00000000 2 0x00000000 1 0x00000000>;
1376 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>,
1377 <0 117 IRQ_TYPE_LEVEL_HIGH>,
1378 <0 118 IRQ_TYPE_LEVEL_HIGH>;
1379 #interrupt-cells = <1>;
1380 interrupt-map-mask = <0 0 0 0>;
1381 interrupt-map = <0 0 0 0 &gic 0 116 IRQ_TYPE_LEVEL_HIGH>;
1382 clocks = <&mstp3_clks R8A7791_CLK_PCIEC>, <&pcie_bus_clk>;
1383 clock-names = "pcie", "pcie_bus";
1384 status = "disabled";
1385 };
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001386
Geert Uytterhoeven6b83dc12014-10-29 15:30:52 +01001387 rcar_sound: rcar_sound@ec500000 {
Kuninori Morimotod2b541c2014-12-17 06:12:02 +00001388 /*
1389 * #sound-dai-cells is required
1390 *
1391 * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>;
1392 * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>;
1393 */
Geert Uytterhoevenf49cd2b2015-01-06 21:01:53 +01001394 compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2";
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001395 reg = <0 0xec500000 0 0x1000>, /* SCU */
1396 <0 0xec5a0000 0 0x100>, /* ADG */
1397 <0 0xec540000 0 0x1000>, /* SSIU */
1398 <0 0xec541000 0 0x1280>; /* SSI */
1399 clocks = <&mstp10_clks R8A7791_CLK_SSI_ALL>,
1400 <&mstp10_clks R8A7791_CLK_SSI9>, <&mstp10_clks R8A7791_CLK_SSI8>,
1401 <&mstp10_clks R8A7791_CLK_SSI7>, <&mstp10_clks R8A7791_CLK_SSI6>,
1402 <&mstp10_clks R8A7791_CLK_SSI5>, <&mstp10_clks R8A7791_CLK_SSI4>,
1403 <&mstp10_clks R8A7791_CLK_SSI3>, <&mstp10_clks R8A7791_CLK_SSI2>,
1404 <&mstp10_clks R8A7791_CLK_SSI1>, <&mstp10_clks R8A7791_CLK_SSI0>,
1405 <&mstp10_clks R8A7791_CLK_SCU_SRC9>, <&mstp10_clks R8A7791_CLK_SCU_SRC8>,
1406 <&mstp10_clks R8A7791_CLK_SCU_SRC7>, <&mstp10_clks R8A7791_CLK_SCU_SRC6>,
1407 <&mstp10_clks R8A7791_CLK_SCU_SRC5>, <&mstp10_clks R8A7791_CLK_SCU_SRC4>,
1408 <&mstp10_clks R8A7791_CLK_SCU_SRC3>, <&mstp10_clks R8A7791_CLK_SCU_SRC2>,
1409 <&mstp10_clks R8A7791_CLK_SCU_SRC1>, <&mstp10_clks R8A7791_CLK_SCU_SRC0>,
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001410 <&mstp10_clks R8A7791_CLK_SCU_DVC0>, <&mstp10_clks R8A7791_CLK_SCU_DVC1>,
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001411 <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>;
1412 clock-names = "ssi-all",
1413 "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5",
1414 "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0",
1415 "src.9", "src.8", "src.7", "src.6", "src.5",
1416 "src.4", "src.3", "src.2", "src.1", "src.0",
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001417 "dvc.0", "dvc.1",
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001418 "clk_a", "clk_b", "clk_c", "clk_i";
1419
1420 status = "disabled";
1421
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001422 rcar_sound,dvc {
1423 dvc0: dvc@0 { };
1424 dvc1: dvc@1 { };
1425 };
1426
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001427 rcar_sound,src {
Kuninori Morimoto8856102d2015-01-08 01:55:27 +00001428 src0: src@0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; };
1429 src1: src@1 { interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; };
1430 src2: src@2 { interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; };
1431 src3: src@3 { interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; };
1432 src4: src@4 { interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; };
1433 src5: src@5 { interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; };
1434 src6: src@6 { interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; };
1435 src7: src@7 { interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; };
1436 src8: src@8 { interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; };
1437 src9: src@9 { interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; };
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001438 };
1439
1440 rcar_sound,ssi {
1441 ssi0: ssi@0 { interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; };
1442 ssi1: ssi@1 { interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>; };
1443 ssi2: ssi@2 { interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>; };
1444 ssi3: ssi@3 { interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>; };
1445 ssi4: ssi@4 { interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>; };
1446 ssi5: ssi@5 { interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>; };
1447 ssi6: ssi@6 { interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>; };
1448 ssi7: ssi@7 { interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>; };
1449 ssi8: ssi@8 { interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>; };
1450 ssi9: ssi@9 { interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>; };
1451 };
1452 };
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +09001453};