blob: 1ebffef5b908e24617f2dbbc1782f8e052726c8e [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
Sergei Shtylyovb3242522015-01-06 01:24:08 +0300865 /* External USB clock - can be overridden by the board */
866 usb_extal_clk: usb_extal_clk {
867 compatible = "fixed-clock";
868 #clock-cells = <0>;
869 clock-frequency = <48000000>;
870 clock-output-names = "usb_extal";
871 };
872
873 /* External CAN clock */
874 can_clk: can_clk {
875 compatible = "fixed-clock";
876 #clock-cells = <0>;
877 /* This value must be overridden by the board. */
878 clock-frequency = <0>;
879 clock-output-names = "can_clk";
880 status = "disabled";
881 };
882
Laurent Pinchart59e79892013-12-11 15:05:16 +0100883 /* Special CPG clocks */
884 cpg_clocks: cpg_clocks@e6150000 {
885 compatible = "renesas,r8a7791-cpg-clocks",
886 "renesas,rcar-gen2-cpg-clocks";
887 reg = <0 0xe6150000 0 0x1000>;
Sergei Shtylyovb3242522015-01-06 01:24:08 +0300888 clocks = <&extal_clk &usb_extal_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +0100889 #clock-cells = <1>;
890 clock-output-names = "main", "pll0", "pll1", "pll3",
Sergei Shtylyovb3242522015-01-06 01:24:08 +0300891 "lb", "qspi", "sdh", "sd0", "z",
892 "rcan";
Laurent Pinchart59e79892013-12-11 15:05:16 +0100893 };
894
895 /* Variable factor clocks */
Simon Horman2ea0d4e2015-01-29 10:41:24 +0900896 sd2_clk: sd2_clk@e6150078 {
Laurent Pinchart59e79892013-12-11 15:05:16 +0100897 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
898 reg = <0 0xe6150078 0 4>;
899 clocks = <&pll1_div2_clk>;
900 #clock-cells = <0>;
Simon Horman2ea0d4e2015-01-29 10:41:24 +0900901 clock-output-names = "sd2";
Laurent Pinchart59e79892013-12-11 15:05:16 +0100902 };
Simon Horman2ea0d4e2015-01-29 10:41:24 +0900903 sd3_clk: sd3_clk@e615026c {
Laurent Pinchart59e79892013-12-11 15:05:16 +0100904 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
Shinobu Ueharac9b22772014-07-21 22:04:29 -0700905 reg = <0 0xe615026c 0 4>;
Laurent Pinchart59e79892013-12-11 15:05:16 +0100906 clocks = <&pll1_div2_clk>;
907 #clock-cells = <0>;
Simon Horman2ea0d4e2015-01-29 10:41:24 +0900908 clock-output-names = "sd3";
Laurent Pinchart59e79892013-12-11 15:05:16 +0100909 };
910 mmc0_clk: mmc0_clk@e6150240 {
911 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
912 reg = <0 0xe6150240 0 4>;
913 clocks = <&pll1_div2_clk>;
914 #clock-cells = <0>;
915 clock-output-names = "mmc0";
916 };
917 ssp_clk: ssp_clk@e6150248 {
918 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
919 reg = <0 0xe6150248 0 4>;
920 clocks = <&pll1_div2_clk>;
921 #clock-cells = <0>;
922 clock-output-names = "ssp";
923 };
924 ssprs_clk: ssprs_clk@e615024c {
925 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
926 reg = <0 0xe615024c 0 4>;
927 clocks = <&pll1_div2_clk>;
928 #clock-cells = <0>;
929 clock-output-names = "ssprs";
930 };
931
932 /* Fixed factor clocks */
933 pll1_div2_clk: pll1_div2_clk {
934 compatible = "fixed-factor-clock";
935 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
936 #clock-cells = <0>;
937 clock-div = <2>;
938 clock-mult = <1>;
939 clock-output-names = "pll1_div2";
940 };
941 zg_clk: zg_clk {
942 compatible = "fixed-factor-clock";
943 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
944 #clock-cells = <0>;
945 clock-div = <3>;
946 clock-mult = <1>;
947 clock-output-names = "zg";
948 };
949 zx_clk: zx_clk {
950 compatible = "fixed-factor-clock";
951 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
952 #clock-cells = <0>;
953 clock-div = <3>;
954 clock-mult = <1>;
955 clock-output-names = "zx";
956 };
957 zs_clk: zs_clk {
958 compatible = "fixed-factor-clock";
959 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
960 #clock-cells = <0>;
961 clock-div = <6>;
962 clock-mult = <1>;
963 clock-output-names = "zs";
964 };
965 hp_clk: hp_clk {
966 compatible = "fixed-factor-clock";
967 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
968 #clock-cells = <0>;
969 clock-div = <12>;
970 clock-mult = <1>;
971 clock-output-names = "hp";
972 };
973 i_clk: i_clk {
974 compatible = "fixed-factor-clock";
975 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
976 #clock-cells = <0>;
977 clock-div = <2>;
978 clock-mult = <1>;
979 clock-output-names = "i";
980 };
981 b_clk: b_clk {
982 compatible = "fixed-factor-clock";
983 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
984 #clock-cells = <0>;
985 clock-div = <12>;
986 clock-mult = <1>;
987 clock-output-names = "b";
988 };
989 p_clk: p_clk {
990 compatible = "fixed-factor-clock";
991 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
992 #clock-cells = <0>;
993 clock-div = <24>;
994 clock-mult = <1>;
995 clock-output-names = "p";
996 };
997 cl_clk: cl_clk {
998 compatible = "fixed-factor-clock";
999 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1000 #clock-cells = <0>;
1001 clock-div = <48>;
1002 clock-mult = <1>;
1003 clock-output-names = "cl";
1004 };
1005 m2_clk: m2_clk {
1006 compatible = "fixed-factor-clock";
1007 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1008 #clock-cells = <0>;
1009 clock-div = <8>;
1010 clock-mult = <1>;
1011 clock-output-names = "m2";
1012 };
1013 imp_clk: imp_clk {
1014 compatible = "fixed-factor-clock";
1015 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1016 #clock-cells = <0>;
1017 clock-div = <4>;
1018 clock-mult = <1>;
1019 clock-output-names = "imp";
1020 };
1021 rclk_clk: rclk_clk {
1022 compatible = "fixed-factor-clock";
1023 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1024 #clock-cells = <0>;
1025 clock-div = <(48 * 1024)>;
1026 clock-mult = <1>;
1027 clock-output-names = "rclk";
1028 };
1029 oscclk_clk: oscclk_clk {
1030 compatible = "fixed-factor-clock";
1031 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1032 #clock-cells = <0>;
1033 clock-div = <(12 * 1024)>;
1034 clock-mult = <1>;
1035 clock-output-names = "oscclk";
1036 };
1037 zb3_clk: zb3_clk {
1038 compatible = "fixed-factor-clock";
1039 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1040 #clock-cells = <0>;
1041 clock-div = <4>;
1042 clock-mult = <1>;
1043 clock-output-names = "zb3";
1044 };
1045 zb3d2_clk: zb3d2_clk {
1046 compatible = "fixed-factor-clock";
1047 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1048 #clock-cells = <0>;
1049 clock-div = <8>;
1050 clock-mult = <1>;
1051 clock-output-names = "zb3d2";
1052 };
1053 ddr_clk: ddr_clk {
1054 compatible = "fixed-factor-clock";
1055 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1056 #clock-cells = <0>;
1057 clock-div = <8>;
1058 clock-mult = <1>;
1059 clock-output-names = "ddr";
1060 };
1061 mp_clk: mp_clk {
1062 compatible = "fixed-factor-clock";
1063 clocks = <&pll1_div2_clk>;
1064 #clock-cells = <0>;
1065 clock-div = <15>;
1066 clock-mult = <1>;
1067 clock-output-names = "mp";
1068 };
1069 cp_clk: cp_clk {
1070 compatible = "fixed-factor-clock";
1071 clocks = <&extal_clk>;
1072 #clock-cells = <0>;
1073 clock-div = <2>;
1074 clock-mult = <1>;
1075 clock-output-names = "cp";
1076 };
1077
1078 /* Gate clocks */
Laurent Pinchartcded80f2013-12-19 16:51:02 +01001079 mstp0_clks: mstp0_clks@e6150130 {
1080 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1081 reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
1082 clocks = <&mp_clk>;
1083 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001084 clock-indices = <R8A7791_CLK_MSIOF0>;
Laurent Pinchartcded80f2013-12-19 16:51:02 +01001085 clock-output-names = "msiof0";
1086 };
Laurent Pinchart59e79892013-12-11 15:05:16 +01001087 mstp1_clks: mstp1_clks@e6150134 {
1088 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1089 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001090 clocks = <&zs_clk>, <&zs_clk>, <&m2_clk>, <&zs_clk>, <&p_clk>,
1091 <&zg_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>,
1092 <&p_clk>, <&rclk_clk>, <&cp_clk>, <&zs_clk>, <&zs_clk>,
1093 <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001094 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001095 clock-indices = <
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001096 R8A7791_CLK_VCP0 R8A7791_CLK_VPC0 R8A7791_CLK_JPU
1097 R8A7791_CLK_SSP1 R8A7791_CLK_TMU1 R8A7791_CLK_3DG
1098 R8A7791_CLK_2DDMAC R8A7791_CLK_FDP1_1 R8A7791_CLK_FDP1_0
1099 R8A7791_CLK_TMU3 R8A7791_CLK_TMU2 R8A7791_CLK_CMT0
1100 R8A7791_CLK_TMU0 R8A7791_CLK_VSP1_DU1 R8A7791_CLK_VSP1_DU0
1101 R8A7791_CLK_VSP1_S
Laurent Pinchart59e79892013-12-11 15:05:16 +01001102 >;
1103 clock-output-names =
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001104 "vcp0", "vpc0", "jpu", "ssp1", "tmu1", "3dg",
1105 "2ddmac", "fdp1-1", "fdp1-0", "tmu3", "tmu2", "cmt0",
1106 "tmu0", "vsp1-du1", "vsp1-du0", "vsp1-sy";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001107 };
1108 mstp2_clks: mstp2_clks@e6150138 {
1109 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1110 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
1111 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001112 <&mp_clk>, <&mp_clk>, <&mp_clk>,
1113 <&zs_clk>, <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001114 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001115 clock-indices = <
Laurent Pinchart59e79892013-12-11 15:05:16 +01001116 R8A7791_CLK_SCIFA2 R8A7791_CLK_SCIFA1 R8A7791_CLK_SCIFA0
Laurent Pinchartcded80f2013-12-19 16:51:02 +01001117 R8A7791_CLK_MSIOF2 R8A7791_CLK_SCIFB0 R8A7791_CLK_SCIFB1
1118 R8A7791_CLK_MSIOF1 R8A7791_CLK_SCIFB2
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001119 R8A7791_CLK_SYS_DMAC1 R8A7791_CLK_SYS_DMAC0
Laurent Pinchart59e79892013-12-11 15:05:16 +01001120 >;
1121 clock-output-names =
Geert Uytterhoeven0c002ef2014-02-20 15:49:29 +01001122 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001123 "scifb1", "msiof1", "scifb2",
1124 "sys-dmac1", "sys-dmac0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001125 };
1126 mstp3_clks: mstp3_clks@e615013c {
1127 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1128 reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
Simon Horman2ea0d4e2015-01-29 10:41:24 +09001129 clocks = <&cp_clk>, <&sd3_clk>, <&sd2_clk>, <&cpg_clocks R8A7791_CLK_SD0>,
Yoshihiro Shimodab9473d92014-11-17 18:25:25 +09001130 <&mmc0_clk>, <&hp_clk>, <&mp_clk>, <&hp_clk>, <&mp_clk>, <&rclk_clk>,
1131 <&hp_clk>, <&hp_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001132 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001133 clock-indices = <
Wolfram Sangc08691b2014-03-10 12:26:57 +01001134 R8A7791_CLK_TPU0 R8A7791_CLK_SDHI2 R8A7791_CLK_SDHI1 R8A7791_CLK_SDHI0
Phil Edworthy4bfb3762014-06-13 10:37:18 +01001135 R8A7791_CLK_MMCIF0 R8A7791_CLK_IIC0 R8A7791_CLK_PCIEC R8A7791_CLK_IIC1
1136 R8A7791_CLK_SSUSB R8A7791_CLK_CMT1
Yoshihiro Shimodab9473d92014-11-17 18:25:25 +09001137 R8A7791_CLK_USBDMAC0 R8A7791_CLK_USBDMAC1
Laurent Pinchart59e79892013-12-11 15:05:16 +01001138 >;
1139 clock-output-names =
Wolfram Sangc08691b2014-03-10 12:26:57 +01001140 "tpu0", "sdhi2", "sdhi1", "sdhi0",
Yoshihiro Shimodab9473d92014-11-17 18:25:25 +09001141 "mmcif0", "i2c7", "pciec", "i2c8", "ssusb", "cmt1",
1142 "usbdmac0", "usbdmac1";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001143 };
1144 mstp5_clks: mstp5_clks@e6150144 {
1145 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1146 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
Kuninori Morimoto8994fff2014-11-03 17:45:37 -08001147 clocks = <&hp_clk>, <&hp_clk>, <&extal_clk>, <&p_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001148 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001149 clock-indices = <
1150 R8A7791_CLK_AUDIO_DMAC0 R8A7791_CLK_AUDIO_DMAC1
1151 R8A7791_CLK_THERMAL R8A7791_CLK_PWM
1152 >;
Kuninori Morimoto8994fff2014-11-03 17:45:37 -08001153 clock-output-names = "audmac0", "audmac1", "thermal", "pwm";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001154 };
1155 mstp7_clks: mstp7_clks@e615014c {
1156 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1157 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
Magnus Damm6225b992014-04-07 15:04:21 +09001158 clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zs_clk>,
Laurent Pinchart59e79892013-12-11 15:05:16 +01001159 <&zs_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1160 <&zx_clk>, <&zx_clk>, <&zx_clk>;
1161 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001162 clock-indices = <
Magnus Damm6225b992014-04-07 15:04:21 +09001163 R8A7791_CLK_EHCI R8A7791_CLK_HSUSB R8A7791_CLK_HSCIF2 R8A7791_CLK_SCIF5
Laurent Pinchart59e79892013-12-11 15:05:16 +01001164 R8A7791_CLK_SCIF4 R8A7791_CLK_HSCIF1 R8A7791_CLK_HSCIF0
1165 R8A7791_CLK_SCIF3 R8A7791_CLK_SCIF2 R8A7791_CLK_SCIF1
1166 R8A7791_CLK_SCIF0 R8A7791_CLK_DU1 R8A7791_CLK_DU0
1167 R8A7791_CLK_LVDS0
1168 >;
1169 clock-output-names =
Magnus Damm6225b992014-04-07 15:04:21 +09001170 "ehci", "hsusb", "hscif2", "scif5", "scif4", "hscif1", "hscif0",
Laurent Pinchart59e79892013-12-11 15:05:16 +01001171 "scif3", "scif2", "scif1", "scif0", "du1", "du0", "lvds0";
1172 };
1173 mstp8_clks: mstp8_clks@e6150990 {
1174 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1175 reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
Sergei Shtylyov2fd4e092015-01-13 01:31:14 +03001176 clocks = <&zg_clk>, <&hp_clk>, <&zg_clk>, <&zg_clk>,
Andrey Gusakov7408d302014-12-18 23:43:03 +03001177 <&zg_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001178 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001179 clock-indices = <
Andrey Gusakov7408d302014-12-18 23:43:03 +03001180 R8A7791_CLK_IPMMU_SGX R8A7791_CLK_MLB
Laurent Pinchart09c98342014-01-07 09:22:54 +01001181 R8A7791_CLK_VIN2 R8A7791_CLK_VIN1 R8A7791_CLK_VIN0
Laurent Pinchart65f05c32014-01-07 09:22:56 +01001182 R8A7791_CLK_ETHER R8A7791_CLK_SATA1 R8A7791_CLK_SATA0
Laurent Pinchart09c98342014-01-07 09:22:54 +01001183 >;
Laurent Pinchart65f05c32014-01-07 09:22:56 +01001184 clock-output-names =
Andrey Gusakov7408d302014-12-18 23:43:03 +03001185 "ipmmu_sgx", "mlb", "vin2", "vin1", "vin0", "ether",
1186 "sata1", "sata0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001187 };
1188 mstp9_clks: mstp9_clks@e6150994 {
1189 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1190 reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001191 clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
1192 <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
1193 <&p_clk>, <&p_clk>, <&cpg_clocks R8A7791_CLK_QSPI>, <&hp_clk>,
Laurent Pinchart11b48db2014-04-01 13:02:18 +02001194 <&cp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>,
1195 <&hp_clk>, <&hp_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001196 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001197 clock-indices = <
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001198 R8A7791_CLK_GPIO7 R8A7791_CLK_GPIO6 R8A7791_CLK_GPIO5 R8A7791_CLK_GPIO4
1199 R8A7791_CLK_GPIO3 R8A7791_CLK_GPIO2 R8A7791_CLK_GPIO1 R8A7791_CLK_GPIO0
Wolfram Sangc08691b2014-03-10 12:26:57 +01001200 R8A7791_CLK_RCAN1 R8A7791_CLK_RCAN0 R8A7791_CLK_QSPI_MOD R8A7791_CLK_I2C5
1201 R8A7791_CLK_IICDVFS R8A7791_CLK_I2C4 R8A7791_CLK_I2C3 R8A7791_CLK_I2C2
1202 R8A7791_CLK_I2C1 R8A7791_CLK_I2C0
Laurent Pinchart59e79892013-12-11 15:05:16 +01001203 >;
1204 clock-output-names =
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001205 "gpio7", "gpio6", "gpio5", "gpio4", "gpio3", "gpio2", "gpio1", "gpio0",
1206 "rcan1", "rcan0", "qspi_mod", "i2c5", "i2c6", "i2c4", "i2c3", "i2c2",
1207 "i2c1", "i2c0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001208 };
Kuninori Morimotoee914152014-06-11 21:44:16 -07001209 mstp10_clks: mstp10_clks@e6150998 {
1210 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1211 reg = <0 0xe6150998 0 4>, <0 0xe61509a8 0 4>;
1212 clocks = <&p_clk>,
1213 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1214 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1215 <&p_clk>,
1216 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1217 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1218 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1219 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1220 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1221 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>;
1222
1223 #clock-cells = <1>;
1224 clock-indices = <
1225 R8A7791_CLK_SSI_ALL
1226 R8A7791_CLK_SSI9 R8A7791_CLK_SSI8 R8A7791_CLK_SSI7 R8A7791_CLK_SSI6 R8A7791_CLK_SSI5
1227 R8A7791_CLK_SSI4 R8A7791_CLK_SSI3 R8A7791_CLK_SSI2 R8A7791_CLK_SSI1 R8A7791_CLK_SSI0
1228 R8A7791_CLK_SCU_ALL
1229 R8A7791_CLK_SCU_DVC1 R8A7791_CLK_SCU_DVC0
1230 R8A7791_CLK_SCU_SRC9 R8A7791_CLK_SCU_SRC8 R8A7791_CLK_SCU_SRC7 R8A7791_CLK_SCU_SRC6 R8A7791_CLK_SCU_SRC5
1231 R8A7791_CLK_SCU_SRC4 R8A7791_CLK_SCU_SRC3 R8A7791_CLK_SCU_SRC2 R8A7791_CLK_SCU_SRC1 R8A7791_CLK_SCU_SRC0
1232 >;
1233 clock-output-names =
1234 "ssi-all",
1235 "ssi9", "ssi8", "ssi7", "ssi6", "ssi5",
1236 "ssi4", "ssi3", "ssi2", "ssi1", "ssi0",
1237 "scu-all",
1238 "scu-dvc1", "scu-dvc0",
1239 "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5",
1240 "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0";
1241 };
Laurent Pinchart59e79892013-12-11 15:05:16 +01001242 mstp11_clks: mstp11_clks@e615099c {
1243 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1244 reg = <0 0xe615099c 0 4>, <0 0xe61509ac 0 4>;
1245 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>;
1246 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001247 clock-indices = <
Laurent Pinchart59e79892013-12-11 15:05:16 +01001248 R8A7791_CLK_SCIFA3 R8A7791_CLK_SCIFA4 R8A7791_CLK_SCIFA5
1249 >;
1250 clock-output-names = "scifa3", "scifa4", "scifa5";
1251 };
1252 };
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001253
Geert Uytterhoeven6f3e4ee2014-02-25 11:30:14 +01001254 qspi: spi@e6b10000 {
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001255 compatible = "renesas,qspi-r8a7791", "renesas,qspi";
1256 reg = <0 0xe6b10000 0 0x2c>;
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001257 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
1258 clocks = <&mstp9_clks R8A7791_CLK_QSPI_MOD>;
Geert Uytterhoeven591f2fa2014-08-06 14:59:06 +02001259 dmas = <&dmac0 0x17>, <&dmac0 0x18>;
1260 dma-names = "tx", "rx";
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001261 num-cs = <1>;
1262 #address-cells = <1>;
1263 #size-cells = <0>;
1264 status = "disabled";
1265 };
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001266
1267 msiof0: spi@e6e20000 {
1268 compatible = "renesas,msiof-r8a7791";
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001269 reg = <0 0xe6e20000 0 0x0064>, <0 0xe7e20000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001270 interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>;
1271 clocks = <&mstp0_clks R8A7791_CLK_MSIOF0>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001272 dmas = <&dmac0 0x51>, <&dmac0 0x52>;
1273 dma-names = "tx", "rx";
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001274 #address-cells = <1>;
1275 #size-cells = <0>;
1276 status = "disabled";
1277 };
1278
1279 msiof1: spi@e6e10000 {
1280 compatible = "renesas,msiof-r8a7791";
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001281 reg = <0 0xe6e10000 0 0x0064>, <0 0xe7e10000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001282 interrupts = <0 157 IRQ_TYPE_LEVEL_HIGH>;
1283 clocks = <&mstp2_clks R8A7791_CLK_MSIOF1>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001284 dmas = <&dmac0 0x55>, <&dmac0 0x56>;
1285 dma-names = "tx", "rx";
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001286 #address-cells = <1>;
1287 #size-cells = <0>;
1288 status = "disabled";
1289 };
1290
1291 msiof2: spi@e6e00000 {
1292 compatible = "renesas,msiof-r8a7791";
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001293 reg = <0 0xe6e00000 0 0x0064>, <0 0xe7e00000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001294 interrupts = <0 158 IRQ_TYPE_LEVEL_HIGH>;
1295 clocks = <&mstp2_clks R8A7791_CLK_MSIOF2>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001296 dmas = <&dmac0 0x41>, <&dmac0 0x42>;
1297 dma-names = "tx", "rx";
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001298 #address-cells = <1>;
1299 #size-cells = <0>;
1300 status = "disabled";
1301 };
Phil Edworthy811cdfa2014-06-13 10:37:20 +01001302
Yoshihiro Shimodac1969312014-10-24 19:43:02 +09001303 xhci: usb@ee000000 {
1304 compatible = "renesas,xhci-r8a7791";
1305 reg = <0 0xee000000 0 0xc00>;
1306 interrupts = <0 101 IRQ_TYPE_LEVEL_HIGH>;
1307 clocks = <&mstp3_clks R8A7791_CLK_SSUSB>;
1308 phys = <&usb2 1>;
1309 phy-names = "usb";
1310 status = "disabled";
1311 };
1312
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001313 pci0: pci@ee090000 {
1314 compatible = "renesas,pci-r8a7791";
1315 device_type = "pci";
1316 clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
1317 reg = <0 0xee090000 0 0xc00>,
1318 <0 0xee080000 0 0x1100>;
1319 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
1320 status = "disabled";
1321
1322 bus-range = <0 0>;
1323 #address-cells = <3>;
1324 #size-cells = <2>;
1325 #interrupt-cells = <1>;
1326 ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>;
1327 interrupt-map-mask = <0xff00 0 0 0x7>;
1328 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1329 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1330 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyove1bce122014-09-29 22:23:11 +04001331
1332 usb@0,1 {
1333 reg = <0x800 0 0 0 0>;
1334 device_type = "pci";
1335 phys = <&usb0 0>;
1336 phy-names = "usb";
1337 };
1338
1339 usb@0,2 {
1340 reg = <0x1000 0 0 0 0>;
1341 device_type = "pci";
1342 phys = <&usb0 0>;
1343 phy-names = "usb";
1344 };
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001345 };
1346
1347 pci1: pci@ee0d0000 {
1348 compatible = "renesas,pci-r8a7791";
1349 device_type = "pci";
1350 clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
1351 reg = <0 0xee0d0000 0 0xc00>,
1352 <0 0xee0c0000 0 0x1100>;
1353 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
1354 status = "disabled";
1355
1356 bus-range = <1 1>;
1357 #address-cells = <3>;
1358 #size-cells = <2>;
1359 #interrupt-cells = <1>;
1360 ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>;
1361 interrupt-map-mask = <0xff00 0 0 0x7>;
1362 interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1363 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1364 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyove1bce122014-09-29 22:23:11 +04001365
1366 usb@0,1 {
1367 reg = <0x800 0 0 0 0>;
1368 device_type = "pci";
1369 phys = <&usb2 0>;
1370 phy-names = "usb";
1371 };
1372
1373 usb@0,2 {
1374 reg = <0x1000 0 0 0 0>;
1375 device_type = "pci";
1376 phys = <&usb2 0>;
1377 phy-names = "usb";
1378 };
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001379 };
1380
Phil Edworthy811cdfa2014-06-13 10:37:20 +01001381 pciec: pcie@fe000000 {
1382 compatible = "renesas,pcie-r8a7791";
1383 reg = <0 0xfe000000 0 0x80000>;
1384 #address-cells = <3>;
1385 #size-cells = <2>;
1386 bus-range = <0x00 0xff>;
1387 device_type = "pci";
1388 ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000
1389 0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000
1390 0x02000000 0 0x30000000 0 0x30000000 0 0x08000000
1391 0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;
1392 /* Map all possible DDR as inbound ranges */
1393 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000
1394 0x43000000 2 0x00000000 2 0x00000000 1 0x00000000>;
1395 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>,
1396 <0 117 IRQ_TYPE_LEVEL_HIGH>,
1397 <0 118 IRQ_TYPE_LEVEL_HIGH>;
1398 #interrupt-cells = <1>;
1399 interrupt-map-mask = <0 0 0 0>;
1400 interrupt-map = <0 0 0 0 &gic 0 116 IRQ_TYPE_LEVEL_HIGH>;
1401 clocks = <&mstp3_clks R8A7791_CLK_PCIEC>, <&pcie_bus_clk>;
1402 clock-names = "pcie", "pcie_bus";
1403 status = "disabled";
1404 };
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001405
Laurent Pinchartf1951852015-01-27 11:13:24 +02001406 ipmmu_sy0: mmu@e6280000 {
1407 compatible = "renesas,ipmmu-vmsa";
1408 reg = <0 0xe6280000 0 0x1000>;
1409 interrupts = <0 223 IRQ_TYPE_LEVEL_HIGH>,
1410 <0 224 IRQ_TYPE_LEVEL_HIGH>;
1411 #iommu-cells = <1>;
1412 status = "disabled";
1413 };
1414
1415 ipmmu_sy1: mmu@e6290000 {
1416 compatible = "renesas,ipmmu-vmsa";
1417 reg = <0 0xe6290000 0 0x1000>;
1418 interrupts = <0 225 IRQ_TYPE_LEVEL_HIGH>;
1419 #iommu-cells = <1>;
1420 status = "disabled";
1421 };
1422
1423 ipmmu_ds: mmu@e6740000 {
1424 compatible = "renesas,ipmmu-vmsa";
1425 reg = <0 0xe6740000 0 0x1000>;
1426 interrupts = <0 198 IRQ_TYPE_LEVEL_HIGH>,
1427 <0 199 IRQ_TYPE_LEVEL_HIGH>;
1428 #iommu-cells = <1>;
1429 status = "disabled";
1430 };
1431
1432 ipmmu_mp: mmu@ec680000 {
1433 compatible = "renesas,ipmmu-vmsa";
1434 reg = <0 0xec680000 0 0x1000>;
1435 interrupts = <0 226 IRQ_TYPE_LEVEL_HIGH>;
1436 #iommu-cells = <1>;
1437 status = "disabled";
1438 };
1439
1440 ipmmu_mx: mmu@fe951000 {
1441 compatible = "renesas,ipmmu-vmsa";
1442 reg = <0 0xfe951000 0 0x1000>;
1443 interrupts = <0 222 IRQ_TYPE_LEVEL_HIGH>,
1444 <0 221 IRQ_TYPE_LEVEL_HIGH>;
1445 #iommu-cells = <1>;
1446 status = "disabled";
1447 };
1448
1449 ipmmu_rt: mmu@ffc80000 {
1450 compatible = "renesas,ipmmu-vmsa";
1451 reg = <0 0xffc80000 0 0x1000>;
1452 interrupts = <0 307 IRQ_TYPE_LEVEL_HIGH>;
1453 #iommu-cells = <1>;
1454 status = "disabled";
1455 };
1456
1457 ipmmu_gp: mmu@e62a0000 {
1458 compatible = "renesas,ipmmu-vmsa";
1459 reg = <0 0xe62a0000 0 0x1000>;
1460 interrupts = <0 260 IRQ_TYPE_LEVEL_HIGH>,
1461 <0 261 IRQ_TYPE_LEVEL_HIGH>;
1462 #iommu-cells = <1>;
1463 status = "disabled";
1464 };
1465
Geert Uytterhoeven6b83dc12014-10-29 15:30:52 +01001466 rcar_sound: rcar_sound@ec500000 {
Kuninori Morimotod2b541c2014-12-17 06:12:02 +00001467 /*
1468 * #sound-dai-cells is required
1469 *
1470 * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>;
1471 * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>;
1472 */
Geert Uytterhoevenf49cd2b2015-01-06 21:01:53 +01001473 compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2";
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001474 reg = <0 0xec500000 0 0x1000>, /* SCU */
1475 <0 0xec5a0000 0 0x100>, /* ADG */
1476 <0 0xec540000 0 0x1000>, /* SSIU */
1477 <0 0xec541000 0 0x1280>; /* SSI */
1478 clocks = <&mstp10_clks R8A7791_CLK_SSI_ALL>,
1479 <&mstp10_clks R8A7791_CLK_SSI9>, <&mstp10_clks R8A7791_CLK_SSI8>,
1480 <&mstp10_clks R8A7791_CLK_SSI7>, <&mstp10_clks R8A7791_CLK_SSI6>,
1481 <&mstp10_clks R8A7791_CLK_SSI5>, <&mstp10_clks R8A7791_CLK_SSI4>,
1482 <&mstp10_clks R8A7791_CLK_SSI3>, <&mstp10_clks R8A7791_CLK_SSI2>,
1483 <&mstp10_clks R8A7791_CLK_SSI1>, <&mstp10_clks R8A7791_CLK_SSI0>,
1484 <&mstp10_clks R8A7791_CLK_SCU_SRC9>, <&mstp10_clks R8A7791_CLK_SCU_SRC8>,
1485 <&mstp10_clks R8A7791_CLK_SCU_SRC7>, <&mstp10_clks R8A7791_CLK_SCU_SRC6>,
1486 <&mstp10_clks R8A7791_CLK_SCU_SRC5>, <&mstp10_clks R8A7791_CLK_SCU_SRC4>,
1487 <&mstp10_clks R8A7791_CLK_SCU_SRC3>, <&mstp10_clks R8A7791_CLK_SCU_SRC2>,
1488 <&mstp10_clks R8A7791_CLK_SCU_SRC1>, <&mstp10_clks R8A7791_CLK_SCU_SRC0>,
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001489 <&mstp10_clks R8A7791_CLK_SCU_DVC0>, <&mstp10_clks R8A7791_CLK_SCU_DVC1>,
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001490 <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>;
1491 clock-names = "ssi-all",
1492 "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5",
1493 "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0",
1494 "src.9", "src.8", "src.7", "src.6", "src.5",
1495 "src.4", "src.3", "src.2", "src.1", "src.0",
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001496 "dvc.0", "dvc.1",
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001497 "clk_a", "clk_b", "clk_c", "clk_i";
1498
1499 status = "disabled";
1500
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001501 rcar_sound,dvc {
1502 dvc0: dvc@0 { };
1503 dvc1: dvc@1 { };
1504 };
1505
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001506 rcar_sound,src {
Kuninori Morimoto8856102d2015-01-08 01:55:27 +00001507 src0: src@0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; };
1508 src1: src@1 { interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; };
1509 src2: src@2 { interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; };
1510 src3: src@3 { interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; };
1511 src4: src@4 { interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; };
1512 src5: src@5 { interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; };
1513 src6: src@6 { interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; };
1514 src7: src@7 { interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; };
1515 src8: src@8 { interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; };
1516 src9: src@9 { interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; };
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001517 };
1518
1519 rcar_sound,ssi {
1520 ssi0: ssi@0 { interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; };
1521 ssi1: ssi@1 { interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>; };
1522 ssi2: ssi@2 { interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>; };
1523 ssi3: ssi@3 { interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>; };
1524 ssi4: ssi@4 { interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>; };
1525 ssi5: ssi@5 { interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>; };
1526 ssi6: ssi@6 { interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>; };
1527 ssi7: ssi@7 { interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>; };
1528 ssi8: ssi@8 { interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>; };
1529 ssi9: ssi@9 { interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>; };
1530 };
1531 };
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +09001532};