Merge branch 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvar...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / r8a7791.dtsi
1 /*
2  * Device Tree Source for the r8a7791 SoC
3  *
4  * Copyright (C) 2013-2015 Renesas Electronics Corporation
5  * Copyright (C) 2013-2014 Renesas Solutions Corp.
6  * Copyright (C) 2014 Cogent Embedded Inc.
7  *
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
13 #include <dt-bindings/clock/r8a7791-cpg-mssr.h>
14 #include <dt-bindings/interrupt-controller/arm-gic.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
16 #include <dt-bindings/power/r8a7791-sysc.h>
17
18 / {
19         compatible = "renesas,r8a7791";
20         #address-cells = <2>;
21         #size-cells = <2>;
22
23         aliases {
24                 i2c0 = &i2c0;
25                 i2c1 = &i2c1;
26                 i2c2 = &i2c2;
27                 i2c3 = &i2c3;
28                 i2c4 = &i2c4;
29                 i2c5 = &i2c5;
30                 i2c6 = &i2c6;
31                 i2c7 = &i2c7;
32                 i2c8 = &i2c8;
33                 spi0 = &qspi;
34                 spi1 = &msiof0;
35                 spi2 = &msiof1;
36                 spi3 = &msiof2;
37                 vin0 = &vin0;
38                 vin1 = &vin1;
39                 vin2 = &vin2;
40         };
41
42         /*
43          * The external audio clocks are configured as 0 Hz fixed frequency
44          * clocks by default.
45          * Boards that provide audio clocks should override them.
46          */
47         audio_clk_a: audio_clk_a {
48                 compatible = "fixed-clock";
49                 #clock-cells = <0>;
50                 clock-frequency = <0>;
51         };
52         audio_clk_b: audio_clk_b {
53                 compatible = "fixed-clock";
54                 #clock-cells = <0>;
55                 clock-frequency = <0>;
56         };
57         audio_clk_c: audio_clk_c {
58                 compatible = "fixed-clock";
59                 #clock-cells = <0>;
60                 clock-frequency = <0>;
61         };
62
63         /* External CAN clock */
64         can_clk: can {
65                 compatible = "fixed-clock";
66                 #clock-cells = <0>;
67                 /* This value must be overridden by the board. */
68                 clock-frequency = <0>;
69         };
70
71         cpus {
72                 #address-cells = <1>;
73                 #size-cells = <0>;
74                 enable-method = "renesas,apmu";
75
76                 cpu0: cpu@0 {
77                         device_type = "cpu";
78                         compatible = "arm,cortex-a15";
79                         reg = <0>;
80                         clock-frequency = <1500000000>;
81                         voltage-tolerance = <1>; /* 1% */
82                         clocks = <&cpg CPG_CORE R8A7791_CLK_Z>;
83                         clock-latency = <300000>; /* 300 us */
84                         power-domains = <&sysc R8A7791_PD_CA15_CPU0>;
85                         next-level-cache = <&L2_CA15>;
86
87                         /* kHz - uV - OPPs unknown yet */
88                         operating-points = <1500000 1000000>,
89                                            <1312500 1000000>,
90                                            <1125000 1000000>,
91                                            < 937500 1000000>,
92                                            < 750000 1000000>,
93                                            < 375000 1000000>;
94                 };
95
96                 cpu1: cpu@1 {
97                         device_type = "cpu";
98                         compatible = "arm,cortex-a15";
99                         reg = <1>;
100                         clock-frequency = <1500000000>;
101                         clocks = <&cpg CPG_CORE R8A7791_CLK_Z>;
102                         power-domains = <&sysc R8A7791_PD_CA15_CPU1>;
103                         next-level-cache = <&L2_CA15>;
104                 };
105
106                 L2_CA15: cache-controller-0 {
107                         compatible = "cache";
108                         power-domains = <&sysc R8A7791_PD_CA15_SCU>;
109                         cache-unified;
110                         cache-level = <2>;
111                 };
112         };
113
114         /* External root clock */
115         extal_clk: extal {
116                 compatible = "fixed-clock";
117                 #clock-cells = <0>;
118                 /* This value must be overridden by the board. */
119                 clock-frequency = <0>;
120         };
121
122         /* External PCIe clock - can be overridden by the board */
123         pcie_bus_clk: pcie_bus {
124                 compatible = "fixed-clock";
125                 #clock-cells = <0>;
126                 clock-frequency = <0>;
127         };
128
129         pmu {
130                 compatible = "arm,cortex-a15-pmu";
131                 interrupts-extended = <&gic GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
132                                       <&gic GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
133                 interrupt-affinity = <&cpu0>, <&cpu1>;
134         };
135
136         /* External SCIF clock */
137         scif_clk: scif {
138                 compatible = "fixed-clock";
139                 #clock-cells = <0>;
140                 /* This value must be overridden by the board. */
141                 clock-frequency = <0>;
142         };
143
144         soc {
145                 compatible = "simple-bus";
146                 interrupt-parent = <&gic>;
147
148                 #address-cells = <2>;
149                 #size-cells = <2>;
150                 ranges;
151
152                 rwdt: watchdog@e6020000 {
153                         compatible = "renesas,r8a7791-wdt",
154                                      "renesas,rcar-gen2-wdt";
155                         reg = <0 0xe6020000 0 0x0c>;
156                         clocks = <&cpg CPG_MOD 402>;
157                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
158                         resets = <&cpg 402>;
159                         status = "disabled";
160                 };
161
162                 gpio0: gpio@e6050000 {
163                         compatible = "renesas,gpio-r8a7791",
164                                      "renesas,rcar-gen2-gpio";
165                         reg = <0 0xe6050000 0 0x50>;
166                         interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
167                         #gpio-cells = <2>;
168                         gpio-controller;
169                         gpio-ranges = <&pfc 0 0 32>;
170                         #interrupt-cells = <2>;
171                         interrupt-controller;
172                         clocks = <&cpg CPG_MOD 912>;
173                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
174                         resets = <&cpg 912>;
175                 };
176
177                 gpio1: gpio@e6051000 {
178                         compatible = "renesas,gpio-r8a7791",
179                                      "renesas,rcar-gen2-gpio";
180                         reg = <0 0xe6051000 0 0x50>;
181                         interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
182                         #gpio-cells = <2>;
183                         gpio-controller;
184                         gpio-ranges = <&pfc 0 32 26>;
185                         #interrupt-cells = <2>;
186                         interrupt-controller;
187                         clocks = <&cpg CPG_MOD 911>;
188                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
189                         resets = <&cpg 911>;
190                 };
191
192                 gpio2: gpio@e6052000 {
193                         compatible = "renesas,gpio-r8a7791",
194                                      "renesas,rcar-gen2-gpio";
195                         reg = <0 0xe6052000 0 0x50>;
196                         interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
197                         #gpio-cells = <2>;
198                         gpio-controller;
199                         gpio-ranges = <&pfc 0 64 32>;
200                         #interrupt-cells = <2>;
201                         interrupt-controller;
202                         clocks = <&cpg CPG_MOD 910>;
203                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
204                         resets = <&cpg 910>;
205                 };
206
207                 gpio3: gpio@e6053000 {
208                         compatible = "renesas,gpio-r8a7791",
209                                      "renesas,rcar-gen2-gpio";
210                         reg = <0 0xe6053000 0 0x50>;
211                         interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
212                         #gpio-cells = <2>;
213                         gpio-controller;
214                         gpio-ranges = <&pfc 0 96 32>;
215                         #interrupt-cells = <2>;
216                         interrupt-controller;
217                         clocks = <&cpg CPG_MOD 909>;
218                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
219                         resets = <&cpg 909>;
220                 };
221
222                 gpio4: gpio@e6054000 {
223                         compatible = "renesas,gpio-r8a7791",
224                                      "renesas,rcar-gen2-gpio";
225                         reg = <0 0xe6054000 0 0x50>;
226                         interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
227                         #gpio-cells = <2>;
228                         gpio-controller;
229                         gpio-ranges = <&pfc 0 128 32>;
230                         #interrupt-cells = <2>;
231                         interrupt-controller;
232                         clocks = <&cpg CPG_MOD 908>;
233                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
234                         resets = <&cpg 908>;
235                 };
236
237                 gpio5: gpio@e6055000 {
238                         compatible = "renesas,gpio-r8a7791",
239                                      "renesas,rcar-gen2-gpio";
240                         reg = <0 0xe6055000 0 0x50>;
241                         interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
242                         #gpio-cells = <2>;
243                         gpio-controller;
244                         gpio-ranges = <&pfc 0 160 32>;
245                         #interrupt-cells = <2>;
246                         interrupt-controller;
247                         clocks = <&cpg CPG_MOD 907>;
248                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
249                         resets = <&cpg 907>;
250                 };
251
252                 gpio6: gpio@e6055400 {
253                         compatible = "renesas,gpio-r8a7791",
254                                      "renesas,rcar-gen2-gpio";
255                         reg = <0 0xe6055400 0 0x50>;
256                         interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
257                         #gpio-cells = <2>;
258                         gpio-controller;
259                         gpio-ranges = <&pfc 0 192 32>;
260                         #interrupt-cells = <2>;
261                         interrupt-controller;
262                         clocks = <&cpg CPG_MOD 905>;
263                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
264                         resets = <&cpg 905>;
265                 };
266
267                 gpio7: gpio@e6055800 {
268                         compatible = "renesas,gpio-r8a7791",
269                                      "renesas,rcar-gen2-gpio";
270                         reg = <0 0xe6055800 0 0x50>;
271                         interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
272                         #gpio-cells = <2>;
273                         gpio-controller;
274                         gpio-ranges = <&pfc 0 224 26>;
275                         #interrupt-cells = <2>;
276                         interrupt-controller;
277                         clocks = <&cpg CPG_MOD 904>;
278                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
279                         resets = <&cpg 904>;
280                 };
281
282                 pfc: pin-controller@e6060000 {
283                         compatible = "renesas,pfc-r8a7791";
284                         reg = <0 0xe6060000 0 0x250>;
285                 };
286
287                 cpg: clock-controller@e6150000 {
288                         compatible = "renesas,r8a7791-cpg-mssr";
289                         reg = <0 0xe6150000 0 0x1000>;
290                         clocks = <&extal_clk>, <&usb_extal_clk>;
291                         clock-names = "extal", "usb_extal";
292                         #clock-cells = <2>;
293                         #power-domain-cells = <0>;
294                         #reset-cells = <1>;
295                 };
296
297                 apmu@e6152000 {
298                         compatible = "renesas,r8a7791-apmu", "renesas,apmu";
299                         reg = <0 0xe6152000 0 0x188>;
300                         cpus = <&cpu0 &cpu1>;
301                 };
302
303                 rst: reset-controller@e6160000 {
304                         compatible = "renesas,r8a7791-rst";
305                         reg = <0 0xe6160000 0 0x0100>;
306                 };
307
308                 sysc: system-controller@e6180000 {
309                         compatible = "renesas,r8a7791-sysc";
310                         reg = <0 0xe6180000 0 0x0200>;
311                         #power-domain-cells = <1>;
312                 };
313
314                 irqc0: interrupt-controller@e61c0000 {
315                         compatible = "renesas,irqc-r8a7791", "renesas,irqc";
316                         #interrupt-cells = <2>;
317                         interrupt-controller;
318                         reg = <0 0xe61c0000 0 0x200>;
319                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
320                                      <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
321                                      <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
322                                      <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
323                                      <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
324                                      <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
325                                      <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
326                                      <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
327                                      <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
328                                      <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
329                         clocks = <&cpg CPG_MOD 407>;
330                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
331                         resets = <&cpg 407>;
332                 };
333
334                 thermal: thermal@e61f0000 {
335                         compatible = "renesas,thermal-r8a7791",
336                                      "renesas,rcar-gen2-thermal",
337                                      "renesas,rcar-thermal";
338                         reg = <0 0xe61f0000 0 0x10>, <0 0xe61f0100 0 0x38>;
339                         interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
340                         clocks = <&cpg CPG_MOD 522>;
341                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
342                         resets = <&cpg 522>;
343                         #thermal-sensor-cells = <0>;
344                 };
345
346                 ipmmu_sy0: mmu@e6280000 {
347                         compatible = "renesas,ipmmu-r8a7791",
348                                      "renesas,ipmmu-vmsa";
349                         reg = <0 0xe6280000 0 0x1000>;
350                         interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>,
351                                      <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;
352                         #iommu-cells = <1>;
353                         status = "disabled";
354                 };
355
356                 ipmmu_sy1: mmu@e6290000 {
357                         compatible = "renesas,ipmmu-r8a7791",
358                                      "renesas,ipmmu-vmsa";
359                         reg = <0 0xe6290000 0 0x1000>;
360                         interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
361                         #iommu-cells = <1>;
362                         status = "disabled";
363                 };
364
365                 ipmmu_ds: mmu@e6740000 {
366                         compatible = "renesas,ipmmu-r8a7791",
367                                      "renesas,ipmmu-vmsa";
368                         reg = <0 0xe6740000 0 0x1000>;
369                         interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
370                                      <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
371                         #iommu-cells = <1>;
372                         status = "disabled";
373                 };
374
375                 ipmmu_mp: mmu@ec680000 {
376                         compatible = "renesas,ipmmu-r8a7791",
377                                      "renesas,ipmmu-vmsa";
378                         reg = <0 0xec680000 0 0x1000>;
379                         interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
380                         #iommu-cells = <1>;
381                         status = "disabled";
382                 };
383
384                 ipmmu_mx: mmu@fe951000 {
385                         compatible = "renesas,ipmmu-r8a7791",
386                                      "renesas,ipmmu-vmsa";
387                         reg = <0 0xfe951000 0 0x1000>;
388                         interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>,
389                                      <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>;
390                         #iommu-cells = <1>;
391                         status = "disabled";
392                 };
393
394                 ipmmu_rt: mmu@ffc80000 {
395                         compatible = "renesas,ipmmu-r8a7791",
396                                      "renesas,ipmmu-vmsa";
397                         reg = <0 0xffc80000 0 0x1000>;
398                         interrupts = <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>;
399                         #iommu-cells = <1>;
400                         status = "disabled";
401                 };
402
403                 ipmmu_gp: mmu@e62a0000 {
404                         compatible = "renesas,ipmmu-r8a7791",
405                                      "renesas,ipmmu-vmsa";
406                         reg = <0 0xe62a0000 0 0x1000>;
407                         interrupts = <GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH>,
408                                      <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>;
409                         #iommu-cells = <1>;
410                         status = "disabled";
411                 };
412
413                 icram0: sram@e63a0000 {
414                         compatible = "mmio-sram";
415                         reg = <0 0xe63a0000 0 0x12000>;
416                 };
417
418                 icram1: sram@e63c0000 {
419                         compatible = "mmio-sram";
420                         reg = <0 0xe63c0000 0 0x1000>;
421                         #address-cells = <1>;
422                         #size-cells = <1>;
423                         ranges = <0 0 0xe63c0000 0x1000>;
424
425                         smp-sram@0 {
426                                 compatible = "renesas,smp-sram";
427                                 reg = <0 0x100>;
428                         };
429                 };
430
431                 /* The memory map in the User's Manual maps the cores to
432                  * bus numbers
433                  */
434                 i2c0: i2c@e6508000 {
435                         #address-cells = <1>;
436                         #size-cells = <0>;
437                         compatible = "renesas,i2c-r8a7791",
438                                      "renesas,rcar-gen2-i2c";
439                         reg = <0 0xe6508000 0 0x40>;
440                         interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>;
441                         clocks = <&cpg CPG_MOD 931>;
442                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
443                         resets = <&cpg 931>;
444                         i2c-scl-internal-delay-ns = <6>;
445                         status = "disabled";
446                 };
447
448                 i2c1: i2c@e6518000 {
449                         #address-cells = <1>;
450                         #size-cells = <0>;
451                         compatible = "renesas,i2c-r8a7791",
452                                      "renesas,rcar-gen2-i2c";
453                         reg = <0 0xe6518000 0 0x40>;
454                         interrupts = <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>;
455                         clocks = <&cpg CPG_MOD 930>;
456                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
457                         resets = <&cpg 930>;
458                         i2c-scl-internal-delay-ns = <6>;
459                         status = "disabled";
460                 };
461
462                 i2c2: i2c@e6530000 {
463                         #address-cells = <1>;
464                         #size-cells = <0>;
465                         compatible = "renesas,i2c-r8a7791",
466                                      "renesas,rcar-gen2-i2c";
467                         reg = <0 0xe6530000 0 0x40>;
468                         interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>;
469                         clocks = <&cpg CPG_MOD 929>;
470                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
471                         resets = <&cpg 929>;
472                         i2c-scl-internal-delay-ns = <6>;
473                         status = "disabled";
474                 };
475
476                 i2c3: i2c@e6540000 {
477                         #address-cells = <1>;
478                         #size-cells = <0>;
479                         compatible = "renesas,i2c-r8a7791",
480                                      "renesas,rcar-gen2-i2c";
481                         reg = <0 0xe6540000 0 0x40>;
482                         interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>;
483                         clocks = <&cpg CPG_MOD 928>;
484                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
485                         resets = <&cpg 928>;
486                         i2c-scl-internal-delay-ns = <6>;
487                         status = "disabled";
488                 };
489
490                 i2c4: i2c@e6520000 {
491                         #address-cells = <1>;
492                         #size-cells = <0>;
493                         compatible = "renesas,i2c-r8a7791",
494                                      "renesas,rcar-gen2-i2c";
495                         reg = <0 0xe6520000 0 0x40>;
496                         interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
497                         clocks = <&cpg CPG_MOD 927>;
498                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
499                         resets = <&cpg 927>;
500                         i2c-scl-internal-delay-ns = <6>;
501                         status = "disabled";
502                 };
503
504                 i2c5: i2c@e6528000 {
505                         /* doesn't need pinmux */
506                         #address-cells = <1>;
507                         #size-cells = <0>;
508                         compatible = "renesas,i2c-r8a7791",
509                                      "renesas,rcar-gen2-i2c";
510                         reg = <0 0xe6528000 0 0x40>;
511                         interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
512                         clocks = <&cpg CPG_MOD 925>;
513                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
514                         resets = <&cpg 925>;
515                         i2c-scl-internal-delay-ns = <110>;
516                         status = "disabled";
517                 };
518
519                 i2c6: i2c@e60b0000 {
520                         /* doesn't need pinmux */
521                         #address-cells = <1>;
522                         #size-cells = <0>;
523                         compatible = "renesas,iic-r8a7791",
524                                      "renesas,rcar-gen2-iic",
525                                      "renesas,rmobile-iic";
526                         reg = <0 0xe60b0000 0 0x425>;
527                         interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
528                         clocks = <&cpg CPG_MOD 926>;
529                         dmas = <&dmac0 0x77>, <&dmac0 0x78>,
530                                <&dmac1 0x77>, <&dmac1 0x78>;
531                         dma-names = "tx", "rx", "tx", "rx";
532                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
533                         resets = <&cpg 926>;
534                         status = "disabled";
535                 };
536
537                 i2c7: i2c@e6500000 {
538                         #address-cells = <1>;
539                         #size-cells = <0>;
540                         compatible = "renesas,iic-r8a7791",
541                                      "renesas,rcar-gen2-iic",
542                                      "renesas,rmobile-iic";
543                         reg = <0 0xe6500000 0 0x425>;
544                         interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
545                         clocks = <&cpg CPG_MOD 318>;
546                         dmas = <&dmac0 0x61>, <&dmac0 0x62>,
547                                <&dmac1 0x61>, <&dmac1 0x62>;
548                         dma-names = "tx", "rx", "tx", "rx";
549                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
550                         resets = <&cpg 318>;
551                         status = "disabled";
552                 };
553
554                 i2c8: i2c@e6510000 {
555                         #address-cells = <1>;
556                         #size-cells = <0>;
557                         compatible = "renesas,iic-r8a7791",
558                                      "renesas,rcar-gen2-iic",
559                                      "renesas,rmobile-iic";
560                         reg = <0 0xe6510000 0 0x425>;
561                         interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>;
562                         clocks = <&cpg CPG_MOD 323>;
563                         dmas = <&dmac0 0x65>, <&dmac0 0x66>,
564                                <&dmac1 0x65>, <&dmac1 0x66>;
565                         dma-names = "tx", "rx", "tx", "rx";
566                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
567                         resets = <&cpg 323>;
568                         status = "disabled";
569                 };
570
571                 hsusb: usb@e6590000 {
572                         compatible = "renesas,usbhs-r8a7791",
573                                      "renesas,rcar-gen2-usbhs";
574                         reg = <0 0xe6590000 0 0x100>;
575                         interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
576                         clocks = <&cpg CPG_MOD 704>;
577                         dmas = <&usb_dmac0 0>, <&usb_dmac0 1>,
578                                <&usb_dmac1 0>, <&usb_dmac1 1>;
579                         dma-names = "ch0", "ch1", "ch2", "ch3";
580                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
581                         resets = <&cpg 704>;
582                         renesas,buswait = <4>;
583                         phys = <&usb0 1>;
584                         phy-names = "usb";
585                         status = "disabled";
586                 };
587
588                 usbphy: usb-phy@e6590100 {
589                         compatible = "renesas,usb-phy-r8a7791",
590                                      "renesas,rcar-gen2-usb-phy";
591                         reg = <0 0xe6590100 0 0x100>;
592                         #address-cells = <1>;
593                         #size-cells = <0>;
594                         clocks = <&cpg CPG_MOD 704>;
595                         clock-names = "usbhs";
596                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
597                         resets = <&cpg 704>;
598                         status = "disabled";
599
600                         usb0: usb-channel@0 {
601                                 reg = <0>;
602                                 #phy-cells = <1>;
603                         };
604                         usb2: usb-channel@2 {
605                                 reg = <2>;
606                                 #phy-cells = <1>;
607                         };
608                 };
609
610                 usb_dmac0: dma-controller@e65a0000 {
611                         compatible = "renesas,r8a7791-usb-dmac",
612                                      "renesas,usb-dmac";
613                         reg = <0 0xe65a0000 0 0x100>;
614                         interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH
615                                       GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
616                         interrupt-names = "ch0", "ch1";
617                         clocks = <&cpg CPG_MOD 330>;
618                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
619                         resets = <&cpg 330>;
620                         #dma-cells = <1>;
621                         dma-channels = <2>;
622                 };
623
624                 usb_dmac1: dma-controller@e65b0000 {
625                         compatible = "renesas,r8a7791-usb-dmac",
626                                      "renesas,usb-dmac";
627                         reg = <0 0xe65b0000 0 0x100>;
628                         interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH
629                                       GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
630                         interrupt-names = "ch0", "ch1";
631                         clocks = <&cpg CPG_MOD 331>;
632                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
633                         resets = <&cpg 331>;
634                         #dma-cells = <1>;
635                         dma-channels = <2>;
636                 };
637
638                 dmac0: dma-controller@e6700000 {
639                         compatible = "renesas,dmac-r8a7791",
640                                      "renesas,rcar-dmac";
641                         reg = <0 0xe6700000 0 0x20000>;
642                         interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH
643                                       GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH
644                                       GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH
645                                       GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH
646                                       GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH
647                                       GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH
648                                       GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH
649                                       GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH
650                                       GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH
651                                       GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH
652                                       GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH
653                                       GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH
654                                       GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH
655                                       GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH
656                                       GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH
657                                       GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>;
658                         interrupt-names = "error",
659                                           "ch0", "ch1", "ch2", "ch3",
660                                           "ch4", "ch5", "ch6", "ch7",
661                                           "ch8", "ch9", "ch10", "ch11",
662                                           "ch12", "ch13", "ch14";
663                         clocks = <&cpg CPG_MOD 219>;
664                         clock-names = "fck";
665                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
666                         resets = <&cpg 219>;
667                         #dma-cells = <1>;
668                         dma-channels = <15>;
669                 };
670
671                 dmac1: dma-controller@e6720000 {
672                         compatible = "renesas,dmac-r8a7791",
673                                      "renesas,rcar-dmac";
674                         reg = <0 0xe6720000 0 0x20000>;
675                         interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH
676                                       GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH
677                                       GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH
678                                       GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH
679                                       GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH
680                                       GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH
681                                       GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH
682                                       GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH
683                                       GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH
684                                       GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH
685                                       GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH
686                                       GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH
687                                       GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH
688                                       GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH
689                                       GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH
690                                       GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH>;
691                         interrupt-names = "error",
692                                           "ch0", "ch1", "ch2", "ch3",
693                                           "ch4", "ch5", "ch6", "ch7",
694                                           "ch8", "ch9", "ch10", "ch11",
695                                           "ch12", "ch13", "ch14";
696                         clocks = <&cpg CPG_MOD 218>;
697                         clock-names = "fck";
698                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
699                         resets = <&cpg 218>;
700                         #dma-cells = <1>;
701                         dma-channels = <15>;
702                 };
703
704                 avb: ethernet@e6800000 {
705                         compatible = "renesas,etheravb-r8a7791",
706                                      "renesas,etheravb-rcar-gen2";
707                         reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>;
708                         interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
709                         clocks = <&cpg CPG_MOD 812>;
710                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
711                         resets = <&cpg 812>;
712                         #address-cells = <1>;
713                         #size-cells = <0>;
714                         status = "disabled";
715                 };
716
717                 qspi: spi@e6b10000 {
718                         compatible = "renesas,qspi-r8a7791", "renesas,qspi";
719                         reg = <0 0xe6b10000 0 0x2c>;
720                         interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
721                         clocks = <&cpg CPG_MOD 917>;
722                         dmas = <&dmac0 0x17>, <&dmac0 0x18>,
723                                <&dmac1 0x17>, <&dmac1 0x18>;
724                         dma-names = "tx", "rx", "tx", "rx";
725                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
726                         resets = <&cpg 917>;
727                         num-cs = <1>;
728                         #address-cells = <1>;
729                         #size-cells = <0>;
730                         status = "disabled";
731                 };
732
733                 scifa0: serial@e6c40000 {
734                         compatible = "renesas,scifa-r8a7791",
735                                      "renesas,rcar-gen2-scifa", "renesas,scifa";
736                         reg = <0 0xe6c40000 0 64>;
737                         interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
738                         clocks = <&cpg CPG_MOD 204>;
739                         clock-names = "fck";
740                         dmas = <&dmac0 0x21>, <&dmac0 0x22>,
741                                <&dmac1 0x21>, <&dmac1 0x22>;
742                         dma-names = "tx", "rx", "tx", "rx";
743                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
744                         resets = <&cpg 204>;
745                         status = "disabled";
746                 };
747
748                 scifa1: serial@e6c50000 {
749                         compatible = "renesas,scifa-r8a7791",
750                                      "renesas,rcar-gen2-scifa", "renesas,scifa";
751                         reg = <0 0xe6c50000 0 64>;
752                         interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
753                         clocks = <&cpg CPG_MOD 203>;
754                         clock-names = "fck";
755                         dmas = <&dmac0 0x25>, <&dmac0 0x26>,
756                                <&dmac1 0x25>, <&dmac1 0x26>;
757                         dma-names = "tx", "rx", "tx", "rx";
758                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
759                         resets = <&cpg 203>;
760                         status = "disabled";
761                 };
762
763                 scifa2: serial@e6c60000 {
764                         compatible = "renesas,scifa-r8a7791",
765                                      "renesas,rcar-gen2-scifa", "renesas,scifa";
766                         reg = <0 0xe6c60000 0 64>;
767                         interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>;
768                         clocks = <&cpg CPG_MOD 202>;
769                         clock-names = "fck";
770                         dmas = <&dmac0 0x27>, <&dmac0 0x28>,
771                                <&dmac1 0x27>, <&dmac1 0x28>;
772                         dma-names = "tx", "rx", "tx", "rx";
773                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
774                         resets = <&cpg 202>;
775                         status = "disabled";
776                 };
777
778                 scifa3: serial@e6c70000 {
779                         compatible = "renesas,scifa-r8a7791",
780                                      "renesas,rcar-gen2-scifa", "renesas,scifa";
781                         reg = <0 0xe6c70000 0 64>;
782                         interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
783                         clocks = <&cpg CPG_MOD 1106>;
784                         clock-names = "fck";
785                         dmas = <&dmac0 0x1b>, <&dmac0 0x1c>,
786                                <&dmac1 0x1b>, <&dmac1 0x1c>;
787                         dma-names = "tx", "rx", "tx", "rx";
788                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
789                         resets = <&cpg 1106>;
790                         status = "disabled";
791                 };
792
793                 scifa4: serial@e6c78000 {
794                         compatible = "renesas,scifa-r8a7791",
795                                      "renesas,rcar-gen2-scifa", "renesas,scifa";
796                         reg = <0 0xe6c78000 0 64>;
797                         interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
798                         clocks = <&cpg CPG_MOD 1107>;
799                         clock-names = "fck";
800                         dmas = <&dmac0 0x1f>, <&dmac0 0x20>,
801                                <&dmac1 0x1f>, <&dmac1 0x20>;
802                         dma-names = "tx", "rx", "tx", "rx";
803                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
804                         resets = <&cpg 1107>;
805                         status = "disabled";
806                 };
807
808                 scifa5: serial@e6c80000 {
809                         compatible = "renesas,scifa-r8a7791",
810                                      "renesas,rcar-gen2-scifa", "renesas,scifa";
811                         reg = <0 0xe6c80000 0 64>;
812                         interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
813                         clocks = <&cpg CPG_MOD 1108>;
814                         clock-names = "fck";
815                         dmas = <&dmac0 0x23>, <&dmac0 0x24>,
816                                <&dmac1 0x23>, <&dmac1 0x24>;
817                         dma-names = "tx", "rx", "tx", "rx";
818                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
819                         resets = <&cpg 1108>;
820                         status = "disabled";
821                 };
822
823                 scifb0: serial@e6c20000 {
824                         compatible = "renesas,scifb-r8a7791",
825                                      "renesas,rcar-gen2-scifb", "renesas,scifb";
826                         reg = <0 0xe6c20000 0 0x100>;
827                         interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
828                         clocks = <&cpg CPG_MOD 206>;
829                         clock-names = "fck";
830                         dmas = <&dmac0 0x3d>, <&dmac0 0x3e>,
831                                <&dmac1 0x3d>, <&dmac1 0x3e>;
832                         dma-names = "tx", "rx", "tx", "rx";
833                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
834                         resets = <&cpg 206>;
835                         status = "disabled";
836                 };
837
838                 scifb1: serial@e6c30000 {
839                         compatible = "renesas,scifb-r8a7791",
840                                      "renesas,rcar-gen2-scifb", "renesas,scifb";
841                         reg = <0 0xe6c30000 0 0x100>;
842                         interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
843                         clocks = <&cpg CPG_MOD 207>;
844                         clock-names = "fck";
845                         dmas = <&dmac0 0x19>, <&dmac0 0x1a>,
846                                <&dmac1 0x19>, <&dmac1 0x1a>;
847                         dma-names = "tx", "rx", "tx", "rx";
848                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
849                         resets = <&cpg 207>;
850                         status = "disabled";
851                 };
852
853                 scifb2: serial@e6ce0000 {
854                         compatible = "renesas,scifb-r8a7791",
855                                      "renesas,rcar-gen2-scifb", "renesas,scifb";
856                         reg = <0 0xe6ce0000 0 0x100>;
857                         interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>;
858                         clocks = <&cpg CPG_MOD 216>;
859                         clock-names = "fck";
860                         dmas = <&dmac0 0x1d>, <&dmac0 0x1e>,
861                                <&dmac1 0x1d>, <&dmac1 0x1e>;
862                         dma-names = "tx", "rx", "tx", "rx";
863                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
864                         resets = <&cpg 216>;
865                         status = "disabled";
866                 };
867
868                 scif0: serial@e6e60000 {
869                         compatible = "renesas,scif-r8a7791",
870                                      "renesas,rcar-gen2-scif", "renesas,scif";
871                         reg = <0 0xe6e60000 0 64>;
872                         interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
873                         clocks = <&cpg CPG_MOD 721>, <&cpg CPG_CORE R8A7791_CLK_ZS>,
874                                  <&scif_clk>;
875                         clock-names = "fck", "brg_int", "scif_clk";
876                         dmas = <&dmac0 0x29>, <&dmac0 0x2a>,
877                                <&dmac1 0x29>, <&dmac1 0x2a>;
878                         dma-names = "tx", "rx", "tx", "rx";
879                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
880                         resets = <&cpg 721>;
881                         status = "disabled";
882                 };
883
884                 scif1: serial@e6e68000 {
885                         compatible = "renesas,scif-r8a7791",
886                                      "renesas,rcar-gen2-scif", "renesas,scif";
887                         reg = <0 0xe6e68000 0 64>;
888                         interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
889                         clocks = <&cpg CPG_MOD 720>, <&cpg CPG_CORE R8A7791_CLK_ZS>,
890                                  <&scif_clk>;
891                         clock-names = "fck", "brg_int", "scif_clk";
892                         dmas = <&dmac0 0x2d>, <&dmac0 0x2e>,
893                                <&dmac1 0x2d>, <&dmac1 0x2e>;
894                         dma-names = "tx", "rx", "tx", "rx";
895                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
896                         resets = <&cpg 720>;
897                         status = "disabled";
898                 };
899
900                 scif2: serial@e6e58000 {
901                         compatible = "renesas,scif-r8a7791",
902                                      "renesas,rcar-gen2-scif", "renesas,scif";
903                         reg = <0 0xe6e58000 0 64>;
904                         interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
905                         clocks = <&cpg CPG_MOD 719>, <&cpg CPG_CORE R8A7791_CLK_ZS>,
906                                  <&scif_clk>;
907                         clock-names = "fck", "brg_int", "scif_clk";
908                         dmas = <&dmac0 0x2b>, <&dmac0 0x2c>,
909                                <&dmac1 0x2b>, <&dmac1 0x2c>;
910                         dma-names = "tx", "rx", "tx", "rx";
911                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
912                         resets = <&cpg 719>;
913                         status = "disabled";
914                 };
915
916                 scif3: serial@e6ea8000 {
917                         compatible = "renesas,scif-r8a7791",
918                                      "renesas,rcar-gen2-scif", "renesas,scif";
919                         reg = <0 0xe6ea8000 0 64>;
920                         interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
921                         clocks = <&cpg CPG_MOD 718>, <&cpg CPG_CORE R8A7791_CLK_ZS>,
922                                  <&scif_clk>;
923                         clock-names = "fck", "brg_int", "scif_clk";
924                         dmas = <&dmac0 0x2f>, <&dmac0 0x30>,
925                                <&dmac1 0x2f>, <&dmac1 0x30>;
926                         dma-names = "tx", "rx", "tx", "rx";
927                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
928                         resets = <&cpg 718>;
929                         status = "disabled";
930                 };
931
932                 scif4: serial@e6ee0000 {
933                         compatible = "renesas,scif-r8a7791",
934                                      "renesas,rcar-gen2-scif", "renesas,scif";
935                         reg = <0 0xe6ee0000 0 64>;
936                         interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
937                         clocks = <&cpg CPG_MOD 715>, <&cpg CPG_CORE R8A7791_CLK_ZS>,
938                                  <&scif_clk>;
939                         clock-names = "fck", "brg_int", "scif_clk";
940                         dmas = <&dmac0 0xfb>, <&dmac0 0xfc>,
941                                <&dmac1 0xfb>, <&dmac1 0xfc>;
942                         dma-names = "tx", "rx", "tx", "rx";
943                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
944                         resets = <&cpg 715>;
945                         status = "disabled";
946                 };
947
948                 scif5: serial@e6ee8000 {
949                         compatible = "renesas,scif-r8a7791",
950                                      "renesas,rcar-gen2-scif", "renesas,scif";
951                         reg = <0 0xe6ee8000 0 64>;
952                         interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
953                         clocks = <&cpg CPG_MOD 714>, <&cpg CPG_CORE R8A7791_CLK_ZS>,
954                                  <&scif_clk>;
955                         clock-names = "fck", "brg_int", "scif_clk";
956                         dmas = <&dmac0 0xfd>, <&dmac0 0xfe>,
957                                <&dmac1 0xfd>, <&dmac1 0xfe>;
958                         dma-names = "tx", "rx", "tx", "rx";
959                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
960                         resets = <&cpg 714>;
961                         status = "disabled";
962                 };
963
964                 hscif0: serial@e62c0000 {
965                         compatible = "renesas,hscif-r8a7791",
966                                      "renesas,rcar-gen2-hscif", "renesas,hscif";
967                         reg = <0 0xe62c0000 0 96>;
968                         interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
969                         clocks = <&cpg CPG_MOD 717>, <&cpg CPG_CORE R8A7791_CLK_ZS>,
970                                  <&scif_clk>;
971                         clock-names = "fck", "brg_int", "scif_clk";
972                         dmas = <&dmac0 0x39>, <&dmac0 0x3a>,
973                                <&dmac1 0x39>, <&dmac1 0x3a>;
974                         dma-names = "tx", "rx", "tx", "rx";
975                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
976                         resets = <&cpg 717>;
977                         status = "disabled";
978                 };
979
980                 hscif1: serial@e62c8000 {
981                         compatible = "renesas,hscif-r8a7791",
982                                      "renesas,rcar-gen2-hscif", "renesas,hscif";
983                         reg = <0 0xe62c8000 0 96>;
984                         interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
985                         clocks = <&cpg CPG_MOD 716>, <&cpg CPG_CORE R8A7791_CLK_ZS>,
986                                  <&scif_clk>;
987                         clock-names = "fck", "brg_int", "scif_clk";
988                         dmas = <&dmac0 0x4d>, <&dmac0 0x4e>,
989                                <&dmac1 0x4d>, <&dmac1 0x4e>;
990                         dma-names = "tx", "rx", "tx", "rx";
991                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
992                         resets = <&cpg 716>;
993                         status = "disabled";
994                 };
995
996                 hscif2: serial@e62d0000 {
997                         compatible = "renesas,hscif-r8a7791",
998                                      "renesas,rcar-gen2-hscif", "renesas,hscif";
999                         reg = <0 0xe62d0000 0 96>;
1000                         interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
1001                         clocks = <&cpg CPG_MOD 713>, <&cpg CPG_CORE R8A7791_CLK_ZS>,
1002                                  <&scif_clk>;
1003                         clock-names = "fck", "brg_int", "scif_clk";
1004                         dmas = <&dmac0 0x3b>, <&dmac0 0x3c>,
1005                                <&dmac1 0x3b>, <&dmac1 0x3c>;
1006                         dma-names = "tx", "rx", "tx", "rx";
1007                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1008                         resets = <&cpg 713>;
1009                         status = "disabled";
1010                 };
1011
1012                 msiof0: spi@e6e20000 {
1013                         compatible = "renesas,msiof-r8a7791",
1014                                      "renesas,rcar-gen2-msiof";
1015                         reg = <0 0xe6e20000 0 0x0064>;
1016                         interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
1017                         clocks = <&cpg CPG_MOD 000>;
1018                         dmas = <&dmac0 0x51>, <&dmac0 0x52>,
1019                                <&dmac1 0x51>, <&dmac1 0x52>;
1020                         dma-names = "tx", "rx", "tx", "rx";
1021                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1022                         resets = <&cpg 0>;
1023                         #address-cells = <1>;
1024                         #size-cells = <0>;
1025                         status = "disabled";
1026                 };
1027
1028                 msiof1: spi@e6e10000 {
1029                         compatible = "renesas,msiof-r8a7791",
1030                                      "renesas,rcar-gen2-msiof";
1031                         reg = <0 0xe6e10000 0 0x0064>;
1032                         interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>;
1033                         clocks = <&cpg CPG_MOD 208>;
1034                         dmas = <&dmac0 0x55>, <&dmac0 0x56>,
1035                                <&dmac1 0x55>, <&dmac1 0x56>;
1036                         dma-names = "tx", "rx", "tx", "rx";
1037                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1038                         resets = <&cpg 208>;
1039                         #address-cells = <1>;
1040                         #size-cells = <0>;
1041                         status = "disabled";
1042                 };
1043
1044                 msiof2: spi@e6e00000 {
1045                         compatible = "renesas,msiof-r8a7791",
1046                                      "renesas,rcar-gen2-msiof";
1047                         reg = <0 0xe6e00000 0 0x0064>;
1048                         interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
1049                         clocks = <&cpg CPG_MOD 205>;
1050                         dmas = <&dmac0 0x41>, <&dmac0 0x42>,
1051                                <&dmac1 0x41>, <&dmac1 0x42>;
1052                         dma-names = "tx", "rx", "tx", "rx";
1053                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1054                         resets = <&cpg 205>;
1055                         #address-cells = <1>;
1056                         #size-cells = <0>;
1057                         status = "disabled";
1058                 };
1059
1060                 adc: adc@e6e54000 {
1061                         compatible = "renesas,r8a7791-gyroadc",
1062                                      "renesas,rcar-gyroadc";
1063                         reg = <0 0xe6e54000 0 64>;
1064                         clocks = <&cpg CPG_MOD 901>;
1065                         clock-names = "fck";
1066                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1067                         resets = <&cpg 901>;
1068                         status = "disabled";
1069                 };
1070
1071                 can0: can@e6e80000 {
1072                         compatible = "renesas,can-r8a7791",
1073                                      "renesas,rcar-gen2-can";
1074                         reg = <0 0xe6e80000 0 0x1000>;
1075                         interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
1076                         clocks = <&cpg CPG_MOD 916>,
1077                                  <&cpg CPG_CORE R8A7791_CLK_RCAN>, <&can_clk>;
1078                         clock-names = "clkp1", "clkp2", "can_clk";
1079                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1080                         resets = <&cpg 916>;
1081                         status = "disabled";
1082                 };
1083
1084                 can1: can@e6e88000 {
1085                         compatible = "renesas,can-r8a7791",
1086                                      "renesas,rcar-gen2-can";
1087                         reg = <0 0xe6e88000 0 0x1000>;
1088                         interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
1089                         clocks = <&cpg CPG_MOD 915>,
1090                                  <&cpg CPG_CORE R8A7791_CLK_RCAN>, <&can_clk>;
1091                         clock-names = "clkp1", "clkp2", "can_clk";
1092                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1093                         resets = <&cpg 915>;
1094                         status = "disabled";
1095                 };
1096
1097                 vin0: video@e6ef0000 {
1098                         compatible = "renesas,vin-r8a7791",
1099                                      "renesas,rcar-gen2-vin";
1100                         reg = <0 0xe6ef0000 0 0x1000>;
1101                         interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
1102                         clocks = <&cpg CPG_MOD 811>;
1103                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1104                         resets = <&cpg 811>;
1105                         status = "disabled";
1106                 };
1107
1108                 vin1: video@e6ef1000 {
1109                         compatible = "renesas,vin-r8a7791",
1110                                      "renesas,rcar-gen2-vin";
1111                         reg = <0 0xe6ef1000 0 0x1000>;
1112                         interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
1113                         clocks = <&cpg CPG_MOD 810>;
1114                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1115                         resets = <&cpg 810>;
1116                         status = "disabled";
1117                 };
1118
1119                 vin2: video@e6ef2000 {
1120                         compatible = "renesas,vin-r8a7791",
1121                                      "renesas,rcar-gen2-vin";
1122                         reg = <0 0xe6ef2000 0 0x1000>;
1123                         interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
1124                         clocks = <&cpg CPG_MOD 809>;
1125                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1126                         resets = <&cpg 809>;
1127                         status = "disabled";
1128                 };
1129
1130                 rcar_sound: sound@ec500000 {
1131                         /*
1132                          * #sound-dai-cells is required
1133                          *
1134                          * Single DAI : #sound-dai-cells = <0>;         <&rcar_sound>;
1135                          * Multi  DAI : #sound-dai-cells = <1>;         <&rcar_sound N>;
1136                          */
1137                         compatible = "renesas,rcar_sound-r8a7791",
1138                                      "renesas,rcar_sound-gen2";
1139                         reg = <0 0xec500000 0 0x1000>, /* SCU */
1140                               <0 0xec5a0000 0 0x100>,  /* ADG */
1141                               <0 0xec540000 0 0x1000>, /* SSIU */
1142                               <0 0xec541000 0 0x280>,  /* SSI */
1143                               <0 0xec740000 0 0x200>;  /* Audio DMAC peri peri*/
1144                         reg-names = "scu", "adg", "ssiu", "ssi", "audmapp";
1145
1146                         clocks = <&cpg CPG_MOD 1005>,
1147                                  <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
1148                                  <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
1149                                  <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
1150                                  <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
1151                                  <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
1152                                  <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
1153                                  <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
1154                                  <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
1155                                  <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
1156                                  <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
1157                                  <&cpg CPG_MOD 1021>, <&cpg CPG_MOD 1020>,
1158                                  <&cpg CPG_MOD 1021>, <&cpg CPG_MOD 1020>,
1159                                  <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
1160                                  <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>,
1161                                  <&cpg CPG_CORE R8A7791_CLK_M2>;
1162                         clock-names = "ssi-all",
1163                                       "ssi.9", "ssi.8", "ssi.7", "ssi.6",
1164                                       "ssi.5", "ssi.4", "ssi.3", "ssi.2",
1165                                       "ssi.1", "ssi.0", "src.9", "src.8",
1166                                       "src.7", "src.6", "src.5", "src.4",
1167                                       "src.3", "src.2", "src.1", "src.0",
1168                                       "ctu.0", "ctu.1",
1169                                       "mix.0", "mix.1",
1170                                       "dvc.0", "dvc.1",
1171                                       "clk_a", "clk_b", "clk_c", "clk_i";
1172                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1173                         resets = <&cpg 1005>,
1174                                  <&cpg 1006>, <&cpg 1007>,
1175                                  <&cpg 1008>, <&cpg 1009>,
1176                                  <&cpg 1010>, <&cpg 1011>,
1177                                  <&cpg 1012>, <&cpg 1013>,
1178                                  <&cpg 1014>, <&cpg 1015>;
1179                         reset-names = "ssi-all",
1180                                       "ssi.9", "ssi.8", "ssi.7", "ssi.6",
1181                                       "ssi.5", "ssi.4", "ssi.3", "ssi.2",
1182                                       "ssi.1", "ssi.0";
1183
1184                         status = "disabled";
1185
1186                         rcar_sound,dvc {
1187                                 dvc0: dvc-0 {
1188                                         dmas = <&audma1 0xbc>;
1189                                         dma-names = "tx";
1190                                 };
1191                                 dvc1: dvc-1 {
1192                                         dmas = <&audma1 0xbe>;
1193                                         dma-names = "tx";
1194                                 };
1195                         };
1196
1197                         rcar_sound,mix {
1198                                 mix0: mix-0 { };
1199                                 mix1: mix-1 { };
1200                         };
1201
1202                         rcar_sound,ctu {
1203                                 ctu00: ctu-0 { };
1204                                 ctu01: ctu-1 { };
1205                                 ctu02: ctu-2 { };
1206                                 ctu03: ctu-3 { };
1207                                 ctu10: ctu-4 { };
1208                                 ctu11: ctu-5 { };
1209                                 ctu12: ctu-6 { };
1210                                 ctu13: ctu-7 { };
1211                         };
1212
1213                         rcar_sound,src {
1214                                 src0: src-0 {
1215                                         interrupts = <GIC_SPI 352 IRQ_TYPE_LEVEL_HIGH>;
1216                                         dmas = <&audma0 0x85>, <&audma1 0x9a>;
1217                                         dma-names = "rx", "tx";
1218                                 };
1219                                 src1: src-1 {
1220                                         interrupts = <GIC_SPI 353 IRQ_TYPE_LEVEL_HIGH>;
1221                                         dmas = <&audma0 0x87>, <&audma1 0x9c>;
1222                                         dma-names = "rx", "tx";
1223                                 };
1224                                 src2: src-2 {
1225                                         interrupts = <GIC_SPI 354 IRQ_TYPE_LEVEL_HIGH>;
1226                                         dmas = <&audma0 0x89>, <&audma1 0x9e>;
1227                                         dma-names = "rx", "tx";
1228                                 };
1229                                 src3: src-3 {
1230                                         interrupts = <GIC_SPI 355 IRQ_TYPE_LEVEL_HIGH>;
1231                                         dmas = <&audma0 0x8b>, <&audma1 0xa0>;
1232                                         dma-names = "rx", "tx";
1233                                 };
1234                                 src4: src-4 {
1235                                         interrupts = <GIC_SPI 356 IRQ_TYPE_LEVEL_HIGH>;
1236                                         dmas = <&audma0 0x8d>, <&audma1 0xb0>;
1237                                         dma-names = "rx", "tx";
1238                                 };
1239                                 src5: src-5 {
1240                                         interrupts = <GIC_SPI 357 IRQ_TYPE_LEVEL_HIGH>;
1241                                         dmas = <&audma0 0x8f>, <&audma1 0xb2>;
1242                                         dma-names = "rx", "tx";
1243                                 };
1244                                 src6: src-6 {
1245                                         interrupts = <GIC_SPI 358 IRQ_TYPE_LEVEL_HIGH>;
1246                                         dmas = <&audma0 0x91>, <&audma1 0xb4>;
1247                                         dma-names = "rx", "tx";
1248                                 };
1249                                 src7: src-7 {
1250                                         interrupts = <GIC_SPI 359 IRQ_TYPE_LEVEL_HIGH>;
1251                                         dmas = <&audma0 0x93>, <&audma1 0xb6>;
1252                                         dma-names = "rx", "tx";
1253                                 };
1254                                 src8: src-8 {
1255                                         interrupts = <GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH>;
1256                                         dmas = <&audma0 0x95>, <&audma1 0xb8>;
1257                                         dma-names = "rx", "tx";
1258                                 };
1259                                 src9: src-9 {
1260                                         interrupts = <GIC_SPI 361 IRQ_TYPE_LEVEL_HIGH>;
1261                                         dmas = <&audma0 0x97>, <&audma1 0xba>;
1262                                         dma-names = "rx", "tx";
1263                                 };
1264                         };
1265
1266                         rcar_sound,ssi {
1267                                 ssi0: ssi-0 {
1268                                         interrupts = <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>;
1269                                         dmas = <&audma0 0x01>, <&audma1 0x02>,
1270                                                <&audma0 0x15>, <&audma1 0x16>;
1271                                         dma-names = "rx", "tx", "rxu", "txu";
1272                                 };
1273                                 ssi1: ssi-1 {
1274                                          interrupts = <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>;
1275                                         dmas = <&audma0 0x03>, <&audma1 0x04>,
1276                                                <&audma0 0x49>, <&audma1 0x4a>;
1277                                         dma-names = "rx", "tx", "rxu", "txu";
1278                                 };
1279                                 ssi2: ssi-2 {
1280                                         interrupts = <GIC_SPI 372 IRQ_TYPE_LEVEL_HIGH>;
1281                                         dmas = <&audma0 0x05>, <&audma1 0x06>,
1282                                                <&audma0 0x63>, <&audma1 0x64>;
1283                                         dma-names = "rx", "tx", "rxu", "txu";
1284                                 };
1285                                 ssi3: ssi-3 {
1286                                         interrupts = <GIC_SPI 373 IRQ_TYPE_LEVEL_HIGH>;
1287                                         dmas = <&audma0 0x07>, <&audma1 0x08>,
1288                                                <&audma0 0x6f>, <&audma1 0x70>;
1289                                         dma-names = "rx", "tx", "rxu", "txu";
1290                                 };
1291                                 ssi4: ssi-4 {
1292                                         interrupts = <GIC_SPI 374 IRQ_TYPE_LEVEL_HIGH>;
1293                                         dmas = <&audma0 0x09>, <&audma1 0x0a>,
1294                                                <&audma0 0x71>, <&audma1 0x72>;
1295                                         dma-names = "rx", "tx", "rxu", "txu";
1296                                 };
1297                                 ssi5: ssi-5 {
1298                                         interrupts = <GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>;
1299                                         dmas = <&audma0 0x0b>, <&audma1 0x0c>,
1300                                                <&audma0 0x73>, <&audma1 0x74>;
1301                                         dma-names = "rx", "tx", "rxu", "txu";
1302                                 };
1303                                 ssi6: ssi-6 {
1304                                         interrupts = <GIC_SPI 376 IRQ_TYPE_LEVEL_HIGH>;
1305                                         dmas = <&audma0 0x0d>, <&audma1 0x0e>,
1306                                                <&audma0 0x75>, <&audma1 0x76>;
1307                                         dma-names = "rx", "tx", "rxu", "txu";
1308                                 };
1309                                 ssi7: ssi-7 {
1310                                         interrupts = <GIC_SPI 377 IRQ_TYPE_LEVEL_HIGH>;
1311                                         dmas = <&audma0 0x0f>, <&audma1 0x10>,
1312                                                <&audma0 0x79>, <&audma1 0x7a>;
1313                                         dma-names = "rx", "tx", "rxu", "txu";
1314                                 };
1315                                 ssi8: ssi-8 {
1316                                         interrupts = <GIC_SPI 378 IRQ_TYPE_LEVEL_HIGH>;
1317                                         dmas = <&audma0 0x11>, <&audma1 0x12>,
1318                                                <&audma0 0x7b>, <&audma1 0x7c>;
1319                                         dma-names = "rx", "tx", "rxu", "txu";
1320                                 };
1321                                 ssi9: ssi-9 {
1322                                         interrupts = <GIC_SPI 379 IRQ_TYPE_LEVEL_HIGH>;
1323                                         dmas = <&audma0 0x13>, <&audma1 0x14>,
1324                                                <&audma0 0x7d>, <&audma1 0x7e>;
1325                                         dma-names = "rx", "tx", "rxu", "txu";
1326                                 };
1327                         };
1328                 };
1329
1330                 audma0: dma-controller@ec700000 {
1331                         compatible = "renesas,dmac-r8a7791",
1332                                      "renesas,rcar-dmac";
1333                         reg = <0 0xec700000 0 0x10000>;
1334                         interrupts = <GIC_SPI 346 IRQ_TYPE_LEVEL_HIGH
1335                                       GIC_SPI 320 IRQ_TYPE_LEVEL_HIGH
1336                                       GIC_SPI 321 IRQ_TYPE_LEVEL_HIGH
1337                                       GIC_SPI 322 IRQ_TYPE_LEVEL_HIGH
1338                                       GIC_SPI 323 IRQ_TYPE_LEVEL_HIGH
1339                                       GIC_SPI 324 IRQ_TYPE_LEVEL_HIGH
1340                                       GIC_SPI 325 IRQ_TYPE_LEVEL_HIGH
1341                                       GIC_SPI 326 IRQ_TYPE_LEVEL_HIGH
1342                                       GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH
1343                                       GIC_SPI 328 IRQ_TYPE_LEVEL_HIGH
1344                                       GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH
1345                                       GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH
1346                                       GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH
1347                                       GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>;
1348                         interrupt-names = "error",
1349                                           "ch0", "ch1", "ch2", "ch3",
1350                                           "ch4", "ch5", "ch6", "ch7",
1351                                           "ch8", "ch9", "ch10", "ch11",
1352                                           "ch12";
1353                         clocks = <&cpg CPG_MOD 502>;
1354                         clock-names = "fck";
1355                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1356                         resets = <&cpg 502>;
1357                         #dma-cells = <1>;
1358                         dma-channels = <13>;
1359                 };
1360
1361                 audma1: dma-controller@ec720000 {
1362                         compatible = "renesas,dmac-r8a7791",
1363                                      "renesas,rcar-dmac";
1364                         reg = <0 0xec720000 0 0x10000>;
1365                         interrupts = <GIC_SPI 347 IRQ_TYPE_LEVEL_HIGH
1366                                       GIC_SPI 333 IRQ_TYPE_LEVEL_HIGH
1367                                       GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH
1368                                       GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH
1369                                       GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH
1370                                       GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH
1371                                       GIC_SPI 338 IRQ_TYPE_LEVEL_HIGH
1372                                       GIC_SPI 339 IRQ_TYPE_LEVEL_HIGH
1373                                       GIC_SPI 340 IRQ_TYPE_LEVEL_HIGH
1374                                       GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH
1375                                       GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH
1376                                       GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH
1377                                       GIC_SPI 344 IRQ_TYPE_LEVEL_HIGH
1378                                       GIC_SPI 345 IRQ_TYPE_LEVEL_HIGH>;
1379                         interrupt-names = "error",
1380                                           "ch0", "ch1", "ch2", "ch3",
1381                                           "ch4", "ch5", "ch6", "ch7",
1382                                           "ch8", "ch9", "ch10", "ch11",
1383                                           "ch12";
1384                         clocks = <&cpg CPG_MOD 501>;
1385                         clock-names = "fck";
1386                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1387                         resets = <&cpg 501>;
1388                         #dma-cells = <1>;
1389                         dma-channels = <13>;
1390                 };
1391
1392                 xhci: usb@ee000000 {
1393                         compatible = "renesas,xhci-r8a7791",
1394                                      "renesas,rcar-gen2-xhci";
1395                         reg = <0 0xee000000 0 0xc00>;
1396                         interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
1397                         clocks = <&cpg CPG_MOD 328>;
1398                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1399                         resets = <&cpg 328>;
1400                         phys = <&usb2 1>;
1401                         phy-names = "usb";
1402                         status = "disabled";
1403                 };
1404
1405                 pci0: pci@ee090000 {
1406                         compatible = "renesas,pci-r8a7791",
1407                                      "renesas,pci-rcar-gen2";
1408                         device_type = "pci";
1409                         reg = <0 0xee090000 0 0xc00>,
1410                               <0 0xee080000 0 0x1100>;
1411                         interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
1412                         clocks = <&cpg CPG_MOD 703>;
1413                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1414                         resets = <&cpg 703>;
1415                         status = "disabled";
1416
1417                         bus-range = <0 0>;
1418                         #address-cells = <3>;
1419                         #size-cells = <2>;
1420                         #interrupt-cells = <1>;
1421                         ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>;
1422                         interrupt-map-mask = <0xff00 0 0 0x7>;
1423                         interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH
1424                                          0x0800 0 0 1 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH
1425                                          0x1000 0 0 2 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
1426
1427                         usb@1,0 {
1428                                 reg = <0x800 0 0 0 0>;
1429                                 phys = <&usb0 0>;
1430                                 phy-names = "usb";
1431                         };
1432
1433                         usb@2,0 {
1434                                 reg = <0x1000 0 0 0 0>;
1435                                 phys = <&usb0 0>;
1436                                 phy-names = "usb";
1437                         };
1438                 };
1439
1440                 pci1: pci@ee0d0000 {
1441                         compatible = "renesas,pci-r8a7791",
1442                                      "renesas,pci-rcar-gen2";
1443                         device_type = "pci";
1444                         reg = <0 0xee0d0000 0 0xc00>,
1445                               <0 0xee0c0000 0 0x1100>;
1446                         interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
1447                         clocks = <&cpg CPG_MOD 703>;
1448                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1449                         resets = <&cpg 703>;
1450                         status = "disabled";
1451
1452                         bus-range = <1 1>;
1453                         #address-cells = <3>;
1454                         #size-cells = <2>;
1455                         #interrupt-cells = <1>;
1456                         ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>;
1457                         interrupt-map-mask = <0xff00 0 0 0x7>;
1458                         interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH
1459                                          0x0800 0 0 1 &gic GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH
1460                                          0x1000 0 0 2 &gic GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
1461
1462                         usb@1,0 {
1463                                 reg = <0x10800 0 0 0 0>;
1464                                 phys = <&usb2 0>;
1465                                 phy-names = "usb";
1466                         };
1467
1468                         usb@2,0 {
1469                                 reg = <0x11000 0 0 0 0>;
1470                                 phys = <&usb2 0>;
1471                                 phy-names = "usb";
1472                         };
1473                 };
1474
1475                 sdhi0: sd@ee100000 {
1476                         compatible = "renesas,sdhi-r8a7791",
1477                                      "renesas,rcar-gen2-sdhi";
1478                         reg = <0 0xee100000 0 0x328>;
1479                         interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
1480                         clocks = <&cpg CPG_MOD 314>;
1481                         dmas = <&dmac0 0xcd>, <&dmac0 0xce>,
1482                                <&dmac1 0xcd>, <&dmac1 0xce>;
1483                         dma-names = "tx", "rx", "tx", "rx";
1484                         max-frequency = <195000000>;
1485                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1486                         resets = <&cpg 314>;
1487                         status = "disabled";
1488                 };
1489
1490                 sdhi1: sd@ee140000 {
1491                         compatible = "renesas,sdhi-r8a7791",
1492                                      "renesas,rcar-gen2-sdhi";
1493                         reg = <0 0xee140000 0 0x100>;
1494                         interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
1495                         clocks = <&cpg CPG_MOD 312>;
1496                         dmas = <&dmac0 0xc1>, <&dmac0 0xc2>,
1497                                <&dmac1 0xc1>, <&dmac1 0xc2>;
1498                         dma-names = "tx", "rx", "tx", "rx";
1499                         max-frequency = <97500000>;
1500                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1501                         resets = <&cpg 312>;
1502                         status = "disabled";
1503                 };
1504
1505                 sdhi2: sd@ee160000 {
1506                         compatible = "renesas,sdhi-r8a7791",
1507                                      "renesas,rcar-gen2-sdhi";
1508                         reg = <0 0xee160000 0 0x100>;
1509                         interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
1510                         clocks = <&cpg CPG_MOD 311>;
1511                         dmas = <&dmac0 0xd3>, <&dmac0 0xd4>,
1512                                <&dmac1 0xd3>, <&dmac1 0xd4>;
1513                         dma-names = "tx", "rx", "tx", "rx";
1514                         max-frequency = <97500000>;
1515                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1516                         resets = <&cpg 311>;
1517                         status = "disabled";
1518                 };
1519
1520                 mmcif0: mmc@ee200000 {
1521                         compatible = "renesas,mmcif-r8a7791",
1522                                      "renesas,sh-mmcif";
1523                         reg = <0 0xee200000 0 0x80>;
1524                         interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
1525                         clocks = <&cpg CPG_MOD 315>;
1526                         dmas = <&dmac0 0xd1>, <&dmac0 0xd2>,
1527                                <&dmac1 0xd1>, <&dmac1 0xd2>;
1528                         dma-names = "tx", "rx", "tx", "rx";
1529                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1530                         resets = <&cpg 315>;
1531                         reg-io-width = <4>;
1532                         status = "disabled";
1533                         max-frequency = <97500000>;
1534                 };
1535
1536                 sata0: sata@ee300000 {
1537                         compatible = "renesas,sata-r8a7791",
1538                                      "renesas,rcar-gen2-sata";
1539                         reg = <0 0xee300000 0 0x2000>;
1540                         interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
1541                         clocks = <&cpg CPG_MOD 815>;
1542                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1543                         resets = <&cpg 815>;
1544                         status = "disabled";
1545                 };
1546
1547                 sata1: sata@ee500000 {
1548                         compatible = "renesas,sata-r8a7791",
1549                                      "renesas,rcar-gen2-sata";
1550                         reg = <0 0xee500000 0 0x2000>;
1551                         interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
1552                         clocks = <&cpg CPG_MOD 814>;
1553                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1554                         resets = <&cpg 814>;
1555                         status = "disabled";
1556                 };
1557
1558                 ether: ethernet@ee700000 {
1559                         compatible = "renesas,ether-r8a7791",
1560                                      "renesas,rcar-gen2-ether";
1561                         reg = <0 0xee700000 0 0x400>;
1562                         interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
1563                         clocks = <&cpg CPG_MOD 813>;
1564                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1565                         resets = <&cpg 813>;
1566                         phy-mode = "rmii";
1567                         #address-cells = <1>;
1568                         #size-cells = <0>;
1569                         status = "disabled";
1570                 };
1571
1572                 gic: interrupt-controller@f1001000 {
1573                         compatible = "arm,gic-400";
1574                         #interrupt-cells = <3>;
1575                         #address-cells = <0>;
1576                         interrupt-controller;
1577                         reg = <0 0xf1001000 0 0x1000>, <0 0xf1002000 0 0x2000>,
1578                               <0 0xf1004000 0 0x2000>, <0 0xf1006000 0 0x2000>;
1579                         interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
1580                         clocks = <&cpg CPG_MOD 408>;
1581                         clock-names = "clk";
1582                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1583                         resets = <&cpg 408>;
1584                 };
1585
1586                 pciec: pcie@fe000000 {
1587                         compatible = "renesas,pcie-r8a7791",
1588                                      "renesas,pcie-rcar-gen2";
1589                         reg = <0 0xfe000000 0 0x80000>;
1590                         #address-cells = <3>;
1591                         #size-cells = <2>;
1592                         bus-range = <0x00 0xff>;
1593                         device_type = "pci";
1594                         ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000
1595                                   0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000
1596                                   0x02000000 0 0x30000000 0 0x30000000 0 0x08000000
1597                                   0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;
1598                         /* Map all possible DDR as inbound ranges */
1599                         dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000
1600                                       0x43000000 2 0x00000000 2 0x00000000 1 0x00000000>;
1601                         interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
1602                                      <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
1603                                      <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
1604                         #interrupt-cells = <1>;
1605                         interrupt-map-mask = <0 0 0 0>;
1606                         interrupt-map = <0 0 0 0 &gic GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
1607                         clocks = <&cpg CPG_MOD 319>, <&pcie_bus_clk>;
1608                         clock-names = "pcie", "pcie_bus";
1609                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1610                         resets = <&cpg 319>;
1611                         status = "disabled";
1612                 };
1613
1614                 vsp@fe928000 {
1615                         compatible = "renesas,vsp1";
1616                         reg = <0 0xfe928000 0 0x8000>;
1617                         interrupts = <GIC_SPI 267 IRQ_TYPE_LEVEL_HIGH>;
1618                         clocks = <&cpg CPG_MOD 131>;
1619                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1620                         resets = <&cpg 131>;
1621                 };
1622
1623                 vsp@fe930000 {
1624                         compatible = "renesas,vsp1";
1625                         reg = <0 0xfe930000 0 0x8000>;
1626                         interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
1627                         clocks = <&cpg CPG_MOD 128>;
1628                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1629                         resets = <&cpg 128>;
1630                 };
1631
1632                 vsp@fe938000 {
1633                         compatible = "renesas,vsp1";
1634                         reg = <0 0xfe938000 0 0x8000>;
1635                         interrupts = <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>;
1636                         clocks = <&cpg CPG_MOD 127>;
1637                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1638                         resets = <&cpg 127>;
1639                 };
1640
1641                 fdp1@fe940000 {
1642                         compatible = "renesas,fdp1";
1643                         reg = <0 0xfe940000 0 0x2400>;
1644                         interrupts = <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>;
1645                         clocks = <&cpg CPG_MOD 119>;
1646                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1647                         resets = <&cpg 119>;
1648                 };
1649
1650                 fdp1@fe944000 {
1651                         compatible = "renesas,fdp1";
1652                         reg = <0 0xfe944000 0 0x2400>;
1653                         interrupts = <GIC_SPI 263 IRQ_TYPE_LEVEL_HIGH>;
1654                         clocks = <&cpg CPG_MOD 118>;
1655                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1656                         resets = <&cpg 118>;
1657                 };
1658
1659                 jpu: jpeg-codec@fe980000 {
1660                         compatible = "renesas,jpu-r8a7791",
1661                                      "renesas,rcar-gen2-jpu";
1662                         reg = <0 0xfe980000 0 0x10300>;
1663                         interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
1664                         clocks = <&cpg CPG_MOD 106>;
1665                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1666                         resets = <&cpg 106>;
1667                 };
1668
1669                 du: display@feb00000 {
1670                         compatible = "renesas,du-r8a7791";
1671                         reg = <0 0xfeb00000 0 0x40000>;
1672                         interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
1673                                      <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>;
1674                         clocks = <&cpg CPG_MOD 724>,
1675                                  <&cpg CPG_MOD 723>;
1676                         clock-names = "du.0", "du.1";
1677                         status = "disabled";
1678
1679                         ports {
1680                                 #address-cells = <1>;
1681                                 #size-cells = <0>;
1682
1683                                 port@0 {
1684                                         reg = <0>;
1685                                         du_out_rgb: endpoint {
1686                                         };
1687                                 };
1688                                 port@1 {
1689                                         reg = <1>;
1690                                         du_out_lvds0: endpoint {
1691                                                 remote-endpoint = <&lvds0_in>;
1692                                         };
1693                                 };
1694                         };
1695                 };
1696
1697                 lvds0: lvds@feb90000 {
1698                         compatible = "renesas,r8a7791-lvds";
1699                         reg = <0 0xfeb90000 0 0x1c>;
1700                         clocks = <&cpg CPG_MOD 726>;
1701                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1702                         resets = <&cpg 726>;
1703                         status = "disabled";
1704
1705                         ports {
1706                                 #address-cells = <1>;
1707                                 #size-cells = <0>;
1708
1709                                 port@0 {
1710                                         reg = <0>;
1711                                         lvds0_in: endpoint {
1712                                                 remote-endpoint = <&du_out_lvds0>;
1713                                         };
1714                                 };
1715                                 port@1 {
1716                                         reg = <1>;
1717                                         lvds0_out: endpoint {
1718                                         };
1719                                 };
1720                         };
1721                 };
1722
1723                 prr: chipid@ff000044 {
1724                         compatible = "renesas,prr";
1725                         reg = <0 0xff000044 0 4>;
1726                 };
1727
1728                 cmt0: timer@ffca0000 {
1729                         compatible = "renesas,r8a7791-cmt0",
1730                                      "renesas,rcar-gen2-cmt0";
1731                         reg = <0 0xffca0000 0 0x1004>;
1732                         interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
1733                                      <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
1734                         clocks = <&cpg CPG_MOD 124>;
1735                         clock-names = "fck";
1736                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1737                         resets = <&cpg 124>;
1738
1739                         status = "disabled";
1740                 };
1741
1742                 cmt1: timer@e6130000 {
1743                         compatible = "renesas,r8a7791-cmt1",
1744                                      "renesas,rcar-gen2-cmt1";
1745                         reg = <0 0xe6130000 0 0x1004>;
1746                         interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
1747                                      <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
1748                                      <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
1749                                      <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
1750                                      <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
1751                                      <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
1752                                      <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>,
1753                                      <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
1754                         clocks = <&cpg CPG_MOD 329>;
1755                         clock-names = "fck";
1756                         power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
1757                         resets = <&cpg 329>;
1758
1759                         status = "disabled";
1760                 };
1761         };
1762
1763         thermal-zones {
1764                 cpu_thermal: cpu-thermal {
1765                         polling-delay-passive = <0>;
1766                         polling-delay = <0>;
1767
1768                         thermal-sensors = <&thermal>;
1769
1770                         trips {
1771                                 cpu-crit {
1772                                         temperature = <95000>;
1773                                         hysteresis = <0>;
1774                                         type = "critical";
1775                                 };
1776                         };
1777                         cooling-maps {
1778                         };
1779                 };
1780         };
1781
1782         timer {
1783                 compatible = "arm,armv7-timer";
1784                 interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
1785                                       <&gic GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
1786                                       <&gic GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
1787                                       <&gic GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
1788         };
1789
1790         /* External USB clock - can be overridden by the board */
1791         usb_extal_clk: usb_extal {
1792                 compatible = "fixed-clock";
1793                 #clock-cells = <0>;
1794                 clock-frequency = <48000000>;
1795         };
1796 };