blob: cd7fc05f5e99d25b7400b258540fed8f8edd119f [file] [log] [blame]
Magnus Damm0468b2d2013-03-28 00:49:34 +09001/*
2 * Device Tree Source for the r8a7790 SoC
3 *
Sergei Shtylyovd8913c62014-02-20 02:20:43 +03004 * Copyright (C) 2013-2014 Renesas Solutions Corp.
5 * Copyright (C) 2014 Cogent Embedded Inc.
Magnus Damm0468b2d2013-03-28 00:49:34 +09006 *
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
10 */
11
Laurent Pinchart22a1f592013-12-11 15:05:14 +010012#include <dt-bindings/clock/r8a7790-clock.h>
Laurent Pinchart5f75e732013-11-19 03:18:25 +010013#include <dt-bindings/interrupt-controller/arm-gic.h>
14#include <dt-bindings/interrupt-controller/irq.h>
15
Magnus Damm0468b2d2013-03-28 00:49:34 +090016/ {
17 compatible = "renesas,r8a7790";
18 interrupt-parent = <&gic>;
Takashi Yoshii8585deb2013-03-29 16:49:17 +090019 #address-cells = <2>;
20 #size-cells = <2>;
Magnus Damm0468b2d2013-03-28 00:49:34 +090021
Wolfram Sang6b1d7c62014-02-16 10:40:58 +010022 aliases {
23 i2c0 = &i2c0;
24 i2c1 = &i2c1;
25 i2c2 = &i2c2;
26 i2c3 = &i2c3;
Wolfram Sang05f39912014-03-25 19:56:29 +010027 i2c4 = &iic0;
28 i2c5 = &iic1;
29 i2c6 = &iic2;
30 i2c7 = &iic3;
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +010031 spi0 = &qspi;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +010032 spi1 = &msiof0;
33 spi2 = &msiof1;
34 spi3 = &msiof2;
35 spi4 = &msiof3;
Ben Dooks9f685bf2014-08-13 00:16:18 +040036 vin0 = &vin0;
37 vin1 = &vin1;
38 vin2 = &vin2;
39 vin3 = &vin3;
Wolfram Sang6b1d7c62014-02-16 10:40:58 +010040 };
41
Magnus Damm0468b2d2013-03-28 00:49:34 +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>;
50 clock-frequency = <1300000000>;
Benoit Coussonb989e132014-06-03 21:02:24 +090051 voltage-tolerance = <1>; /* 1% */
52 clocks = <&cpg_clocks R8A7790_CLK_Z>;
53 clock-latency = <300000>; /* 300 us */
54
55 /* kHz - uV - OPPs unknown yet */
56 operating-points = <1400000 1000000>,
57 <1225000 1000000>,
58 <1050000 1000000>,
59 < 875000 1000000>,
60 < 700000 1000000>,
61 < 350000 1000000>;
Magnus Damm0468b2d2013-03-28 00:49:34 +090062 };
Magnus Dammc1f95972013-08-29 08:22:17 +090063
64 cpu1: cpu@1 {
65 device_type = "cpu";
66 compatible = "arm,cortex-a15";
67 reg = <1>;
68 clock-frequency = <1300000000>;
69 };
70
71 cpu2: cpu@2 {
72 device_type = "cpu";
73 compatible = "arm,cortex-a15";
74 reg = <2>;
75 clock-frequency = <1300000000>;
76 };
77
78 cpu3: cpu@3 {
79 device_type = "cpu";
80 compatible = "arm,cortex-a15";
81 reg = <3>;
82 clock-frequency = <1300000000>;
83 };
Magnus Damm2007e742013-09-15 00:28:58 +090084
85 cpu4: cpu@4 {
86 device_type = "cpu";
87 compatible = "arm,cortex-a7";
88 reg = <0x100>;
89 clock-frequency = <780000000>;
90 };
91
92 cpu5: cpu@5 {
93 device_type = "cpu";
94 compatible = "arm,cortex-a7";
95 reg = <0x101>;
96 clock-frequency = <780000000>;
97 };
98
99 cpu6: cpu@6 {
100 device_type = "cpu";
101 compatible = "arm,cortex-a7";
102 reg = <0x102>;
103 clock-frequency = <780000000>;
104 };
105
106 cpu7: cpu@7 {
107 device_type = "cpu";
108 compatible = "arm,cortex-a7";
109 reg = <0x103>;
110 clock-frequency = <780000000>;
111 };
Magnus Damm0468b2d2013-03-28 00:49:34 +0900112 };
113
114 gic: interrupt-controller@f1001000 {
115 compatible = "arm,cortex-a15-gic";
116 #interrupt-cells = <3>;
117 #address-cells = <0>;
118 interrupt-controller;
Takashi Yoshii8585deb2013-03-29 16:49:17 +0900119 reg = <0 0xf1001000 0 0x1000>,
120 <0 0xf1002000 0 0x1000>,
121 <0 0xf1004000 0 0x2000>,
122 <0 0xf1006000 0 0x2000>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100123 interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Magnus Damm0468b2d2013-03-28 00:49:34 +0900124 };
125
Magnus Damm23de2272013-11-21 14:19:29 +0900126 gpio0: gpio@e6050000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200127 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900128 reg = <0 0xe6050000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100129 interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200130 #gpio-cells = <2>;
131 gpio-controller;
132 gpio-ranges = <&pfc 0 0 32>;
133 #interrupt-cells = <2>;
134 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200135 clocks = <&mstp9_clks R8A7790_CLK_GPIO0>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200136 };
137
Magnus Damm23de2272013-11-21 14:19:29 +0900138 gpio1: gpio@e6051000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200139 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900140 reg = <0 0xe6051000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100141 interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200142 #gpio-cells = <2>;
143 gpio-controller;
144 gpio-ranges = <&pfc 0 32 32>;
145 #interrupt-cells = <2>;
146 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200147 clocks = <&mstp9_clks R8A7790_CLK_GPIO1>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200148 };
149
Magnus Damm23de2272013-11-21 14:19:29 +0900150 gpio2: gpio@e6052000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200151 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900152 reg = <0 0xe6052000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100153 interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200154 #gpio-cells = <2>;
155 gpio-controller;
156 gpio-ranges = <&pfc 0 64 32>;
157 #interrupt-cells = <2>;
158 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200159 clocks = <&mstp9_clks R8A7790_CLK_GPIO2>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200160 };
161
Magnus Damm23de2272013-11-21 14:19:29 +0900162 gpio3: gpio@e6053000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200163 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900164 reg = <0 0xe6053000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100165 interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200166 #gpio-cells = <2>;
167 gpio-controller;
168 gpio-ranges = <&pfc 0 96 32>;
169 #interrupt-cells = <2>;
170 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200171 clocks = <&mstp9_clks R8A7790_CLK_GPIO3>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200172 };
173
Magnus Damm23de2272013-11-21 14:19:29 +0900174 gpio4: gpio@e6054000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200175 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900176 reg = <0 0xe6054000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100177 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200178 #gpio-cells = <2>;
179 gpio-controller;
180 gpio-ranges = <&pfc 0 128 32>;
181 #interrupt-cells = <2>;
182 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200183 clocks = <&mstp9_clks R8A7790_CLK_GPIO4>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200184 };
185
Magnus Damm23de2272013-11-21 14:19:29 +0900186 gpio5: gpio@e6055000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200187 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900188 reg = <0 0xe6055000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100189 interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200190 #gpio-cells = <2>;
191 gpio-controller;
192 gpio-ranges = <&pfc 0 160 32>;
193 #interrupt-cells = <2>;
194 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200195 clocks = <&mstp9_clks R8A7790_CLK_GPIO5>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200196 };
197
Magnus Damm03e2f562013-11-20 16:59:30 +0900198 thermal@e61f0000 {
199 compatible = "renesas,thermal-r8a7790", "renesas,rcar-thermal";
200 reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
Magnus Damm03e2f562013-11-20 16:59:30 +0900201 interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoevend3a439d2014-01-07 19:57:14 +0100202 clocks = <&mstp5_clks R8A7790_CLK_THERMAL>;
Magnus Damm03e2f562013-11-20 16:59:30 +0900203 };
204
Magnus Damm0468b2d2013-03-28 00:49:34 +0900205 timer {
206 compatible = "arm,armv7-timer";
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100207 interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
208 <1 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
209 <1 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
210 <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Magnus Damm0468b2d2013-03-28 00:49:34 +0900211 };
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900212
Laurent Pinchart39cf6d72014-07-09 15:12:37 +0200213 cmt0: timer@ffca0000 {
Simon Horman37757032014-09-08 09:27:45 +0900214 compatible = "renesas,cmt-48-r8a7790", "renesas,cmt-48-gen2";
Laurent Pinchart39cf6d72014-07-09 15:12:37 +0200215 reg = <0 0xffca0000 0 0x1004>;
216 interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>,
217 <0 143 IRQ_TYPE_LEVEL_HIGH>;
218 clocks = <&mstp1_clks R8A7790_CLK_CMT0>;
219 clock-names = "fck";
220
221 renesas,channels-mask = <0x60>;
222
223 status = "disabled";
224 };
225
226 cmt1: timer@e6130000 {
Simon Horman37757032014-09-08 09:27:45 +0900227 compatible = "renesas,cmt-48-r8a7790", "renesas,cmt-48-gen2";
Laurent Pinchart39cf6d72014-07-09 15:12:37 +0200228 reg = <0 0xe6130000 0 0x1004>;
229 interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>,
230 <0 121 IRQ_TYPE_LEVEL_HIGH>,
231 <0 122 IRQ_TYPE_LEVEL_HIGH>,
232 <0 123 IRQ_TYPE_LEVEL_HIGH>,
233 <0 124 IRQ_TYPE_LEVEL_HIGH>,
234 <0 125 IRQ_TYPE_LEVEL_HIGH>,
235 <0 126 IRQ_TYPE_LEVEL_HIGH>,
236 <0 127 IRQ_TYPE_LEVEL_HIGH>;
237 clocks = <&mstp3_clks R8A7790_CLK_CMT1>;
238 clock-names = "fck";
239
240 renesas,channels-mask = <0xff>;
241
242 status = "disabled";
243 };
244
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900245 irqc0: interrupt-controller@e61c0000 {
Magnus Damm220fc352013-11-20 09:07:40 +0900246 compatible = "renesas,irqc-r8a7790", "renesas,irqc";
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900247 #interrupt-cells = <2>;
248 interrupt-controller;
Takashi Yoshii8585deb2013-03-29 16:49:17 +0900249 reg = <0 0xe61c0000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100250 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
251 <0 1 IRQ_TYPE_LEVEL_HIGH>,
252 <0 2 IRQ_TYPE_LEVEL_HIGH>,
253 <0 3 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900254 };
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200255
Laurent Pinchartb9fea492014-07-19 01:50:24 +0200256 dmac0: dma-controller@e6700000 {
257 compatible = "renesas,rcar-dmac";
258 reg = <0 0xe6700000 0 0x20000>;
259 interrupts = <0 197 IRQ_TYPE_LEVEL_HIGH
260 0 200 IRQ_TYPE_LEVEL_HIGH
261 0 201 IRQ_TYPE_LEVEL_HIGH
262 0 202 IRQ_TYPE_LEVEL_HIGH
263 0 203 IRQ_TYPE_LEVEL_HIGH
264 0 204 IRQ_TYPE_LEVEL_HIGH
265 0 205 IRQ_TYPE_LEVEL_HIGH
266 0 206 IRQ_TYPE_LEVEL_HIGH
267 0 207 IRQ_TYPE_LEVEL_HIGH
268 0 208 IRQ_TYPE_LEVEL_HIGH
269 0 209 IRQ_TYPE_LEVEL_HIGH
270 0 210 IRQ_TYPE_LEVEL_HIGH
271 0 211 IRQ_TYPE_LEVEL_HIGH
272 0 212 IRQ_TYPE_LEVEL_HIGH
273 0 213 IRQ_TYPE_LEVEL_HIGH
274 0 214 IRQ_TYPE_LEVEL_HIGH>;
275 interrupt-names = "error",
276 "ch0", "ch1", "ch2", "ch3",
277 "ch4", "ch5", "ch6", "ch7",
278 "ch8", "ch9", "ch10", "ch11",
279 "ch12", "ch13", "ch14";
280 clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC0>;
281 clock-names = "fck";
282 #dma-cells = <1>;
283 dma-channels = <15>;
284 };
285
286 dmac1: dma-controller@e6720000 {
287 compatible = "renesas,rcar-dmac";
288 reg = <0 0xe6720000 0 0x20000>;
289 interrupts = <0 220 IRQ_TYPE_LEVEL_HIGH
290 0 216 IRQ_TYPE_LEVEL_HIGH
291 0 217 IRQ_TYPE_LEVEL_HIGH
292 0 218 IRQ_TYPE_LEVEL_HIGH
293 0 219 IRQ_TYPE_LEVEL_HIGH
294 0 308 IRQ_TYPE_LEVEL_HIGH
295 0 309 IRQ_TYPE_LEVEL_HIGH
296 0 310 IRQ_TYPE_LEVEL_HIGH
297 0 311 IRQ_TYPE_LEVEL_HIGH
298 0 312 IRQ_TYPE_LEVEL_HIGH
299 0 313 IRQ_TYPE_LEVEL_HIGH
300 0 314 IRQ_TYPE_LEVEL_HIGH
301 0 315 IRQ_TYPE_LEVEL_HIGH
302 0 316 IRQ_TYPE_LEVEL_HIGH
303 0 317 IRQ_TYPE_LEVEL_HIGH
304 0 318 IRQ_TYPE_LEVEL_HIGH>;
305 interrupt-names = "error",
306 "ch0", "ch1", "ch2", "ch3",
307 "ch4", "ch5", "ch6", "ch7",
308 "ch8", "ch9", "ch10", "ch11",
309 "ch12", "ch13", "ch14";
310 clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC1>;
311 clock-names = "fck";
312 #dma-cells = <1>;
313 dma-channels = <15>;
314 };
Kuninori Morimotoba3240b2014-11-03 17:44:51 -0800315
316 audma0: dma-controller@ec700000 {
317 compatible = "renesas,rcar-dmac";
318 reg = <0 0xec700000 0 0x10000>;
319 interrupts = <0 346 IRQ_TYPE_LEVEL_HIGH
320 0 320 IRQ_TYPE_LEVEL_HIGH
321 0 321 IRQ_TYPE_LEVEL_HIGH
322 0 322 IRQ_TYPE_LEVEL_HIGH
323 0 323 IRQ_TYPE_LEVEL_HIGH
324 0 324 IRQ_TYPE_LEVEL_HIGH
325 0 325 IRQ_TYPE_LEVEL_HIGH
326 0 326 IRQ_TYPE_LEVEL_HIGH
327 0 327 IRQ_TYPE_LEVEL_HIGH
328 0 328 IRQ_TYPE_LEVEL_HIGH
329 0 329 IRQ_TYPE_LEVEL_HIGH
330 0 330 IRQ_TYPE_LEVEL_HIGH
331 0 331 IRQ_TYPE_LEVEL_HIGH
332 0 332 IRQ_TYPE_LEVEL_HIGH>;
333 interrupt-names = "error",
334 "ch0", "ch1", "ch2", "ch3",
335 "ch4", "ch5", "ch6", "ch7",
336 "ch8", "ch9", "ch10", "ch11",
337 "ch12";
338 clocks = <&mstp5_clks R8A7790_CLK_AUDIO_DMAC0>;
339 clock-names = "fck";
340 #dma-cells = <1>;
341 dma-channels = <13>;
342 };
343
344 audma1: dma-controller@ec720000 {
345 compatible = "renesas,rcar-dmac";
346 reg = <0 0xec720000 0 0x10000>;
347 interrupts = <0 347 IRQ_TYPE_LEVEL_HIGH
348 0 333 IRQ_TYPE_LEVEL_HIGH
349 0 334 IRQ_TYPE_LEVEL_HIGH
350 0 335 IRQ_TYPE_LEVEL_HIGH
351 0 336 IRQ_TYPE_LEVEL_HIGH
352 0 337 IRQ_TYPE_LEVEL_HIGH
353 0 338 IRQ_TYPE_LEVEL_HIGH
354 0 339 IRQ_TYPE_LEVEL_HIGH
355 0 340 IRQ_TYPE_LEVEL_HIGH
356 0 341 IRQ_TYPE_LEVEL_HIGH
357 0 342 IRQ_TYPE_LEVEL_HIGH
358 0 343 IRQ_TYPE_LEVEL_HIGH
359 0 344 IRQ_TYPE_LEVEL_HIGH
360 0 345 IRQ_TYPE_LEVEL_HIGH>;
361 interrupt-names = "error",
362 "ch0", "ch1", "ch2", "ch3",
363 "ch4", "ch5", "ch6", "ch7",
364 "ch8", "ch9", "ch10", "ch11",
365 "ch12";
366 clocks = <&mstp5_clks R8A7790_CLK_AUDIO_DMAC1>;
367 clock-names = "fck";
368 #dma-cells = <1>;
369 dma-channels = <13>;
370 };
371
Kuninori Morimotoe416b662014-11-03 17:45:58 -0800372 audmapp: dma-controller@ec740000 {
373 compatible = "renesas,rcar-audmapp";
374 #dma-cells = <1>;
375
376 reg = <0 0xec740000 0 0x200>;
377 };
378
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200379 i2c0: i2c@e6508000 {
380 #address-cells = <1>;
381 #size-cells = <0>;
382 compatible = "renesas,i2c-r8a7790";
383 reg = <0 0xe6508000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100384 interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000385 clocks = <&mstp9_clks R8A7790_CLK_I2C0>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200386 status = "disabled";
387 };
388
389 i2c1: i2c@e6518000 {
390 #address-cells = <1>;
391 #size-cells = <0>;
392 compatible = "renesas,i2c-r8a7790";
393 reg = <0 0xe6518000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100394 interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000395 clocks = <&mstp9_clks R8A7790_CLK_I2C1>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200396 status = "disabled";
397 };
398
399 i2c2: i2c@e6530000 {
400 #address-cells = <1>;
401 #size-cells = <0>;
402 compatible = "renesas,i2c-r8a7790";
403 reg = <0 0xe6530000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100404 interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000405 clocks = <&mstp9_clks R8A7790_CLK_I2C2>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200406 status = "disabled";
407 };
408
409 i2c3: i2c@e6540000 {
410 #address-cells = <1>;
411 #size-cells = <0>;
412 compatible = "renesas,i2c-r8a7790";
413 reg = <0 0xe6540000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100414 interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000415 clocks = <&mstp9_clks R8A7790_CLK_I2C3>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200416 status = "disabled";
417 };
418
Wolfram Sang05f39912014-03-25 19:56:29 +0100419 iic0: i2c@e6500000 {
420 #address-cells = <1>;
421 #size-cells = <0>;
422 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
423 reg = <0 0xe6500000 0 0x425>;
424 interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>;
425 clocks = <&mstp3_clks R8A7790_CLK_IIC0>;
Wolfram Sang0d73ca42014-11-07 11:11:43 +0100426 dmas = <&dmac0 0x61>, <&dmac0 0x62>;
427 dma-names = "tx", "rx";
Wolfram Sang05f39912014-03-25 19:56:29 +0100428 status = "disabled";
429 };
430
431 iic1: i2c@e6510000 {
432 #address-cells = <1>;
433 #size-cells = <0>;
434 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
435 reg = <0 0xe6510000 0 0x425>;
436 interrupts = <0 175 IRQ_TYPE_LEVEL_HIGH>;
437 clocks = <&mstp3_clks R8A7790_CLK_IIC1>;
Wolfram Sang0d73ca42014-11-07 11:11:43 +0100438 dmas = <&dmac0 0x65>, <&dmac0 0x66>;
439 dma-names = "tx", "rx";
Wolfram Sang05f39912014-03-25 19:56:29 +0100440 status = "disabled";
441 };
442
443 iic2: i2c@e6520000 {
444 #address-cells = <1>;
445 #size-cells = <0>;
446 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
447 reg = <0 0xe6520000 0 0x425>;
448 interrupts = <0 176 IRQ_TYPE_LEVEL_HIGH>;
449 clocks = <&mstp3_clks R8A7790_CLK_IIC2>;
Wolfram Sang0d73ca42014-11-07 11:11:43 +0100450 dmas = <&dmac0 0x69>, <&dmac0 0x6a>;
451 dma-names = "tx", "rx";
Wolfram Sang05f39912014-03-25 19:56:29 +0100452 status = "disabled";
453 };
454
455 iic3: i2c@e60b0000 {
456 #address-cells = <1>;
457 #size-cells = <0>;
458 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
459 reg = <0 0xe60b0000 0 0x425>;
460 interrupts = <0 173 IRQ_TYPE_LEVEL_HIGH>;
461 clocks = <&mstp9_clks R8A7790_CLK_IICDVFS>;
Wolfram Sang0d73ca42014-11-07 11:11:43 +0100462 dmas = <&dmac0 0x77>, <&dmac0 0x78>;
463 dma-names = "tx", "rx";
Wolfram Sang05f39912014-03-25 19:56:29 +0100464 status = "disabled";
465 };
466
Laurent Pinchart22c2b782014-10-26 19:40:11 +0200467 mmcif0: mmc@ee200000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900468 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200469 reg = <0 0xee200000 0 0x80>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100470 interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100471 clocks = <&mstp3_clks R8A7790_CLK_MMCIF0>;
Laurent Pinchart108216c2014-10-26 19:40:13 +0200472 dmas = <&dmac0 0xd1>, <&dmac0 0xd2>;
473 dma-names = "tx", "rx";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200474 reg-io-width = <4>;
475 status = "disabled";
476 };
477
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700478 mmcif1: mmc@ee220000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900479 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200480 reg = <0 0xee220000 0 0x80>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100481 interrupts = <0 170 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100482 clocks = <&mstp3_clks R8A7790_CLK_MMCIF1>;
Laurent Pinchart108216c2014-10-26 19:40:13 +0200483 dmas = <&dmac0 0xe1>, <&dmac0 0xe2>;
484 dma-names = "tx", "rx";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200485 reg-io-width = <4>;
486 status = "disabled";
487 };
488
Laurent Pinchart9694c772013-05-09 15:05:57 +0200489 pfc: pfc@e6060000 {
490 compatible = "renesas,pfc-r8a7790";
491 reg = <0 0xe6060000 0 0x250>;
492 };
Olof Johansson55689bf2013-08-14 00:24:05 -0700493
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700494 sdhi0: sd@ee100000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200495 compatible = "renesas,sdhi-r8a7790";
Ben Dooksd721a152013-12-16 12:38:48 +0000496 reg = <0 0xee100000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100497 interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100498 clocks = <&mstp3_clks R8A7790_CLK_SDHI0>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200499 status = "disabled";
500 };
501
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700502 sdhi1: sd@ee120000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200503 compatible = "renesas,sdhi-r8a7790";
Ben Dooksd721a152013-12-16 12:38:48 +0000504 reg = <0 0xee120000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100505 interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100506 clocks = <&mstp3_clks R8A7790_CLK_SDHI1>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200507 status = "disabled";
508 };
509
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700510 sdhi2: sd@ee140000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200511 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200512 reg = <0 0xee140000 0 0x100>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100513 interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100514 clocks = <&mstp3_clks R8A7790_CLK_SDHI2>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200515 status = "disabled";
516 };
517
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700518 sdhi3: sd@ee160000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200519 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200520 reg = <0 0xee160000 0 0x100>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100521 interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100522 clocks = <&mstp3_clks R8A7790_CLK_SDHI3>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200523 status = "disabled";
524 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100525
Laurent Pinchart597af202013-10-29 16:23:12 +0100526 scifa0: serial@e6c40000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100527 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100528 reg = <0 0xe6c40000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100529 interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100530 clocks = <&mstp2_clks R8A7790_CLK_SCIFA0>;
531 clock-names = "sci_ick";
532 status = "disabled";
533 };
534
535 scifa1: serial@e6c50000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100536 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100537 reg = <0 0xe6c50000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100538 interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100539 clocks = <&mstp2_clks R8A7790_CLK_SCIFA1>;
540 clock-names = "sci_ick";
541 status = "disabled";
542 };
543
544 scifa2: serial@e6c60000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100545 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100546 reg = <0 0xe6c60000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100547 interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100548 clocks = <&mstp2_clks R8A7790_CLK_SCIFA2>;
549 clock-names = "sci_ick";
550 status = "disabled";
551 };
552
553 scifb0: serial@e6c20000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100554 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100555 reg = <0 0xe6c20000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100556 interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100557 clocks = <&mstp2_clks R8A7790_CLK_SCIFB0>;
558 clock-names = "sci_ick";
559 status = "disabled";
560 };
561
562 scifb1: serial@e6c30000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100563 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100564 reg = <0 0xe6c30000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100565 interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100566 clocks = <&mstp2_clks R8A7790_CLK_SCIFB1>;
567 clock-names = "sci_ick";
568 status = "disabled";
569 };
570
571 scifb2: serial@e6ce0000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100572 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100573 reg = <0 0xe6ce0000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100574 interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100575 clocks = <&mstp2_clks R8A7790_CLK_SCIFB2>;
576 clock-names = "sci_ick";
577 status = "disabled";
578 };
579
580 scif0: serial@e6e60000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100581 compatible = "renesas,scif-r8a7790", "renesas,scif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100582 reg = <0 0xe6e60000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100583 interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100584 clocks = <&mstp7_clks R8A7790_CLK_SCIF0>;
585 clock-names = "sci_ick";
586 status = "disabled";
587 };
588
589 scif1: serial@e6e68000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100590 compatible = "renesas,scif-r8a7790", "renesas,scif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100591 reg = <0 0xe6e68000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100592 interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100593 clocks = <&mstp7_clks R8A7790_CLK_SCIF1>;
594 clock-names = "sci_ick";
595 status = "disabled";
596 };
597
598 hscif0: serial@e62c0000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100599 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100600 reg = <0 0xe62c0000 0 96>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100601 interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100602 clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>;
603 clock-names = "sci_ick";
604 status = "disabled";
605 };
606
607 hscif1: serial@e62c8000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100608 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100609 reg = <0 0xe62c8000 0 96>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100610 interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100611 clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>;
612 clock-names = "sci_ick";
613 status = "disabled";
614 };
615
Sergei Shtylyovd8913c62014-02-20 02:20:43 +0300616 ether: ethernet@ee700000 {
617 compatible = "renesas,ether-r8a7790";
618 reg = <0 0xee700000 0 0x400>;
619 interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>;
620 clocks = <&mstp8_clks R8A7790_CLK_ETHER>;
621 phy-mode = "rmii";
622 #address-cells = <1>;
623 #size-cells = <0>;
624 status = "disabled";
625 };
626
Valentine Barshakcde630f2014-01-14 21:05:30 +0400627 sata0: sata@ee300000 {
628 compatible = "renesas,sata-r8a7790";
629 reg = <0 0xee300000 0 0x2000>;
Valentine Barshakcde630f2014-01-14 21:05:30 +0400630 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
631 clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
632 status = "disabled";
633 };
634
635 sata1: sata@ee500000 {
636 compatible = "renesas,sata-r8a7790";
637 reg = <0 0xee500000 0 0x2000>;
Valentine Barshakcde630f2014-01-14 21:05:30 +0400638 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
639 clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
640 status = "disabled";
641 };
642
Yoshihiro Shimodaae0a5552014-10-24 19:44:33 +0900643 hsusb: usb@e6590000 {
644 compatible = "renesas,usbhs-r8a7790";
645 reg = <0 0xe6590000 0 0x100>;
646 interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
647 clocks = <&mstp7_clks R8A7790_CLK_HSUSB>;
648 renesas,buswait = <4>;
649 phys = <&usb0 1>;
650 phy-names = "usb";
651 status = "disabled";
652 };
653
Sergei Shtylyove089f652014-09-27 01:00:20 +0400654 usbphy: usb-phy@e6590100 {
655 compatible = "renesas,usb-phy-r8a7790";
656 reg = <0 0xe6590100 0 0x100>;
657 #address-cells = <1>;
658 #size-cells = <0>;
659 clocks = <&mstp7_clks R8A7790_CLK_HSUSB>;
660 clock-names = "usbhs";
661 status = "disabled";
662
663 usb0: usb-channel@0 {
664 reg = <0>;
665 #phy-cells = <1>;
666 };
667 usb2: usb-channel@2 {
668 reg = <2>;
669 #phy-cells = <1>;
670 };
671 };
672
Ben Dooks9f685bf2014-08-13 00:16:18 +0400673 vin0: video@e6ef0000 {
674 compatible = "renesas,vin-r8a7790";
675 clocks = <&mstp8_clks R8A7790_CLK_VIN0>;
676 reg = <0 0xe6ef0000 0 0x1000>;
677 interrupts = <0 188 IRQ_TYPE_LEVEL_HIGH>;
678 status = "disabled";
679 };
680
681 vin1: video@e6ef1000 {
682 compatible = "renesas,vin-r8a7790";
683 clocks = <&mstp8_clks R8A7790_CLK_VIN1>;
684 reg = <0 0xe6ef1000 0 0x1000>;
685 interrupts = <0 189 IRQ_TYPE_LEVEL_HIGH>;
686 status = "disabled";
687 };
688
689 vin2: video@e6ef2000 {
690 compatible = "renesas,vin-r8a7790";
691 clocks = <&mstp8_clks R8A7790_CLK_VIN2>;
692 reg = <0 0xe6ef2000 0 0x1000>;
693 interrupts = <0 190 IRQ_TYPE_LEVEL_HIGH>;
694 status = "disabled";
695 };
696
697 vin3: video@e6ef3000 {
698 compatible = "renesas,vin-r8a7790";
699 clocks = <&mstp8_clks R8A7790_CLK_VIN3>;
700 reg = <0 0xe6ef3000 0 0x1000>;
701 interrupts = <0 191 IRQ_TYPE_LEVEL_HIGH>;
702 status = "disabled";
703 };
704
Laurent Pinchart3ac6a832014-01-21 16:00:46 +0100705 vsp1@fe920000 {
706 compatible = "renesas,vsp1";
707 reg = <0 0xfe920000 0 0x8000>;
708 interrupts = <0 266 IRQ_TYPE_LEVEL_HIGH>;
709 clocks = <&mstp1_clks R8A7790_CLK_VSP1_R>;
710
711 renesas,has-sru;
712 renesas,#rpf = <5>;
713 renesas,#uds = <1>;
714 renesas,#wpf = <4>;
715 };
716
717 vsp1@fe928000 {
718 compatible = "renesas,vsp1";
719 reg = <0 0xfe928000 0 0x8000>;
720 interrupts = <0 267 IRQ_TYPE_LEVEL_HIGH>;
721 clocks = <&mstp1_clks R8A7790_CLK_VSP1_S>;
722
723 renesas,has-lut;
724 renesas,has-sru;
725 renesas,#rpf = <5>;
726 renesas,#uds = <3>;
727 renesas,#wpf = <4>;
728 };
729
730 vsp1@fe930000 {
731 compatible = "renesas,vsp1";
732 reg = <0 0xfe930000 0 0x8000>;
733 interrupts = <0 246 IRQ_TYPE_LEVEL_HIGH>;
734 clocks = <&mstp1_clks R8A7790_CLK_VSP1_DU0>;
735
736 renesas,has-lif;
737 renesas,has-lut;
738 renesas,#rpf = <4>;
739 renesas,#uds = <1>;
740 renesas,#wpf = <4>;
741 };
742
743 vsp1@fe938000 {
744 compatible = "renesas,vsp1";
745 reg = <0 0xfe938000 0 0x8000>;
746 interrupts = <0 247 IRQ_TYPE_LEVEL_HIGH>;
747 clocks = <&mstp1_clks R8A7790_CLK_VSP1_DU1>;
748
749 renesas,has-lif;
750 renesas,has-lut;
751 renesas,#rpf = <4>;
752 renesas,#uds = <1>;
753 renesas,#wpf = <4>;
754 };
755
756 du: display@feb00000 {
757 compatible = "renesas,du-r8a7790";
758 reg = <0 0xfeb00000 0 0x70000>,
759 <0 0xfeb90000 0 0x1c>,
760 <0 0xfeb94000 0 0x1c>;
761 reg-names = "du", "lvds.0", "lvds.1";
762 interrupts = <0 256 IRQ_TYPE_LEVEL_HIGH>,
763 <0 268 IRQ_TYPE_LEVEL_HIGH>,
764 <0 269 IRQ_TYPE_LEVEL_HIGH>;
765 clocks = <&mstp7_clks R8A7790_CLK_DU0>,
766 <&mstp7_clks R8A7790_CLK_DU1>,
767 <&mstp7_clks R8A7790_CLK_DU2>,
768 <&mstp7_clks R8A7790_CLK_LVDS0>,
769 <&mstp7_clks R8A7790_CLK_LVDS1>;
770 clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1";
771 status = "disabled";
772
773 ports {
774 #address-cells = <1>;
775 #size-cells = <0>;
776
777 port@0 {
778 reg = <0>;
779 du_out_rgb: endpoint {
780 };
781 };
782 port@1 {
783 reg = <1>;
784 du_out_lvds0: endpoint {
785 };
786 };
787 port@2 {
788 reg = <2>;
789 du_out_lvds1: endpoint {
790 };
791 };
792 };
793 };
794
Sergei Shtylyov6a7742b2015-01-06 00:34:42 +0300795 can0: can@e6e80000 {
796 compatible = "renesas,can-r8a7790";
797 reg = <0 0xe6e80000 0 0x1000>;
798 interrupts = <0 186 IRQ_TYPE_LEVEL_HIGH>;
799 clocks = <&mstp9_clks R8A7790_CLK_RCAN0>,
800 <&cpg_clocks R8A7790_CLK_RCAN>, <&can_clk>;
801 clock-names = "clkp1", "clkp2", "can_clk";
802 status = "disabled";
803 };
804
805 can1: can@e6e88000 {
806 compatible = "renesas,can-r8a7790";
807 reg = <0 0xe6e88000 0 0x1000>;
808 interrupts = <0 187 IRQ_TYPE_LEVEL_HIGH>;
809 clocks = <&mstp9_clks R8A7790_CLK_RCAN1>,
810 <&cpg_clocks R8A7790_CLK_RCAN>, <&can_clk>;
811 clock-names = "clkp1", "clkp2", "can_clk";
812 status = "disabled";
813 };
814
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100815 clocks {
816 #address-cells = <2>;
817 #size-cells = <2>;
818 ranges;
819
820 /* External root clock */
821 extal_clk: extal_clk {
822 compatible = "fixed-clock";
823 #clock-cells = <0>;
824 /* This value must be overriden by the board. */
825 clock-frequency = <0>;
826 clock-output-names = "extal";
827 };
828
Phil Edworthy51d17912014-06-13 10:37:16 +0100829 /* External PCIe clock - can be overridden by the board */
830 pcie_bus_clk: pcie_bus_clk {
831 compatible = "fixed-clock";
832 #clock-cells = <0>;
833 clock-frequency = <100000000>;
834 clock-output-names = "pcie_bus";
835 status = "disabled";
836 };
837
Kuninori Morimotoc7c2ec32014-01-13 18:25:39 -0800838 /*
839 * The external audio clocks are configured as 0 Hz fixed frequency clocks by
840 * default. Boards that provide audio clocks should override them.
841 */
842 audio_clk_a: audio_clk_a {
843 compatible = "fixed-clock";
844 #clock-cells = <0>;
845 clock-frequency = <0>;
846 clock-output-names = "audio_clk_a";
847 };
848 audio_clk_b: audio_clk_b {
849 compatible = "fixed-clock";
850 #clock-cells = <0>;
851 clock-frequency = <0>;
852 clock-output-names = "audio_clk_b";
853 };
854 audio_clk_c: audio_clk_c {
855 compatible = "fixed-clock";
856 #clock-cells = <0>;
857 clock-frequency = <0>;
858 clock-output-names = "audio_clk_c";
859 };
860
Sergei Shtylyov41650f42015-01-06 00:33:25 +0300861 /* External USB clock - can be overridden by the board */
862 usb_extal_clk: usb_extal_clk {
863 compatible = "fixed-clock";
864 #clock-cells = <0>;
865 clock-frequency = <48000000>;
866 clock-output-names = "usb_extal";
867 };
868
869 /* External CAN clock */
870 can_clk: can_clk {
871 compatible = "fixed-clock";
872 #clock-cells = <0>;
873 /* This value must be overridden by the board. */
874 clock-frequency = <0>;
875 clock-output-names = "can_clk";
876 status = "disabled";
877 };
878
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100879 /* Special CPG clocks */
880 cpg_clocks: cpg_clocks@e6150000 {
881 compatible = "renesas,r8a7790-cpg-clocks",
882 "renesas,rcar-gen2-cpg-clocks";
883 reg = <0 0xe6150000 0 0x1000>;
Sergei Shtylyov41650f42015-01-06 00:33:25 +0300884 clocks = <&extal_clk &usb_extal_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100885 #clock-cells = <1>;
886 clock-output-names = "main", "pll0", "pll1", "pll3",
887 "lb", "qspi", "sdh", "sd0", "sd1",
Sergei Shtylyov41650f42015-01-06 00:33:25 +0300888 "z", "rcan";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100889 };
890
891 /* Variable factor clocks */
892 sd2_clk: sd2_clk@e6150078 {
893 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
894 reg = <0 0xe6150078 0 4>;
895 clocks = <&pll1_div2_clk>;
896 #clock-cells = <0>;
897 clock-output-names = "sd2";
898 };
Shinobu Ueharaedd7b932014-10-30 14:57:57 +0900899 sd3_clk: sd3_clk@e615026c {
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100900 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
Shinobu Ueharaedd7b932014-10-30 14:57:57 +0900901 reg = <0 0xe615026c 0 4>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100902 clocks = <&pll1_div2_clk>;
903 #clock-cells = <0>;
904 clock-output-names = "sd3";
905 };
906 mmc0_clk: mmc0_clk@e6150240 {
907 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
908 reg = <0 0xe6150240 0 4>;
909 clocks = <&pll1_div2_clk>;
910 #clock-cells = <0>;
911 clock-output-names = "mmc0";
912 };
913 mmc1_clk: mmc1_clk@e6150244 {
914 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
915 reg = <0 0xe6150244 0 4>;
916 clocks = <&pll1_div2_clk>;
917 #clock-cells = <0>;
918 clock-output-names = "mmc1";
919 };
920 ssp_clk: ssp_clk@e6150248 {
921 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
922 reg = <0 0xe6150248 0 4>;
923 clocks = <&pll1_div2_clk>;
924 #clock-cells = <0>;
925 clock-output-names = "ssp";
926 };
927 ssprs_clk: ssprs_clk@e615024c {
928 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
929 reg = <0 0xe615024c 0 4>;
930 clocks = <&pll1_div2_clk>;
931 #clock-cells = <0>;
932 clock-output-names = "ssprs";
933 };
934
935 /* Fixed factor clocks */
936 pll1_div2_clk: pll1_div2_clk {
937 compatible = "fixed-factor-clock";
938 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
939 #clock-cells = <0>;
940 clock-div = <2>;
941 clock-mult = <1>;
942 clock-output-names = "pll1_div2";
943 };
944 z2_clk: z2_clk {
945 compatible = "fixed-factor-clock";
946 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
947 #clock-cells = <0>;
948 clock-div = <2>;
949 clock-mult = <1>;
950 clock-output-names = "z2";
951 };
952 zg_clk: zg_clk {
953 compatible = "fixed-factor-clock";
954 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
955 #clock-cells = <0>;
956 clock-div = <3>;
957 clock-mult = <1>;
958 clock-output-names = "zg";
959 };
960 zx_clk: zx_clk {
961 compatible = "fixed-factor-clock";
962 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
963 #clock-cells = <0>;
964 clock-div = <3>;
965 clock-mult = <1>;
966 clock-output-names = "zx";
967 };
968 zs_clk: zs_clk {
969 compatible = "fixed-factor-clock";
970 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
971 #clock-cells = <0>;
972 clock-div = <6>;
973 clock-mult = <1>;
974 clock-output-names = "zs";
975 };
976 hp_clk: hp_clk {
977 compatible = "fixed-factor-clock";
978 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
979 #clock-cells = <0>;
980 clock-div = <12>;
981 clock-mult = <1>;
982 clock-output-names = "hp";
983 };
984 i_clk: i_clk {
985 compatible = "fixed-factor-clock";
986 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
987 #clock-cells = <0>;
988 clock-div = <2>;
989 clock-mult = <1>;
990 clock-output-names = "i";
991 };
992 b_clk: b_clk {
993 compatible = "fixed-factor-clock";
994 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
995 #clock-cells = <0>;
996 clock-div = <12>;
997 clock-mult = <1>;
998 clock-output-names = "b";
999 };
1000 p_clk: p_clk {
1001 compatible = "fixed-factor-clock";
1002 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1003 #clock-cells = <0>;
1004 clock-div = <24>;
1005 clock-mult = <1>;
1006 clock-output-names = "p";
1007 };
1008 cl_clk: cl_clk {
1009 compatible = "fixed-factor-clock";
1010 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1011 #clock-cells = <0>;
1012 clock-div = <48>;
1013 clock-mult = <1>;
1014 clock-output-names = "cl";
1015 };
1016 m2_clk: m2_clk {
1017 compatible = "fixed-factor-clock";
1018 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1019 #clock-cells = <0>;
1020 clock-div = <8>;
1021 clock-mult = <1>;
1022 clock-output-names = "m2";
1023 };
1024 imp_clk: imp_clk {
1025 compatible = "fixed-factor-clock";
1026 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1027 #clock-cells = <0>;
1028 clock-div = <4>;
1029 clock-mult = <1>;
1030 clock-output-names = "imp";
1031 };
1032 rclk_clk: rclk_clk {
1033 compatible = "fixed-factor-clock";
1034 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1035 #clock-cells = <0>;
1036 clock-div = <(48 * 1024)>;
1037 clock-mult = <1>;
1038 clock-output-names = "rclk";
1039 };
1040 oscclk_clk: oscclk_clk {
1041 compatible = "fixed-factor-clock";
1042 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1043 #clock-cells = <0>;
1044 clock-div = <(12 * 1024)>;
1045 clock-mult = <1>;
1046 clock-output-names = "oscclk";
1047 };
1048 zb3_clk: zb3_clk {
1049 compatible = "fixed-factor-clock";
1050 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
1051 #clock-cells = <0>;
1052 clock-div = <4>;
1053 clock-mult = <1>;
1054 clock-output-names = "zb3";
1055 };
1056 zb3d2_clk: zb3d2_clk {
1057 compatible = "fixed-factor-clock";
1058 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
1059 #clock-cells = <0>;
1060 clock-div = <8>;
1061 clock-mult = <1>;
1062 clock-output-names = "zb3d2";
1063 };
1064 ddr_clk: ddr_clk {
1065 compatible = "fixed-factor-clock";
1066 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
1067 #clock-cells = <0>;
1068 clock-div = <8>;
1069 clock-mult = <1>;
1070 clock-output-names = "ddr";
1071 };
1072 mp_clk: mp_clk {
1073 compatible = "fixed-factor-clock";
1074 clocks = <&pll1_div2_clk>;
1075 #clock-cells = <0>;
1076 clock-div = <15>;
1077 clock-mult = <1>;
1078 clock-output-names = "mp";
1079 };
1080 cp_clk: cp_clk {
1081 compatible = "fixed-factor-clock";
1082 clocks = <&extal_clk>;
1083 #clock-cells = <0>;
1084 clock-div = <2>;
1085 clock-mult = <1>;
1086 clock-output-names = "cp";
1087 };
1088
1089 /* Gate clocks */
Laurent Pinchart9d909512013-12-19 16:51:01 +01001090 mstp0_clks: mstp0_clks@e6150130 {
1091 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1092 reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
1093 clocks = <&mp_clk>;
1094 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001095 clock-indices = <R8A7790_CLK_MSIOF0>;
Laurent Pinchart9d909512013-12-19 16:51:01 +01001096 clock-output-names = "msiof0";
1097 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001098 mstp1_clks: mstp1_clks@e6150134 {
1099 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1100 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
Yoshifumi Hosoya4ba8f242014-10-14 16:01:42 +09001101 clocks = <&zs_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&m2_clk>,
1102 <&zs_clk>, <&p_clk>, <&zg_clk>, <&zs_clk>, <&zs_clk>,
1103 <&zs_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>,
1104 <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001105 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001106 clock-indices = <
Yoshifumi Hosoya4ba8f242014-10-14 16:01:42 +09001107 R8A7790_CLK_VCP1 R8A7790_CLK_VCP0 R8A7790_CLK_VPC1
1108 R8A7790_CLK_VPC0 R8A7790_CLK_JPU R8A7790_CLK_SSP1
1109 R8A7790_CLK_TMU1 R8A7790_CLK_3DG R8A7790_CLK_2DDMAC
1110 R8A7790_CLK_FDP1_2 R8A7790_CLK_FDP1_1 R8A7790_CLK_FDP1_0
1111 R8A7790_CLK_TMU3 R8A7790_CLK_TMU2 R8A7790_CLK_CMT0
1112 R8A7790_CLK_TMU0 R8A7790_CLK_VSP1_DU1 R8A7790_CLK_VSP1_DU0
1113 R8A7790_CLK_VSP1_R R8A7790_CLK_VSP1_S
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001114 >;
1115 clock-output-names =
Yoshifumi Hosoya4ba8f242014-10-14 16:01:42 +09001116 "vcp1", "vcp0", "vpc1", "vpc0", "jpu", "ssp1",
1117 "tmu1", "3dg", "2ddmac", "fdp1-2", "fdp1-1",
1118 "fdp1-0", "tmu3", "tmu2", "cmt0", "tmu0",
Kouei Abe2284ff52014-10-14 16:01:40 +09001119 "vsp1-du1", "vsp1-du0", "vsp1-rt", "vsp1-sy";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001120 };
1121 mstp2_clks: mstp2_clks@e6150138 {
1122 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1123 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
1124 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
Laurent Pinchartc819acd2014-07-19 01:50:23 +02001125 <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&zs_clk>,
1126 <&zs_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001127 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001128 clock-indices = <
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001129 R8A7790_CLK_SCIFA2 R8A7790_CLK_SCIFA1 R8A7790_CLK_SCIFA0
Laurent Pinchart9d909512013-12-19 16:51:01 +01001130 R8A7790_CLK_MSIOF2 R8A7790_CLK_SCIFB0 R8A7790_CLK_SCIFB1
1131 R8A7790_CLK_MSIOF1 R8A7790_CLK_MSIOF3 R8A7790_CLK_SCIFB2
Laurent Pinchartc819acd2014-07-19 01:50:23 +02001132 R8A7790_CLK_SYS_DMAC1 R8A7790_CLK_SYS_DMAC0
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001133 >;
1134 clock-output-names =
Laurent Pinchart9d909512013-12-19 16:51:01 +01001135 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
Laurent Pinchartc819acd2014-07-19 01:50:23 +02001136 "scifb1", "msiof1", "msiof3", "scifb2",
1137 "sys-dmac1", "sys-dmac0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001138 };
1139 mstp3_clks: mstp3_clks@e615013c {
1140 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1141 reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
Wolfram Sang17465142014-03-11 22:24:37 +01001142 clocks = <&hp_clk>, <&cp_clk>, <&mmc1_clk>, <&sd3_clk>,
1143 <&sd2_clk>, <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>, <&mmc0_clk>,
Yoshihiro Shimodab02ce792014-11-17 18:25:13 +09001144 <&hp_clk>, <&mp_clk>, <&hp_clk>, <&mp_clk>, <&rclk_clk>,
1145 <&hp_clk>, <&hp_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001146 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001147 clock-indices = <
Wolfram Sang17465142014-03-11 22:24:37 +01001148 R8A7790_CLK_IIC2 R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
1149 R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0 R8A7790_CLK_MMCIF0
Phil Edworthyecafea82014-06-13 10:37:15 +01001150 R8A7790_CLK_IIC0 R8A7790_CLK_PCIEC R8A7790_CLK_IIC1 R8A7790_CLK_SSUSB R8A7790_CLK_CMT1
Yoshihiro Shimodab02ce792014-11-17 18:25:13 +09001151 R8A7790_CLK_USBDMAC0 R8A7790_CLK_USBDMAC1
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001152 >;
1153 clock-output-names =
Wolfram Sang17465142014-03-11 22:24:37 +01001154 "iic2", "tpu0", "mmcif1", "sdhi3",
1155 "sdhi2", "sdhi1", "sdhi0", "mmcif0",
Yoshihiro Shimodab02ce792014-11-17 18:25:13 +09001156 "iic0", "pciec", "iic1", "ssusb", "cmt1",
1157 "usbdmac0", "usbdmac1";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001158 };
1159 mstp5_clks: mstp5_clks@e6150144 {
1160 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1161 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
Kuninori Morimotoba3240b2014-11-03 17:44:51 -08001162 clocks = <&hp_clk>, <&hp_clk>, <&extal_clk>, <&p_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001163 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001164 clock-indices = <
1165 R8A7790_CLK_AUDIO_DMAC0 R8A7790_CLK_AUDIO_DMAC1
1166 R8A7790_CLK_THERMAL R8A7790_CLK_PWM
1167 >;
Kuninori Morimotoba3240b2014-11-03 17:44:51 -08001168 clock-output-names = "audmac0", "audmac1", "thermal", "pwm";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001169 };
1170 mstp7_clks: mstp7_clks@e615014c {
1171 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1172 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
1173 clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>,
1174 <&p_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>,
1175 <&zx_clk>;
1176 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001177 clock-indices = <
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001178 R8A7790_CLK_EHCI R8A7790_CLK_HSUSB R8A7790_CLK_HSCIF1
1179 R8A7790_CLK_HSCIF0 R8A7790_CLK_SCIF1 R8A7790_CLK_SCIF0
1180 R8A7790_CLK_DU2 R8A7790_CLK_DU1 R8A7790_CLK_DU0
1181 R8A7790_CLK_LVDS1 R8A7790_CLK_LVDS0
1182 >;
1183 clock-output-names =
1184 "ehci", "hsusb", "hscif1", "hscif0", "scif1",
1185 "scif0", "du2", "du1", "du0", "lvds1", "lvds0";
1186 };
1187 mstp8_clks: mstp8_clks@e6150990 {
1188 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1189 reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
Andrey Gusakovf6b5dd42014-12-18 23:41:52 +03001190 clocks = <&hp_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>,
1191 <&zg_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001192 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001193 clock-indices = <
Andrey Gusakovf6b5dd42014-12-18 23:41:52 +03001194 R8A7790_CLK_MLB R8A7790_CLK_VIN3 R8A7790_CLK_VIN2
1195 R8A7790_CLK_VIN1 R8A7790_CLK_VIN0 R8A7790_CLK_ETHER
1196 R8A7790_CLK_SATA1 R8A7790_CLK_SATA0
Laurent Pinchart3f2beaa2014-01-07 09:22:53 +01001197 >;
Laurent Pinchartbccccc32014-01-07 09:22:55 +01001198 clock-output-names =
Andrey Gusakovf6b5dd42014-12-18 23:41:52 +03001199 "mlb", "vin3", "vin2", "vin1", "vin0", "ether",
1200 "sata1", "sata0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001201 };
1202 mstp9_clks: mstp9_clks@e6150994 {
1203 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1204 reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +02001205 clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>,
1206 <&cp_clk>, <&cp_clk>, <&cp_clk>,
1207 <&p_clk>, <&p_clk>, <&cpg_clocks R8A7790_CLK_QSPI>, <&cp_clk>,
Laurent Pinchart3672b052014-04-01 13:02:17 +02001208 <&hp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001209 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001210 clock-indices = <
Geert Uytterhoeven81f68832014-04-23 10:25:27 +02001211 R8A7790_CLK_GPIO5 R8A7790_CLK_GPIO4 R8A7790_CLK_GPIO3
1212 R8A7790_CLK_GPIO2 R8A7790_CLK_GPIO1 R8A7790_CLK_GPIO0
Wolfram Sang17465142014-03-11 22:24:37 +01001213 R8A7790_CLK_RCAN1 R8A7790_CLK_RCAN0 R8A7790_CLK_QSPI_MOD R8A7790_CLK_IICDVFS
1214 R8A7790_CLK_I2C3 R8A7790_CLK_I2C2 R8A7790_CLK_I2C1 R8A7790_CLK_I2C0
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001215 >;
Laurent Pinchart91b56ca2013-12-19 16:51:03 +01001216 clock-output-names =
Geert Uytterhoeven81f68832014-04-23 10:25:27 +02001217 "gpio5", "gpio4", "gpio3", "gpio2", "gpio1", "gpio0",
Wolfram Sang17465142014-03-11 22:24:37 +01001218 "rcan1", "rcan0", "qspi_mod", "iic3",
1219 "i2c3", "i2c2", "i2c1", "i2c0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001220 };
Kuninori Morimotobcde3722014-06-10 23:53:27 -07001221 mstp10_clks: mstp10_clks@e6150998 {
1222 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1223 reg = <0 0xe6150998 0 4>, <0 0xe61509a8 0 4>;
1224 clocks = <&p_clk>,
1225 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1226 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1227 <&p_clk>,
1228 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1229 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1230 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1231 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1232 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1233 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>;
1234
1235 #clock-cells = <1>;
1236 clock-indices = <
1237 R8A7790_CLK_SSI_ALL
1238 R8A7790_CLK_SSI9 R8A7790_CLK_SSI8 R8A7790_CLK_SSI7 R8A7790_CLK_SSI6 R8A7790_CLK_SSI5
1239 R8A7790_CLK_SSI4 R8A7790_CLK_SSI3 R8A7790_CLK_SSI2 R8A7790_CLK_SSI1 R8A7790_CLK_SSI0
1240 R8A7790_CLK_SCU_ALL
1241 R8A7790_CLK_SCU_DVC1 R8A7790_CLK_SCU_DVC0
1242 R8A7790_CLK_SCU_SRC9 R8A7790_CLK_SCU_SRC8 R8A7790_CLK_SCU_SRC7 R8A7790_CLK_SCU_SRC6 R8A7790_CLK_SCU_SRC5
1243 R8A7790_CLK_SCU_SRC4 R8A7790_CLK_SCU_SRC3 R8A7790_CLK_SCU_SRC2 R8A7790_CLK_SCU_SRC1 R8A7790_CLK_SCU_SRC0
1244 >;
1245 clock-output-names =
1246 "ssi-all",
1247 "ssi9", "ssi8", "ssi7", "ssi6", "ssi5",
1248 "ssi4", "ssi3", "ssi2", "ssi1", "ssi0",
1249 "scu-all",
1250 "scu-dvc1", "scu-dvc0",
1251 "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5",
1252 "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0";
1253 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001254 };
Geert Uytterhoeven7053e132014-02-10 11:47:29 +01001255
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +01001256 qspi: spi@e6b10000 {
Geert Uytterhoeven7053e132014-02-10 11:47:29 +01001257 compatible = "renesas,qspi-r8a7790", "renesas,qspi";
1258 reg = <0 0xe6b10000 0 0x2c>;
Geert Uytterhoeven7053e132014-02-10 11:47:29 +01001259 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
1260 clocks = <&mstp9_clks R8A7790_CLK_QSPI_MOD>;
Geert Uytterhoeven37cf3d62014-08-06 14:59:08 +02001261 dmas = <&dmac0 0x17>, <&dmac0 0x18>;
1262 dma-names = "tx", "rx";
Geert Uytterhoeven7053e132014-02-10 11:47:29 +01001263 num-cs = <1>;
1264 #address-cells = <1>;
1265 #size-cells = <0>;
1266 status = "disabled";
1267 };
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001268
1269 msiof0: spi@e6e20000 {
1270 compatible = "renesas,msiof-r8a7790";
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001271 reg = <0 0xe6e20000 0 0x0064>, <0 0xe7e20000 0 0x0064>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001272 interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>;
1273 clocks = <&mstp0_clks R8A7790_CLK_MSIOF0>;
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001274 dmas = <&dmac0 0x51>, <&dmac0 0x52>;
1275 dma-names = "tx", "rx";
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001276 #address-cells = <1>;
1277 #size-cells = <0>;
1278 status = "disabled";
1279 };
1280
1281 msiof1: spi@e6e10000 {
1282 compatible = "renesas,msiof-r8a7790";
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001283 reg = <0 0xe6e10000 0 0x0064>, <0 0xe7e10000 0 0x0064>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001284 interrupts = <0 157 IRQ_TYPE_LEVEL_HIGH>;
1285 clocks = <&mstp2_clks R8A7790_CLK_MSIOF1>;
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001286 dmas = <&dmac0 0x55>, <&dmac0 0x56>;
1287 dma-names = "tx", "rx";
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001288 #address-cells = <1>;
1289 #size-cells = <0>;
1290 status = "disabled";
1291 };
1292
1293 msiof2: spi@e6e00000 {
1294 compatible = "renesas,msiof-r8a7790";
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001295 reg = <0 0xe6e00000 0 0x0064>, <0 0xe7e00000 0 0x0064>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001296 interrupts = <0 158 IRQ_TYPE_LEVEL_HIGH>;
1297 clocks = <&mstp2_clks R8A7790_CLK_MSIOF2>;
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001298 dmas = <&dmac0 0x41>, <&dmac0 0x42>;
1299 dma-names = "tx", "rx";
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001300 #address-cells = <1>;
1301 #size-cells = <0>;
1302 status = "disabled";
1303 };
1304
1305 msiof3: spi@e6c90000 {
1306 compatible = "renesas,msiof-r8a7790";
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001307 reg = <0 0xe6c90000 0 0x0064>, <0 0xe7c90000 0 0x0064>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001308 interrupts = <0 159 IRQ_TYPE_LEVEL_HIGH>;
1309 clocks = <&mstp2_clks R8A7790_CLK_MSIOF3>;
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001310 dmas = <&dmac0 0x45>, <&dmac0 0x46>;
1311 dma-names = "tx", "rx";
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001312 #address-cells = <1>;
1313 #size-cells = <0>;
1314 status = "disabled";
1315 };
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001316
Yoshihiro Shimoda157fcd82014-10-24 19:41:46 +09001317 xhci: usb@ee000000 {
1318 compatible = "renesas,xhci-r8a7790";
1319 reg = <0 0xee000000 0 0xc00>;
1320 interrupts = <0 101 IRQ_TYPE_LEVEL_HIGH>;
1321 clocks = <&mstp3_clks R8A7790_CLK_SSUSB>;
1322 phys = <&usb2 1>;
1323 phy-names = "usb";
1324 status = "disabled";
1325 };
1326
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001327 pci0: pci@ee090000 {
1328 compatible = "renesas,pci-r8a7790";
1329 device_type = "pci";
1330 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
1331 reg = <0 0xee090000 0 0xc00>,
1332 <0 0xee080000 0 0x1100>;
1333 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
1334 status = "disabled";
1335
1336 bus-range = <0 0>;
1337 #address-cells = <3>;
1338 #size-cells = <2>;
1339 #interrupt-cells = <1>;
1340 ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>;
1341 interrupt-map-mask = <0xff00 0 0 0x7>;
1342 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
Geert Uytterhoeven517ec802014-06-30 11:49:53 +02001343 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1344 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyov538c40e2014-09-29 22:21:59 +04001345
1346 usb@0,1 {
1347 reg = <0x800 0 0 0 0>;
1348 device_type = "pci";
1349 phys = <&usb0 0>;
1350 phy-names = "usb";
1351 };
1352
1353 usb@0,2 {
1354 reg = <0x1000 0 0 0 0>;
1355 device_type = "pci";
1356 phys = <&usb0 0>;
1357 phy-names = "usb";
1358 };
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001359 };
1360
1361 pci1: pci@ee0b0000 {
1362 compatible = "renesas,pci-r8a7790";
1363 device_type = "pci";
1364 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
1365 reg = <0 0xee0b0000 0 0xc00>,
1366 <0 0xee0a0000 0 0x1100>;
1367 interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>;
1368 status = "disabled";
1369
1370 bus-range = <1 1>;
1371 #address-cells = <3>;
1372 #size-cells = <2>;
1373 #interrupt-cells = <1>;
1374 ranges = <0x02000000 0 0xee0a0000 0 0xee0a0000 0 0x00010000>;
1375 interrupt-map-mask = <0xff00 0 0 0x7>;
1376 interrupt-map = <0x0000 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH
Geert Uytterhoeven517ec802014-06-30 11:49:53 +02001377 0x0800 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH
1378 0x1000 0 0 2 &gic 0 112 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001379 };
1380
1381 pci2: pci@ee0d0000 {
1382 compatible = "renesas,pci-r8a7790";
1383 device_type = "pci";
1384 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
1385 reg = <0 0xee0d0000 0 0xc00>,
1386 <0 0xee0c0000 0 0x1100>;
1387 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
1388 status = "disabled";
1389
1390 bus-range = <2 2>;
1391 #address-cells = <3>;
1392 #size-cells = <2>;
1393 #interrupt-cells = <1>;
1394 ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>;
1395 interrupt-map-mask = <0xff00 0 0 0x7>;
1396 interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
Geert Uytterhoeven517ec802014-06-30 11:49:53 +02001397 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1398 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyov538c40e2014-09-29 22:21:59 +04001399
1400 usb@0,1 {
1401 reg = <0x800 0 0 0 0>;
1402 device_type = "pci";
1403 phys = <&usb2 0>;
1404 phy-names = "usb";
1405 };
1406
1407 usb@0,2 {
1408 reg = <0x1000 0 0 0 0>;
1409 device_type = "pci";
1410 phys = <&usb2 0>;
1411 phy-names = "usb";
1412 };
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001413 };
1414
Phil Edworthy745329d2014-06-13 10:37:17 +01001415 pciec: pcie@fe000000 {
1416 compatible = "renesas,pcie-r8a7790";
1417 reg = <0 0xfe000000 0 0x80000>;
1418 #address-cells = <3>;
1419 #size-cells = <2>;
1420 bus-range = <0x00 0xff>;
1421 device_type = "pci";
1422 ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000
1423 0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000
1424 0x02000000 0 0x30000000 0 0x30000000 0 0x08000000
1425 0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;
1426 /* Map all possible DDR as inbound ranges */
1427 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000
1428 0x43000000 1 0x80000000 1 0x80000000 0 0x80000000>;
1429 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>,
1430 <0 117 IRQ_TYPE_LEVEL_HIGH>,
1431 <0 118 IRQ_TYPE_LEVEL_HIGH>;
1432 #interrupt-cells = <1>;
1433 interrupt-map-mask = <0 0 0 0>;
1434 interrupt-map = <0 0 0 0 &gic 0 116 IRQ_TYPE_LEVEL_HIGH>;
1435 clocks = <&mstp3_clks R8A7790_CLK_PCIEC>, <&pcie_bus_clk>;
1436 clock-names = "pcie", "pcie_bus";
1437 status = "disabled";
1438 };
1439
Geert Uytterhoeven83b4fb62014-10-29 15:30:51 +01001440 rcar_sound: rcar_sound@ec500000 {
Kuninori Morimotoad632412014-12-17 06:11:52 +00001441 /*
1442 * #sound-dai-cells is required
1443 *
1444 * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>;
1445 * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>;
1446 */
Geert Uytterhoeven31078ec2015-01-06 21:01:52 +01001447 compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2";
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001448 reg = <0 0xec500000 0 0x1000>, /* SCU */
1449 <0 0xec5a0000 0 0x100>, /* ADG */
1450 <0 0xec540000 0 0x1000>, /* SSIU */
1451 <0 0xec541000 0 0x1280>; /* SSI */
1452 clocks = <&mstp10_clks R8A7790_CLK_SSI_ALL>,
1453 <&mstp10_clks R8A7790_CLK_SSI9>, <&mstp10_clks R8A7790_CLK_SSI8>,
1454 <&mstp10_clks R8A7790_CLK_SSI7>, <&mstp10_clks R8A7790_CLK_SSI6>,
1455 <&mstp10_clks R8A7790_CLK_SSI5>, <&mstp10_clks R8A7790_CLK_SSI4>,
1456 <&mstp10_clks R8A7790_CLK_SSI3>, <&mstp10_clks R8A7790_CLK_SSI2>,
1457 <&mstp10_clks R8A7790_CLK_SSI1>, <&mstp10_clks R8A7790_CLK_SSI0>,
1458 <&mstp10_clks R8A7790_CLK_SCU_SRC9>, <&mstp10_clks R8A7790_CLK_SCU_SRC8>,
1459 <&mstp10_clks R8A7790_CLK_SCU_SRC7>, <&mstp10_clks R8A7790_CLK_SCU_SRC6>,
1460 <&mstp10_clks R8A7790_CLK_SCU_SRC5>, <&mstp10_clks R8A7790_CLK_SCU_SRC4>,
1461 <&mstp10_clks R8A7790_CLK_SCU_SRC3>, <&mstp10_clks R8A7790_CLK_SCU_SRC2>,
1462 <&mstp10_clks R8A7790_CLK_SCU_SRC1>, <&mstp10_clks R8A7790_CLK_SCU_SRC0>,
Kuninori Morimoto334d69a2014-06-25 17:52:17 -07001463 <&mstp10_clks R8A7790_CLK_SCU_DVC0>, <&mstp10_clks R8A7790_CLK_SCU_DVC1>,
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001464 <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>;
1465 clock-names = "ssi-all",
1466 "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5",
1467 "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0",
1468 "src.9", "src.8", "src.7", "src.6", "src.5",
1469 "src.4", "src.3", "src.2", "src.1", "src.0",
Kuninori Morimoto334d69a2014-06-25 17:52:17 -07001470 "dvc.0", "dvc.1",
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001471 "clk_a", "clk_b", "clk_c", "clk_i";
1472
1473 status = "disabled";
1474
Kuninori Morimoto334d69a2014-06-25 17:52:17 -07001475 rcar_sound,dvc {
1476 dvc0: dvc@0 { };
1477 dvc1: dvc@1 { };
1478 };
1479
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001480 rcar_sound,src {
Kuninori Morimotod86a3112015-01-08 01:55:15 +00001481 src0: src@0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; };
1482 src1: src@1 { interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; };
1483 src2: src@2 { interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; };
1484 src3: src@3 { interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; };
1485 src4: src@4 { interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; };
1486 src5: src@5 { interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; };
1487 src6: src@6 { interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; };
1488 src7: src@7 { interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; };
1489 src8: src@8 { interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; };
1490 src9: src@9 { interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; };
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001491 };
1492
1493 rcar_sound,ssi {
1494 ssi0: ssi@0 { interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; };
1495 ssi1: ssi@1 { interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>; };
1496 ssi2: ssi@2 { interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>; };
1497 ssi3: ssi@3 { interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>; };
1498 ssi4: ssi@4 { interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>; };
1499 ssi5: ssi@5 { interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>; };
1500 ssi6: ssi@6 { interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>; };
1501 ssi7: ssi@7 { interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>; };
1502 ssi8: ssi@8 { interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>; };
1503 ssi9: ssi@9 { interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>; };
1504 };
1505 };
Laurent Pinchart70496722015-01-27 11:13:23 +02001506
1507 ipmmu_sy0: mmu@e6280000 {
1508 compatible = "renesas,ipmmu-vmsa";
1509 reg = <0 0xe6280000 0 0x1000>;
1510 interrupts = <0 223 IRQ_TYPE_LEVEL_HIGH>,
1511 <0 224 IRQ_TYPE_LEVEL_HIGH>;
1512 #iommu-cells = <1>;
1513 status = "disabled";
1514 };
1515
1516 ipmmu_sy1: mmu@e6290000 {
1517 compatible = "renesas,ipmmu-vmsa";
1518 reg = <0 0xe6290000 0 0x1000>;
1519 interrupts = <0 225 IRQ_TYPE_LEVEL_HIGH>;
1520 #iommu-cells = <1>;
1521 status = "disabled";
1522 };
1523
1524 ipmmu_ds: mmu@e6740000 {
1525 compatible = "renesas,ipmmu-vmsa";
1526 reg = <0 0xe6740000 0 0x1000>;
1527 interrupts = <0 198 IRQ_TYPE_LEVEL_HIGH>,
1528 <0 199 IRQ_TYPE_LEVEL_HIGH>;
1529 #iommu-cells = <1>;
1530 status = "disabled";
1531 };
1532
1533 ipmmu_mp: mmu@ec680000 {
1534 compatible = "renesas,ipmmu-vmsa";
1535 reg = <0 0xec680000 0 0x1000>;
1536 interrupts = <0 226 IRQ_TYPE_LEVEL_HIGH>;
1537 #iommu-cells = <1>;
1538 status = "disabled";
1539 };
1540
1541 ipmmu_mx: mmu@fe951000 {
1542 compatible = "renesas,ipmmu-vmsa";
1543 reg = <0 0xfe951000 0 0x1000>;
1544 interrupts = <0 222 IRQ_TYPE_LEVEL_HIGH>,
1545 <0 221 IRQ_TYPE_LEVEL_HIGH>;
1546 #iommu-cells = <1>;
1547 status = "disabled";
1548 };
1549
1550 ipmmu_rt: mmu@ffc80000 {
1551 compatible = "renesas,ipmmu-vmsa";
1552 reg = <0 0xffc80000 0 0x1000>;
1553 interrupts = <0 307 IRQ_TYPE_LEVEL_HIGH>;
1554 #iommu-cells = <1>;
1555 status = "disabled";
1556 };
Magnus Damm0468b2d2013-03-28 00:49:34 +09001557};