blob: a0b2a79cbfbdf0b42286dea205fe6751fdaf57f6 [file] [log] [blame]
Magnus Damm0468b2d2013-03-28 00:49:34 +09001/*
2 * Device Tree Source for the r8a7790 SoC
3 *
Kazuya Mizuguchib621f6d2015-02-19 10:42:55 -05004 * Copyright (C) 2015 Renesas Electronics Corporation
Sergei Shtylyovd8913c62014-02-20 02:20:43 +03005 * Copyright (C) 2013-2014 Renesas Solutions Corp.
6 * Copyright (C) 2014 Cogent Embedded Inc.
Magnus Damm0468b2d2013-03-28 00:49:34 +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 Pinchart22a1f592013-12-11 15:05:14 +010013#include <dt-bindings/clock/r8a7790-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
Magnus Damm0468b2d2013-03-28 00:49:34 +090017/ {
18 compatible = "renesas,r8a7790";
19 interrupt-parent = <&gic>;
Takashi Yoshii8585deb2013-03-29 16:49:17 +090020 #address-cells = <2>;
21 #size-cells = <2>;
Magnus Damm0468b2d2013-03-28 00:49:34 +090022
Wolfram Sang6b1d7c62014-02-16 10:40:58 +010023 aliases {
24 i2c0 = &i2c0;
25 i2c1 = &i2c1;
26 i2c2 = &i2c2;
27 i2c3 = &i2c3;
Wolfram Sang05f39912014-03-25 19:56:29 +010028 i2c4 = &iic0;
29 i2c5 = &iic1;
30 i2c6 = &iic2;
31 i2c7 = &iic3;
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +010032 spi0 = &qspi;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +010033 spi1 = &msiof0;
34 spi2 = &msiof1;
35 spi3 = &msiof2;
36 spi4 = &msiof3;
Ben Dooks9f685bf2014-08-13 00:16:18 +040037 vin0 = &vin0;
38 vin1 = &vin1;
39 vin2 = &vin2;
40 vin3 = &vin3;
Wolfram Sang6b1d7c62014-02-16 10:40:58 +010041 };
42
Magnus Damm0468b2d2013-03-28 00:49:34 +090043 cpus {
44 #address-cells = <1>;
45 #size-cells = <0>;
46
47 cpu0: cpu@0 {
48 device_type = "cpu";
49 compatible = "arm,cortex-a15";
50 reg = <0>;
51 clock-frequency = <1300000000>;
Benoit Coussonb989e132014-06-03 21:02:24 +090052 voltage-tolerance = <1>; /* 1% */
53 clocks = <&cpg_clocks R8A7790_CLK_Z>;
54 clock-latency = <300000>; /* 300 us */
55
56 /* kHz - uV - OPPs unknown yet */
57 operating-points = <1400000 1000000>,
58 <1225000 1000000>,
59 <1050000 1000000>,
60 < 875000 1000000>,
61 < 700000 1000000>,
62 < 350000 1000000>;
Magnus Damm0468b2d2013-03-28 00:49:34 +090063 };
Magnus Dammc1f95972013-08-29 08:22:17 +090064
65 cpu1: cpu@1 {
66 device_type = "cpu";
67 compatible = "arm,cortex-a15";
68 reg = <1>;
69 clock-frequency = <1300000000>;
70 };
71
72 cpu2: cpu@2 {
73 device_type = "cpu";
74 compatible = "arm,cortex-a15";
75 reg = <2>;
76 clock-frequency = <1300000000>;
77 };
78
79 cpu3: cpu@3 {
80 device_type = "cpu";
81 compatible = "arm,cortex-a15";
82 reg = <3>;
83 clock-frequency = <1300000000>;
84 };
Magnus Damm2007e742013-09-15 00:28:58 +090085
86 cpu4: cpu@4 {
87 device_type = "cpu";
88 compatible = "arm,cortex-a7";
89 reg = <0x100>;
90 clock-frequency = <780000000>;
91 };
92
93 cpu5: cpu@5 {
94 device_type = "cpu";
95 compatible = "arm,cortex-a7";
96 reg = <0x101>;
97 clock-frequency = <780000000>;
98 };
99
100 cpu6: cpu@6 {
101 device_type = "cpu";
102 compatible = "arm,cortex-a7";
103 reg = <0x102>;
104 clock-frequency = <780000000>;
105 };
106
107 cpu7: cpu@7 {
108 device_type = "cpu";
109 compatible = "arm,cortex-a7";
110 reg = <0x103>;
111 clock-frequency = <780000000>;
112 };
Magnus Damm0468b2d2013-03-28 00:49:34 +0900113 };
114
115 gic: interrupt-controller@f1001000 {
Geert Uytterhoevene715e9c2015-06-17 15:03:33 +0200116 compatible = "arm,gic-400";
Magnus Damm0468b2d2013-03-28 00:49:34 +0900117 #interrupt-cells = <3>;
118 #address-cells = <0>;
119 interrupt-controller;
Takashi Yoshii8585deb2013-03-29 16:49:17 +0900120 reg = <0 0xf1001000 0 0x1000>,
121 <0 0xf1002000 0 0x1000>,
122 <0 0xf1004000 0 0x2000>,
123 <0 0xf1006000 0 0x2000>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100124 interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Magnus Damm0468b2d2013-03-28 00:49:34 +0900125 };
126
Magnus Damm23de2272013-11-21 14:19:29 +0900127 gpio0: gpio@e6050000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200128 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900129 reg = <0 0xe6050000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100130 interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200131 #gpio-cells = <2>;
132 gpio-controller;
133 gpio-ranges = <&pfc 0 0 32>;
134 #interrupt-cells = <2>;
135 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200136 clocks = <&mstp9_clks R8A7790_CLK_GPIO0>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200137 power-domains = <&cpg_clocks>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200138 };
139
Magnus Damm23de2272013-11-21 14:19:29 +0900140 gpio1: gpio@e6051000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200141 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900142 reg = <0 0xe6051000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100143 interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200144 #gpio-cells = <2>;
145 gpio-controller;
146 gpio-ranges = <&pfc 0 32 32>;
147 #interrupt-cells = <2>;
148 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200149 clocks = <&mstp9_clks R8A7790_CLK_GPIO1>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200150 power-domains = <&cpg_clocks>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200151 };
152
Magnus Damm23de2272013-11-21 14:19:29 +0900153 gpio2: gpio@e6052000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200154 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900155 reg = <0 0xe6052000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100156 interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200157 #gpio-cells = <2>;
158 gpio-controller;
159 gpio-ranges = <&pfc 0 64 32>;
160 #interrupt-cells = <2>;
161 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200162 clocks = <&mstp9_clks R8A7790_CLK_GPIO2>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200163 power-domains = <&cpg_clocks>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200164 };
165
Magnus Damm23de2272013-11-21 14:19:29 +0900166 gpio3: gpio@e6053000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200167 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900168 reg = <0 0xe6053000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100169 interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200170 #gpio-cells = <2>;
171 gpio-controller;
172 gpio-ranges = <&pfc 0 96 32>;
173 #interrupt-cells = <2>;
174 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200175 clocks = <&mstp9_clks R8A7790_CLK_GPIO3>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200176 power-domains = <&cpg_clocks>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200177 };
178
Magnus Damm23de2272013-11-21 14:19:29 +0900179 gpio4: gpio@e6054000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200180 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900181 reg = <0 0xe6054000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100182 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200183 #gpio-cells = <2>;
184 gpio-controller;
185 gpio-ranges = <&pfc 0 128 32>;
186 #interrupt-cells = <2>;
187 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200188 clocks = <&mstp9_clks R8A7790_CLK_GPIO4>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200189 power-domains = <&cpg_clocks>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200190 };
191
Magnus Damm23de2272013-11-21 14:19:29 +0900192 gpio5: gpio@e6055000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200193 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900194 reg = <0 0xe6055000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100195 interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200196 #gpio-cells = <2>;
197 gpio-controller;
198 gpio-ranges = <&pfc 0 160 32>;
199 #interrupt-cells = <2>;
200 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200201 clocks = <&mstp9_clks R8A7790_CLK_GPIO5>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200202 power-domains = <&cpg_clocks>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200203 };
204
Magnus Damm03e2f562013-11-20 16:59:30 +0900205 thermal@e61f0000 {
206 compatible = "renesas,thermal-r8a7790", "renesas,rcar-thermal";
207 reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
Magnus Damm03e2f562013-11-20 16:59:30 +0900208 interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoevend3a439d2014-01-07 19:57:14 +0100209 clocks = <&mstp5_clks R8A7790_CLK_THERMAL>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200210 power-domains = <&cpg_clocks>;
Magnus Damm03e2f562013-11-20 16:59:30 +0900211 };
212
Magnus Damm0468b2d2013-03-28 00:49:34 +0900213 timer {
214 compatible = "arm,armv7-timer";
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100215 interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
216 <1 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
217 <1 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
218 <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Magnus Damm0468b2d2013-03-28 00:49:34 +0900219 };
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900220
Laurent Pinchart39cf6d72014-07-09 15:12:37 +0200221 cmt0: timer@ffca0000 {
Simon Horman37757032014-09-08 09:27:45 +0900222 compatible = "renesas,cmt-48-r8a7790", "renesas,cmt-48-gen2";
Laurent Pinchart39cf6d72014-07-09 15:12:37 +0200223 reg = <0 0xffca0000 0 0x1004>;
224 interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>,
225 <0 143 IRQ_TYPE_LEVEL_HIGH>;
226 clocks = <&mstp1_clks R8A7790_CLK_CMT0>;
227 clock-names = "fck";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200228 power-domains = <&cpg_clocks>;
Laurent Pinchart39cf6d72014-07-09 15:12:37 +0200229
230 renesas,channels-mask = <0x60>;
231
232 status = "disabled";
233 };
234
235 cmt1: timer@e6130000 {
Simon Horman37757032014-09-08 09:27:45 +0900236 compatible = "renesas,cmt-48-r8a7790", "renesas,cmt-48-gen2";
Laurent Pinchart39cf6d72014-07-09 15:12:37 +0200237 reg = <0 0xe6130000 0 0x1004>;
238 interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>,
239 <0 121 IRQ_TYPE_LEVEL_HIGH>,
240 <0 122 IRQ_TYPE_LEVEL_HIGH>,
241 <0 123 IRQ_TYPE_LEVEL_HIGH>,
242 <0 124 IRQ_TYPE_LEVEL_HIGH>,
243 <0 125 IRQ_TYPE_LEVEL_HIGH>,
244 <0 126 IRQ_TYPE_LEVEL_HIGH>,
245 <0 127 IRQ_TYPE_LEVEL_HIGH>;
246 clocks = <&mstp3_clks R8A7790_CLK_CMT1>;
247 clock-names = "fck";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200248 power-domains = <&cpg_clocks>;
Laurent Pinchart39cf6d72014-07-09 15:12:37 +0200249
250 renesas,channels-mask = <0xff>;
251
252 status = "disabled";
253 };
254
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900255 irqc0: interrupt-controller@e61c0000 {
Magnus Damm220fc352013-11-20 09:07:40 +0900256 compatible = "renesas,irqc-r8a7790", "renesas,irqc";
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900257 #interrupt-cells = <2>;
258 interrupt-controller;
Takashi Yoshii8585deb2013-03-29 16:49:17 +0900259 reg = <0 0xe61c0000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100260 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
261 <0 1 IRQ_TYPE_LEVEL_HIGH>,
262 <0 2 IRQ_TYPE_LEVEL_HIGH>,
263 <0 3 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven61624ca2015-03-18 19:55:59 +0100264 clocks = <&mstp4_clks R8A7790_CLK_IRQC>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200265 power-domains = <&cpg_clocks>;
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900266 };
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200267
Laurent Pinchartb9fea492014-07-19 01:50:24 +0200268 dmac0: dma-controller@e6700000 {
269 compatible = "renesas,rcar-dmac";
270 reg = <0 0xe6700000 0 0x20000>;
271 interrupts = <0 197 IRQ_TYPE_LEVEL_HIGH
272 0 200 IRQ_TYPE_LEVEL_HIGH
273 0 201 IRQ_TYPE_LEVEL_HIGH
274 0 202 IRQ_TYPE_LEVEL_HIGH
275 0 203 IRQ_TYPE_LEVEL_HIGH
276 0 204 IRQ_TYPE_LEVEL_HIGH
277 0 205 IRQ_TYPE_LEVEL_HIGH
278 0 206 IRQ_TYPE_LEVEL_HIGH
279 0 207 IRQ_TYPE_LEVEL_HIGH
280 0 208 IRQ_TYPE_LEVEL_HIGH
281 0 209 IRQ_TYPE_LEVEL_HIGH
282 0 210 IRQ_TYPE_LEVEL_HIGH
283 0 211 IRQ_TYPE_LEVEL_HIGH
284 0 212 IRQ_TYPE_LEVEL_HIGH
285 0 213 IRQ_TYPE_LEVEL_HIGH
286 0 214 IRQ_TYPE_LEVEL_HIGH>;
287 interrupt-names = "error",
288 "ch0", "ch1", "ch2", "ch3",
289 "ch4", "ch5", "ch6", "ch7",
290 "ch8", "ch9", "ch10", "ch11",
291 "ch12", "ch13", "ch14";
292 clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC0>;
293 clock-names = "fck";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200294 power-domains = <&cpg_clocks>;
Laurent Pinchartb9fea492014-07-19 01:50:24 +0200295 #dma-cells = <1>;
296 dma-channels = <15>;
297 };
298
299 dmac1: dma-controller@e6720000 {
300 compatible = "renesas,rcar-dmac";
301 reg = <0 0xe6720000 0 0x20000>;
302 interrupts = <0 220 IRQ_TYPE_LEVEL_HIGH
303 0 216 IRQ_TYPE_LEVEL_HIGH
304 0 217 IRQ_TYPE_LEVEL_HIGH
305 0 218 IRQ_TYPE_LEVEL_HIGH
306 0 219 IRQ_TYPE_LEVEL_HIGH
307 0 308 IRQ_TYPE_LEVEL_HIGH
308 0 309 IRQ_TYPE_LEVEL_HIGH
309 0 310 IRQ_TYPE_LEVEL_HIGH
310 0 311 IRQ_TYPE_LEVEL_HIGH
311 0 312 IRQ_TYPE_LEVEL_HIGH
312 0 313 IRQ_TYPE_LEVEL_HIGH
313 0 314 IRQ_TYPE_LEVEL_HIGH
314 0 315 IRQ_TYPE_LEVEL_HIGH
315 0 316 IRQ_TYPE_LEVEL_HIGH
316 0 317 IRQ_TYPE_LEVEL_HIGH
317 0 318 IRQ_TYPE_LEVEL_HIGH>;
318 interrupt-names = "error",
319 "ch0", "ch1", "ch2", "ch3",
320 "ch4", "ch5", "ch6", "ch7",
321 "ch8", "ch9", "ch10", "ch11",
322 "ch12", "ch13", "ch14";
323 clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC1>;
324 clock-names = "fck";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200325 power-domains = <&cpg_clocks>;
Laurent Pinchartb9fea492014-07-19 01:50:24 +0200326 #dma-cells = <1>;
327 dma-channels = <15>;
328 };
Kuninori Morimotoba3240b2014-11-03 17:44:51 -0800329
330 audma0: dma-controller@ec700000 {
331 compatible = "renesas,rcar-dmac";
332 reg = <0 0xec700000 0 0x10000>;
333 interrupts = <0 346 IRQ_TYPE_LEVEL_HIGH
334 0 320 IRQ_TYPE_LEVEL_HIGH
335 0 321 IRQ_TYPE_LEVEL_HIGH
336 0 322 IRQ_TYPE_LEVEL_HIGH
337 0 323 IRQ_TYPE_LEVEL_HIGH
338 0 324 IRQ_TYPE_LEVEL_HIGH
339 0 325 IRQ_TYPE_LEVEL_HIGH
340 0 326 IRQ_TYPE_LEVEL_HIGH
341 0 327 IRQ_TYPE_LEVEL_HIGH
342 0 328 IRQ_TYPE_LEVEL_HIGH
343 0 329 IRQ_TYPE_LEVEL_HIGH
344 0 330 IRQ_TYPE_LEVEL_HIGH
345 0 331 IRQ_TYPE_LEVEL_HIGH
346 0 332 IRQ_TYPE_LEVEL_HIGH>;
347 interrupt-names = "error",
348 "ch0", "ch1", "ch2", "ch3",
349 "ch4", "ch5", "ch6", "ch7",
350 "ch8", "ch9", "ch10", "ch11",
351 "ch12";
352 clocks = <&mstp5_clks R8A7790_CLK_AUDIO_DMAC0>;
353 clock-names = "fck";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200354 power-domains = <&cpg_clocks>;
Kuninori Morimotoba3240b2014-11-03 17:44:51 -0800355 #dma-cells = <1>;
356 dma-channels = <13>;
357 };
358
359 audma1: dma-controller@ec720000 {
360 compatible = "renesas,rcar-dmac";
361 reg = <0 0xec720000 0 0x10000>;
362 interrupts = <0 347 IRQ_TYPE_LEVEL_HIGH
363 0 333 IRQ_TYPE_LEVEL_HIGH
364 0 334 IRQ_TYPE_LEVEL_HIGH
365 0 335 IRQ_TYPE_LEVEL_HIGH
366 0 336 IRQ_TYPE_LEVEL_HIGH
367 0 337 IRQ_TYPE_LEVEL_HIGH
368 0 338 IRQ_TYPE_LEVEL_HIGH
369 0 339 IRQ_TYPE_LEVEL_HIGH
370 0 340 IRQ_TYPE_LEVEL_HIGH
371 0 341 IRQ_TYPE_LEVEL_HIGH
372 0 342 IRQ_TYPE_LEVEL_HIGH
373 0 343 IRQ_TYPE_LEVEL_HIGH
374 0 344 IRQ_TYPE_LEVEL_HIGH
375 0 345 IRQ_TYPE_LEVEL_HIGH>;
376 interrupt-names = "error",
377 "ch0", "ch1", "ch2", "ch3",
378 "ch4", "ch5", "ch6", "ch7",
379 "ch8", "ch9", "ch10", "ch11",
380 "ch12";
381 clocks = <&mstp5_clks R8A7790_CLK_AUDIO_DMAC1>;
382 clock-names = "fck";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200383 power-domains = <&cpg_clocks>;
Kuninori Morimotoba3240b2014-11-03 17:44:51 -0800384 #dma-cells = <1>;
385 dma-channels = <13>;
386 };
387
Yoshihiro Shimodaa3ff2092015-05-08 16:13:06 +0900388 usb_dmac0: dma-controller@e65a0000 {
389 compatible = "renesas,usb-dmac";
390 reg = <0 0xe65a0000 0 0x100>;
391 interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH
392 0 109 IRQ_TYPE_LEVEL_HIGH>;
393 interrupt-names = "ch0", "ch1";
394 clocks = <&mstp3_clks R8A7790_CLK_USBDMAC0>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200395 power-domains = <&cpg_clocks>;
Yoshihiro Shimodaa3ff2092015-05-08 16:13:06 +0900396 #dma-cells = <1>;
397 dma-channels = <2>;
398 };
399
400 usb_dmac1: dma-controller@e65b0000 {
401 compatible = "renesas,usb-dmac";
402 reg = <0 0xe65b0000 0 0x100>;
403 interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH
404 0 110 IRQ_TYPE_LEVEL_HIGH>;
405 interrupt-names = "ch0", "ch1";
406 clocks = <&mstp3_clks R8A7790_CLK_USBDMAC1>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200407 power-domains = <&cpg_clocks>;
Yoshihiro Shimodaa3ff2092015-05-08 16:13:06 +0900408 #dma-cells = <1>;
409 dma-channels = <2>;
410 };
411
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200412 i2c0: i2c@e6508000 {
413 #address-cells = <1>;
414 #size-cells = <0>;
415 compatible = "renesas,i2c-r8a7790";
416 reg = <0 0xe6508000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100417 interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000418 clocks = <&mstp9_clks R8A7790_CLK_I2C0>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200419 power-domains = <&cpg_clocks>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200420 status = "disabled";
421 };
422
423 i2c1: i2c@e6518000 {
424 #address-cells = <1>;
425 #size-cells = <0>;
426 compatible = "renesas,i2c-r8a7790";
427 reg = <0 0xe6518000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100428 interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000429 clocks = <&mstp9_clks R8A7790_CLK_I2C1>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200430 power-domains = <&cpg_clocks>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200431 status = "disabled";
432 };
433
434 i2c2: i2c@e6530000 {
435 #address-cells = <1>;
436 #size-cells = <0>;
437 compatible = "renesas,i2c-r8a7790";
438 reg = <0 0xe6530000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100439 interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000440 clocks = <&mstp9_clks R8A7790_CLK_I2C2>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200441 power-domains = <&cpg_clocks>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200442 status = "disabled";
443 };
444
445 i2c3: i2c@e6540000 {
446 #address-cells = <1>;
447 #size-cells = <0>;
448 compatible = "renesas,i2c-r8a7790";
449 reg = <0 0xe6540000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100450 interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000451 clocks = <&mstp9_clks R8A7790_CLK_I2C3>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200452 power-domains = <&cpg_clocks>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200453 status = "disabled";
454 };
455
Wolfram Sang05f39912014-03-25 19:56:29 +0100456 iic0: i2c@e6500000 {
457 #address-cells = <1>;
458 #size-cells = <0>;
459 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
460 reg = <0 0xe6500000 0 0x425>;
461 interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>;
462 clocks = <&mstp3_clks R8A7790_CLK_IIC0>;
Wolfram Sang0d73ca42014-11-07 11:11:43 +0100463 dmas = <&dmac0 0x61>, <&dmac0 0x62>;
464 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200465 power-domains = <&cpg_clocks>;
Wolfram Sang05f39912014-03-25 19:56:29 +0100466 status = "disabled";
467 };
468
469 iic1: i2c@e6510000 {
470 #address-cells = <1>;
471 #size-cells = <0>;
472 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
473 reg = <0 0xe6510000 0 0x425>;
474 interrupts = <0 175 IRQ_TYPE_LEVEL_HIGH>;
475 clocks = <&mstp3_clks R8A7790_CLK_IIC1>;
Wolfram Sang0d73ca42014-11-07 11:11:43 +0100476 dmas = <&dmac0 0x65>, <&dmac0 0x66>;
477 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200478 power-domains = <&cpg_clocks>;
Wolfram Sang05f39912014-03-25 19:56:29 +0100479 status = "disabled";
480 };
481
482 iic2: i2c@e6520000 {
483 #address-cells = <1>;
484 #size-cells = <0>;
485 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
486 reg = <0 0xe6520000 0 0x425>;
487 interrupts = <0 176 IRQ_TYPE_LEVEL_HIGH>;
488 clocks = <&mstp3_clks R8A7790_CLK_IIC2>;
Wolfram Sang0d73ca42014-11-07 11:11:43 +0100489 dmas = <&dmac0 0x69>, <&dmac0 0x6a>;
490 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200491 power-domains = <&cpg_clocks>;
Wolfram Sang05f39912014-03-25 19:56:29 +0100492 status = "disabled";
493 };
494
495 iic3: i2c@e60b0000 {
496 #address-cells = <1>;
497 #size-cells = <0>;
498 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
499 reg = <0 0xe60b0000 0 0x425>;
500 interrupts = <0 173 IRQ_TYPE_LEVEL_HIGH>;
501 clocks = <&mstp9_clks R8A7790_CLK_IICDVFS>;
Wolfram Sang0d73ca42014-11-07 11:11:43 +0100502 dmas = <&dmac0 0x77>, <&dmac0 0x78>;
503 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200504 power-domains = <&cpg_clocks>;
Wolfram Sang05f39912014-03-25 19:56:29 +0100505 status = "disabled";
506 };
507
Laurent Pinchart22c2b782014-10-26 19:40:11 +0200508 mmcif0: mmc@ee200000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900509 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200510 reg = <0 0xee200000 0 0x80>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100511 interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100512 clocks = <&mstp3_clks R8A7790_CLK_MMCIF0>;
Laurent Pinchart108216c2014-10-26 19:40:13 +0200513 dmas = <&dmac0 0xd1>, <&dmac0 0xd2>;
514 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200515 power-domains = <&cpg_clocks>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200516 reg-io-width = <4>;
517 status = "disabled";
Kuninori Morimoto96370052015-05-14 07:23:04 +0000518 max-frequency = <97500000>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200519 };
520
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700521 mmcif1: mmc@ee220000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900522 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200523 reg = <0 0xee220000 0 0x80>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100524 interrupts = <0 170 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100525 clocks = <&mstp3_clks R8A7790_CLK_MMCIF1>;
Laurent Pinchart108216c2014-10-26 19:40:13 +0200526 dmas = <&dmac0 0xe1>, <&dmac0 0xe2>;
527 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200528 power-domains = <&cpg_clocks>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200529 reg-io-width = <4>;
530 status = "disabled";
Kuninori Morimoto96370052015-05-14 07:23:04 +0000531 max-frequency = <97500000>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200532 };
533
Laurent Pinchart9694c772013-05-09 15:05:57 +0200534 pfc: pfc@e6060000 {
535 compatible = "renesas,pfc-r8a7790";
536 reg = <0 0xe6060000 0 0x250>;
537 };
Olof Johansson55689bf2013-08-14 00:24:05 -0700538
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700539 sdhi0: sd@ee100000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200540 compatible = "renesas,sdhi-r8a7790";
Kuninori Morimoto66f47ed2015-02-24 02:20:37 +0000541 reg = <0 0xee100000 0 0x328>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100542 interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100543 clocks = <&mstp3_clks R8A7790_CLK_SDHI0>;
Laurent Pinchart941fe362015-02-24 02:20:03 +0000544 dmas = <&dmac1 0xcd>, <&dmac1 0xce>;
545 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200546 power-domains = <&cpg_clocks>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200547 status = "disabled";
548 };
549
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700550 sdhi1: sd@ee120000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200551 compatible = "renesas,sdhi-r8a7790";
Kuninori Morimoto66f47ed2015-02-24 02:20:37 +0000552 reg = <0 0xee120000 0 0x328>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100553 interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100554 clocks = <&mstp3_clks R8A7790_CLK_SDHI1>;
Laurent Pinchart941fe362015-02-24 02:20:03 +0000555 dmas = <&dmac1 0xc9>, <&dmac1 0xca>;
556 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200557 power-domains = <&cpg_clocks>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200558 status = "disabled";
559 };
560
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700561 sdhi2: sd@ee140000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200562 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200563 reg = <0 0xee140000 0 0x100>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100564 interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100565 clocks = <&mstp3_clks R8A7790_CLK_SDHI2>;
Laurent Pinchart941fe362015-02-24 02:20:03 +0000566 dmas = <&dmac1 0xc1>, <&dmac1 0xc2>;
567 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200568 power-domains = <&cpg_clocks>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200569 status = "disabled";
570 };
571
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700572 sdhi3: sd@ee160000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200573 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200574 reg = <0 0xee160000 0 0x100>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100575 interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100576 clocks = <&mstp3_clks R8A7790_CLK_SDHI3>;
Laurent Pinchart941fe362015-02-24 02:20:03 +0000577 dmas = <&dmac1 0xd3>, <&dmac1 0xd4>;
578 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200579 power-domains = <&cpg_clocks>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200580 status = "disabled";
581 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100582
Laurent Pinchart597af202013-10-29 16:23:12 +0100583 scifa0: serial@e6c40000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100584 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100585 reg = <0 0xe6c40000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100586 interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100587 clocks = <&mstp2_clks R8A7790_CLK_SCIFA0>;
588 clock-names = "sci_ick";
Geert Uytterhoevenacea43f2015-05-20 19:46:25 +0200589 dmas = <&dmac0 0x21>, <&dmac0 0x22>;
590 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200591 power-domains = <&cpg_clocks>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100592 status = "disabled";
593 };
594
595 scifa1: serial@e6c50000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100596 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100597 reg = <0 0xe6c50000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100598 interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100599 clocks = <&mstp2_clks R8A7790_CLK_SCIFA1>;
600 clock-names = "sci_ick";
Geert Uytterhoevenacea43f2015-05-20 19:46:25 +0200601 dmas = <&dmac0 0x25>, <&dmac0 0x26>;
602 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200603 power-domains = <&cpg_clocks>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100604 status = "disabled";
605 };
606
607 scifa2: serial@e6c60000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100608 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100609 reg = <0 0xe6c60000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100610 interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100611 clocks = <&mstp2_clks R8A7790_CLK_SCIFA2>;
612 clock-names = "sci_ick";
Geert Uytterhoevenacea43f2015-05-20 19:46:25 +0200613 dmas = <&dmac0 0x27>, <&dmac0 0x28>;
614 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200615 power-domains = <&cpg_clocks>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100616 status = "disabled";
617 };
618
619 scifb0: serial@e6c20000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100620 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100621 reg = <0 0xe6c20000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100622 interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100623 clocks = <&mstp2_clks R8A7790_CLK_SCIFB0>;
624 clock-names = "sci_ick";
Geert Uytterhoevenacea43f2015-05-20 19:46:25 +0200625 dmas = <&dmac0 0x3d>, <&dmac0 0x3e>;
626 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200627 power-domains = <&cpg_clocks>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100628 status = "disabled";
629 };
630
631 scifb1: serial@e6c30000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100632 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100633 reg = <0 0xe6c30000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100634 interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100635 clocks = <&mstp2_clks R8A7790_CLK_SCIFB1>;
636 clock-names = "sci_ick";
Geert Uytterhoevenacea43f2015-05-20 19:46:25 +0200637 dmas = <&dmac0 0x19>, <&dmac0 0x1a>;
638 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200639 power-domains = <&cpg_clocks>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100640 status = "disabled";
641 };
642
643 scifb2: serial@e6ce0000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100644 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100645 reg = <0 0xe6ce0000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100646 interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100647 clocks = <&mstp2_clks R8A7790_CLK_SCIFB2>;
648 clock-names = "sci_ick";
Geert Uytterhoevenacea43f2015-05-20 19:46:25 +0200649 dmas = <&dmac0 0x1d>, <&dmac0 0x1e>;
650 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200651 power-domains = <&cpg_clocks>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100652 status = "disabled";
653 };
654
655 scif0: serial@e6e60000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100656 compatible = "renesas,scif-r8a7790", "renesas,scif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100657 reg = <0 0xe6e60000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100658 interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100659 clocks = <&mstp7_clks R8A7790_CLK_SCIF0>;
660 clock-names = "sci_ick";
Geert Uytterhoevenacea43f2015-05-20 19:46:25 +0200661 dmas = <&dmac0 0x29>, <&dmac0 0x2a>;
662 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200663 power-domains = <&cpg_clocks>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100664 status = "disabled";
665 };
666
667 scif1: serial@e6e68000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100668 compatible = "renesas,scif-r8a7790", "renesas,scif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100669 reg = <0 0xe6e68000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100670 interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100671 clocks = <&mstp7_clks R8A7790_CLK_SCIF1>;
672 clock-names = "sci_ick";
Geert Uytterhoevenacea43f2015-05-20 19:46:25 +0200673 dmas = <&dmac0 0x2d>, <&dmac0 0x2e>;
674 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200675 power-domains = <&cpg_clocks>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100676 status = "disabled";
677 };
678
679 hscif0: serial@e62c0000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100680 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100681 reg = <0 0xe62c0000 0 96>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100682 interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100683 clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>;
684 clock-names = "sci_ick";
Geert Uytterhoevenacea43f2015-05-20 19:46:25 +0200685 dmas = <&dmac0 0x39>, <&dmac0 0x3a>;
686 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200687 power-domains = <&cpg_clocks>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100688 status = "disabled";
689 };
690
691 hscif1: serial@e62c8000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100692 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100693 reg = <0 0xe62c8000 0 96>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100694 interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100695 clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>;
696 clock-names = "sci_ick";
Geert Uytterhoevenacea43f2015-05-20 19:46:25 +0200697 dmas = <&dmac0 0x4d>, <&dmac0 0x4e>;
698 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200699 power-domains = <&cpg_clocks>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100700 status = "disabled";
701 };
702
Sergei Shtylyovd8913c62014-02-20 02:20:43 +0300703 ether: ethernet@ee700000 {
704 compatible = "renesas,ether-r8a7790";
705 reg = <0 0xee700000 0 0x400>;
706 interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>;
707 clocks = <&mstp8_clks R8A7790_CLK_ETHER>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200708 power-domains = <&cpg_clocks>;
Sergei Shtylyovd8913c62014-02-20 02:20:43 +0300709 phy-mode = "rmii";
710 #address-cells = <1>;
711 #size-cells = <0>;
712 status = "disabled";
713 };
714
Sergei Shtylyovf25d6b92015-06-16 02:43:51 +0300715 avb: ethernet@e6800000 {
716 compatible = "renesas,etheravb-r8a7790";
717 reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>;
718 interrupts = <0 163 IRQ_TYPE_LEVEL_HIGH>;
719 clocks = <&mstp8_clks R8A7790_CLK_ETHERAVB>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200720 power-domains = <&cpg_clocks>;
Sergei Shtylyovf25d6b92015-06-16 02:43:51 +0300721 #address-cells = <1>;
722 #size-cells = <0>;
723 status = "disabled";
724 };
725
Valentine Barshakcde630f2014-01-14 21:05:30 +0400726 sata0: sata@ee300000 {
727 compatible = "renesas,sata-r8a7790";
728 reg = <0 0xee300000 0 0x2000>;
Valentine Barshakcde630f2014-01-14 21:05:30 +0400729 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
730 clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200731 power-domains = <&cpg_clocks>;
Valentine Barshakcde630f2014-01-14 21:05:30 +0400732 status = "disabled";
733 };
734
735 sata1: sata@ee500000 {
736 compatible = "renesas,sata-r8a7790";
737 reg = <0 0xee500000 0 0x2000>;
Valentine Barshakcde630f2014-01-14 21:05:30 +0400738 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
739 clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200740 power-domains = <&cpg_clocks>;
Valentine Barshakcde630f2014-01-14 21:05:30 +0400741 status = "disabled";
742 };
743
Yoshihiro Shimodaae0a5552014-10-24 19:44:33 +0900744 hsusb: usb@e6590000 {
745 compatible = "renesas,usbhs-r8a7790";
746 reg = <0 0xe6590000 0 0x100>;
747 interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
748 clocks = <&mstp7_clks R8A7790_CLK_HSUSB>;
Yoshihiro Shimodae8295dc2015-05-08 16:13:07 +0900749 dmas = <&usb_dmac0 0>, <&usb_dmac0 1>,
750 <&usb_dmac1 0>, <&usb_dmac1 1>;
751 dma-names = "ch0", "ch1", "ch2", "ch3";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200752 power-domains = <&cpg_clocks>;
753 renesas,buswait = <4>;
754 phys = <&usb0 1>;
755 phy-names = "usb";
Yoshihiro Shimodaae0a5552014-10-24 19:44:33 +0900756 status = "disabled";
757 };
758
Sergei Shtylyove089f652014-09-27 01:00:20 +0400759 usbphy: usb-phy@e6590100 {
760 compatible = "renesas,usb-phy-r8a7790";
761 reg = <0 0xe6590100 0 0x100>;
762 #address-cells = <1>;
763 #size-cells = <0>;
764 clocks = <&mstp7_clks R8A7790_CLK_HSUSB>;
765 clock-names = "usbhs";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200766 power-domains = <&cpg_clocks>;
Sergei Shtylyove089f652014-09-27 01:00:20 +0400767 status = "disabled";
768
769 usb0: usb-channel@0 {
770 reg = <0>;
771 #phy-cells = <1>;
772 };
773 usb2: usb-channel@2 {
774 reg = <2>;
775 #phy-cells = <1>;
776 };
777 };
778
Ben Dooks9f685bf2014-08-13 00:16:18 +0400779 vin0: video@e6ef0000 {
780 compatible = "renesas,vin-r8a7790";
Ben Dooks9f685bf2014-08-13 00:16:18 +0400781 reg = <0 0xe6ef0000 0 0x1000>;
782 interrupts = <0 188 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200783 clocks = <&mstp8_clks R8A7790_CLK_VIN0>;
784 power-domains = <&cpg_clocks>;
Ben Dooks9f685bf2014-08-13 00:16:18 +0400785 status = "disabled";
786 };
787
788 vin1: video@e6ef1000 {
789 compatible = "renesas,vin-r8a7790";
Ben Dooks9f685bf2014-08-13 00:16:18 +0400790 reg = <0 0xe6ef1000 0 0x1000>;
791 interrupts = <0 189 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200792 clocks = <&mstp8_clks R8A7790_CLK_VIN1>;
793 power-domains = <&cpg_clocks>;
Ben Dooks9f685bf2014-08-13 00:16:18 +0400794 status = "disabled";
795 };
796
797 vin2: video@e6ef2000 {
798 compatible = "renesas,vin-r8a7790";
Ben Dooks9f685bf2014-08-13 00:16:18 +0400799 reg = <0 0xe6ef2000 0 0x1000>;
800 interrupts = <0 190 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200801 clocks = <&mstp8_clks R8A7790_CLK_VIN2>;
802 power-domains = <&cpg_clocks>;
Ben Dooks9f685bf2014-08-13 00:16:18 +0400803 status = "disabled";
804 };
805
806 vin3: video@e6ef3000 {
807 compatible = "renesas,vin-r8a7790";
Ben Dooks9f685bf2014-08-13 00:16:18 +0400808 reg = <0 0xe6ef3000 0 0x1000>;
809 interrupts = <0 191 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200810 clocks = <&mstp8_clks R8A7790_CLK_VIN3>;
811 power-domains = <&cpg_clocks>;
Ben Dooks9f685bf2014-08-13 00:16:18 +0400812 status = "disabled";
813 };
814
Laurent Pinchart3ac6a832014-01-21 16:00:46 +0100815 vsp1@fe920000 {
816 compatible = "renesas,vsp1";
817 reg = <0 0xfe920000 0 0x8000>;
818 interrupts = <0 266 IRQ_TYPE_LEVEL_HIGH>;
819 clocks = <&mstp1_clks R8A7790_CLK_VSP1_R>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200820 power-domains = <&cpg_clocks>;
Laurent Pinchart3ac6a832014-01-21 16:00:46 +0100821
822 renesas,has-sru;
823 renesas,#rpf = <5>;
824 renesas,#uds = <1>;
825 renesas,#wpf = <4>;
826 };
827
828 vsp1@fe928000 {
829 compatible = "renesas,vsp1";
830 reg = <0 0xfe928000 0 0x8000>;
831 interrupts = <0 267 IRQ_TYPE_LEVEL_HIGH>;
832 clocks = <&mstp1_clks R8A7790_CLK_VSP1_S>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200833 power-domains = <&cpg_clocks>;
Laurent Pinchart3ac6a832014-01-21 16:00:46 +0100834
835 renesas,has-lut;
836 renesas,has-sru;
837 renesas,#rpf = <5>;
838 renesas,#uds = <3>;
839 renesas,#wpf = <4>;
840 };
841
842 vsp1@fe930000 {
843 compatible = "renesas,vsp1";
844 reg = <0 0xfe930000 0 0x8000>;
845 interrupts = <0 246 IRQ_TYPE_LEVEL_HIGH>;
846 clocks = <&mstp1_clks R8A7790_CLK_VSP1_DU0>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200847 power-domains = <&cpg_clocks>;
Laurent Pinchart3ac6a832014-01-21 16:00:46 +0100848
849 renesas,has-lif;
850 renesas,has-lut;
851 renesas,#rpf = <4>;
852 renesas,#uds = <1>;
853 renesas,#wpf = <4>;
854 };
855
856 vsp1@fe938000 {
857 compatible = "renesas,vsp1";
858 reg = <0 0xfe938000 0 0x8000>;
859 interrupts = <0 247 IRQ_TYPE_LEVEL_HIGH>;
860 clocks = <&mstp1_clks R8A7790_CLK_VSP1_DU1>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200861 power-domains = <&cpg_clocks>;
Laurent Pinchart3ac6a832014-01-21 16:00:46 +0100862
863 renesas,has-lif;
864 renesas,has-lut;
865 renesas,#rpf = <4>;
866 renesas,#uds = <1>;
867 renesas,#wpf = <4>;
868 };
869
870 du: display@feb00000 {
871 compatible = "renesas,du-r8a7790";
872 reg = <0 0xfeb00000 0 0x70000>,
873 <0 0xfeb90000 0 0x1c>,
874 <0 0xfeb94000 0 0x1c>;
875 reg-names = "du", "lvds.0", "lvds.1";
876 interrupts = <0 256 IRQ_TYPE_LEVEL_HIGH>,
877 <0 268 IRQ_TYPE_LEVEL_HIGH>,
878 <0 269 IRQ_TYPE_LEVEL_HIGH>;
879 clocks = <&mstp7_clks R8A7790_CLK_DU0>,
880 <&mstp7_clks R8A7790_CLK_DU1>,
881 <&mstp7_clks R8A7790_CLK_DU2>,
882 <&mstp7_clks R8A7790_CLK_LVDS0>,
883 <&mstp7_clks R8A7790_CLK_LVDS1>;
884 clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1";
885 status = "disabled";
886
887 ports {
888 #address-cells = <1>;
889 #size-cells = <0>;
890
891 port@0 {
892 reg = <0>;
893 du_out_rgb: endpoint {
894 };
895 };
896 port@1 {
897 reg = <1>;
898 du_out_lvds0: endpoint {
899 };
900 };
901 port@2 {
902 reg = <2>;
903 du_out_lvds1: endpoint {
904 };
905 };
906 };
907 };
908
Sergei Shtylyov6a7742b2015-01-06 00:34:42 +0300909 can0: can@e6e80000 {
910 compatible = "renesas,can-r8a7790";
911 reg = <0 0xe6e80000 0 0x1000>;
912 interrupts = <0 186 IRQ_TYPE_LEVEL_HIGH>;
913 clocks = <&mstp9_clks R8A7790_CLK_RCAN0>,
914 <&cpg_clocks R8A7790_CLK_RCAN>, <&can_clk>;
915 clock-names = "clkp1", "clkp2", "can_clk";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200916 power-domains = <&cpg_clocks>;
Sergei Shtylyov6a7742b2015-01-06 00:34:42 +0300917 status = "disabled";
918 };
919
920 can1: can@e6e88000 {
921 compatible = "renesas,can-r8a7790";
922 reg = <0 0xe6e88000 0 0x1000>;
923 interrupts = <0 187 IRQ_TYPE_LEVEL_HIGH>;
924 clocks = <&mstp9_clks R8A7790_CLK_RCAN1>,
925 <&cpg_clocks R8A7790_CLK_RCAN>, <&can_clk>;
926 clock-names = "clkp1", "clkp2", "can_clk";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200927 power-domains = <&cpg_clocks>;
Sergei Shtylyov6a7742b2015-01-06 00:34:42 +0300928 status = "disabled";
929 };
930
Mikhail Ulyanovfb847572015-07-24 16:25:45 +0300931 jpu: jpeg-codec@fe980000 {
932 compatible = "renesas,jpu-r8a7790";
933 reg = <0 0xfe980000 0 0x10300>;
934 interrupts = <0 272 IRQ_TYPE_LEVEL_HIGH>;
935 clocks = <&mstp1_clks R8A7790_CLK_JPU>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +0200936 power-domains = <&cpg_clocks>;
Mikhail Ulyanovfb847572015-07-24 16:25:45 +0300937 };
938
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100939 clocks {
940 #address-cells = <2>;
941 #size-cells = <2>;
942 ranges;
943
944 /* External root clock */
945 extal_clk: extal_clk {
946 compatible = "fixed-clock";
947 #clock-cells = <0>;
948 /* This value must be overriden by the board. */
949 clock-frequency = <0>;
950 clock-output-names = "extal";
951 };
952
Phil Edworthy51d17912014-06-13 10:37:16 +0100953 /* External PCIe clock - can be overridden by the board */
954 pcie_bus_clk: pcie_bus_clk {
955 compatible = "fixed-clock";
956 #clock-cells = <0>;
957 clock-frequency = <100000000>;
958 clock-output-names = "pcie_bus";
959 status = "disabled";
960 };
961
Kuninori Morimotoc7c2ec32014-01-13 18:25:39 -0800962 /*
963 * The external audio clocks are configured as 0 Hz fixed frequency clocks by
964 * default. Boards that provide audio clocks should override them.
965 */
966 audio_clk_a: audio_clk_a {
967 compatible = "fixed-clock";
968 #clock-cells = <0>;
969 clock-frequency = <0>;
970 clock-output-names = "audio_clk_a";
971 };
972 audio_clk_b: audio_clk_b {
973 compatible = "fixed-clock";
974 #clock-cells = <0>;
975 clock-frequency = <0>;
976 clock-output-names = "audio_clk_b";
977 };
978 audio_clk_c: audio_clk_c {
979 compatible = "fixed-clock";
980 #clock-cells = <0>;
981 clock-frequency = <0>;
982 clock-output-names = "audio_clk_c";
983 };
984
Sergei Shtylyov41650f42015-01-06 00:33:25 +0300985 /* External USB clock - can be overridden by the board */
986 usb_extal_clk: usb_extal_clk {
987 compatible = "fixed-clock";
988 #clock-cells = <0>;
989 clock-frequency = <48000000>;
990 clock-output-names = "usb_extal";
991 };
992
993 /* External CAN clock */
994 can_clk: can_clk {
995 compatible = "fixed-clock";
996 #clock-cells = <0>;
997 /* This value must be overridden by the board. */
998 clock-frequency = <0>;
999 clock-output-names = "can_clk";
1000 status = "disabled";
1001 };
1002
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001003 /* Special CPG clocks */
1004 cpg_clocks: cpg_clocks@e6150000 {
1005 compatible = "renesas,r8a7790-cpg-clocks",
1006 "renesas,rcar-gen2-cpg-clocks";
1007 reg = <0 0xe6150000 0 0x1000>;
Sergei Shtylyov41650f42015-01-06 00:33:25 +03001008 clocks = <&extal_clk &usb_extal_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001009 #clock-cells = <1>;
1010 clock-output-names = "main", "pll0", "pll1", "pll3",
1011 "lb", "qspi", "sdh", "sd0", "sd1",
Sergei Shtylyov3453ca92014-12-30 23:21:45 +03001012 "z", "rcan", "adsp";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +02001013 #power-domain-cells = <0>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001014 };
1015
1016 /* Variable factor clocks */
1017 sd2_clk: sd2_clk@e6150078 {
1018 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
1019 reg = <0 0xe6150078 0 4>;
1020 clocks = <&pll1_div2_clk>;
1021 #clock-cells = <0>;
1022 clock-output-names = "sd2";
1023 };
Shinobu Ueharaedd7b932014-10-30 14:57:57 +09001024 sd3_clk: sd3_clk@e615026c {
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001025 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
Shinobu Ueharaedd7b932014-10-30 14:57:57 +09001026 reg = <0 0xe615026c 0 4>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001027 clocks = <&pll1_div2_clk>;
1028 #clock-cells = <0>;
1029 clock-output-names = "sd3";
1030 };
1031 mmc0_clk: mmc0_clk@e6150240 {
1032 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
1033 reg = <0 0xe6150240 0 4>;
1034 clocks = <&pll1_div2_clk>;
1035 #clock-cells = <0>;
1036 clock-output-names = "mmc0";
1037 };
1038 mmc1_clk: mmc1_clk@e6150244 {
1039 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
1040 reg = <0 0xe6150244 0 4>;
1041 clocks = <&pll1_div2_clk>;
1042 #clock-cells = <0>;
1043 clock-output-names = "mmc1";
1044 };
1045 ssp_clk: ssp_clk@e6150248 {
1046 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
1047 reg = <0 0xe6150248 0 4>;
1048 clocks = <&pll1_div2_clk>;
1049 #clock-cells = <0>;
1050 clock-output-names = "ssp";
1051 };
1052 ssprs_clk: ssprs_clk@e615024c {
1053 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
1054 reg = <0 0xe615024c 0 4>;
1055 clocks = <&pll1_div2_clk>;
1056 #clock-cells = <0>;
1057 clock-output-names = "ssprs";
1058 };
1059
1060 /* Fixed factor clocks */
1061 pll1_div2_clk: pll1_div2_clk {
1062 compatible = "fixed-factor-clock";
1063 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1064 #clock-cells = <0>;
1065 clock-div = <2>;
1066 clock-mult = <1>;
1067 clock-output-names = "pll1_div2";
1068 };
1069 z2_clk: z2_clk {
1070 compatible = "fixed-factor-clock";
1071 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1072 #clock-cells = <0>;
1073 clock-div = <2>;
1074 clock-mult = <1>;
1075 clock-output-names = "z2";
1076 };
1077 zg_clk: zg_clk {
1078 compatible = "fixed-factor-clock";
1079 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1080 #clock-cells = <0>;
1081 clock-div = <3>;
1082 clock-mult = <1>;
1083 clock-output-names = "zg";
1084 };
1085 zx_clk: zx_clk {
1086 compatible = "fixed-factor-clock";
1087 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1088 #clock-cells = <0>;
1089 clock-div = <3>;
1090 clock-mult = <1>;
1091 clock-output-names = "zx";
1092 };
1093 zs_clk: zs_clk {
1094 compatible = "fixed-factor-clock";
1095 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1096 #clock-cells = <0>;
1097 clock-div = <6>;
1098 clock-mult = <1>;
1099 clock-output-names = "zs";
1100 };
1101 hp_clk: hp_clk {
1102 compatible = "fixed-factor-clock";
1103 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1104 #clock-cells = <0>;
1105 clock-div = <12>;
1106 clock-mult = <1>;
1107 clock-output-names = "hp";
1108 };
1109 i_clk: i_clk {
1110 compatible = "fixed-factor-clock";
1111 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1112 #clock-cells = <0>;
1113 clock-div = <2>;
1114 clock-mult = <1>;
1115 clock-output-names = "i";
1116 };
1117 b_clk: b_clk {
1118 compatible = "fixed-factor-clock";
1119 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1120 #clock-cells = <0>;
1121 clock-div = <12>;
1122 clock-mult = <1>;
1123 clock-output-names = "b";
1124 };
1125 p_clk: p_clk {
1126 compatible = "fixed-factor-clock";
1127 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1128 #clock-cells = <0>;
1129 clock-div = <24>;
1130 clock-mult = <1>;
1131 clock-output-names = "p";
1132 };
1133 cl_clk: cl_clk {
1134 compatible = "fixed-factor-clock";
1135 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1136 #clock-cells = <0>;
1137 clock-div = <48>;
1138 clock-mult = <1>;
1139 clock-output-names = "cl";
1140 };
1141 m2_clk: m2_clk {
1142 compatible = "fixed-factor-clock";
1143 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1144 #clock-cells = <0>;
1145 clock-div = <8>;
1146 clock-mult = <1>;
1147 clock-output-names = "m2";
1148 };
1149 imp_clk: imp_clk {
1150 compatible = "fixed-factor-clock";
1151 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1152 #clock-cells = <0>;
1153 clock-div = <4>;
1154 clock-mult = <1>;
1155 clock-output-names = "imp";
1156 };
1157 rclk_clk: rclk_clk {
1158 compatible = "fixed-factor-clock";
1159 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1160 #clock-cells = <0>;
1161 clock-div = <(48 * 1024)>;
1162 clock-mult = <1>;
1163 clock-output-names = "rclk";
1164 };
1165 oscclk_clk: oscclk_clk {
1166 compatible = "fixed-factor-clock";
1167 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
1168 #clock-cells = <0>;
1169 clock-div = <(12 * 1024)>;
1170 clock-mult = <1>;
1171 clock-output-names = "oscclk";
1172 };
1173 zb3_clk: zb3_clk {
1174 compatible = "fixed-factor-clock";
1175 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
1176 #clock-cells = <0>;
1177 clock-div = <4>;
1178 clock-mult = <1>;
1179 clock-output-names = "zb3";
1180 };
1181 zb3d2_clk: zb3d2_clk {
1182 compatible = "fixed-factor-clock";
1183 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
1184 #clock-cells = <0>;
1185 clock-div = <8>;
1186 clock-mult = <1>;
1187 clock-output-names = "zb3d2";
1188 };
1189 ddr_clk: ddr_clk {
1190 compatible = "fixed-factor-clock";
1191 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
1192 #clock-cells = <0>;
1193 clock-div = <8>;
1194 clock-mult = <1>;
1195 clock-output-names = "ddr";
1196 };
1197 mp_clk: mp_clk {
1198 compatible = "fixed-factor-clock";
1199 clocks = <&pll1_div2_clk>;
1200 #clock-cells = <0>;
1201 clock-div = <15>;
1202 clock-mult = <1>;
1203 clock-output-names = "mp";
1204 };
1205 cp_clk: cp_clk {
1206 compatible = "fixed-factor-clock";
1207 clocks = <&extal_clk>;
1208 #clock-cells = <0>;
1209 clock-div = <2>;
1210 clock-mult = <1>;
1211 clock-output-names = "cp";
1212 };
1213
1214 /* Gate clocks */
Laurent Pinchart9d909512013-12-19 16:51:01 +01001215 mstp0_clks: mstp0_clks@e6150130 {
1216 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1217 reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
1218 clocks = <&mp_clk>;
1219 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001220 clock-indices = <R8A7790_CLK_MSIOF0>;
Laurent Pinchart9d909512013-12-19 16:51:01 +01001221 clock-output-names = "msiof0";
1222 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001223 mstp1_clks: mstp1_clks@e6150134 {
1224 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1225 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
Yoshifumi Hosoya4ba8f242014-10-14 16:01:42 +09001226 clocks = <&zs_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&m2_clk>,
1227 <&zs_clk>, <&p_clk>, <&zg_clk>, <&zs_clk>, <&zs_clk>,
1228 <&zs_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>,
1229 <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001230 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001231 clock-indices = <
Yoshifumi Hosoya4ba8f242014-10-14 16:01:42 +09001232 R8A7790_CLK_VCP1 R8A7790_CLK_VCP0 R8A7790_CLK_VPC1
1233 R8A7790_CLK_VPC0 R8A7790_CLK_JPU R8A7790_CLK_SSP1
1234 R8A7790_CLK_TMU1 R8A7790_CLK_3DG R8A7790_CLK_2DDMAC
1235 R8A7790_CLK_FDP1_2 R8A7790_CLK_FDP1_1 R8A7790_CLK_FDP1_0
1236 R8A7790_CLK_TMU3 R8A7790_CLK_TMU2 R8A7790_CLK_CMT0
1237 R8A7790_CLK_TMU0 R8A7790_CLK_VSP1_DU1 R8A7790_CLK_VSP1_DU0
1238 R8A7790_CLK_VSP1_R R8A7790_CLK_VSP1_S
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001239 >;
1240 clock-output-names =
Yoshifumi Hosoya4ba8f242014-10-14 16:01:42 +09001241 "vcp1", "vcp0", "vpc1", "vpc0", "jpu", "ssp1",
1242 "tmu1", "3dg", "2ddmac", "fdp1-2", "fdp1-1",
1243 "fdp1-0", "tmu3", "tmu2", "cmt0", "tmu0",
Kouei Abe2284ff52014-10-14 16:01:40 +09001244 "vsp1-du1", "vsp1-du0", "vsp1-rt", "vsp1-sy";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001245 };
1246 mstp2_clks: mstp2_clks@e6150138 {
1247 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1248 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
1249 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
Laurent Pinchartc819acd2014-07-19 01:50:23 +02001250 <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&zs_clk>,
1251 <&zs_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001252 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001253 clock-indices = <
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001254 R8A7790_CLK_SCIFA2 R8A7790_CLK_SCIFA1 R8A7790_CLK_SCIFA0
Laurent Pinchart9d909512013-12-19 16:51:01 +01001255 R8A7790_CLK_MSIOF2 R8A7790_CLK_SCIFB0 R8A7790_CLK_SCIFB1
1256 R8A7790_CLK_MSIOF1 R8A7790_CLK_MSIOF3 R8A7790_CLK_SCIFB2
Laurent Pinchartc819acd2014-07-19 01:50:23 +02001257 R8A7790_CLK_SYS_DMAC1 R8A7790_CLK_SYS_DMAC0
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001258 >;
1259 clock-output-names =
Laurent Pinchart9d909512013-12-19 16:51:01 +01001260 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
Laurent Pinchartc819acd2014-07-19 01:50:23 +02001261 "scifb1", "msiof1", "msiof3", "scifb2",
1262 "sys-dmac1", "sys-dmac0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001263 };
1264 mstp3_clks: mstp3_clks@e615013c {
1265 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1266 reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
Wolfram Sang17465142014-03-11 22:24:37 +01001267 clocks = <&hp_clk>, <&cp_clk>, <&mmc1_clk>, <&sd3_clk>,
1268 <&sd2_clk>, <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>, <&mmc0_clk>,
Yoshihiro Shimodab02ce792014-11-17 18:25:13 +09001269 <&hp_clk>, <&mp_clk>, <&hp_clk>, <&mp_clk>, <&rclk_clk>,
1270 <&hp_clk>, <&hp_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001271 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001272 clock-indices = <
Wolfram Sang17465142014-03-11 22:24:37 +01001273 R8A7790_CLK_IIC2 R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
1274 R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0 R8A7790_CLK_MMCIF0
Phil Edworthyecafea82014-06-13 10:37:15 +01001275 R8A7790_CLK_IIC0 R8A7790_CLK_PCIEC R8A7790_CLK_IIC1 R8A7790_CLK_SSUSB R8A7790_CLK_CMT1
Yoshihiro Shimodab02ce792014-11-17 18:25:13 +09001276 R8A7790_CLK_USBDMAC0 R8A7790_CLK_USBDMAC1
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001277 >;
1278 clock-output-names =
Wolfram Sang17465142014-03-11 22:24:37 +01001279 "iic2", "tpu0", "mmcif1", "sdhi3",
1280 "sdhi2", "sdhi1", "sdhi0", "mmcif0",
Yoshihiro Shimodab02ce792014-11-17 18:25:13 +09001281 "iic0", "pciec", "iic1", "ssusb", "cmt1",
1282 "usbdmac0", "usbdmac1";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001283 };
Geert Uytterhoeven61624ca2015-03-18 19:55:59 +01001284 mstp4_clks: mstp4_clks@e6150140 {
1285 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1286 reg = <0 0xe6150140 0 4>, <0 0xe615004c 0 4>;
1287 clocks = <&cp_clk>;
1288 #clock-cells = <1>;
1289 clock-indices = <R8A7790_CLK_IRQC>;
1290 clock-output-names = "irqc";
1291 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001292 mstp5_clks: mstp5_clks@e6150144 {
1293 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1294 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
Sergei Shtylyov3453ca92014-12-30 23:21:45 +03001295 clocks = <&hp_clk>, <&hp_clk>, <&cpg_clocks R8A7790_CLK_ADSP>,
1296 <&extal_clk>, <&p_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001297 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001298 clock-indices = <
1299 R8A7790_CLK_AUDIO_DMAC0 R8A7790_CLK_AUDIO_DMAC1
Sergei Shtylyov3453ca92014-12-30 23:21:45 +03001300 R8A7790_CLK_ADSP_MOD R8A7790_CLK_THERMAL
1301 R8A7790_CLK_PWM
Ben Dooksb54010a2014-11-10 19:49:37 +01001302 >;
Sergei Shtylyov3453ca92014-12-30 23:21:45 +03001303 clock-output-names = "audmac0", "audmac1", "adsp_mod",
1304 "thermal", "pwm";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001305 };
1306 mstp7_clks: mstp7_clks@e615014c {
1307 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1308 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
Kazuya Mizuguchib621f6d2015-02-19 10:42:55 -05001309 clocks = <&mp_clk>, <&hp_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>,
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001310 <&p_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>,
1311 <&zx_clk>;
1312 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001313 clock-indices = <
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001314 R8A7790_CLK_EHCI R8A7790_CLK_HSUSB R8A7790_CLK_HSCIF1
1315 R8A7790_CLK_HSCIF0 R8A7790_CLK_SCIF1 R8A7790_CLK_SCIF0
1316 R8A7790_CLK_DU2 R8A7790_CLK_DU1 R8A7790_CLK_DU0
1317 R8A7790_CLK_LVDS1 R8A7790_CLK_LVDS0
1318 >;
1319 clock-output-names =
1320 "ehci", "hsusb", "hscif1", "hscif0", "scif1",
1321 "scif0", "du2", "du1", "du0", "lvds1", "lvds0";
1322 };
1323 mstp8_clks: mstp8_clks@e6150990 {
1324 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1325 reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
Andrey Gusakovf6b5dd42014-12-18 23:41:52 +03001326 clocks = <&hp_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>,
Sergei Shtylyov63d2d752015-06-16 02:42:42 +03001327 <&zg_clk>, <&hp_clk>, <&p_clk>, <&zs_clk>,
1328 <&zs_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001329 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001330 clock-indices = <
Andrey Gusakovf6b5dd42014-12-18 23:41:52 +03001331 R8A7790_CLK_MLB R8A7790_CLK_VIN3 R8A7790_CLK_VIN2
Sergei Shtylyov63d2d752015-06-16 02:42:42 +03001332 R8A7790_CLK_VIN1 R8A7790_CLK_VIN0
1333 R8A7790_CLK_ETHERAVB R8A7790_CLK_ETHER
Andrey Gusakovf6b5dd42014-12-18 23:41:52 +03001334 R8A7790_CLK_SATA1 R8A7790_CLK_SATA0
Laurent Pinchart3f2beaa2014-01-07 09:22:53 +01001335 >;
Laurent Pinchartbccccc32014-01-07 09:22:55 +01001336 clock-output-names =
Sergei Shtylyov63d2d752015-06-16 02:42:42 +03001337 "mlb", "vin3", "vin2", "vin1", "vin0",
1338 "etheravb", "ether", "sata1", "sata0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001339 };
1340 mstp9_clks: mstp9_clks@e6150994 {
1341 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1342 reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +02001343 clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>,
1344 <&cp_clk>, <&cp_clk>, <&cp_clk>,
1345 <&p_clk>, <&p_clk>, <&cpg_clocks R8A7790_CLK_QSPI>, <&cp_clk>,
Laurent Pinchart3672b052014-04-01 13:02:17 +02001346 <&hp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001347 #clock-cells = <1>;
Ben Dooksb54010a2014-11-10 19:49:37 +01001348 clock-indices = <
Geert Uytterhoeven81f68832014-04-23 10:25:27 +02001349 R8A7790_CLK_GPIO5 R8A7790_CLK_GPIO4 R8A7790_CLK_GPIO3
1350 R8A7790_CLK_GPIO2 R8A7790_CLK_GPIO1 R8A7790_CLK_GPIO0
Wolfram Sang17465142014-03-11 22:24:37 +01001351 R8A7790_CLK_RCAN1 R8A7790_CLK_RCAN0 R8A7790_CLK_QSPI_MOD R8A7790_CLK_IICDVFS
1352 R8A7790_CLK_I2C3 R8A7790_CLK_I2C2 R8A7790_CLK_I2C1 R8A7790_CLK_I2C0
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001353 >;
Laurent Pinchart91b56ca2013-12-19 16:51:03 +01001354 clock-output-names =
Geert Uytterhoeven81f68832014-04-23 10:25:27 +02001355 "gpio5", "gpio4", "gpio3", "gpio2", "gpio1", "gpio0",
Wolfram Sang17465142014-03-11 22:24:37 +01001356 "rcan1", "rcan0", "qspi_mod", "iic3",
1357 "i2c3", "i2c2", "i2c1", "i2c0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001358 };
Kuninori Morimotobcde3722014-06-10 23:53:27 -07001359 mstp10_clks: mstp10_clks@e6150998 {
1360 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1361 reg = <0 0xe6150998 0 4>, <0 0xe61509a8 0 4>;
1362 clocks = <&p_clk>,
1363 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1364 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1365 <&p_clk>,
1366 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1367 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1368 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1369 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1370 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
Kuninori Morimotoa7163782015-07-21 00:26:20 +00001371 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
Kuninori Morimotobcde3722014-06-10 23:53:27 -07001372 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>;
1373
1374 #clock-cells = <1>;
1375 clock-indices = <
1376 R8A7790_CLK_SSI_ALL
1377 R8A7790_CLK_SSI9 R8A7790_CLK_SSI8 R8A7790_CLK_SSI7 R8A7790_CLK_SSI6 R8A7790_CLK_SSI5
1378 R8A7790_CLK_SSI4 R8A7790_CLK_SSI3 R8A7790_CLK_SSI2 R8A7790_CLK_SSI1 R8A7790_CLK_SSI0
1379 R8A7790_CLK_SCU_ALL
1380 R8A7790_CLK_SCU_DVC1 R8A7790_CLK_SCU_DVC0
Kuninori Morimotoa7163782015-07-21 00:26:20 +00001381 R8A7790_CLK_SCU_CTU1_MIX1 R8A7790_CLK_SCU_CTU0_MIX0
Kuninori Morimotobcde3722014-06-10 23:53:27 -07001382 R8A7790_CLK_SCU_SRC9 R8A7790_CLK_SCU_SRC8 R8A7790_CLK_SCU_SRC7 R8A7790_CLK_SCU_SRC6 R8A7790_CLK_SCU_SRC5
1383 R8A7790_CLK_SCU_SRC4 R8A7790_CLK_SCU_SRC3 R8A7790_CLK_SCU_SRC2 R8A7790_CLK_SCU_SRC1 R8A7790_CLK_SCU_SRC0
1384 >;
1385 clock-output-names =
1386 "ssi-all",
1387 "ssi9", "ssi8", "ssi7", "ssi6", "ssi5",
1388 "ssi4", "ssi3", "ssi2", "ssi1", "ssi0",
1389 "scu-all",
1390 "scu-dvc1", "scu-dvc0",
Kuninori Morimotoa7163782015-07-21 00:26:20 +00001391 "scu-ctu1-mix1", "scu-ctu0-mix0",
Kuninori Morimotobcde3722014-06-10 23:53:27 -07001392 "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5",
1393 "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0";
1394 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +01001395 };
Geert Uytterhoeven7053e132014-02-10 11:47:29 +01001396
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +01001397 qspi: spi@e6b10000 {
Geert Uytterhoeven7053e132014-02-10 11:47:29 +01001398 compatible = "renesas,qspi-r8a7790", "renesas,qspi";
1399 reg = <0 0xe6b10000 0 0x2c>;
Geert Uytterhoeven7053e132014-02-10 11:47:29 +01001400 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
1401 clocks = <&mstp9_clks R8A7790_CLK_QSPI_MOD>;
Geert Uytterhoeven37cf3d62014-08-06 14:59:08 +02001402 dmas = <&dmac0 0x17>, <&dmac0 0x18>;
1403 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +02001404 power-domains = <&cpg_clocks>;
Geert Uytterhoeven7053e132014-02-10 11:47:29 +01001405 num-cs = <1>;
1406 #address-cells = <1>;
1407 #size-cells = <0>;
1408 status = "disabled";
1409 };
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001410
1411 msiof0: spi@e6e20000 {
1412 compatible = "renesas,msiof-r8a7790";
Ryo Kataokac7d1f082015-04-05 01:54:31 +09001413 reg = <0 0xe6e20000 0 0x0064>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001414 interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>;
1415 clocks = <&mstp0_clks R8A7790_CLK_MSIOF0>;
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001416 dmas = <&dmac0 0x51>, <&dmac0 0x52>;
1417 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +02001418 power-domains = <&cpg_clocks>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001419 #address-cells = <1>;
1420 #size-cells = <0>;
1421 status = "disabled";
1422 };
1423
1424 msiof1: spi@e6e10000 {
1425 compatible = "renesas,msiof-r8a7790";
Ryo Kataokac7d1f082015-04-05 01:54:31 +09001426 reg = <0 0xe6e10000 0 0x0064>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001427 interrupts = <0 157 IRQ_TYPE_LEVEL_HIGH>;
1428 clocks = <&mstp2_clks R8A7790_CLK_MSIOF1>;
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001429 dmas = <&dmac0 0x55>, <&dmac0 0x56>;
1430 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +02001431 power-domains = <&cpg_clocks>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001432 #address-cells = <1>;
1433 #size-cells = <0>;
1434 status = "disabled";
1435 };
1436
1437 msiof2: spi@e6e00000 {
1438 compatible = "renesas,msiof-r8a7790";
Ryo Kataokac7d1f082015-04-05 01:54:31 +09001439 reg = <0 0xe6e00000 0 0x0064>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001440 interrupts = <0 158 IRQ_TYPE_LEVEL_HIGH>;
1441 clocks = <&mstp2_clks R8A7790_CLK_MSIOF2>;
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001442 dmas = <&dmac0 0x41>, <&dmac0 0x42>;
1443 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +02001444 power-domains = <&cpg_clocks>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001445 #address-cells = <1>;
1446 #size-cells = <0>;
1447 status = "disabled";
1448 };
1449
1450 msiof3: spi@e6c90000 {
1451 compatible = "renesas,msiof-r8a7790";
Ryo Kataokac7d1f082015-04-05 01:54:31 +09001452 reg = <0 0xe6c90000 0 0x0064>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001453 interrupts = <0 159 IRQ_TYPE_LEVEL_HIGH>;
1454 clocks = <&mstp2_clks R8A7790_CLK_MSIOF3>;
Geert Uytterhoevenfbff6682014-08-06 14:59:09 +02001455 dmas = <&dmac0 0x45>, <&dmac0 0x46>;
1456 dma-names = "tx", "rx";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +02001457 power-domains = <&cpg_clocks>;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +01001458 #address-cells = <1>;
1459 #size-cells = <0>;
1460 status = "disabled";
1461 };
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001462
Yoshihiro Shimoda157fcd82014-10-24 19:41:46 +09001463 xhci: usb@ee000000 {
1464 compatible = "renesas,xhci-r8a7790";
1465 reg = <0 0xee000000 0 0xc00>;
1466 interrupts = <0 101 IRQ_TYPE_LEVEL_HIGH>;
1467 clocks = <&mstp3_clks R8A7790_CLK_SSUSB>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +02001468 power-domains = <&cpg_clocks>;
Yoshihiro Shimoda157fcd82014-10-24 19:41:46 +09001469 phys = <&usb2 1>;
1470 phy-names = "usb";
1471 status = "disabled";
1472 };
1473
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001474 pci0: pci@ee090000 {
1475 compatible = "renesas,pci-r8a7790";
1476 device_type = "pci";
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001477 reg = <0 0xee090000 0 0xc00>,
1478 <0 0xee080000 0 0x1100>;
1479 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +02001480 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
1481 power-domains = <&cpg_clocks>;
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001482 status = "disabled";
1483
1484 bus-range = <0 0>;
1485 #address-cells = <3>;
1486 #size-cells = <2>;
1487 #interrupt-cells = <1>;
1488 ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>;
1489 interrupt-map-mask = <0xff00 0 0 0x7>;
1490 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
Geert Uytterhoeven517ec802014-06-30 11:49:53 +02001491 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1492 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyov538c40e2014-09-29 22:21:59 +04001493
1494 usb@0,1 {
1495 reg = <0x800 0 0 0 0>;
1496 device_type = "pci";
1497 phys = <&usb0 0>;
1498 phy-names = "usb";
1499 };
1500
1501 usb@0,2 {
1502 reg = <0x1000 0 0 0 0>;
1503 device_type = "pci";
1504 phys = <&usb0 0>;
1505 phy-names = "usb";
1506 };
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001507 };
1508
1509 pci1: pci@ee0b0000 {
1510 compatible = "renesas,pci-r8a7790";
1511 device_type = "pci";
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001512 reg = <0 0xee0b0000 0 0xc00>,
1513 <0 0xee0a0000 0 0x1100>;
1514 interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +02001515 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
1516 power-domains = <&cpg_clocks>;
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001517 status = "disabled";
1518
1519 bus-range = <1 1>;
1520 #address-cells = <3>;
1521 #size-cells = <2>;
1522 #interrupt-cells = <1>;
1523 ranges = <0x02000000 0 0xee0a0000 0 0xee0a0000 0 0x00010000>;
1524 interrupt-map-mask = <0xff00 0 0 0x7>;
1525 interrupt-map = <0x0000 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH
Geert Uytterhoeven517ec802014-06-30 11:49:53 +02001526 0x0800 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH
1527 0x1000 0 0 2 &gic 0 112 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001528 };
1529
1530 pci2: pci@ee0d0000 {
1531 compatible = "renesas,pci-r8a7790";
1532 device_type = "pci";
1533 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
Geert Uytterhoeven484adb02015-08-04 14:28:10 +02001534 power-domains = <&cpg_clocks>;
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001535 reg = <0 0xee0d0000 0 0xc00>,
1536 <0 0xee0c0000 0 0x1100>;
1537 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
1538 status = "disabled";
1539
1540 bus-range = <2 2>;
1541 #address-cells = <3>;
1542 #size-cells = <2>;
1543 #interrupt-cells = <1>;
1544 ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>;
1545 interrupt-map-mask = <0xff00 0 0 0x7>;
1546 interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
Geert Uytterhoeven517ec802014-06-30 11:49:53 +02001547 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1548 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyov538c40e2014-09-29 22:21:59 +04001549
1550 usb@0,1 {
1551 reg = <0x800 0 0 0 0>;
1552 device_type = "pci";
1553 phys = <&usb2 0>;
1554 phy-names = "usb";
1555 };
1556
1557 usb@0,2 {
1558 reg = <0x1000 0 0 0 0>;
1559 device_type = "pci";
1560 phys = <&usb2 0>;
1561 phy-names = "usb";
1562 };
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001563 };
1564
Phil Edworthy745329d2014-06-13 10:37:17 +01001565 pciec: pcie@fe000000 {
1566 compatible = "renesas,pcie-r8a7790";
1567 reg = <0 0xfe000000 0 0x80000>;
1568 #address-cells = <3>;
1569 #size-cells = <2>;
1570 bus-range = <0x00 0xff>;
1571 device_type = "pci";
1572 ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000
1573 0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000
1574 0x02000000 0 0x30000000 0 0x30000000 0 0x08000000
1575 0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;
1576 /* Map all possible DDR as inbound ranges */
1577 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000
1578 0x43000000 1 0x80000000 1 0x80000000 0 0x80000000>;
1579 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>,
1580 <0 117 IRQ_TYPE_LEVEL_HIGH>,
1581 <0 118 IRQ_TYPE_LEVEL_HIGH>;
1582 #interrupt-cells = <1>;
1583 interrupt-map-mask = <0 0 0 0>;
1584 interrupt-map = <0 0 0 0 &gic 0 116 IRQ_TYPE_LEVEL_HIGH>;
1585 clocks = <&mstp3_clks R8A7790_CLK_PCIEC>, <&pcie_bus_clk>;
1586 clock-names = "pcie", "pcie_bus";
Geert Uytterhoeven484adb02015-08-04 14:28:10 +02001587 power-domains = <&cpg_clocks>;
Phil Edworthy745329d2014-06-13 10:37:17 +01001588 status = "disabled";
1589 };
1590
Geert Uytterhoevenb694e382015-04-27 14:55:28 +02001591 rcar_sound: sound@ec500000 {
Kuninori Morimotoad632412014-12-17 06:11:52 +00001592 /*
1593 * #sound-dai-cells is required
1594 *
1595 * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>;
1596 * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>;
1597 */
Geert Uytterhoeven31078ec2015-01-06 21:01:52 +01001598 compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2";
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001599 reg = <0 0xec500000 0 0x1000>, /* SCU */
1600 <0 0xec5a0000 0 0x100>, /* ADG */
1601 <0 0xec540000 0 0x1000>, /* SSIU */
Kuninori Morimoto0c602672015-03-10 01:39:39 +00001602 <0 0xec541000 0 0x1280>, /* SSI */
1603 <0 0xec740000 0 0x200>; /* Audio DMAC peri peri*/
1604 reg-names = "scu", "adg", "ssiu", "ssi", "audmapp";
Kuninori Morimoto46a158f2015-03-10 01:39:01 +00001605
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001606 clocks = <&mstp10_clks R8A7790_CLK_SSI_ALL>,
1607 <&mstp10_clks R8A7790_CLK_SSI9>, <&mstp10_clks R8A7790_CLK_SSI8>,
1608 <&mstp10_clks R8A7790_CLK_SSI7>, <&mstp10_clks R8A7790_CLK_SSI6>,
1609 <&mstp10_clks R8A7790_CLK_SSI5>, <&mstp10_clks R8A7790_CLK_SSI4>,
1610 <&mstp10_clks R8A7790_CLK_SSI3>, <&mstp10_clks R8A7790_CLK_SSI2>,
1611 <&mstp10_clks R8A7790_CLK_SSI1>, <&mstp10_clks R8A7790_CLK_SSI0>,
1612 <&mstp10_clks R8A7790_CLK_SCU_SRC9>, <&mstp10_clks R8A7790_CLK_SCU_SRC8>,
1613 <&mstp10_clks R8A7790_CLK_SCU_SRC7>, <&mstp10_clks R8A7790_CLK_SCU_SRC6>,
1614 <&mstp10_clks R8A7790_CLK_SCU_SRC5>, <&mstp10_clks R8A7790_CLK_SCU_SRC4>,
1615 <&mstp10_clks R8A7790_CLK_SCU_SRC3>, <&mstp10_clks R8A7790_CLK_SCU_SRC2>,
1616 <&mstp10_clks R8A7790_CLK_SCU_SRC1>, <&mstp10_clks R8A7790_CLK_SCU_SRC0>,
Kuninori Morimotoa7163782015-07-21 00:26:20 +00001617 <&mstp10_clks R8A7790_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7790_CLK_SCU_CTU1_MIX1>,
Kuninori Morimotofc67bf42015-07-21 00:26:42 +00001618 <&mstp10_clks R8A7790_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7790_CLK_SCU_CTU1_MIX1>,
Kuninori Morimoto334d69a2014-06-25 17:52:17 -07001619 <&mstp10_clks R8A7790_CLK_SCU_DVC0>, <&mstp10_clks R8A7790_CLK_SCU_DVC1>,
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001620 <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>;
1621 clock-names = "ssi-all",
1622 "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5",
1623 "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0",
1624 "src.9", "src.8", "src.7", "src.6", "src.5",
1625 "src.4", "src.3", "src.2", "src.1", "src.0",
Kuninori Morimotoa7163782015-07-21 00:26:20 +00001626 "ctu.0", "ctu.1",
Kuninori Morimotofc67bf42015-07-21 00:26:42 +00001627 "mix.0", "mix.1",
Kuninori Morimoto334d69a2014-06-25 17:52:17 -07001628 "dvc.0", "dvc.1",
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001629 "clk_a", "clk_b", "clk_c", "clk_i";
1630
1631 status = "disabled";
1632
Kuninori Morimoto334d69a2014-06-25 17:52:17 -07001633 rcar_sound,dvc {
Kuninori Morimoto118a5092015-03-10 01:40:13 +00001634 dvc0: dvc@0 {
1635 dmas = <&audma0 0xbc>;
1636 dma-names = "tx";
1637 };
1638 dvc1: dvc@1 {
1639 dmas = <&audma0 0xbe>;
1640 dma-names = "tx";
1641 };
Kuninori Morimoto334d69a2014-06-25 17:52:17 -07001642 };
1643
Kuninori Morimotofc67bf42015-07-21 00:26:42 +00001644 rcar_sound,mix {
1645 mix0: mix@0 { };
1646 mix1: mix@1 { };
1647 };
1648
Kuninori Morimotoa7163782015-07-21 00:26:20 +00001649 rcar_sound,ctu {
1650 ctu00: ctu@0 { };
1651 ctu01: ctu@1 { };
1652 ctu02: ctu@2 { };
1653 ctu03: ctu@3 { };
1654 ctu10: ctu@4 { };
1655 ctu11: ctu@5 { };
1656 ctu12: ctu@6 { };
1657 ctu13: ctu@7 { };
1658 };
1659
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001660 rcar_sound,src {
Kuninori Morimoto118a5092015-03-10 01:40:13 +00001661 src0: src@0 {
1662 interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>;
1663 dmas = <&audma0 0x85>, <&audma1 0x9a>;
1664 dma-names = "rx", "tx";
1665 };
1666 src1: src@1 {
1667 interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>;
1668 dmas = <&audma0 0x87>, <&audma1 0x9c>;
1669 dma-names = "rx", "tx";
1670 };
1671 src2: src@2 {
1672 interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>;
1673 dmas = <&audma0 0x89>, <&audma1 0x9e>;
1674 dma-names = "rx", "tx";
1675 };
1676 src3: src@3 {
1677 interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>;
1678 dmas = <&audma0 0x8b>, <&audma1 0xa0>;
1679 dma-names = "rx", "tx";
1680 };
1681 src4: src@4 {
1682 interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>;
1683 dmas = <&audma0 0x8d>, <&audma1 0xb0>;
1684 dma-names = "rx", "tx";
1685 };
1686 src5: src@5 {
1687 interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>;
1688 dmas = <&audma0 0x8f>, <&audma1 0xb2>;
1689 dma-names = "rx", "tx";
1690 };
1691 src6: src@6 {
1692 interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>;
1693 dmas = <&audma0 0x91>, <&audma1 0xb4>;
1694 dma-names = "rx", "tx";
1695 };
1696 src7: src@7 {
1697 interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>;
1698 dmas = <&audma0 0x93>, <&audma1 0xb6>;
1699 dma-names = "rx", "tx";
1700 };
1701 src8: src@8 {
1702 interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>;
1703 dmas = <&audma0 0x95>, <&audma1 0xb8>;
1704 dma-names = "rx", "tx";
1705 };
1706 src9: src@9 {
1707 interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>;
1708 dmas = <&audma0 0x97>, <&audma1 0xba>;
1709 dma-names = "rx", "tx";
1710 };
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001711 };
1712
1713 rcar_sound,ssi {
Kuninori Morimoto118a5092015-03-10 01:40:13 +00001714 ssi0: ssi@0 {
1715 interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>;
1716 dmas = <&audma0 0x01>, <&audma1 0x02>, <&audma0 0x15>, <&audma1 0x16>;
1717 dma-names = "rx", "tx", "rxu", "txu";
1718 };
1719 ssi1: ssi@1 {
1720 interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>;
1721 dmas = <&audma0 0x03>, <&audma1 0x04>, <&audma0 0x49>, <&audma1 0x4a>;
1722 dma-names = "rx", "tx", "rxu", "txu";
1723 };
1724 ssi2: ssi@2 {
1725 interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>;
1726 dmas = <&audma0 0x05>, <&audma1 0x06>, <&audma0 0x63>, <&audma1 0x64>;
1727 dma-names = "rx", "tx", "rxu", "txu";
1728 };
1729 ssi3: ssi@3 {
1730 interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>;
1731 dmas = <&audma0 0x07>, <&audma1 0x08>, <&audma0 0x6f>, <&audma1 0x70>;
1732 dma-names = "rx", "tx", "rxu", "txu";
1733 };
1734 ssi4: ssi@4 {
1735 interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>;
1736 dmas = <&audma0 0x09>, <&audma1 0x0a>, <&audma0 0x71>, <&audma1 0x72>;
1737 dma-names = "rx", "tx", "rxu", "txu";
1738 };
1739 ssi5: ssi@5 {
1740 interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>;
1741 dmas = <&audma0 0x0b>, <&audma1 0x0c>, <&audma0 0x73>, <&audma1 0x74>;
1742 dma-names = "rx", "tx", "rxu", "txu";
1743 };
1744 ssi6: ssi@6 {
1745 interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>;
1746 dmas = <&audma0 0x0d>, <&audma1 0x0e>, <&audma0 0x75>, <&audma1 0x76>;
1747 dma-names = "rx", "tx", "rxu", "txu";
1748 };
1749 ssi7: ssi@7 {
1750 interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>;
1751 dmas = <&audma0 0x0f>, <&audma1 0x10>, <&audma0 0x79>, <&audma1 0x7a>;
1752 dma-names = "rx", "tx", "rxu", "txu";
1753 };
1754 ssi8: ssi@8 {
1755 interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>;
1756 dmas = <&audma0 0x11>, <&audma1 0x12>, <&audma0 0x7b>, <&audma1 0x7c>;
1757 dma-names = "rx", "tx", "rxu", "txu";
1758 };
1759 ssi9: ssi@9 {
1760 interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>;
1761 dmas = <&audma0 0x13>, <&audma1 0x14>, <&audma0 0x7d>, <&audma1 0x7e>;
1762 dma-names = "rx", "tx", "rxu", "txu";
1763 };
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001764 };
1765 };
Laurent Pinchart70496722015-01-27 11:13:23 +02001766
1767 ipmmu_sy0: mmu@e6280000 {
1768 compatible = "renesas,ipmmu-vmsa";
1769 reg = <0 0xe6280000 0 0x1000>;
1770 interrupts = <0 223 IRQ_TYPE_LEVEL_HIGH>,
1771 <0 224 IRQ_TYPE_LEVEL_HIGH>;
1772 #iommu-cells = <1>;
1773 status = "disabled";
1774 };
1775
1776 ipmmu_sy1: mmu@e6290000 {
1777 compatible = "renesas,ipmmu-vmsa";
1778 reg = <0 0xe6290000 0 0x1000>;
1779 interrupts = <0 225 IRQ_TYPE_LEVEL_HIGH>;
1780 #iommu-cells = <1>;
1781 status = "disabled";
1782 };
1783
1784 ipmmu_ds: mmu@e6740000 {
1785 compatible = "renesas,ipmmu-vmsa";
1786 reg = <0 0xe6740000 0 0x1000>;
1787 interrupts = <0 198 IRQ_TYPE_LEVEL_HIGH>,
1788 <0 199 IRQ_TYPE_LEVEL_HIGH>;
1789 #iommu-cells = <1>;
1790 status = "disabled";
1791 };
1792
1793 ipmmu_mp: mmu@ec680000 {
1794 compatible = "renesas,ipmmu-vmsa";
1795 reg = <0 0xec680000 0 0x1000>;
1796 interrupts = <0 226 IRQ_TYPE_LEVEL_HIGH>;
1797 #iommu-cells = <1>;
1798 status = "disabled";
1799 };
1800
1801 ipmmu_mx: mmu@fe951000 {
1802 compatible = "renesas,ipmmu-vmsa";
1803 reg = <0 0xfe951000 0 0x1000>;
1804 interrupts = <0 222 IRQ_TYPE_LEVEL_HIGH>,
1805 <0 221 IRQ_TYPE_LEVEL_HIGH>;
1806 #iommu-cells = <1>;
1807 status = "disabled";
1808 };
1809
1810 ipmmu_rt: mmu@ffc80000 {
1811 compatible = "renesas,ipmmu-vmsa";
1812 reg = <0 0xffc80000 0 0x1000>;
1813 interrupts = <0 307 IRQ_TYPE_LEVEL_HIGH>;
1814 #iommu-cells = <1>;
1815 status = "disabled";
1816 };
Magnus Damm0468b2d2013-03-28 00:49:34 +09001817};