blob: 9f5f30e714c53b3dc6cea663a60138232de82564 [file] [log] [blame]
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +09001/*
2 * Device Tree Source for the r8a7791 SoC
3 *
Kazuya Mizuguchi118e4e62015-02-19 10:43:10 -05004 * Copyright (C) 2013-2015 Renesas Electronics Corporation
Sergei Shtylyov2e5d55c2014-02-20 02:27:04 +03005 * Copyright (C) 2013-2014 Renesas Solutions Corp.
6 * Copyright (C) 2014 Cogent Embedded Inc.
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +09007 *
8 * This file is licensed under the terms of the GNU General Public License
9 * version 2. This program is licensed "as is" without any warranty of any
10 * kind, whether express or implied.
11 */
12
Laurent Pinchart59e79892013-12-11 15:05:16 +010013#include <dt-bindings/clock/r8a7791-clock.h>
Laurent Pinchart5f75e732013-11-19 03:18:25 +010014#include <dt-bindings/interrupt-controller/arm-gic.h>
15#include <dt-bindings/interrupt-controller/irq.h>
16
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090017/ {
18 compatible = "renesas,r8a7791";
19 interrupt-parent = <&gic>;
20 #address-cells = <2>;
21 #size-cells = <2>;
22
Wolfram Sang5bd3de72014-02-17 11:44:41 +010023 aliases {
24 i2c0 = &i2c0;
25 i2c1 = &i2c1;
26 i2c2 = &i2c2;
27 i2c3 = &i2c3;
28 i2c4 = &i2c4;
29 i2c5 = &i2c5;
Wolfram Sang36408d92014-03-10 12:26:58 +010030 i2c6 = &i2c6;
31 i2c7 = &i2c7;
32 i2c8 = &i2c8;
Geert Uytterhoeven6f3e4ee2014-02-25 11:30:14 +010033 spi0 = &qspi;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +010034 spi1 = &msiof0;
35 spi2 = &msiof1;
36 spi3 = &msiof2;
Sergei Shtylyov0b8d1d52014-08-02 04:04:21 +040037 vin0 = &vin0;
38 vin1 = &vin1;
39 vin2 = &vin2;
Wolfram Sang5bd3de72014-02-17 11:44:41 +010040 };
41
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090042 cpus {
43 #address-cells = <1>;
44 #size-cells = <0>;
45
46 cpu0: cpu@0 {
47 device_type = "cpu";
48 compatible = "arm,cortex-a15";
49 reg = <0>;
Magnus Damm896b79d2014-03-06 12:15:36 +090050 clock-frequency = <1500000000>;
Gaku Inamia57004ec2014-06-03 21:03:10 +090051 voltage-tolerance = <1>; /* 1% */
52 clocks = <&cpg_clocks R8A7791_CLK_Z>;
53 clock-latency = <300000>; /* 300 us */
54
55 /* kHz - uV - OPPs unknown yet */
56 operating-points = <1500000 1000000>,
57 <1312500 1000000>,
58 <1125000 1000000>,
59 < 937500 1000000>,
60 < 750000 1000000>,
61 < 375000 1000000>;
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090062 };
Magnus Damm15ab4262013-10-01 17:13:07 +090063
64 cpu1: cpu@1 {
65 device_type = "cpu";
66 compatible = "arm,cortex-a15";
67 reg = <1>;
Magnus Damm896b79d2014-03-06 12:15:36 +090068 clock-frequency = <1500000000>;
Magnus Damm15ab4262013-10-01 17:13:07 +090069 };
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090070 };
71
72 gic: interrupt-controller@f1001000 {
Geert Uytterhoevend238b5e2015-06-17 15:03:34 +020073 compatible = "arm,gic-400";
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090074 #interrupt-cells = <3>;
75 #address-cells = <0>;
76 interrupt-controller;
77 reg = <0 0xf1001000 0 0x1000>,
78 <0 0xf1002000 0 0x1000>,
79 <0 0xf1004000 0 0x2000>,
80 <0 0xf1006000 0 0x2000>;
Geert Uytterhoevenaa5404f2014-11-27 11:57:16 +010081 interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +090082 };
Magnus Dammd77db732013-10-01 17:12:29 +090083
Magnus Damm89fbba12013-11-21 14:22:00 +090084 gpio0: gpio@e6050000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +090085 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +090086 reg = <0 0xe6050000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +010087 interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +090088 #gpio-cells = <2>;
89 gpio-controller;
90 gpio-ranges = <&pfc 0 0 32>;
91 #interrupt-cells = <2>;
92 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +020093 clocks = <&mstp9_clks R8A7791_CLK_GPIO0>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +020094 power-domains = <&cpg_clocks>;
Magnus Dammab87e3f2013-10-08 12:39:30 +090095 };
96
Magnus Damm89fbba12013-11-21 14:22:00 +090097 gpio1: gpio@e6051000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +090098 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +090099 reg = <0 0xe6051000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100100 interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900101 #gpio-cells = <2>;
102 gpio-controller;
Sergei Shtylyov1329f6d2015-10-22 02:05:19 +0300103 gpio-ranges = <&pfc 0 32 26>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900104 #interrupt-cells = <2>;
105 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200106 clocks = <&mstp9_clks R8A7791_CLK_GPIO1>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200107 power-domains = <&cpg_clocks>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900108 };
109
Magnus Damm89fbba12013-11-21 14:22:00 +0900110 gpio2: gpio@e6052000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900111 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900112 reg = <0 0xe6052000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100113 interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900114 #gpio-cells = <2>;
115 gpio-controller;
116 gpio-ranges = <&pfc 0 64 32>;
117 #interrupt-cells = <2>;
118 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200119 clocks = <&mstp9_clks R8A7791_CLK_GPIO2>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200120 power-domains = <&cpg_clocks>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900121 };
122
Magnus Damm89fbba12013-11-21 14:22:00 +0900123 gpio3: gpio@e6053000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900124 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900125 reg = <0 0xe6053000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100126 interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900127 #gpio-cells = <2>;
128 gpio-controller;
129 gpio-ranges = <&pfc 0 96 32>;
130 #interrupt-cells = <2>;
131 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200132 clocks = <&mstp9_clks R8A7791_CLK_GPIO3>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200133 power-domains = <&cpg_clocks>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900134 };
135
Magnus Damm89fbba12013-11-21 14:22:00 +0900136 gpio4: gpio@e6054000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900137 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900138 reg = <0 0xe6054000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100139 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900140 #gpio-cells = <2>;
141 gpio-controller;
142 gpio-ranges = <&pfc 0 128 32>;
143 #interrupt-cells = <2>;
144 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200145 clocks = <&mstp9_clks R8A7791_CLK_GPIO4>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200146 power-domains = <&cpg_clocks>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900147 };
148
Magnus Damm89fbba12013-11-21 14:22:00 +0900149 gpio5: gpio@e6055000 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900150 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900151 reg = <0 0xe6055000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100152 interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900153 #gpio-cells = <2>;
154 gpio-controller;
155 gpio-ranges = <&pfc 0 160 32>;
156 #interrupt-cells = <2>;
157 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200158 clocks = <&mstp9_clks R8A7791_CLK_GPIO5>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200159 power-domains = <&cpg_clocks>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900160 };
161
Magnus Damm89fbba12013-11-21 14:22:00 +0900162 gpio6: gpio@e6055400 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900163 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900164 reg = <0 0xe6055400 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100165 interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900166 #gpio-cells = <2>;
167 gpio-controller;
168 gpio-ranges = <&pfc 0 192 32>;
169 #interrupt-cells = <2>;
170 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200171 clocks = <&mstp9_clks R8A7791_CLK_GPIO6>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200172 power-domains = <&cpg_clocks>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900173 };
174
Magnus Damm89fbba12013-11-21 14:22:00 +0900175 gpio7: gpio@e6055800 {
Magnus Dammab87e3f2013-10-08 12:39:30 +0900176 compatible = "renesas,gpio-r8a7791", "renesas,gpio-rcar";
Magnus Damm89fbba12013-11-21 14:22:00 +0900177 reg = <0 0xe6055800 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100178 interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900179 #gpio-cells = <2>;
180 gpio-controller;
181 gpio-ranges = <&pfc 0 224 26>;
182 #interrupt-cells = <2>;
183 interrupt-controller;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +0200184 clocks = <&mstp9_clks R8A7791_CLK_GPIO7>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200185 power-domains = <&cpg_clocks>;
Magnus Dammab87e3f2013-10-08 12:39:30 +0900186 };
187
Magnus Dammd103f4d2013-11-20 16:59:48 +0900188 thermal@e61f0000 {
189 compatible = "renesas,thermal-r8a7791", "renesas,rcar-thermal";
190 reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
Magnus Dammd103f4d2013-11-20 16:59:48 +0900191 interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven563bc8e2014-01-07 19:57:13 +0100192 clocks = <&mstp5_clks R8A7791_CLK_THERMAL>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200193 power-domains = <&cpg_clocks>;
Magnus Dammd103f4d2013-11-20 16:59:48 +0900194 };
195
Magnus Damm03586ac2013-10-01 17:12:38 +0900196 timer {
197 compatible = "arm,armv7-timer";
Geert Uytterhoevenaa5404f2014-11-27 11:57:16 +0100198 interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
199 <1 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
200 <1 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
201 <1 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
Magnus Damm03586ac2013-10-01 17:12:38 +0900202 };
203
Laurent Pinchartceaa1892014-07-09 15:12:38 +0200204 cmt0: timer@ffca0000 {
Simon Horman4217f322014-09-08 09:27:46 +0900205 compatible = "renesas,cmt-48-r8a7791", "renesas,cmt-48-gen2";
Laurent Pinchartceaa1892014-07-09 15:12:38 +0200206 reg = <0 0xffca0000 0 0x1004>;
207 interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>,
208 <0 143 IRQ_TYPE_LEVEL_HIGH>;
209 clocks = <&mstp1_clks R8A7791_CLK_CMT0>;
210 clock-names = "fck";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200211 power-domains = <&cpg_clocks>;
Laurent Pinchartceaa1892014-07-09 15:12:38 +0200212
213 renesas,channels-mask = <0x60>;
214
215 status = "disabled";
216 };
217
218 cmt1: timer@e6130000 {
Simon Horman4217f322014-09-08 09:27:46 +0900219 compatible = "renesas,cmt-48-r8a7791", "renesas,cmt-48-gen2";
Laurent Pinchartceaa1892014-07-09 15:12:38 +0200220 reg = <0 0xe6130000 0 0x1004>;
221 interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>,
222 <0 121 IRQ_TYPE_LEVEL_HIGH>,
223 <0 122 IRQ_TYPE_LEVEL_HIGH>,
224 <0 123 IRQ_TYPE_LEVEL_HIGH>,
225 <0 124 IRQ_TYPE_LEVEL_HIGH>,
226 <0 125 IRQ_TYPE_LEVEL_HIGH>,
227 <0 126 IRQ_TYPE_LEVEL_HIGH>,
228 <0 127 IRQ_TYPE_LEVEL_HIGH>;
229 clocks = <&mstp3_clks R8A7791_CLK_CMT1>;
230 clock-names = "fck";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200231 power-domains = <&cpg_clocks>;
Laurent Pinchartceaa1892014-07-09 15:12:38 +0200232
233 renesas,channels-mask = <0xff>;
234
235 status = "disabled";
236 };
237
Magnus Dammd77db732013-10-01 17:12:29 +0900238 irqc0: interrupt-controller@e61c0000 {
Magnus Damm26041b02013-11-20 13:18:05 +0900239 compatible = "renesas,irqc-r8a7791", "renesas,irqc";
Magnus Dammd77db732013-10-01 17:12:29 +0900240 #interrupt-cells = <2>;
241 interrupt-controller;
242 reg = <0 0xe61c0000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100243 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
244 <0 1 IRQ_TYPE_LEVEL_HIGH>,
245 <0 2 IRQ_TYPE_LEVEL_HIGH>,
246 <0 3 IRQ_TYPE_LEVEL_HIGH>,
247 <0 12 IRQ_TYPE_LEVEL_HIGH>,
248 <0 13 IRQ_TYPE_LEVEL_HIGH>,
249 <0 14 IRQ_TYPE_LEVEL_HIGH>,
250 <0 15 IRQ_TYPE_LEVEL_HIGH>,
251 <0 16 IRQ_TYPE_LEVEL_HIGH>,
252 <0 17 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven62d386c2015-03-18 19:56:00 +0100253 clocks = <&mstp4_clks R8A7791_CLK_IRQC>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200254 power-domains = <&cpg_clocks>;
Magnus Dammd77db732013-10-01 17:12:29 +0900255 };
Magnus Damm55146922013-10-08 12:39:01 +0900256
Laurent Pinchartfde8fee2014-07-19 01:50:25 +0200257 dmac0: dma-controller@e6700000 {
Simon Hormane6d12b42015-11-13 11:23:49 +0900258 compatible = "renesas,dmac-r8a7791", "renesas,rcar-dmac";
Laurent Pinchartfde8fee2014-07-19 01:50:25 +0200259 reg = <0 0xe6700000 0 0x20000>;
260 interrupts = <0 197 IRQ_TYPE_LEVEL_HIGH
261 0 200 IRQ_TYPE_LEVEL_HIGH
262 0 201 IRQ_TYPE_LEVEL_HIGH
263 0 202 IRQ_TYPE_LEVEL_HIGH
264 0 203 IRQ_TYPE_LEVEL_HIGH
265 0 204 IRQ_TYPE_LEVEL_HIGH
266 0 205 IRQ_TYPE_LEVEL_HIGH
267 0 206 IRQ_TYPE_LEVEL_HIGH
268 0 207 IRQ_TYPE_LEVEL_HIGH
269 0 208 IRQ_TYPE_LEVEL_HIGH
270 0 209 IRQ_TYPE_LEVEL_HIGH
271 0 210 IRQ_TYPE_LEVEL_HIGH
272 0 211 IRQ_TYPE_LEVEL_HIGH
273 0 212 IRQ_TYPE_LEVEL_HIGH
274 0 213 IRQ_TYPE_LEVEL_HIGH
275 0 214 IRQ_TYPE_LEVEL_HIGH>;
276 interrupt-names = "error",
277 "ch0", "ch1", "ch2", "ch3",
278 "ch4", "ch5", "ch6", "ch7",
279 "ch8", "ch9", "ch10", "ch11",
280 "ch12", "ch13", "ch14";
281 clocks = <&mstp2_clks R8A7791_CLK_SYS_DMAC0>;
282 clock-names = "fck";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200283 power-domains = <&cpg_clocks>;
Laurent Pinchartfde8fee2014-07-19 01:50:25 +0200284 #dma-cells = <1>;
285 dma-channels = <15>;
286 };
287
288 dmac1: dma-controller@e6720000 {
Simon Hormane6d12b42015-11-13 11:23:49 +0900289 compatible = "renesas,dmac-r8a7791", "renesas,rcar-dmac";
Laurent Pinchartfde8fee2014-07-19 01:50:25 +0200290 reg = <0 0xe6720000 0 0x20000>;
291 interrupts = <0 220 IRQ_TYPE_LEVEL_HIGH
292 0 216 IRQ_TYPE_LEVEL_HIGH
293 0 217 IRQ_TYPE_LEVEL_HIGH
294 0 218 IRQ_TYPE_LEVEL_HIGH
295 0 219 IRQ_TYPE_LEVEL_HIGH
296 0 308 IRQ_TYPE_LEVEL_HIGH
297 0 309 IRQ_TYPE_LEVEL_HIGH
298 0 310 IRQ_TYPE_LEVEL_HIGH
299 0 311 IRQ_TYPE_LEVEL_HIGH
300 0 312 IRQ_TYPE_LEVEL_HIGH
301 0 313 IRQ_TYPE_LEVEL_HIGH
302 0 314 IRQ_TYPE_LEVEL_HIGH
303 0 315 IRQ_TYPE_LEVEL_HIGH
304 0 316 IRQ_TYPE_LEVEL_HIGH
305 0 317 IRQ_TYPE_LEVEL_HIGH
306 0 318 IRQ_TYPE_LEVEL_HIGH>;
307 interrupt-names = "error",
308 "ch0", "ch1", "ch2", "ch3",
309 "ch4", "ch5", "ch6", "ch7",
310 "ch8", "ch9", "ch10", "ch11",
311 "ch12", "ch13", "ch14";
312 clocks = <&mstp2_clks R8A7791_CLK_SYS_DMAC1>;
313 clock-names = "fck";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200314 power-domains = <&cpg_clocks>;
Laurent Pinchartfde8fee2014-07-19 01:50:25 +0200315 #dma-cells = <1>;
316 dma-channels = <15>;
317 };
318
Kuninori Morimoto8994fff2014-11-03 17:45:37 -0800319 audma0: dma-controller@ec700000 {
Simon Hormane6d12b42015-11-13 11:23:49 +0900320 compatible = "renesas,dmac-r8a7791", "renesas,rcar-dmac";
Kuninori Morimoto8994fff2014-11-03 17:45:37 -0800321 reg = <0 0xec700000 0 0x10000>;
322 interrupts = <0 346 IRQ_TYPE_LEVEL_HIGH
323 0 320 IRQ_TYPE_LEVEL_HIGH
324 0 321 IRQ_TYPE_LEVEL_HIGH
325 0 322 IRQ_TYPE_LEVEL_HIGH
326 0 323 IRQ_TYPE_LEVEL_HIGH
327 0 324 IRQ_TYPE_LEVEL_HIGH
328 0 325 IRQ_TYPE_LEVEL_HIGH
329 0 326 IRQ_TYPE_LEVEL_HIGH
330 0 327 IRQ_TYPE_LEVEL_HIGH
331 0 328 IRQ_TYPE_LEVEL_HIGH
332 0 329 IRQ_TYPE_LEVEL_HIGH
333 0 330 IRQ_TYPE_LEVEL_HIGH
334 0 331 IRQ_TYPE_LEVEL_HIGH
335 0 332 IRQ_TYPE_LEVEL_HIGH>;
336 interrupt-names = "error",
337 "ch0", "ch1", "ch2", "ch3",
338 "ch4", "ch5", "ch6", "ch7",
339 "ch8", "ch9", "ch10", "ch11",
340 "ch12";
341 clocks = <&mstp5_clks R8A7791_CLK_AUDIO_DMAC0>;
342 clock-names = "fck";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200343 power-domains = <&cpg_clocks>;
Kuninori Morimoto8994fff2014-11-03 17:45:37 -0800344 #dma-cells = <1>;
345 dma-channels = <13>;
346 };
347
348 audma1: dma-controller@ec720000 {
Simon Hormane6d12b42015-11-13 11:23:49 +0900349 compatible = "renesas,dmac-r8a7791", "renesas,rcar-dmac";
Kuninori Morimoto8994fff2014-11-03 17:45:37 -0800350 reg = <0 0xec720000 0 0x10000>;
351 interrupts = <0 347 IRQ_TYPE_LEVEL_HIGH
352 0 333 IRQ_TYPE_LEVEL_HIGH
353 0 334 IRQ_TYPE_LEVEL_HIGH
354 0 335 IRQ_TYPE_LEVEL_HIGH
355 0 336 IRQ_TYPE_LEVEL_HIGH
356 0 337 IRQ_TYPE_LEVEL_HIGH
357 0 338 IRQ_TYPE_LEVEL_HIGH
358 0 339 IRQ_TYPE_LEVEL_HIGH
359 0 340 IRQ_TYPE_LEVEL_HIGH
360 0 341 IRQ_TYPE_LEVEL_HIGH
361 0 342 IRQ_TYPE_LEVEL_HIGH
362 0 343 IRQ_TYPE_LEVEL_HIGH
363 0 344 IRQ_TYPE_LEVEL_HIGH
364 0 345 IRQ_TYPE_LEVEL_HIGH>;
365 interrupt-names = "error",
366 "ch0", "ch1", "ch2", "ch3",
367 "ch4", "ch5", "ch6", "ch7",
368 "ch8", "ch9", "ch10", "ch11",
369 "ch12";
370 clocks = <&mstp5_clks R8A7791_CLK_AUDIO_DMAC1>;
371 clock-names = "fck";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200372 power-domains = <&cpg_clocks>;
Kuninori Morimoto8994fff2014-11-03 17:45:37 -0800373 #dma-cells = <1>;
374 dma-channels = <13>;
375 };
376
Yoshihiro Shimodae3e25ed2015-05-08 16:13:33 +0900377 usb_dmac0: dma-controller@e65a0000 {
378 compatible = "renesas,usb-dmac";
379 reg = <0 0xe65a0000 0 0x100>;
380 interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH
381 0 109 IRQ_TYPE_LEVEL_HIGH>;
382 interrupt-names = "ch0", "ch1";
383 clocks = <&mstp3_clks R8A7791_CLK_USBDMAC0>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200384 power-domains = <&cpg_clocks>;
Yoshihiro Shimodae3e25ed2015-05-08 16:13:33 +0900385 #dma-cells = <1>;
386 dma-channels = <2>;
387 };
388
389 usb_dmac1: dma-controller@e65b0000 {
390 compatible = "renesas,usb-dmac";
391 reg = <0 0xe65b0000 0 0x100>;
392 interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH
393 0 110 IRQ_TYPE_LEVEL_HIGH>;
394 interrupt-names = "ch0", "ch1";
395 clocks = <&mstp3_clks R8A7791_CLK_USBDMAC1>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200396 power-domains = <&cpg_clocks>;
Yoshihiro Shimodae3e25ed2015-05-08 16:13:33 +0900397 #dma-cells = <1>;
398 dma-channels = <2>;
399 };
400
Wolfram Sang36408d92014-03-10 12:26:58 +0100401 /* The memory map in the User's Manual maps the cores to bus numbers */
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100402 i2c0: i2c@e6508000 {
403 #address-cells = <1>;
404 #size-cells = <0>;
405 compatible = "renesas,i2c-r8a7791";
406 reg = <0 0xe6508000 0 0x40>;
407 interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>;
408 clocks = <&mstp9_clks R8A7791_CLK_I2C0>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200409 power-domains = <&cpg_clocks>;
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100410 status = "disabled";
411 };
412
413 i2c1: i2c@e6518000 {
414 #address-cells = <1>;
415 #size-cells = <0>;
416 compatible = "renesas,i2c-r8a7791";
417 reg = <0 0xe6518000 0 0x40>;
418 interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>;
419 clocks = <&mstp9_clks R8A7791_CLK_I2C1>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200420 power-domains = <&cpg_clocks>;
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100421 status = "disabled";
422 };
423
424 i2c2: i2c@e6530000 {
425 #address-cells = <1>;
426 #size-cells = <0>;
427 compatible = "renesas,i2c-r8a7791";
428 reg = <0 0xe6530000 0 0x40>;
429 interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>;
430 clocks = <&mstp9_clks R8A7791_CLK_I2C2>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200431 power-domains = <&cpg_clocks>;
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100432 status = "disabled";
433 };
434
435 i2c3: i2c@e6540000 {
436 #address-cells = <1>;
437 #size-cells = <0>;
438 compatible = "renesas,i2c-r8a7791";
439 reg = <0 0xe6540000 0 0x40>;
440 interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>;
441 clocks = <&mstp9_clks R8A7791_CLK_I2C3>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200442 power-domains = <&cpg_clocks>;
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100443 status = "disabled";
444 };
445
446 i2c4: i2c@e6520000 {
447 #address-cells = <1>;
448 #size-cells = <0>;
449 compatible = "renesas,i2c-r8a7791";
450 reg = <0 0xe6520000 0 0x40>;
451 interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>;
452 clocks = <&mstp9_clks R8A7791_CLK_I2C4>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200453 power-domains = <&cpg_clocks>;
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100454 status = "disabled";
455 };
456
457 i2c5: i2c@e6528000 {
Wolfram Sang36408d92014-03-10 12:26:58 +0100458 /* doesn't need pinmux */
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100459 #address-cells = <1>;
460 #size-cells = <0>;
461 compatible = "renesas,i2c-r8a7791";
462 reg = <0 0xe6528000 0 0x40>;
463 interrupts = <0 20 IRQ_TYPE_LEVEL_HIGH>;
464 clocks = <&mstp9_clks R8A7791_CLK_I2C5>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200465 power-domains = <&cpg_clocks>;
Wolfram Sang5bd3de72014-02-17 11:44:41 +0100466 status = "disabled";
467 };
468
Wolfram Sang36408d92014-03-10 12:26:58 +0100469 i2c6: i2c@e60b0000 {
470 /* doesn't need pinmux */
471 #address-cells = <1>;
472 #size-cells = <0>;
473 compatible = "renesas,iic-r8a7791", "renesas,rmobile-iic";
474 reg = <0 0xe60b0000 0 0x425>;
475 interrupts = <0 173 IRQ_TYPE_LEVEL_HIGH>;
476 clocks = <&mstp9_clks R8A7791_CLK_IICDVFS>;
Wolfram Sang3f58c542014-11-07 11:11:44 +0100477 dmas = <&dmac0 0x77>, <&dmac0 0x78>;
478 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200479 power-domains = <&cpg_clocks>;
Wolfram Sang36408d92014-03-10 12:26:58 +0100480 status = "disabled";
481 };
482
483 i2c7: i2c@e6500000 {
484 #address-cells = <1>;
485 #size-cells = <0>;
486 compatible = "renesas,iic-r8a7791", "renesas,rmobile-iic";
487 reg = <0 0xe6500000 0 0x425>;
488 interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>;
489 clocks = <&mstp3_clks R8A7791_CLK_IIC0>;
Wolfram Sang3f58c542014-11-07 11:11:44 +0100490 dmas = <&dmac0 0x61>, <&dmac0 0x62>;
491 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200492 power-domains = <&cpg_clocks>;
Wolfram Sang36408d92014-03-10 12:26:58 +0100493 status = "disabled";
494 };
495
496 i2c8: i2c@e6510000 {
497 #address-cells = <1>;
498 #size-cells = <0>;
499 compatible = "renesas,iic-r8a7791", "renesas,rmobile-iic";
500 reg = <0 0xe6510000 0 0x425>;
501 interrupts = <0 175 IRQ_TYPE_LEVEL_HIGH>;
502 clocks = <&mstp3_clks R8A7791_CLK_IIC1>;
Wolfram Sang3f58c542014-11-07 11:11:44 +0100503 dmas = <&dmac0 0x65>, <&dmac0 0x66>;
504 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200505 power-domains = <&cpg_clocks>;
Wolfram Sang36408d92014-03-10 12:26:58 +0100506 status = "disabled";
507 };
508
Magnus Damm55146922013-10-08 12:39:01 +0900509 pfc: pfc@e6060000 {
510 compatible = "renesas,pfc-r8a7791";
511 reg = <0 0xe6060000 0 0x250>;
512 #gpio-range-cells = <3>;
513 };
Laurent Pinchart59e79892013-12-11 15:05:16 +0100514
Laurent Pinchart8edae492014-10-26 19:40:12 +0200515 mmcif0: mmc@ee200000 {
516 compatible = "renesas,mmcif-r8a7791", "renesas,sh-mmcif";
517 reg = <0 0xee200000 0 0x80>;
518 interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>;
519 clocks = <&mstp3_clks R8A7791_CLK_MMCIF0>;
Laurent Pinchart16b355b2014-10-26 19:40:14 +0200520 dmas = <&dmac0 0xd1>, <&dmac0 0xd2>;
521 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200522 power-domains = <&cpg_clocks>;
Laurent Pinchart8edae492014-10-26 19:40:12 +0200523 reg-io-width = <4>;
524 status = "disabled";
Kuninori Morimotod957ab82015-05-14 07:23:20 +0000525 max-frequency = <97500000>;
Laurent Pinchart8edae492014-10-26 19:40:12 +0200526 };
527
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900528 sdhi0: sd@ee100000 {
529 compatible = "renesas,sdhi-r8a7791";
Kuninori Morimotoe849b062015-02-24 02:20:52 +0000530 reg = <0 0xee100000 0 0x328>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900531 interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
532 clocks = <&mstp3_clks R8A7791_CLK_SDHI0>;
Laurent Pinchartae67fa22015-02-24 02:20:19 +0000533 dmas = <&dmac1 0xcd>, <&dmac1 0xce>;
534 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200535 power-domains = <&cpg_clocks>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900536 status = "disabled";
537 };
538
539 sdhi1: sd@ee140000 {
540 compatible = "renesas,sdhi-r8a7791";
541 reg = <0 0xee140000 0 0x100>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900542 interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
543 clocks = <&mstp3_clks R8A7791_CLK_SDHI1>;
Laurent Pinchartae67fa22015-02-24 02:20:19 +0000544 dmas = <&dmac1 0xc1>, <&dmac1 0xc2>;
545 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200546 power-domains = <&cpg_clocks>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900547 status = "disabled";
548 };
549
550 sdhi2: sd@ee160000 {
551 compatible = "renesas,sdhi-r8a7791";
552 reg = <0 0xee160000 0 0x100>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900553 interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
554 clocks = <&mstp3_clks R8A7791_CLK_SDHI2>;
Laurent Pinchartae67fa22015-02-24 02:20:19 +0000555 dmas = <&dmac1 0xd3>, <&dmac1 0xd4>;
556 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200557 power-domains = <&cpg_clocks>;
Magnus Dammb7ed8a02014-02-12 18:53:55 +0900558 status = "disabled";
559 };
560
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100561 scifa0: serial@e6c40000 {
562 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
563 reg = <0 0xe6c40000 0 64>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100564 interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>;
565 clocks = <&mstp2_clks R8A7791_CLK_SCIFA0>;
566 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200567 dmas = <&dmac0 0x21>, <&dmac0 0x22>;
568 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200569 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100570 status = "disabled";
571 };
572
573 scifa1: serial@e6c50000 {
574 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100575 reg = <0 0xe6c50000 0 64>;
576 interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>;
577 clocks = <&mstp2_clks R8A7791_CLK_SCIFA1>;
578 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200579 dmas = <&dmac0 0x25>, <&dmac0 0x26>;
580 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200581 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100582 status = "disabled";
583 };
584
585 scifa2: serial@e6c60000 {
586 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100587 reg = <0 0xe6c60000 0 64>;
588 interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>;
589 clocks = <&mstp2_clks R8A7791_CLK_SCIFA2>;
590 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200591 dmas = <&dmac0 0x27>, <&dmac0 0x28>;
592 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200593 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100594 status = "disabled";
595 };
596
597 scifa3: serial@e6c70000 {
598 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100599 reg = <0 0xe6c70000 0 64>;
600 interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>;
601 clocks = <&mstp11_clks R8A7791_CLK_SCIFA3>;
602 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200603 dmas = <&dmac0 0x1b>, <&dmac0 0x1c>;
604 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200605 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100606 status = "disabled";
607 };
608
609 scifa4: serial@e6c78000 {
610 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100611 reg = <0 0xe6c78000 0 64>;
612 interrupts = <0 30 IRQ_TYPE_LEVEL_HIGH>;
613 clocks = <&mstp11_clks R8A7791_CLK_SCIFA4>;
614 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200615 dmas = <&dmac0 0x1f>, <&dmac0 0x20>;
616 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200617 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100618 status = "disabled";
619 };
620
621 scifa5: serial@e6c80000 {
622 compatible = "renesas,scifa-r8a7791", "renesas,scifa";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100623 reg = <0 0xe6c80000 0 64>;
624 interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>;
625 clocks = <&mstp11_clks R8A7791_CLK_SCIFA5>;
626 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200627 dmas = <&dmac0 0x23>, <&dmac0 0x24>;
628 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200629 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100630 status = "disabled";
631 };
632
633 scifb0: serial@e6c20000 {
634 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100635 reg = <0 0xe6c20000 0 64>;
636 interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>;
637 clocks = <&mstp2_clks R8A7791_CLK_SCIFB0>;
638 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200639 dmas = <&dmac0 0x3d>, <&dmac0 0x3e>;
640 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200641 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100642 status = "disabled";
643 };
644
645 scifb1: serial@e6c30000 {
646 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100647 reg = <0 0xe6c30000 0 64>;
648 interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>;
649 clocks = <&mstp2_clks R8A7791_CLK_SCIFB1>;
650 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200651 dmas = <&dmac0 0x19>, <&dmac0 0x1a>;
652 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200653 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100654 status = "disabled";
655 };
656
657 scifb2: serial@e6ce0000 {
658 compatible = "renesas,scifb-r8a7791", "renesas,scifb";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100659 reg = <0 0xe6ce0000 0 64>;
660 interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>;
661 clocks = <&mstp2_clks R8A7791_CLK_SCIFB2>;
662 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200663 dmas = <&dmac0 0x1d>, <&dmac0 0x1e>;
664 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200665 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100666 status = "disabled";
667 };
668
669 scif0: serial@e6e60000 {
670 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100671 reg = <0 0xe6e60000 0 64>;
672 interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>;
673 clocks = <&mstp7_clks R8A7791_CLK_SCIF0>;
674 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200675 dmas = <&dmac0 0x29>, <&dmac0 0x2a>;
676 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200677 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100678 status = "disabled";
679 };
680
681 scif1: serial@e6e68000 {
682 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100683 reg = <0 0xe6e68000 0 64>;
684 interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>;
685 clocks = <&mstp7_clks R8A7791_CLK_SCIF1>;
686 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200687 dmas = <&dmac0 0x2d>, <&dmac0 0x2e>;
688 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200689 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100690 status = "disabled";
691 };
692
693 scif2: serial@e6e58000 {
694 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100695 reg = <0 0xe6e58000 0 64>;
696 interrupts = <0 22 IRQ_TYPE_LEVEL_HIGH>;
697 clocks = <&mstp7_clks R8A7791_CLK_SCIF2>;
698 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200699 dmas = <&dmac0 0x2b>, <&dmac0 0x2c>;
700 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200701 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100702 status = "disabled";
703 };
704
705 scif3: serial@e6ea8000 {
706 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100707 reg = <0 0xe6ea8000 0 64>;
708 interrupts = <0 23 IRQ_TYPE_LEVEL_HIGH>;
709 clocks = <&mstp7_clks R8A7791_CLK_SCIF3>;
710 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200711 dmas = <&dmac0 0x2f>, <&dmac0 0x30>;
712 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200713 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100714 status = "disabled";
715 };
716
717 scif4: serial@e6ee0000 {
718 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100719 reg = <0 0xe6ee0000 0 64>;
720 interrupts = <0 24 IRQ_TYPE_LEVEL_HIGH>;
721 clocks = <&mstp7_clks R8A7791_CLK_SCIF4>;
722 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200723 dmas = <&dmac0 0xfb>, <&dmac0 0xfc>;
724 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200725 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100726 status = "disabled";
727 };
728
729 scif5: serial@e6ee8000 {
730 compatible = "renesas,scif-r8a7791", "renesas,scif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100731 reg = <0 0xe6ee8000 0 64>;
732 interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>;
733 clocks = <&mstp7_clks R8A7791_CLK_SCIF5>;
734 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200735 dmas = <&dmac0 0xfd>, <&dmac0 0xfe>;
736 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200737 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100738 status = "disabled";
739 };
740
741 hscif0: serial@e62c0000 {
742 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100743 reg = <0 0xe62c0000 0 96>;
744 interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>;
745 clocks = <&mstp7_clks R8A7791_CLK_HSCIF0>;
746 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200747 dmas = <&dmac0 0x39>, <&dmac0 0x3a>;
748 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200749 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100750 status = "disabled";
751 };
752
753 hscif1: serial@e62c8000 {
754 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100755 reg = <0 0xe62c8000 0 96>;
756 interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>;
757 clocks = <&mstp7_clks R8A7791_CLK_HSCIF1>;
758 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200759 dmas = <&dmac0 0x4d>, <&dmac0 0x4e>;
760 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200761 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100762 status = "disabled";
763 };
764
765 hscif2: serial@e62d0000 {
766 compatible = "renesas,hscif-r8a7791", "renesas,hscif";
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100767 reg = <0 0xe62d0000 0 96>;
768 interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>;
769 clocks = <&mstp7_clks R8A7791_CLK_HSCIF2>;
770 clock-names = "sci_ick";
Geert Uytterhoeven558d6562015-05-20 19:46:26 +0200771 dmas = <&dmac0 0x3b>, <&dmac0 0x3c>;
772 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200773 power-domains = <&cpg_clocks>;
Laurent Pinchart9640cf22013-12-11 14:14:22 +0100774 status = "disabled";
775 };
776
Sergei Shtylyov2e5d55c2014-02-20 02:27:04 +0300777 ether: ethernet@ee700000 {
778 compatible = "renesas,ether-r8a7791";
779 reg = <0 0xee700000 0 0x400>;
780 interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>;
781 clocks = <&mstp8_clks R8A7791_CLK_ETHER>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200782 power-domains = <&cpg_clocks>;
Sergei Shtylyov2e5d55c2014-02-20 02:27:04 +0300783 phy-mode = "rmii";
784 #address-cells = <1>;
785 #size-cells = <0>;
786 status = "disabled";
787 };
788
Valentine Barshakb8532c62014-01-14 21:05:40 +0400789 sata0: sata@ee300000 {
790 compatible = "renesas,sata-r8a7791";
791 reg = <0 0xee300000 0 0x2000>;
Valentine Barshakb8532c62014-01-14 21:05:40 +0400792 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
793 clocks = <&mstp8_clks R8A7791_CLK_SATA0>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200794 power-domains = <&cpg_clocks>;
Valentine Barshakb8532c62014-01-14 21:05:40 +0400795 status = "disabled";
796 };
797
798 sata1: sata@ee500000 {
799 compatible = "renesas,sata-r8a7791";
800 reg = <0 0xee500000 0 0x2000>;
Valentine Barshakb8532c62014-01-14 21:05:40 +0400801 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
802 clocks = <&mstp8_clks R8A7791_CLK_SATA1>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200803 power-domains = <&cpg_clocks>;
Valentine Barshakb8532c62014-01-14 21:05:40 +0400804 status = "disabled";
805 };
806
Yoshihiro Shimoda1c1fee72014-10-24 19:45:06 +0900807 hsusb: usb@e6590000 {
808 compatible = "renesas,usbhs-r8a7791";
809 reg = <0 0xe6590000 0 0x100>;
810 interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
811 clocks = <&mstp7_clks R8A7791_CLK_HSUSB>;
Yoshihiro Shimoda77069932015-05-08 16:13:34 +0900812 dmas = <&usb_dmac0 0>, <&usb_dmac0 1>,
813 <&usb_dmac1 0>, <&usb_dmac1 1>;
814 dma-names = "ch0", "ch1", "ch2", "ch3";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200815 power-domains = <&cpg_clocks>;
816 renesas,buswait = <4>;
817 phys = <&usb0 1>;
818 phy-names = "usb";
Yoshihiro Shimoda1c1fee72014-10-24 19:45:06 +0900819 status = "disabled";
820 };
821
Sergei Shtylyov3b7e5302014-09-27 01:08:12 +0400822 usbphy: usb-phy@e6590100 {
823 compatible = "renesas,usb-phy-r8a7791";
824 reg = <0 0xe6590100 0 0x100>;
825 #address-cells = <1>;
826 #size-cells = <0>;
827 clocks = <&mstp7_clks R8A7791_CLK_HSUSB>;
828 clock-names = "usbhs";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200829 power-domains = <&cpg_clocks>;
Sergei Shtylyov3b7e5302014-09-27 01:08:12 +0400830 status = "disabled";
831
832 usb0: usb-channel@0 {
833 reg = <0>;
834 #phy-cells = <1>;
835 };
836 usb2: usb-channel@2 {
837 reg = <2>;
838 #phy-cells = <1>;
839 };
840 };
841
Sergei Shtylyov0b8d1d52014-08-02 04:04:21 +0400842 vin0: video@e6ef0000 {
843 compatible = "renesas,vin-r8a7791";
Sergei Shtylyov0b8d1d52014-08-02 04:04:21 +0400844 reg = <0 0xe6ef0000 0 0x1000>;
845 interrupts = <0 188 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200846 clocks = <&mstp8_clks R8A7791_CLK_VIN0>;
847 power-domains = <&cpg_clocks>;
Sergei Shtylyov0b8d1d52014-08-02 04:04:21 +0400848 status = "disabled";
849 };
850
851 vin1: video@e6ef1000 {
852 compatible = "renesas,vin-r8a7791";
Sergei Shtylyov0b8d1d52014-08-02 04:04:21 +0400853 reg = <0 0xe6ef1000 0 0x1000>;
854 interrupts = <0 189 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200855 clocks = <&mstp8_clks R8A7791_CLK_VIN1>;
856 power-domains = <&cpg_clocks>;
Sergei Shtylyov0b8d1d52014-08-02 04:04:21 +0400857 status = "disabled";
858 };
859
860 vin2: video@e6ef2000 {
861 compatible = "renesas,vin-r8a7791";
Sergei Shtylyov0b8d1d52014-08-02 04:04:21 +0400862 reg = <0 0xe6ef2000 0 0x1000>;
863 interrupts = <0 190 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200864 clocks = <&mstp8_clks R8A7791_CLK_VIN2>;
865 power-domains = <&cpg_clocks>;
Sergei Shtylyov0b8d1d52014-08-02 04:04:21 +0400866 status = "disabled";
867 };
868
Laurent Pinchart8eefac22014-01-21 16:00:46 +0100869 vsp1@fe928000 {
870 compatible = "renesas,vsp1";
871 reg = <0 0xfe928000 0 0x8000>;
872 interrupts = <0 267 IRQ_TYPE_LEVEL_HIGH>;
873 clocks = <&mstp1_clks R8A7791_CLK_VSP1_S>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200874 power-domains = <&cpg_clocks>;
Laurent Pinchart8eefac22014-01-21 16:00:46 +0100875
876 renesas,has-lut;
877 renesas,has-sru;
878 renesas,#rpf = <5>;
879 renesas,#uds = <3>;
880 renesas,#wpf = <4>;
881 };
882
883 vsp1@fe930000 {
884 compatible = "renesas,vsp1";
885 reg = <0 0xfe930000 0 0x8000>;
886 interrupts = <0 246 IRQ_TYPE_LEVEL_HIGH>;
887 clocks = <&mstp1_clks R8A7791_CLK_VSP1_DU0>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200888 power-domains = <&cpg_clocks>;
Laurent Pinchart8eefac22014-01-21 16:00:46 +0100889
890 renesas,has-lif;
891 renesas,has-lut;
892 renesas,#rpf = <4>;
893 renesas,#uds = <1>;
894 renesas,#wpf = <4>;
895 };
896
897 vsp1@fe938000 {
898 compatible = "renesas,vsp1";
899 reg = <0 0xfe938000 0 0x8000>;
900 interrupts = <0 247 IRQ_TYPE_LEVEL_HIGH>;
901 clocks = <&mstp1_clks R8A7791_CLK_VSP1_DU1>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200902 power-domains = <&cpg_clocks>;
Laurent Pinchart8eefac22014-01-21 16:00:46 +0100903
904 renesas,has-lif;
905 renesas,has-lut;
906 renesas,#rpf = <4>;
907 renesas,#uds = <1>;
908 renesas,#wpf = <4>;
909 };
910
911 du: display@feb00000 {
912 compatible = "renesas,du-r8a7791";
913 reg = <0 0xfeb00000 0 0x40000>,
914 <0 0xfeb90000 0 0x1c>;
915 reg-names = "du", "lvds.0";
916 interrupts = <0 256 IRQ_TYPE_LEVEL_HIGH>,
917 <0 268 IRQ_TYPE_LEVEL_HIGH>;
918 clocks = <&mstp7_clks R8A7791_CLK_DU0>,
919 <&mstp7_clks R8A7791_CLK_DU1>,
920 <&mstp7_clks R8A7791_CLK_LVDS0>;
921 clock-names = "du.0", "du.1", "lvds.0";
922 status = "disabled";
923
924 ports {
925 #address-cells = <1>;
926 #size-cells = <0>;
927
928 port@0 {
929 reg = <0>;
930 du_out_rgb: endpoint {
931 };
932 };
933 port@1 {
934 reg = <1>;
935 du_out_lvds0: endpoint {
936 };
937 };
938 };
939 };
940
Sergei Shtylyov3cf01882015-01-06 01:25:25 +0300941 can0: can@e6e80000 {
942 compatible = "renesas,can-r8a7791";
943 reg = <0 0xe6e80000 0 0x1000>;
944 interrupts = <0 186 IRQ_TYPE_LEVEL_HIGH>;
945 clocks = <&mstp9_clks R8A7791_CLK_RCAN0>,
946 <&cpg_clocks R8A7791_CLK_RCAN>, <&can_clk>;
947 clock-names = "clkp1", "clkp2", "can_clk";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200948 power-domains = <&cpg_clocks>;
Sergei Shtylyov3cf01882015-01-06 01:25:25 +0300949 status = "disabled";
950 };
951
952 can1: can@e6e88000 {
953 compatible = "renesas,can-r8a7791";
954 reg = <0 0xe6e88000 0 0x1000>;
955 interrupts = <0 187 IRQ_TYPE_LEVEL_HIGH>;
956 clocks = <&mstp9_clks R8A7791_CLK_RCAN1>,
957 <&cpg_clocks R8A7791_CLK_RCAN>, <&can_clk>;
958 clock-names = "clkp1", "clkp2", "can_clk";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200959 power-domains = <&cpg_clocks>;
Sergei Shtylyov3cf01882015-01-06 01:25:25 +0300960 status = "disabled";
961 };
962
Mikhail Ulyanov0caa3662015-07-24 16:25:46 +0300963 jpu: jpeg-codec@fe980000 {
964 compatible = "renesas,jpu-r8a7791";
965 reg = <0 0xfe980000 0 0x10300>;
966 interrupts = <0 272 IRQ_TYPE_LEVEL_HIGH>;
967 clocks = <&mstp1_clks R8A7791_CLK_JPU>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +0200968 power-domains = <&cpg_clocks>;
Mikhail Ulyanov0caa3662015-07-24 16:25:46 +0300969 };
970
Laurent Pinchart59e79892013-12-11 15:05:16 +0100971 clocks {
972 #address-cells = <2>;
973 #size-cells = <2>;
974 ranges;
975
976 /* External root clock */
977 extal_clk: extal_clk {
978 compatible = "fixed-clock";
979 #clock-cells = <0>;
980 /* This value must be overriden by the board. */
981 clock-frequency = <0>;
982 clock-output-names = "extal";
983 };
984
Kuninori Morimoto0d3dbde2014-06-11 21:44:04 -0700985 /*
986 * The external audio clocks are configured as 0 Hz fixed frequency clocks by
987 * default. Boards that provide audio clocks should override them.
988 */
989 audio_clk_a: audio_clk_a {
990 compatible = "fixed-clock";
991 #clock-cells = <0>;
992 clock-frequency = <0>;
993 clock-output-names = "audio_clk_a";
994 };
995 audio_clk_b: audio_clk_b {
996 compatible = "fixed-clock";
997 #clock-cells = <0>;
998 clock-frequency = <0>;
999 clock-output-names = "audio_clk_b";
1000 };
1001 audio_clk_c: audio_clk_c {
1002 compatible = "fixed-clock";
1003 #clock-cells = <0>;
1004 clock-frequency = <0>;
1005 clock-output-names = "audio_clk_c";
1006 };
1007
Phil Edworthy66c405e2014-06-13 10:37:19 +01001008 /* External PCIe clock - can be overridden by the board */
1009 pcie_bus_clk: pcie_bus_clk {
1010 compatible = "fixed-clock";
1011 #clock-cells = <0>;
1012 clock-frequency = <100000000>;
1013 clock-output-names = "pcie_bus";
1014 status = "disabled";
1015 };
1016
Sergei Shtylyovb3242522015-01-06 01:24:08 +03001017 /* External USB clock - can be overridden by the board */
1018 usb_extal_clk: usb_extal_clk {
1019 compatible = "fixed-clock";
1020 #clock-cells = <0>;
1021 clock-frequency = <48000000>;
1022 clock-output-names = "usb_extal";
1023 };
1024
1025 /* External CAN clock */
1026 can_clk: can_clk {
1027 compatible = "fixed-clock";
1028 #clock-cells = <0>;
1029 /* This value must be overridden by the board. */
1030 clock-frequency = <0>;
1031 clock-output-names = "can_clk";
1032 status = "disabled";
1033 };
1034
Laurent Pinchart59e79892013-12-11 15:05:16 +01001035 /* Special CPG clocks */
1036 cpg_clocks: cpg_clocks@e6150000 {
1037 compatible = "renesas,r8a7791-cpg-clocks",
1038 "renesas,rcar-gen2-cpg-clocks";
1039 reg = <0 0xe6150000 0 0x1000>;
Sergei Shtylyovb3242522015-01-06 01:24:08 +03001040 clocks = <&extal_clk &usb_extal_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001041 #clock-cells = <1>;
1042 clock-output-names = "main", "pll0", "pll1", "pll3",
Sergei Shtylyovb3242522015-01-06 01:24:08 +03001043 "lb", "qspi", "sdh", "sd0", "z",
Sergei Shtylyovae65a8a2014-12-30 23:20:34 +03001044 "rcan", "adsp";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +02001045 #power-domain-cells = <0>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001046 };
1047
1048 /* Variable factor clocks */
Simon Horman2ea0d4e2015-01-29 10:41:24 +09001049 sd2_clk: sd2_clk@e6150078 {
Laurent Pinchart59e79892013-12-11 15:05:16 +01001050 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
1051 reg = <0 0xe6150078 0 4>;
1052 clocks = <&pll1_div2_clk>;
1053 #clock-cells = <0>;
Simon Horman2ea0d4e2015-01-29 10:41:24 +09001054 clock-output-names = "sd2";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001055 };
Simon Horman2ea0d4e2015-01-29 10:41:24 +09001056 sd3_clk: sd3_clk@e615026c {
Laurent Pinchart59e79892013-12-11 15:05:16 +01001057 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
Shinobu Ueharac9b22772014-07-21 22:04:29 -07001058 reg = <0 0xe615026c 0 4>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001059 clocks = <&pll1_div2_clk>;
1060 #clock-cells = <0>;
Simon Horman2ea0d4e2015-01-29 10:41:24 +09001061 clock-output-names = "sd3";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001062 };
1063 mmc0_clk: mmc0_clk@e6150240 {
1064 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
1065 reg = <0 0xe6150240 0 4>;
1066 clocks = <&pll1_div2_clk>;
1067 #clock-cells = <0>;
1068 clock-output-names = "mmc0";
1069 };
1070 ssp_clk: ssp_clk@e6150248 {
1071 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
1072 reg = <0 0xe6150248 0 4>;
1073 clocks = <&pll1_div2_clk>;
1074 #clock-cells = <0>;
1075 clock-output-names = "ssp";
1076 };
1077 ssprs_clk: ssprs_clk@e615024c {
1078 compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
1079 reg = <0 0xe615024c 0 4>;
1080 clocks = <&pll1_div2_clk>;
1081 #clock-cells = <0>;
1082 clock-output-names = "ssprs";
1083 };
1084
1085 /* Fixed factor clocks */
1086 pll1_div2_clk: pll1_div2_clk {
1087 compatible = "fixed-factor-clock";
1088 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1089 #clock-cells = <0>;
1090 clock-div = <2>;
1091 clock-mult = <1>;
1092 clock-output-names = "pll1_div2";
1093 };
1094 zg_clk: zg_clk {
1095 compatible = "fixed-factor-clock";
1096 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1097 #clock-cells = <0>;
1098 clock-div = <3>;
1099 clock-mult = <1>;
1100 clock-output-names = "zg";
1101 };
1102 zx_clk: zx_clk {
1103 compatible = "fixed-factor-clock";
1104 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1105 #clock-cells = <0>;
1106 clock-div = <3>;
1107 clock-mult = <1>;
1108 clock-output-names = "zx";
1109 };
1110 zs_clk: zs_clk {
1111 compatible = "fixed-factor-clock";
1112 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1113 #clock-cells = <0>;
1114 clock-div = <6>;
1115 clock-mult = <1>;
1116 clock-output-names = "zs";
1117 };
1118 hp_clk: hp_clk {
1119 compatible = "fixed-factor-clock";
1120 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1121 #clock-cells = <0>;
1122 clock-div = <12>;
1123 clock-mult = <1>;
1124 clock-output-names = "hp";
1125 };
1126 i_clk: i_clk {
1127 compatible = "fixed-factor-clock";
1128 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1129 #clock-cells = <0>;
1130 clock-div = <2>;
1131 clock-mult = <1>;
1132 clock-output-names = "i";
1133 };
1134 b_clk: b_clk {
1135 compatible = "fixed-factor-clock";
1136 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1137 #clock-cells = <0>;
1138 clock-div = <12>;
1139 clock-mult = <1>;
1140 clock-output-names = "b";
1141 };
1142 p_clk: p_clk {
1143 compatible = "fixed-factor-clock";
1144 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1145 #clock-cells = <0>;
1146 clock-div = <24>;
1147 clock-mult = <1>;
1148 clock-output-names = "p";
1149 };
1150 cl_clk: cl_clk {
1151 compatible = "fixed-factor-clock";
1152 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1153 #clock-cells = <0>;
1154 clock-div = <48>;
1155 clock-mult = <1>;
1156 clock-output-names = "cl";
1157 };
1158 m2_clk: m2_clk {
1159 compatible = "fixed-factor-clock";
1160 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1161 #clock-cells = <0>;
1162 clock-div = <8>;
1163 clock-mult = <1>;
1164 clock-output-names = "m2";
1165 };
Laurent Pinchart59e79892013-12-11 15:05:16 +01001166 rclk_clk: rclk_clk {
1167 compatible = "fixed-factor-clock";
1168 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1169 #clock-cells = <0>;
1170 clock-div = <(48 * 1024)>;
1171 clock-mult = <1>;
1172 clock-output-names = "rclk";
1173 };
1174 oscclk_clk: oscclk_clk {
1175 compatible = "fixed-factor-clock";
1176 clocks = <&cpg_clocks R8A7791_CLK_PLL1>;
1177 #clock-cells = <0>;
1178 clock-div = <(12 * 1024)>;
1179 clock-mult = <1>;
1180 clock-output-names = "oscclk";
1181 };
1182 zb3_clk: zb3_clk {
1183 compatible = "fixed-factor-clock";
1184 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1185 #clock-cells = <0>;
1186 clock-div = <4>;
1187 clock-mult = <1>;
1188 clock-output-names = "zb3";
1189 };
1190 zb3d2_clk: zb3d2_clk {
1191 compatible = "fixed-factor-clock";
1192 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1193 #clock-cells = <0>;
1194 clock-div = <8>;
1195 clock-mult = <1>;
1196 clock-output-names = "zb3d2";
1197 };
1198 ddr_clk: ddr_clk {
1199 compatible = "fixed-factor-clock";
1200 clocks = <&cpg_clocks R8A7791_CLK_PLL3>;
1201 #clock-cells = <0>;
1202 clock-div = <8>;
1203 clock-mult = <1>;
1204 clock-output-names = "ddr";
1205 };
1206 mp_clk: mp_clk {
1207 compatible = "fixed-factor-clock";
1208 clocks = <&pll1_div2_clk>;
1209 #clock-cells = <0>;
1210 clock-div = <15>;
1211 clock-mult = <1>;
1212 clock-output-names = "mp";
1213 };
1214 cp_clk: cp_clk {
1215 compatible = "fixed-factor-clock";
1216 clocks = <&extal_clk>;
1217 #clock-cells = <0>;
1218 clock-div = <2>;
1219 clock-mult = <1>;
1220 clock-output-names = "cp";
1221 };
1222
1223 /* Gate clocks */
Laurent Pinchartcded80f2013-12-19 16:51:02 +01001224 mstp0_clks: mstp0_clks@e6150130 {
1225 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1226 reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
1227 clocks = <&mp_clk>;
1228 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001229 clock-indices = <R8A7791_CLK_MSIOF0>;
Laurent Pinchartcded80f2013-12-19 16:51:02 +01001230 clock-output-names = "msiof0";
1231 };
Laurent Pinchart59e79892013-12-11 15:05:16 +01001232 mstp1_clks: mstp1_clks@e6150134 {
1233 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1234 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001235 clocks = <&zs_clk>, <&zs_clk>, <&m2_clk>, <&zs_clk>, <&p_clk>,
1236 <&zg_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>,
1237 <&p_clk>, <&rclk_clk>, <&cp_clk>, <&zs_clk>, <&zs_clk>,
1238 <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001239 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001240 clock-indices = <
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001241 R8A7791_CLK_VCP0 R8A7791_CLK_VPC0 R8A7791_CLK_JPU
1242 R8A7791_CLK_SSP1 R8A7791_CLK_TMU1 R8A7791_CLK_3DG
1243 R8A7791_CLK_2DDMAC R8A7791_CLK_FDP1_1 R8A7791_CLK_FDP1_0
1244 R8A7791_CLK_TMU3 R8A7791_CLK_TMU2 R8A7791_CLK_CMT0
1245 R8A7791_CLK_TMU0 R8A7791_CLK_VSP1_DU1 R8A7791_CLK_VSP1_DU0
1246 R8A7791_CLK_VSP1_S
Laurent Pinchart59e79892013-12-11 15:05:16 +01001247 >;
1248 clock-output-names =
Yoshifumi Hosoya74d89d22014-10-14 16:01:43 +09001249 "vcp0", "vpc0", "jpu", "ssp1", "tmu1", "3dg",
1250 "2ddmac", "fdp1-1", "fdp1-0", "tmu3", "tmu2", "cmt0",
1251 "tmu0", "vsp1-du1", "vsp1-du0", "vsp1-sy";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001252 };
1253 mstp2_clks: mstp2_clks@e6150138 {
1254 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1255 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
1256 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001257 <&mp_clk>, <&mp_clk>, <&mp_clk>,
1258 <&zs_clk>, <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001259 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001260 clock-indices = <
Laurent Pinchart59e79892013-12-11 15:05:16 +01001261 R8A7791_CLK_SCIFA2 R8A7791_CLK_SCIFA1 R8A7791_CLK_SCIFA0
Laurent Pinchartcded80f2013-12-19 16:51:02 +01001262 R8A7791_CLK_MSIOF2 R8A7791_CLK_SCIFB0 R8A7791_CLK_SCIFB1
1263 R8A7791_CLK_MSIOF1 R8A7791_CLK_SCIFB2
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001264 R8A7791_CLK_SYS_DMAC1 R8A7791_CLK_SYS_DMAC0
Laurent Pinchart59e79892013-12-11 15:05:16 +01001265 >;
1266 clock-output-names =
Geert Uytterhoeven0c002ef2014-02-20 15:49:29 +01001267 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
Geert Uytterhoeven4e074bc2014-06-02 15:42:07 +02001268 "scifb1", "msiof1", "scifb2",
1269 "sys-dmac1", "sys-dmac0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001270 };
1271 mstp3_clks: mstp3_clks@e615013c {
1272 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1273 reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
Simon Horman2ea0d4e2015-01-29 10:41:24 +09001274 clocks = <&cp_clk>, <&sd3_clk>, <&sd2_clk>, <&cpg_clocks R8A7791_CLK_SD0>,
Yoshihiro Shimodab9473d92014-11-17 18:25:25 +09001275 <&mmc0_clk>, <&hp_clk>, <&mp_clk>, <&hp_clk>, <&mp_clk>, <&rclk_clk>,
1276 <&hp_clk>, <&hp_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001277 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001278 clock-indices = <
Wolfram Sangc08691b2014-03-10 12:26:57 +01001279 R8A7791_CLK_TPU0 R8A7791_CLK_SDHI2 R8A7791_CLK_SDHI1 R8A7791_CLK_SDHI0
Phil Edworthy4bfb3762014-06-13 10:37:18 +01001280 R8A7791_CLK_MMCIF0 R8A7791_CLK_IIC0 R8A7791_CLK_PCIEC R8A7791_CLK_IIC1
1281 R8A7791_CLK_SSUSB R8A7791_CLK_CMT1
Yoshihiro Shimodab9473d92014-11-17 18:25:25 +09001282 R8A7791_CLK_USBDMAC0 R8A7791_CLK_USBDMAC1
Laurent Pinchart59e79892013-12-11 15:05:16 +01001283 >;
1284 clock-output-names =
Wolfram Sangc08691b2014-03-10 12:26:57 +01001285 "tpu0", "sdhi2", "sdhi1", "sdhi0",
Yoshihiro Shimodab9473d92014-11-17 18:25:25 +09001286 "mmcif0", "i2c7", "pciec", "i2c8", "ssusb", "cmt1",
1287 "usbdmac0", "usbdmac1";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001288 };
Geert Uytterhoeven62d386c2015-03-18 19:56:00 +01001289 mstp4_clks: mstp4_clks@e6150140 {
1290 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1291 reg = <0 0xe6150140 0 4>, <0 0xe615004c 0 4>;
1292 clocks = <&cp_clk>;
1293 #clock-cells = <1>;
1294 clock-indices = <R8A7791_CLK_IRQC>;
1295 clock-output-names = "irqc";
1296 };
Laurent Pinchart59e79892013-12-11 15:05:16 +01001297 mstp5_clks: mstp5_clks@e6150144 {
1298 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1299 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
Sergei Shtylyovae65a8a2014-12-30 23:20:34 +03001300 clocks = <&hp_clk>, <&hp_clk>, <&cpg_clocks R8A7791_CLK_ADSP>,
1301 <&extal_clk>, <&p_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001302 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001303 clock-indices = <
1304 R8A7791_CLK_AUDIO_DMAC0 R8A7791_CLK_AUDIO_DMAC1
Sergei Shtylyovae65a8a2014-12-30 23:20:34 +03001305 R8A7791_CLK_ADSP_MOD R8A7791_CLK_THERMAL
1306 R8A7791_CLK_PWM
Ben Dookscb0bf852014-11-10 19:49:38 +01001307 >;
Sergei Shtylyovae65a8a2014-12-30 23:20:34 +03001308 clock-output-names = "audmac0", "audmac1", "adsp_mod",
1309 "thermal", "pwm";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001310 };
1311 mstp7_clks: mstp7_clks@e615014c {
1312 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1313 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
Kazuya Mizuguchi118e4e62015-02-19 10:43:10 -05001314 clocks = <&mp_clk>, <&hp_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&zs_clk>,
Laurent Pinchart59e79892013-12-11 15:05:16 +01001315 <&zs_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1316 <&zx_clk>, <&zx_clk>, <&zx_clk>;
1317 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001318 clock-indices = <
Magnus Damm6225b992014-04-07 15:04:21 +09001319 R8A7791_CLK_EHCI R8A7791_CLK_HSUSB R8A7791_CLK_HSCIF2 R8A7791_CLK_SCIF5
Laurent Pinchart59e79892013-12-11 15:05:16 +01001320 R8A7791_CLK_SCIF4 R8A7791_CLK_HSCIF1 R8A7791_CLK_HSCIF0
1321 R8A7791_CLK_SCIF3 R8A7791_CLK_SCIF2 R8A7791_CLK_SCIF1
1322 R8A7791_CLK_SCIF0 R8A7791_CLK_DU1 R8A7791_CLK_DU0
1323 R8A7791_CLK_LVDS0
1324 >;
1325 clock-output-names =
Magnus Damm6225b992014-04-07 15:04:21 +09001326 "ehci", "hsusb", "hscif2", "scif5", "scif4", "hscif1", "hscif0",
Laurent Pinchart59e79892013-12-11 15:05:16 +01001327 "scif3", "scif2", "scif1", "scif0", "du1", "du0", "lvds0";
1328 };
1329 mstp8_clks: mstp8_clks@e6150990 {
1330 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1331 reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
Ryo Kataoka75a499a2015-02-19 22:29:06 +09001332 clocks = <&zx_clk>, <&hp_clk>, <&zg_clk>, <&zg_clk>,
Andrey Gusakov7408d302014-12-18 23:43:03 +03001333 <&zg_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001334 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001335 clock-indices = <
Andrey Gusakov7408d302014-12-18 23:43:03 +03001336 R8A7791_CLK_IPMMU_SGX R8A7791_CLK_MLB
Laurent Pinchart09c98342014-01-07 09:22:54 +01001337 R8A7791_CLK_VIN2 R8A7791_CLK_VIN1 R8A7791_CLK_VIN0
Laurent Pinchart65f05c32014-01-07 09:22:56 +01001338 R8A7791_CLK_ETHER R8A7791_CLK_SATA1 R8A7791_CLK_SATA0
Laurent Pinchart09c98342014-01-07 09:22:54 +01001339 >;
Laurent Pinchart65f05c32014-01-07 09:22:56 +01001340 clock-output-names =
Andrey Gusakov7408d302014-12-18 23:43:03 +03001341 "ipmmu_sgx", "mlb", "vin2", "vin1", "vin0", "ether",
1342 "sata1", "sata0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001343 };
1344 mstp9_clks: mstp9_clks@e6150994 {
1345 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1346 reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001347 clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
1348 <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
1349 <&p_clk>, <&p_clk>, <&cpg_clocks R8A7791_CLK_QSPI>, <&hp_clk>,
Laurent Pinchart11b48db2014-04-01 13:02:18 +02001350 <&cp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>,
1351 <&hp_clk>, <&hp_clk>;
Laurent Pinchart59e79892013-12-11 15:05:16 +01001352 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001353 clock-indices = <
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001354 R8A7791_CLK_GPIO7 R8A7791_CLK_GPIO6 R8A7791_CLK_GPIO5 R8A7791_CLK_GPIO4
1355 R8A7791_CLK_GPIO3 R8A7791_CLK_GPIO2 R8A7791_CLK_GPIO1 R8A7791_CLK_GPIO0
Wolfram Sangc08691b2014-03-10 12:26:57 +01001356 R8A7791_CLK_RCAN1 R8A7791_CLK_RCAN0 R8A7791_CLK_QSPI_MOD R8A7791_CLK_I2C5
1357 R8A7791_CLK_IICDVFS R8A7791_CLK_I2C4 R8A7791_CLK_I2C3 R8A7791_CLK_I2C2
1358 R8A7791_CLK_I2C1 R8A7791_CLK_I2C0
Laurent Pinchart59e79892013-12-11 15:05:16 +01001359 >;
1360 clock-output-names =
Geert Uytterhoeven4faf9c52014-04-23 10:25:28 +02001361 "gpio7", "gpio6", "gpio5", "gpio4", "gpio3", "gpio2", "gpio1", "gpio0",
1362 "rcan1", "rcan0", "qspi_mod", "i2c5", "i2c6", "i2c4", "i2c3", "i2c2",
1363 "i2c1", "i2c0";
Laurent Pinchart59e79892013-12-11 15:05:16 +01001364 };
Kuninori Morimotoee914152014-06-11 21:44:16 -07001365 mstp10_clks: mstp10_clks@e6150998 {
1366 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1367 reg = <0 0xe6150998 0 4>, <0 0xe61509a8 0 4>;
1368 clocks = <&p_clk>,
1369 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1370 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1371 <&p_clk>,
1372 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1373 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1374 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1375 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
1376 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
Kuninori Morimoto88401702015-07-21 00:27:03 +00001377 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>,
Kuninori Morimotoee914152014-06-11 21:44:16 -07001378 <&mstp10_clks R8A7791_CLK_SCU_ALL>, <&mstp10_clks R8A7791_CLK_SCU_ALL>;
1379
1380 #clock-cells = <1>;
1381 clock-indices = <
1382 R8A7791_CLK_SSI_ALL
1383 R8A7791_CLK_SSI9 R8A7791_CLK_SSI8 R8A7791_CLK_SSI7 R8A7791_CLK_SSI6 R8A7791_CLK_SSI5
1384 R8A7791_CLK_SSI4 R8A7791_CLK_SSI3 R8A7791_CLK_SSI2 R8A7791_CLK_SSI1 R8A7791_CLK_SSI0
1385 R8A7791_CLK_SCU_ALL
1386 R8A7791_CLK_SCU_DVC1 R8A7791_CLK_SCU_DVC0
Kuninori Morimoto88401702015-07-21 00:27:03 +00001387 R8A7791_CLK_SCU_CTU1_MIX1 R8A7791_CLK_SCU_CTU0_MIX0
Kuninori Morimotoee914152014-06-11 21:44:16 -07001388 R8A7791_CLK_SCU_SRC9 R8A7791_CLK_SCU_SRC8 R8A7791_CLK_SCU_SRC7 R8A7791_CLK_SCU_SRC6 R8A7791_CLK_SCU_SRC5
1389 R8A7791_CLK_SCU_SRC4 R8A7791_CLK_SCU_SRC3 R8A7791_CLK_SCU_SRC2 R8A7791_CLK_SCU_SRC1 R8A7791_CLK_SCU_SRC0
1390 >;
1391 clock-output-names =
1392 "ssi-all",
1393 "ssi9", "ssi8", "ssi7", "ssi6", "ssi5",
1394 "ssi4", "ssi3", "ssi2", "ssi1", "ssi0",
1395 "scu-all",
1396 "scu-dvc1", "scu-dvc0",
Kuninori Morimoto88401702015-07-21 00:27:03 +00001397 "scu-ctu1-mix1", "scu-ctu0-mix0",
Kuninori Morimotoee914152014-06-11 21:44:16 -07001398 "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5",
1399 "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0";
1400 };
Laurent Pinchart59e79892013-12-11 15:05:16 +01001401 mstp11_clks: mstp11_clks@e615099c {
1402 compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
1403 reg = <0 0xe615099c 0 4>, <0 0xe61509ac 0 4>;
1404 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>;
1405 #clock-cells = <1>;
Ben Dookscb0bf852014-11-10 19:49:38 +01001406 clock-indices = <
Laurent Pinchart59e79892013-12-11 15:05:16 +01001407 R8A7791_CLK_SCIFA3 R8A7791_CLK_SCIFA4 R8A7791_CLK_SCIFA5
1408 >;
1409 clock-output-names = "scifa3", "scifa4", "scifa5";
1410 };
1411 };
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001412
Geert Uytterhoeven6f3e4ee2014-02-25 11:30:14 +01001413 qspi: spi@e6b10000 {
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001414 compatible = "renesas,qspi-r8a7791", "renesas,qspi";
1415 reg = <0 0xe6b10000 0 0x2c>;
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001416 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
1417 clocks = <&mstp9_clks R8A7791_CLK_QSPI_MOD>;
Geert Uytterhoeven591f2fa2014-08-06 14:59:06 +02001418 dmas = <&dmac0 0x17>, <&dmac0 0x18>;
1419 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +02001420 power-domains = <&cpg_clocks>;
Geert Uytterhoeven4d5b59c2014-02-04 16:24:03 +01001421 num-cs = <1>;
1422 #address-cells = <1>;
1423 #size-cells = <0>;
1424 status = "disabled";
1425 };
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001426
1427 msiof0: spi@e6e20000 {
1428 compatible = "renesas,msiof-r8a7791";
Ryo Kataokacb6d08a2015-04-05 01:55:12 +09001429 reg = <0 0xe6e20000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001430 interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>;
1431 clocks = <&mstp0_clks R8A7791_CLK_MSIOF0>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001432 dmas = <&dmac0 0x51>, <&dmac0 0x52>;
1433 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +02001434 power-domains = <&cpg_clocks>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001435 #address-cells = <1>;
1436 #size-cells = <0>;
1437 status = "disabled";
1438 };
1439
1440 msiof1: spi@e6e10000 {
1441 compatible = "renesas,msiof-r8a7791";
Ryo Kataokacb6d08a2015-04-05 01:55:12 +09001442 reg = <0 0xe6e10000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001443 interrupts = <0 157 IRQ_TYPE_LEVEL_HIGH>;
1444 clocks = <&mstp2_clks R8A7791_CLK_MSIOF1>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001445 dmas = <&dmac0 0x55>, <&dmac0 0x56>;
1446 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +02001447 power-domains = <&cpg_clocks>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001448 #address-cells = <1>;
1449 #size-cells = <0>;
1450 status = "disabled";
1451 };
1452
1453 msiof2: spi@e6e00000 {
1454 compatible = "renesas,msiof-r8a7791";
Ryo Kataokacb6d08a2015-04-05 01:55:12 +09001455 reg = <0 0xe6e00000 0 0x0064>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001456 interrupts = <0 158 IRQ_TYPE_LEVEL_HIGH>;
1457 clocks = <&mstp2_clks R8A7791_CLK_MSIOF2>;
Geert Uytterhoevena5ce27f2014-08-06 14:59:07 +02001458 dmas = <&dmac0 0x41>, <&dmac0 0x42>;
1459 dma-names = "tx", "rx";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +02001460 power-domains = <&cpg_clocks>;
Geert Uytterhoeven7713d3a2014-02-25 11:30:16 +01001461 #address-cells = <1>;
1462 #size-cells = <0>;
1463 status = "disabled";
1464 };
Phil Edworthy811cdfa2014-06-13 10:37:20 +01001465
Yoshihiro Shimodac1969312014-10-24 19:43:02 +09001466 xhci: usb@ee000000 {
1467 compatible = "renesas,xhci-r8a7791";
1468 reg = <0 0xee000000 0 0xc00>;
1469 interrupts = <0 101 IRQ_TYPE_LEVEL_HIGH>;
1470 clocks = <&mstp3_clks R8A7791_CLK_SSUSB>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +02001471 power-domains = <&cpg_clocks>;
Yoshihiro Shimodac1969312014-10-24 19:43:02 +09001472 phys = <&usb2 1>;
1473 phy-names = "usb";
1474 status = "disabled";
1475 };
1476
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001477 pci0: pci@ee090000 {
1478 compatible = "renesas,pci-r8a7791";
1479 device_type = "pci";
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001480 reg = <0 0xee090000 0 0xc00>,
1481 <0 0xee080000 0 0x1100>;
1482 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +02001483 clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
1484 power-domains = <&cpg_clocks>;
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001485 status = "disabled";
1486
1487 bus-range = <0 0>;
1488 #address-cells = <3>;
1489 #size-cells = <2>;
1490 #interrupt-cells = <1>;
1491 ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>;
1492 interrupt-map-mask = <0xff00 0 0 0x7>;
1493 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1494 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1495 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyove1bce122014-09-29 22:23:11 +04001496
1497 usb@0,1 {
1498 reg = <0x800 0 0 0 0>;
1499 device_type = "pci";
1500 phys = <&usb0 0>;
1501 phy-names = "usb";
1502 };
1503
1504 usb@0,2 {
1505 reg = <0x1000 0 0 0 0>;
1506 device_type = "pci";
1507 phys = <&usb0 0>;
1508 phy-names = "usb";
1509 };
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001510 };
1511
1512 pci1: pci@ee0d0000 {
1513 compatible = "renesas,pci-r8a7791";
1514 device_type = "pci";
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001515 reg = <0 0xee0d0000 0 0xc00>,
1516 <0 0xee0c0000 0 0x1100>;
1517 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoeven797a0622015-08-04 14:28:11 +02001518 clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
1519 power-domains = <&cpg_clocks>;
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001520 status = "disabled";
1521
1522 bus-range = <1 1>;
1523 #address-cells = <3>;
1524 #size-cells = <2>;
1525 #interrupt-cells = <1>;
1526 ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>;
1527 interrupt-map-mask = <0xff00 0 0 0x7>;
1528 interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1529 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1530 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
Sergei Shtylyove1bce122014-09-29 22:23:11 +04001531
1532 usb@0,1 {
1533 reg = <0x800 0 0 0 0>;
1534 device_type = "pci";
1535 phys = <&usb2 0>;
1536 phy-names = "usb";
1537 };
1538
1539 usb@0,2 {
1540 reg = <0x1000 0 0 0 0>;
1541 device_type = "pci";
1542 phys = <&usb2 0>;
1543 phy-names = "usb";
1544 };
Sergei Shtylyovaace0802014-06-24 22:10:05 +04001545 };
1546
Phil Edworthy811cdfa2014-06-13 10:37:20 +01001547 pciec: pcie@fe000000 {
1548 compatible = "renesas,pcie-r8a7791";
1549 reg = <0 0xfe000000 0 0x80000>;
1550 #address-cells = <3>;
1551 #size-cells = <2>;
1552 bus-range = <0x00 0xff>;
1553 device_type = "pci";
1554 ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000
1555 0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000
1556 0x02000000 0 0x30000000 0 0x30000000 0 0x08000000
1557 0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;
1558 /* Map all possible DDR as inbound ranges */
1559 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000
1560 0x43000000 2 0x00000000 2 0x00000000 1 0x00000000>;
1561 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>,
1562 <0 117 IRQ_TYPE_LEVEL_HIGH>,
1563 <0 118 IRQ_TYPE_LEVEL_HIGH>;
1564 #interrupt-cells = <1>;
1565 interrupt-map-mask = <0 0 0 0>;
1566 interrupt-map = <0 0 0 0 &gic 0 116 IRQ_TYPE_LEVEL_HIGH>;
1567 clocks = <&mstp3_clks R8A7791_CLK_PCIEC>, <&pcie_bus_clk>;
1568 clock-names = "pcie", "pcie_bus";
Geert Uytterhoeven797a0622015-08-04 14:28:11 +02001569 power-domains = <&cpg_clocks>;
Phil Edworthy811cdfa2014-06-13 10:37:20 +01001570 status = "disabled";
1571 };
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001572
Laurent Pinchartf1951852015-01-27 11:13:24 +02001573 ipmmu_sy0: mmu@e6280000 {
1574 compatible = "renesas,ipmmu-vmsa";
1575 reg = <0 0xe6280000 0 0x1000>;
1576 interrupts = <0 223 IRQ_TYPE_LEVEL_HIGH>,
1577 <0 224 IRQ_TYPE_LEVEL_HIGH>;
1578 #iommu-cells = <1>;
1579 status = "disabled";
1580 };
1581
1582 ipmmu_sy1: mmu@e6290000 {
1583 compatible = "renesas,ipmmu-vmsa";
1584 reg = <0 0xe6290000 0 0x1000>;
1585 interrupts = <0 225 IRQ_TYPE_LEVEL_HIGH>;
1586 #iommu-cells = <1>;
1587 status = "disabled";
1588 };
1589
1590 ipmmu_ds: mmu@e6740000 {
1591 compatible = "renesas,ipmmu-vmsa";
1592 reg = <0 0xe6740000 0 0x1000>;
1593 interrupts = <0 198 IRQ_TYPE_LEVEL_HIGH>,
1594 <0 199 IRQ_TYPE_LEVEL_HIGH>;
1595 #iommu-cells = <1>;
1596 status = "disabled";
1597 };
1598
1599 ipmmu_mp: mmu@ec680000 {
1600 compatible = "renesas,ipmmu-vmsa";
1601 reg = <0 0xec680000 0 0x1000>;
1602 interrupts = <0 226 IRQ_TYPE_LEVEL_HIGH>;
1603 #iommu-cells = <1>;
1604 status = "disabled";
1605 };
1606
1607 ipmmu_mx: mmu@fe951000 {
1608 compatible = "renesas,ipmmu-vmsa";
1609 reg = <0 0xfe951000 0 0x1000>;
1610 interrupts = <0 222 IRQ_TYPE_LEVEL_HIGH>,
1611 <0 221 IRQ_TYPE_LEVEL_HIGH>;
1612 #iommu-cells = <1>;
1613 status = "disabled";
1614 };
1615
1616 ipmmu_rt: mmu@ffc80000 {
1617 compatible = "renesas,ipmmu-vmsa";
1618 reg = <0 0xffc80000 0 0x1000>;
1619 interrupts = <0 307 IRQ_TYPE_LEVEL_HIGH>;
1620 #iommu-cells = <1>;
1621 status = "disabled";
1622 };
1623
1624 ipmmu_gp: mmu@e62a0000 {
1625 compatible = "renesas,ipmmu-vmsa";
1626 reg = <0 0xe62a0000 0 0x1000>;
1627 interrupts = <0 260 IRQ_TYPE_LEVEL_HIGH>,
1628 <0 261 IRQ_TYPE_LEVEL_HIGH>;
1629 #iommu-cells = <1>;
1630 status = "disabled";
1631 };
1632
Geert Uytterhoeven6c63e072015-04-27 14:55:29 +02001633 rcar_sound: sound@ec500000 {
Kuninori Morimotod2b541c2014-12-17 06:12:02 +00001634 /*
1635 * #sound-dai-cells is required
1636 *
1637 * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>;
1638 * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>;
1639 */
Geert Uytterhoevenf49cd2b2015-01-06 21:01:53 +01001640 compatible = "renesas,rcar_sound-r8a7791", "renesas,rcar_sound-gen2";
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001641 reg = <0 0xec500000 0 0x1000>, /* SCU */
1642 <0 0xec5a0000 0 0x100>, /* ADG */
1643 <0 0xec540000 0 0x1000>, /* SSIU */
Kuninori Morimoto8c3f9032015-08-24 08:28:17 +00001644 <0 0xec541000 0 0x280>, /* SSI */
Kuninori Morimotod73a5012015-03-10 01:39:55 +00001645 <0 0xec740000 0 0x200>; /* Audio DMAC peri peri*/
1646 reg-names = "scu", "adg", "ssiu", "ssi", "audmapp";
Kuninori Morimotod88a6a22015-03-10 01:39:18 +00001647
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001648 clocks = <&mstp10_clks R8A7791_CLK_SSI_ALL>,
1649 <&mstp10_clks R8A7791_CLK_SSI9>, <&mstp10_clks R8A7791_CLK_SSI8>,
1650 <&mstp10_clks R8A7791_CLK_SSI7>, <&mstp10_clks R8A7791_CLK_SSI6>,
1651 <&mstp10_clks R8A7791_CLK_SSI5>, <&mstp10_clks R8A7791_CLK_SSI4>,
1652 <&mstp10_clks R8A7791_CLK_SSI3>, <&mstp10_clks R8A7791_CLK_SSI2>,
1653 <&mstp10_clks R8A7791_CLK_SSI1>, <&mstp10_clks R8A7791_CLK_SSI0>,
1654 <&mstp10_clks R8A7791_CLK_SCU_SRC9>, <&mstp10_clks R8A7791_CLK_SCU_SRC8>,
1655 <&mstp10_clks R8A7791_CLK_SCU_SRC7>, <&mstp10_clks R8A7791_CLK_SCU_SRC6>,
1656 <&mstp10_clks R8A7791_CLK_SCU_SRC5>, <&mstp10_clks R8A7791_CLK_SCU_SRC4>,
1657 <&mstp10_clks R8A7791_CLK_SCU_SRC3>, <&mstp10_clks R8A7791_CLK_SCU_SRC2>,
1658 <&mstp10_clks R8A7791_CLK_SCU_SRC1>, <&mstp10_clks R8A7791_CLK_SCU_SRC0>,
Kuninori Morimoto88401702015-07-21 00:27:03 +00001659 <&mstp10_clks R8A7791_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7791_CLK_SCU_CTU1_MIX1>,
Kuninori Morimoto7fd6e112015-07-21 00:27:24 +00001660 <&mstp10_clks R8A7791_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7791_CLK_SCU_CTU1_MIX1>,
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001661 <&mstp10_clks R8A7791_CLK_SCU_DVC0>, <&mstp10_clks R8A7791_CLK_SCU_DVC1>,
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001662 <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>;
1663 clock-names = "ssi-all",
1664 "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5",
1665 "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0",
1666 "src.9", "src.8", "src.7", "src.6", "src.5",
1667 "src.4", "src.3", "src.2", "src.1", "src.0",
Kuninori Morimoto88401702015-07-21 00:27:03 +00001668 "ctu.0", "ctu.1",
Kuninori Morimoto7fd6e112015-07-21 00:27:24 +00001669 "mix.0", "mix.1",
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001670 "dvc.0", "dvc.1",
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001671 "clk_a", "clk_b", "clk_c", "clk_i";
1672
1673 status = "disabled";
1674
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001675 rcar_sound,dvc {
Kuninori Morimoto63573332015-03-10 01:40:27 +00001676 dvc0: dvc@0 {
1677 dmas = <&audma0 0xbc>;
1678 dma-names = "tx";
1679 };
1680 dvc1: dvc@1 {
1681 dmas = <&audma0 0xbe>;
1682 dma-names = "tx";
1683 };
Kuninori Morimoto150c8ad2014-06-25 17:52:33 -07001684 };
1685
Kuninori Morimoto7fd6e112015-07-21 00:27:24 +00001686 rcar_sound,mix {
1687 mix0: mix@0 { };
1688 mix1: mix@1 { };
1689 };
1690
Kuninori Morimoto88401702015-07-21 00:27:03 +00001691 rcar_sound,ctu {
1692 ctu00: ctu@0 { };
1693 ctu01: ctu@1 { };
1694 ctu02: ctu@2 { };
1695 ctu03: ctu@3 { };
1696 ctu10: ctu@4 { };
1697 ctu11: ctu@5 { };
1698 ctu12: ctu@6 { };
1699 ctu13: ctu@7 { };
1700 };
1701
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001702 rcar_sound,src {
Kuninori Morimoto63573332015-03-10 01:40:27 +00001703 src0: src@0 {
1704 interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>;
1705 dmas = <&audma0 0x85>, <&audma1 0x9a>;
1706 dma-names = "rx", "tx";
1707 };
1708 src1: src@1 {
1709 interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>;
1710 dmas = <&audma0 0x87>, <&audma1 0x9c>;
1711 dma-names = "rx", "tx";
1712 };
1713 src2: src@2 {
1714 interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>;
1715 dmas = <&audma0 0x89>, <&audma1 0x9e>;
1716 dma-names = "rx", "tx";
1717 };
1718 src3: src@3 {
1719 interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>;
1720 dmas = <&audma0 0x8b>, <&audma1 0xa0>;
1721 dma-names = "rx", "tx";
1722 };
1723 src4: src@4 {
1724 interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>;
1725 dmas = <&audma0 0x8d>, <&audma1 0xb0>;
1726 dma-names = "rx", "tx";
1727 };
1728 src5: src@5 {
1729 interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>;
1730 dmas = <&audma0 0x8f>, <&audma1 0xb2>;
1731 dma-names = "rx", "tx";
1732 };
1733 src6: src@6 {
1734 interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>;
1735 dmas = <&audma0 0x91>, <&audma1 0xb4>;
1736 dma-names = "rx", "tx";
1737 };
1738 src7: src@7 {
1739 interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>;
1740 dmas = <&audma0 0x93>, <&audma1 0xb6>;
1741 dma-names = "rx", "tx";
1742 };
1743 src8: src@8 {
1744 interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>;
1745 dmas = <&audma0 0x95>, <&audma1 0xb8>;
1746 dma-names = "rx", "tx";
1747 };
1748 src9: src@9 {
1749 interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>;
1750 dmas = <&audma0 0x97>, <&audma1 0xba>;
1751 dma-names = "rx", "tx";
1752 };
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001753 };
1754
1755 rcar_sound,ssi {
Kuninori Morimoto63573332015-03-10 01:40:27 +00001756 ssi0: ssi@0 {
1757 interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>;
1758 dmas = <&audma0 0x01>, <&audma1 0x02>, <&audma0 0x15>, <&audma1 0x16>;
1759 dma-names = "rx", "tx", "rxu", "txu";
1760 };
1761 ssi1: ssi@1 {
1762 interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>;
1763 dmas = <&audma0 0x03>, <&audma1 0x04>, <&audma0 0x49>, <&audma1 0x4a>;
1764 dma-names = "rx", "tx", "rxu", "txu";
1765 };
1766 ssi2: ssi@2 {
1767 interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>;
1768 dmas = <&audma0 0x05>, <&audma1 0x06>, <&audma0 0x63>, <&audma1 0x64>;
1769 dma-names = "rx", "tx", "rxu", "txu";
1770 };
1771 ssi3: ssi@3 {
1772 interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>;
1773 dmas = <&audma0 0x07>, <&audma1 0x08>, <&audma0 0x6f>, <&audma1 0x70>;
1774 dma-names = "rx", "tx", "rxu", "txu";
1775 };
1776 ssi4: ssi@4 {
1777 interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>;
1778 dmas = <&audma0 0x09>, <&audma1 0x0a>, <&audma0 0x71>, <&audma1 0x72>;
1779 dma-names = "rx", "tx", "rxu", "txu";
1780 };
1781 ssi5: ssi@5 {
1782 interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>;
1783 dmas = <&audma0 0x0b>, <&audma1 0x0c>, <&audma0 0x73>, <&audma1 0x74>;
1784 dma-names = "rx", "tx", "rxu", "txu";
1785 };
1786 ssi6: ssi@6 {
1787 interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>;
1788 dmas = <&audma0 0x0d>, <&audma1 0x0e>, <&audma0 0x75>, <&audma1 0x76>;
1789 dma-names = "rx", "tx", "rxu", "txu";
1790 };
1791 ssi7: ssi@7 {
1792 interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>;
1793 dmas = <&audma0 0x0f>, <&audma1 0x10>, <&audma0 0x79>, <&audma1 0x7a>;
1794 dma-names = "rx", "tx", "rxu", "txu";
1795 };
1796 ssi8: ssi@8 {
1797 interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>;
1798 dmas = <&audma0 0x11>, <&audma1 0x12>, <&audma0 0x7b>, <&audma1 0x7c>;
1799 dma-names = "rx", "tx", "rxu", "txu";
1800 };
1801 ssi9: ssi@9 {
1802 interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>;
1803 dmas = <&audma0 0x13>, <&audma1 0x14>, <&audma0 0x7d>, <&audma1 0x7e>;
1804 dma-names = "rx", "tx", "rxu", "txu";
1805 };
Kuninori Morimoto09abd1f2014-06-11 21:44:26 -07001806 };
1807 };
Hisashi Nakamura0d0771ab2013-09-04 12:45:57 +09001808};