Merge tag 'depends/phy-dt-header' into next/dt2
[cascardo/linux.git] / arch / arm / boot / dts / r8a7790.dtsi
1 /*
2  * Device Tree Source for the r8a7790 SoC
3  *
4  * Copyright (C) 2013-2014 Renesas Solutions Corp.
5  * Copyright (C) 2014 Cogent Embedded Inc.
6  *
7  * This file is licensed under the terms of the GNU General Public License
8  * version 2.  This program is licensed "as is" without any warranty of any
9  * kind, whether express or implied.
10  */
11
12 #include <dt-bindings/clock/r8a7790-clock.h>
13 #include <dt-bindings/interrupt-controller/arm-gic.h>
14 #include <dt-bindings/interrupt-controller/irq.h>
15
16 / {
17         compatible = "renesas,r8a7790";
18         interrupt-parent = <&gic>;
19         #address-cells = <2>;
20         #size-cells = <2>;
21
22         aliases {
23                 i2c0 = &i2c0;
24                 i2c1 = &i2c1;
25                 i2c2 = &i2c2;
26                 i2c3 = &i2c3;
27                 i2c4 = &iic0;
28                 i2c5 = &iic1;
29                 i2c6 = &iic2;
30                 i2c7 = &iic3;
31                 spi0 = &qspi;
32                 spi1 = &msiof0;
33                 spi2 = &msiof1;
34                 spi3 = &msiof2;
35                 spi4 = &msiof3;
36                 vin0 = &vin0;
37                 vin1 = &vin1;
38                 vin2 = &vin2;
39                 vin3 = &vin3;
40         };
41
42         cpus {
43                 #address-cells = <1>;
44                 #size-cells = <0>;
45
46                 cpu0: cpu@0 {
47                         device_type = "cpu";
48                         compatible = "arm,cortex-a15";
49                         reg = <0>;
50                         clock-frequency = <1300000000>;
51                         voltage-tolerance = <1>; /* 1% */
52                         clocks = <&cpg_clocks R8A7790_CLK_Z>;
53                         clock-latency = <300000>; /* 300 us */
54
55                         /* kHz - uV - OPPs unknown yet */
56                         operating-points = <1400000 1000000>,
57                                            <1225000 1000000>,
58                                            <1050000 1000000>,
59                                            < 875000 1000000>,
60                                            < 700000 1000000>,
61                                            < 350000 1000000>;
62                 };
63
64                 cpu1: cpu@1 {
65                         device_type = "cpu";
66                         compatible = "arm,cortex-a15";
67                         reg = <1>;
68                         clock-frequency = <1300000000>;
69                 };
70
71                 cpu2: cpu@2 {
72                         device_type = "cpu";
73                         compatible = "arm,cortex-a15";
74                         reg = <2>;
75                         clock-frequency = <1300000000>;
76                 };
77
78                 cpu3: cpu@3 {
79                         device_type = "cpu";
80                         compatible = "arm,cortex-a15";
81                         reg = <3>;
82                         clock-frequency = <1300000000>;
83                 };
84
85                 cpu4: cpu@4 {
86                         device_type = "cpu";
87                         compatible = "arm,cortex-a7";
88                         reg = <0x100>;
89                         clock-frequency = <780000000>;
90                 };
91
92                 cpu5: cpu@5 {
93                         device_type = "cpu";
94                         compatible = "arm,cortex-a7";
95                         reg = <0x101>;
96                         clock-frequency = <780000000>;
97                 };
98
99                 cpu6: cpu@6 {
100                         device_type = "cpu";
101                         compatible = "arm,cortex-a7";
102                         reg = <0x102>;
103                         clock-frequency = <780000000>;
104                 };
105
106                 cpu7: cpu@7 {
107                         device_type = "cpu";
108                         compatible = "arm,cortex-a7";
109                         reg = <0x103>;
110                         clock-frequency = <780000000>;
111                 };
112         };
113
114         gic: interrupt-controller@f1001000 {
115                 compatible = "arm,cortex-a15-gic";
116                 #interrupt-cells = <3>;
117                 #address-cells = <0>;
118                 interrupt-controller;
119                 reg = <0 0xf1001000 0 0x1000>,
120                         <0 0xf1002000 0 0x1000>,
121                         <0 0xf1004000 0 0x2000>,
122                         <0 0xf1006000 0 0x2000>;
123                 interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
124         };
125
126         gpio0: gpio@e6050000 {
127                 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
128                 reg = <0 0xe6050000 0 0x50>;
129                 interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
130                 #gpio-cells = <2>;
131                 gpio-controller;
132                 gpio-ranges = <&pfc 0 0 32>;
133                 #interrupt-cells = <2>;
134                 interrupt-controller;
135                 clocks = <&mstp9_clks R8A7790_CLK_GPIO0>;
136         };
137
138         gpio1: gpio@e6051000 {
139                 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
140                 reg = <0 0xe6051000 0 0x50>;
141                 interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
142                 #gpio-cells = <2>;
143                 gpio-controller;
144                 gpio-ranges = <&pfc 0 32 32>;
145                 #interrupt-cells = <2>;
146                 interrupt-controller;
147                 clocks = <&mstp9_clks R8A7790_CLK_GPIO1>;
148         };
149
150         gpio2: gpio@e6052000 {
151                 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
152                 reg = <0 0xe6052000 0 0x50>;
153                 interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
154                 #gpio-cells = <2>;
155                 gpio-controller;
156                 gpio-ranges = <&pfc 0 64 32>;
157                 #interrupt-cells = <2>;
158                 interrupt-controller;
159                 clocks = <&mstp9_clks R8A7790_CLK_GPIO2>;
160         };
161
162         gpio3: gpio@e6053000 {
163                 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
164                 reg = <0 0xe6053000 0 0x50>;
165                 interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
166                 #gpio-cells = <2>;
167                 gpio-controller;
168                 gpio-ranges = <&pfc 0 96 32>;
169                 #interrupt-cells = <2>;
170                 interrupt-controller;
171                 clocks = <&mstp9_clks R8A7790_CLK_GPIO3>;
172         };
173
174         gpio4: gpio@e6054000 {
175                 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
176                 reg = <0 0xe6054000 0 0x50>;
177                 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
178                 #gpio-cells = <2>;
179                 gpio-controller;
180                 gpio-ranges = <&pfc 0 128 32>;
181                 #interrupt-cells = <2>;
182                 interrupt-controller;
183                 clocks = <&mstp9_clks R8A7790_CLK_GPIO4>;
184         };
185
186         gpio5: gpio@e6055000 {
187                 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
188                 reg = <0 0xe6055000 0 0x50>;
189                 interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
190                 #gpio-cells = <2>;
191                 gpio-controller;
192                 gpio-ranges = <&pfc 0 160 32>;
193                 #interrupt-cells = <2>;
194                 interrupt-controller;
195                 clocks = <&mstp9_clks R8A7790_CLK_GPIO5>;
196         };
197
198         thermal@e61f0000 {
199                 compatible = "renesas,thermal-r8a7790", "renesas,rcar-thermal";
200                 reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
201                 interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
202                 clocks = <&mstp5_clks R8A7790_CLK_THERMAL>;
203         };
204
205         timer {
206                 compatible = "arm,armv7-timer";
207                 interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
208                              <1 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
209                              <1 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
210                              <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
211         };
212
213         cmt0: timer@ffca0000 {
214                 compatible = "renesas,cmt-48-r8a7790", "renesas,cmt-48-gen2";
215                 reg = <0 0xffca0000 0 0x1004>;
216                 interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>,
217                              <0 143 IRQ_TYPE_LEVEL_HIGH>;
218                 clocks = <&mstp1_clks R8A7790_CLK_CMT0>;
219                 clock-names = "fck";
220
221                 renesas,channels-mask = <0x60>;
222
223                 status = "disabled";
224         };
225
226         cmt1: timer@e6130000 {
227                 compatible = "renesas,cmt-48-r8a7790", "renesas,cmt-48-gen2";
228                 reg = <0 0xe6130000 0 0x1004>;
229                 interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>,
230                              <0 121 IRQ_TYPE_LEVEL_HIGH>,
231                              <0 122 IRQ_TYPE_LEVEL_HIGH>,
232                              <0 123 IRQ_TYPE_LEVEL_HIGH>,
233                              <0 124 IRQ_TYPE_LEVEL_HIGH>,
234                              <0 125 IRQ_TYPE_LEVEL_HIGH>,
235                              <0 126 IRQ_TYPE_LEVEL_HIGH>,
236                              <0 127 IRQ_TYPE_LEVEL_HIGH>;
237                 clocks = <&mstp3_clks R8A7790_CLK_CMT1>;
238                 clock-names = "fck";
239
240                 renesas,channels-mask = <0xff>;
241
242                 status = "disabled";
243         };
244
245         irqc0: interrupt-controller@e61c0000 {
246                 compatible = "renesas,irqc-r8a7790", "renesas,irqc";
247                 #interrupt-cells = <2>;
248                 interrupt-controller;
249                 reg = <0 0xe61c0000 0 0x200>;
250                 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
251                              <0 1 IRQ_TYPE_LEVEL_HIGH>,
252                              <0 2 IRQ_TYPE_LEVEL_HIGH>,
253                              <0 3 IRQ_TYPE_LEVEL_HIGH>;
254         };
255
256         dmac0: dma-controller@e6700000 {
257                 compatible = "renesas,rcar-dmac";
258                 reg = <0 0xe6700000 0 0x20000>;
259                 interrupts = <0 197 IRQ_TYPE_LEVEL_HIGH
260                               0 200 IRQ_TYPE_LEVEL_HIGH
261                               0 201 IRQ_TYPE_LEVEL_HIGH
262                               0 202 IRQ_TYPE_LEVEL_HIGH
263                               0 203 IRQ_TYPE_LEVEL_HIGH
264                               0 204 IRQ_TYPE_LEVEL_HIGH
265                               0 205 IRQ_TYPE_LEVEL_HIGH
266                               0 206 IRQ_TYPE_LEVEL_HIGH
267                               0 207 IRQ_TYPE_LEVEL_HIGH
268                               0 208 IRQ_TYPE_LEVEL_HIGH
269                               0 209 IRQ_TYPE_LEVEL_HIGH
270                               0 210 IRQ_TYPE_LEVEL_HIGH
271                               0 211 IRQ_TYPE_LEVEL_HIGH
272                               0 212 IRQ_TYPE_LEVEL_HIGH
273                               0 213 IRQ_TYPE_LEVEL_HIGH
274                               0 214 IRQ_TYPE_LEVEL_HIGH>;
275                 interrupt-names = "error",
276                                 "ch0", "ch1", "ch2", "ch3",
277                                 "ch4", "ch5", "ch6", "ch7",
278                                 "ch8", "ch9", "ch10", "ch11",
279                                 "ch12", "ch13", "ch14";
280                 clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC0>;
281                 clock-names = "fck";
282                 #dma-cells = <1>;
283                 dma-channels = <15>;
284         };
285
286         dmac1: dma-controller@e6720000 {
287                 compatible = "renesas,rcar-dmac";
288                 reg = <0 0xe6720000 0 0x20000>;
289                 interrupts = <0 220 IRQ_TYPE_LEVEL_HIGH
290                               0 216 IRQ_TYPE_LEVEL_HIGH
291                               0 217 IRQ_TYPE_LEVEL_HIGH
292                               0 218 IRQ_TYPE_LEVEL_HIGH
293                               0 219 IRQ_TYPE_LEVEL_HIGH
294                               0 308 IRQ_TYPE_LEVEL_HIGH
295                               0 309 IRQ_TYPE_LEVEL_HIGH
296                               0 310 IRQ_TYPE_LEVEL_HIGH
297                               0 311 IRQ_TYPE_LEVEL_HIGH
298                               0 312 IRQ_TYPE_LEVEL_HIGH
299                               0 313 IRQ_TYPE_LEVEL_HIGH
300                               0 314 IRQ_TYPE_LEVEL_HIGH
301                               0 315 IRQ_TYPE_LEVEL_HIGH
302                               0 316 IRQ_TYPE_LEVEL_HIGH
303                               0 317 IRQ_TYPE_LEVEL_HIGH
304                               0 318 IRQ_TYPE_LEVEL_HIGH>;
305                 interrupt-names = "error",
306                                 "ch0", "ch1", "ch2", "ch3",
307                                 "ch4", "ch5", "ch6", "ch7",
308                                 "ch8", "ch9", "ch10", "ch11",
309                                 "ch12", "ch13", "ch14";
310                 clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC1>;
311                 clock-names = "fck";
312                 #dma-cells = <1>;
313                 dma-channels = <15>;
314         };
315         i2c0: i2c@e6508000 {
316                 #address-cells = <1>;
317                 #size-cells = <0>;
318                 compatible = "renesas,i2c-r8a7790";
319                 reg = <0 0xe6508000 0 0x40>;
320                 interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>;
321                 clocks = <&mstp9_clks R8A7790_CLK_I2C0>;
322                 status = "disabled";
323         };
324
325         i2c1: i2c@e6518000 {
326                 #address-cells = <1>;
327                 #size-cells = <0>;
328                 compatible = "renesas,i2c-r8a7790";
329                 reg = <0 0xe6518000 0 0x40>;
330                 interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>;
331                 clocks = <&mstp9_clks R8A7790_CLK_I2C1>;
332                 status = "disabled";
333         };
334
335         i2c2: i2c@e6530000 {
336                 #address-cells = <1>;
337                 #size-cells = <0>;
338                 compatible = "renesas,i2c-r8a7790";
339                 reg = <0 0xe6530000 0 0x40>;
340                 interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>;
341                 clocks = <&mstp9_clks R8A7790_CLK_I2C2>;
342                 status = "disabled";
343         };
344
345         i2c3: i2c@e6540000 {
346                 #address-cells = <1>;
347                 #size-cells = <0>;
348                 compatible = "renesas,i2c-r8a7790";
349                 reg = <0 0xe6540000 0 0x40>;
350                 interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>;
351                 clocks = <&mstp9_clks R8A7790_CLK_I2C3>;
352                 status = "disabled";
353         };
354
355         iic0: i2c@e6500000 {
356                 #address-cells = <1>;
357                 #size-cells = <0>;
358                 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
359                 reg = <0 0xe6500000 0 0x425>;
360                 interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>;
361                 clocks = <&mstp3_clks R8A7790_CLK_IIC0>;
362                 status = "disabled";
363         };
364
365         iic1: i2c@e6510000 {
366                 #address-cells = <1>;
367                 #size-cells = <0>;
368                 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
369                 reg = <0 0xe6510000 0 0x425>;
370                 interrupts = <0 175 IRQ_TYPE_LEVEL_HIGH>;
371                 clocks = <&mstp3_clks R8A7790_CLK_IIC1>;
372                 status = "disabled";
373         };
374
375         iic2: i2c@e6520000 {
376                 #address-cells = <1>;
377                 #size-cells = <0>;
378                 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
379                 reg = <0 0xe6520000 0 0x425>;
380                 interrupts = <0 176 IRQ_TYPE_LEVEL_HIGH>;
381                 clocks = <&mstp3_clks R8A7790_CLK_IIC2>;
382                 status = "disabled";
383         };
384
385         iic3: i2c@e60b0000 {
386                 #address-cells = <1>;
387                 #size-cells = <0>;
388                 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
389                 reg = <0 0xe60b0000 0 0x425>;
390                 interrupts = <0 173 IRQ_TYPE_LEVEL_HIGH>;
391                 clocks = <&mstp9_clks R8A7790_CLK_IICDVFS>;
392                 status = "disabled";
393         };
394
395         mmcif0: mmc@ee200000 {
396                 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
397                 reg = <0 0xee200000 0 0x80>;
398                 interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>;
399                 clocks = <&mstp3_clks R8A7790_CLK_MMCIF0>;
400                 dmas = <&dmac0 0xd1>, <&dmac0 0xd2>;
401                 dma-names = "tx", "rx";
402                 reg-io-width = <4>;
403                 status = "disabled";
404         };
405
406         mmcif1: mmc@ee220000 {
407                 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
408                 reg = <0 0xee220000 0 0x80>;
409                 interrupts = <0 170 IRQ_TYPE_LEVEL_HIGH>;
410                 clocks = <&mstp3_clks R8A7790_CLK_MMCIF1>;
411                 dmas = <&dmac0 0xe1>, <&dmac0 0xe2>;
412                 dma-names = "tx", "rx";
413                 reg-io-width = <4>;
414                 status = "disabled";
415         };
416
417         pfc: pfc@e6060000 {
418                 compatible = "renesas,pfc-r8a7790";
419                 reg = <0 0xe6060000 0 0x250>;
420         };
421
422         sdhi0: sd@ee100000 {
423                 compatible = "renesas,sdhi-r8a7790";
424                 reg = <0 0xee100000 0 0x200>;
425                 interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
426                 clocks = <&mstp3_clks R8A7790_CLK_SDHI0>;
427                 status = "disabled";
428         };
429
430         sdhi1: sd@ee120000 {
431                 compatible = "renesas,sdhi-r8a7790";
432                 reg = <0 0xee120000 0 0x200>;
433                 interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>;
434                 clocks = <&mstp3_clks R8A7790_CLK_SDHI1>;
435                 status = "disabled";
436         };
437
438         sdhi2: sd@ee140000 {
439                 compatible = "renesas,sdhi-r8a7790";
440                 reg = <0 0xee140000 0 0x100>;
441                 interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
442                 clocks = <&mstp3_clks R8A7790_CLK_SDHI2>;
443                 status = "disabled";
444         };
445
446         sdhi3: sd@ee160000 {
447                 compatible = "renesas,sdhi-r8a7790";
448                 reg = <0 0xee160000 0 0x100>;
449                 interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
450                 clocks = <&mstp3_clks R8A7790_CLK_SDHI3>;
451                 status = "disabled";
452         };
453
454         scifa0: serial@e6c40000 {
455                 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
456                 reg = <0 0xe6c40000 0 64>;
457                 interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>;
458                 clocks = <&mstp2_clks R8A7790_CLK_SCIFA0>;
459                 clock-names = "sci_ick";
460                 status = "disabled";
461         };
462
463         scifa1: serial@e6c50000 {
464                 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
465                 reg = <0 0xe6c50000 0 64>;
466                 interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>;
467                 clocks = <&mstp2_clks R8A7790_CLK_SCIFA1>;
468                 clock-names = "sci_ick";
469                 status = "disabled";
470         };
471
472         scifa2: serial@e6c60000 {
473                 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
474                 reg = <0 0xe6c60000 0 64>;
475                 interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>;
476                 clocks = <&mstp2_clks R8A7790_CLK_SCIFA2>;
477                 clock-names = "sci_ick";
478                 status = "disabled";
479         };
480
481         scifb0: serial@e6c20000 {
482                 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
483                 reg = <0 0xe6c20000 0 64>;
484                 interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>;
485                 clocks = <&mstp2_clks R8A7790_CLK_SCIFB0>;
486                 clock-names = "sci_ick";
487                 status = "disabled";
488         };
489
490         scifb1: serial@e6c30000 {
491                 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
492                 reg = <0 0xe6c30000 0 64>;
493                 interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>;
494                 clocks = <&mstp2_clks R8A7790_CLK_SCIFB1>;
495                 clock-names = "sci_ick";
496                 status = "disabled";
497         };
498
499         scifb2: serial@e6ce0000 {
500                 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
501                 reg = <0 0xe6ce0000 0 64>;
502                 interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>;
503                 clocks = <&mstp2_clks R8A7790_CLK_SCIFB2>;
504                 clock-names = "sci_ick";
505                 status = "disabled";
506         };
507
508         scif0: serial@e6e60000 {
509                 compatible = "renesas,scif-r8a7790", "renesas,scif";
510                 reg = <0 0xe6e60000 0 64>;
511                 interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>;
512                 clocks = <&mstp7_clks R8A7790_CLK_SCIF0>;
513                 clock-names = "sci_ick";
514                 status = "disabled";
515         };
516
517         scif1: serial@e6e68000 {
518                 compatible = "renesas,scif-r8a7790", "renesas,scif";
519                 reg = <0 0xe6e68000 0 64>;
520                 interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>;
521                 clocks = <&mstp7_clks R8A7790_CLK_SCIF1>;
522                 clock-names = "sci_ick";
523                 status = "disabled";
524         };
525
526         hscif0: serial@e62c0000 {
527                 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
528                 reg = <0 0xe62c0000 0 96>;
529                 interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>;
530                 clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>;
531                 clock-names = "sci_ick";
532                 status = "disabled";
533         };
534
535         hscif1: serial@e62c8000 {
536                 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
537                 reg = <0 0xe62c8000 0 96>;
538                 interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>;
539                 clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>;
540                 clock-names = "sci_ick";
541                 status = "disabled";
542         };
543
544         ether: ethernet@ee700000 {
545                 compatible = "renesas,ether-r8a7790";
546                 reg = <0 0xee700000 0 0x400>;
547                 interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>;
548                 clocks = <&mstp8_clks R8A7790_CLK_ETHER>;
549                 phy-mode = "rmii";
550                 #address-cells = <1>;
551                 #size-cells = <0>;
552                 status = "disabled";
553         };
554
555         sata0: sata@ee300000 {
556                 compatible = "renesas,sata-r8a7790";
557                 reg = <0 0xee300000 0 0x2000>;
558                 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
559                 clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
560                 status = "disabled";
561         };
562
563         sata1: sata@ee500000 {
564                 compatible = "renesas,sata-r8a7790";
565                 reg = <0 0xee500000 0 0x2000>;
566                 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
567                 clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
568                 status = "disabled";
569         };
570
571         hsusb: usb@e6590000 {
572                 compatible = "renesas,usbhs-r8a7790";
573                 reg = <0 0xe6590000 0 0x100>;
574                 interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
575                 clocks = <&mstp7_clks R8A7790_CLK_HSUSB>;
576                 renesas,buswait = <4>;
577                 phys = <&usb0 1>;
578                 phy-names = "usb";
579                 status = "disabled";
580         };
581
582         usbphy: usb-phy@e6590100 {
583                 compatible = "renesas,usb-phy-r8a7790";
584                 reg = <0 0xe6590100 0 0x100>;
585                 #address-cells = <1>;
586                 #size-cells = <0>;
587                 clocks = <&mstp7_clks R8A7790_CLK_HSUSB>;
588                 clock-names = "usbhs";
589                 status = "disabled";
590
591                 usb0: usb-channel@0 {
592                         reg = <0>;
593                         #phy-cells = <1>;
594                 };
595                 usb2: usb-channel@2 {
596                         reg = <2>;
597                         #phy-cells = <1>;
598                 };
599         };
600
601         vin0: video@e6ef0000 {
602                 compatible = "renesas,vin-r8a7790";
603                 clocks = <&mstp8_clks R8A7790_CLK_VIN0>;
604                 reg = <0 0xe6ef0000 0 0x1000>;
605                 interrupts = <0 188 IRQ_TYPE_LEVEL_HIGH>;
606                 status = "disabled";
607         };
608
609         vin1: video@e6ef1000 {
610                 compatible = "renesas,vin-r8a7790";
611                 clocks = <&mstp8_clks R8A7790_CLK_VIN1>;
612                 reg = <0 0xe6ef1000 0 0x1000>;
613                 interrupts = <0 189 IRQ_TYPE_LEVEL_HIGH>;
614                 status = "disabled";
615         };
616
617         vin2: video@e6ef2000 {
618                 compatible = "renesas,vin-r8a7790";
619                 clocks = <&mstp8_clks R8A7790_CLK_VIN2>;
620                 reg = <0 0xe6ef2000 0 0x1000>;
621                 interrupts = <0 190 IRQ_TYPE_LEVEL_HIGH>;
622                 status = "disabled";
623         };
624
625         vin3: video@e6ef3000 {
626                 compatible = "renesas,vin-r8a7790";
627                 clocks = <&mstp8_clks R8A7790_CLK_VIN3>;
628                 reg = <0 0xe6ef3000 0 0x1000>;
629                 interrupts = <0 191 IRQ_TYPE_LEVEL_HIGH>;
630                 status = "disabled";
631         };
632
633         vsp1@fe920000 {
634                 compatible = "renesas,vsp1";
635                 reg = <0 0xfe920000 0 0x8000>;
636                 interrupts = <0 266 IRQ_TYPE_LEVEL_HIGH>;
637                 clocks = <&mstp1_clks R8A7790_CLK_VSP1_R>;
638
639                 renesas,has-sru;
640                 renesas,#rpf = <5>;
641                 renesas,#uds = <1>;
642                 renesas,#wpf = <4>;
643         };
644
645         vsp1@fe928000 {
646                 compatible = "renesas,vsp1";
647                 reg = <0 0xfe928000 0 0x8000>;
648                 interrupts = <0 267 IRQ_TYPE_LEVEL_HIGH>;
649                 clocks = <&mstp1_clks R8A7790_CLK_VSP1_S>;
650
651                 renesas,has-lut;
652                 renesas,has-sru;
653                 renesas,#rpf = <5>;
654                 renesas,#uds = <3>;
655                 renesas,#wpf = <4>;
656         };
657
658         vsp1@fe930000 {
659                 compatible = "renesas,vsp1";
660                 reg = <0 0xfe930000 0 0x8000>;
661                 interrupts = <0 246 IRQ_TYPE_LEVEL_HIGH>;
662                 clocks = <&mstp1_clks R8A7790_CLK_VSP1_DU0>;
663
664                 renesas,has-lif;
665                 renesas,has-lut;
666                 renesas,#rpf = <4>;
667                 renesas,#uds = <1>;
668                 renesas,#wpf = <4>;
669         };
670
671         vsp1@fe938000 {
672                 compatible = "renesas,vsp1";
673                 reg = <0 0xfe938000 0 0x8000>;
674                 interrupts = <0 247 IRQ_TYPE_LEVEL_HIGH>;
675                 clocks = <&mstp1_clks R8A7790_CLK_VSP1_DU1>;
676
677                 renesas,has-lif;
678                 renesas,has-lut;
679                 renesas,#rpf = <4>;
680                 renesas,#uds = <1>;
681                 renesas,#wpf = <4>;
682         };
683
684         du: display@feb00000 {
685                 compatible = "renesas,du-r8a7790";
686                 reg = <0 0xfeb00000 0 0x70000>,
687                       <0 0xfeb90000 0 0x1c>,
688                       <0 0xfeb94000 0 0x1c>;
689                 reg-names = "du", "lvds.0", "lvds.1";
690                 interrupts = <0 256 IRQ_TYPE_LEVEL_HIGH>,
691                              <0 268 IRQ_TYPE_LEVEL_HIGH>,
692                              <0 269 IRQ_TYPE_LEVEL_HIGH>;
693                 clocks = <&mstp7_clks R8A7790_CLK_DU0>,
694                          <&mstp7_clks R8A7790_CLK_DU1>,
695                          <&mstp7_clks R8A7790_CLK_DU2>,
696                          <&mstp7_clks R8A7790_CLK_LVDS0>,
697                          <&mstp7_clks R8A7790_CLK_LVDS1>;
698                 clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1";
699                 status = "disabled";
700
701                 ports {
702                         #address-cells = <1>;
703                         #size-cells = <0>;
704
705                         port@0 {
706                                 reg = <0>;
707                                 du_out_rgb: endpoint {
708                                 };
709                         };
710                         port@1 {
711                                 reg = <1>;
712                                 du_out_lvds0: endpoint {
713                                 };
714                         };
715                         port@2 {
716                                 reg = <2>;
717                                 du_out_lvds1: endpoint {
718                                 };
719                         };
720                 };
721         };
722
723         clocks {
724                 #address-cells = <2>;
725                 #size-cells = <2>;
726                 ranges;
727
728                 /* External root clock */
729                 extal_clk: extal_clk {
730                         compatible = "fixed-clock";
731                         #clock-cells = <0>;
732                         /* This value must be overriden by the board. */
733                         clock-frequency = <0>;
734                         clock-output-names = "extal";
735                 };
736
737                 /* External PCIe clock - can be overridden by the board */
738                 pcie_bus_clk: pcie_bus_clk {
739                         compatible = "fixed-clock";
740                         #clock-cells = <0>;
741                         clock-frequency = <100000000>;
742                         clock-output-names = "pcie_bus";
743                         status = "disabled";
744                 };
745
746                 /*
747                  * The external audio clocks are configured as 0 Hz fixed frequency clocks by
748                  * default. Boards that provide audio clocks should override them.
749                  */
750                 audio_clk_a: audio_clk_a {
751                         compatible = "fixed-clock";
752                         #clock-cells = <0>;
753                         clock-frequency = <0>;
754                         clock-output-names = "audio_clk_a";
755                 };
756                 audio_clk_b: audio_clk_b {
757                         compatible = "fixed-clock";
758                         #clock-cells = <0>;
759                         clock-frequency = <0>;
760                         clock-output-names = "audio_clk_b";
761                 };
762                 audio_clk_c: audio_clk_c {
763                         compatible = "fixed-clock";
764                         #clock-cells = <0>;
765                         clock-frequency = <0>;
766                         clock-output-names = "audio_clk_c";
767                 };
768
769                 /* Special CPG clocks */
770                 cpg_clocks: cpg_clocks@e6150000 {
771                         compatible = "renesas,r8a7790-cpg-clocks",
772                                      "renesas,rcar-gen2-cpg-clocks";
773                         reg = <0 0xe6150000 0 0x1000>;
774                         clocks = <&extal_clk>;
775                         #clock-cells = <1>;
776                         clock-output-names = "main", "pll0", "pll1", "pll3",
777                                              "lb", "qspi", "sdh", "sd0", "sd1",
778                                              "z";
779                 };
780
781                 /* Variable factor clocks */
782                 sd2_clk: sd2_clk@e6150078 {
783                         compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
784                         reg = <0 0xe6150078 0 4>;
785                         clocks = <&pll1_div2_clk>;
786                         #clock-cells = <0>;
787                         clock-output-names = "sd2";
788                 };
789                 sd3_clk: sd3_clk@e615007c {
790                         compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
791                         reg = <0 0xe615007c 0 4>;
792                         clocks = <&pll1_div2_clk>;
793                         #clock-cells = <0>;
794                         clock-output-names = "sd3";
795                 };
796                 mmc0_clk: mmc0_clk@e6150240 {
797                         compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
798                         reg = <0 0xe6150240 0 4>;
799                         clocks = <&pll1_div2_clk>;
800                         #clock-cells = <0>;
801                         clock-output-names = "mmc0";
802                 };
803                 mmc1_clk: mmc1_clk@e6150244 {
804                         compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
805                         reg = <0 0xe6150244 0 4>;
806                         clocks = <&pll1_div2_clk>;
807                         #clock-cells = <0>;
808                         clock-output-names = "mmc1";
809                 };
810                 ssp_clk: ssp_clk@e6150248 {
811                         compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
812                         reg = <0 0xe6150248 0 4>;
813                         clocks = <&pll1_div2_clk>;
814                         #clock-cells = <0>;
815                         clock-output-names = "ssp";
816                 };
817                 ssprs_clk: ssprs_clk@e615024c {
818                         compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
819                         reg = <0 0xe615024c 0 4>;
820                         clocks = <&pll1_div2_clk>;
821                         #clock-cells = <0>;
822                         clock-output-names = "ssprs";
823                 };
824
825                 /* Fixed factor clocks */
826                 pll1_div2_clk: pll1_div2_clk {
827                         compatible = "fixed-factor-clock";
828                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
829                         #clock-cells = <0>;
830                         clock-div = <2>;
831                         clock-mult = <1>;
832                         clock-output-names = "pll1_div2";
833                 };
834                 z2_clk: z2_clk {
835                         compatible = "fixed-factor-clock";
836                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
837                         #clock-cells = <0>;
838                         clock-div = <2>;
839                         clock-mult = <1>;
840                         clock-output-names = "z2";
841                 };
842                 zg_clk: zg_clk {
843                         compatible = "fixed-factor-clock";
844                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
845                         #clock-cells = <0>;
846                         clock-div = <3>;
847                         clock-mult = <1>;
848                         clock-output-names = "zg";
849                 };
850                 zx_clk: zx_clk {
851                         compatible = "fixed-factor-clock";
852                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
853                         #clock-cells = <0>;
854                         clock-div = <3>;
855                         clock-mult = <1>;
856                         clock-output-names = "zx";
857                 };
858                 zs_clk: zs_clk {
859                         compatible = "fixed-factor-clock";
860                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
861                         #clock-cells = <0>;
862                         clock-div = <6>;
863                         clock-mult = <1>;
864                         clock-output-names = "zs";
865                 };
866                 hp_clk: hp_clk {
867                         compatible = "fixed-factor-clock";
868                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
869                         #clock-cells = <0>;
870                         clock-div = <12>;
871                         clock-mult = <1>;
872                         clock-output-names = "hp";
873                 };
874                 i_clk: i_clk {
875                         compatible = "fixed-factor-clock";
876                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
877                         #clock-cells = <0>;
878                         clock-div = <2>;
879                         clock-mult = <1>;
880                         clock-output-names = "i";
881                 };
882                 b_clk: b_clk {
883                         compatible = "fixed-factor-clock";
884                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
885                         #clock-cells = <0>;
886                         clock-div = <12>;
887                         clock-mult = <1>;
888                         clock-output-names = "b";
889                 };
890                 p_clk: p_clk {
891                         compatible = "fixed-factor-clock";
892                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
893                         #clock-cells = <0>;
894                         clock-div = <24>;
895                         clock-mult = <1>;
896                         clock-output-names = "p";
897                 };
898                 cl_clk: cl_clk {
899                         compatible = "fixed-factor-clock";
900                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
901                         #clock-cells = <0>;
902                         clock-div = <48>;
903                         clock-mult = <1>;
904                         clock-output-names = "cl";
905                 };
906                 m2_clk: m2_clk {
907                         compatible = "fixed-factor-clock";
908                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
909                         #clock-cells = <0>;
910                         clock-div = <8>;
911                         clock-mult = <1>;
912                         clock-output-names = "m2";
913                 };
914                 imp_clk: imp_clk {
915                         compatible = "fixed-factor-clock";
916                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
917                         #clock-cells = <0>;
918                         clock-div = <4>;
919                         clock-mult = <1>;
920                         clock-output-names = "imp";
921                 };
922                 rclk_clk: rclk_clk {
923                         compatible = "fixed-factor-clock";
924                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
925                         #clock-cells = <0>;
926                         clock-div = <(48 * 1024)>;
927                         clock-mult = <1>;
928                         clock-output-names = "rclk";
929                 };
930                 oscclk_clk: oscclk_clk {
931                         compatible = "fixed-factor-clock";
932                         clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
933                         #clock-cells = <0>;
934                         clock-div = <(12 * 1024)>;
935                         clock-mult = <1>;
936                         clock-output-names = "oscclk";
937                 };
938                 zb3_clk: zb3_clk {
939                         compatible = "fixed-factor-clock";
940                         clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
941                         #clock-cells = <0>;
942                         clock-div = <4>;
943                         clock-mult = <1>;
944                         clock-output-names = "zb3";
945                 };
946                 zb3d2_clk: zb3d2_clk {
947                         compatible = "fixed-factor-clock";
948                         clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
949                         #clock-cells = <0>;
950                         clock-div = <8>;
951                         clock-mult = <1>;
952                         clock-output-names = "zb3d2";
953                 };
954                 ddr_clk: ddr_clk {
955                         compatible = "fixed-factor-clock";
956                         clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
957                         #clock-cells = <0>;
958                         clock-div = <8>;
959                         clock-mult = <1>;
960                         clock-output-names = "ddr";
961                 };
962                 mp_clk: mp_clk {
963                         compatible = "fixed-factor-clock";
964                         clocks = <&pll1_div2_clk>;
965                         #clock-cells = <0>;
966                         clock-div = <15>;
967                         clock-mult = <1>;
968                         clock-output-names = "mp";
969                 };
970                 cp_clk: cp_clk {
971                         compatible = "fixed-factor-clock";
972                         clocks = <&extal_clk>;
973                         #clock-cells = <0>;
974                         clock-div = <2>;
975                         clock-mult = <1>;
976                         clock-output-names = "cp";
977                 };
978
979                 /* Gate clocks */
980                 mstp0_clks: mstp0_clks@e6150130 {
981                         compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
982                         reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
983                         clocks = <&mp_clk>;
984                         #clock-cells = <1>;
985                         renesas,clock-indices = <R8A7790_CLK_MSIOF0>;
986                         clock-output-names = "msiof0";
987                 };
988                 mstp1_clks: mstp1_clks@e6150134 {
989                         compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
990                         reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
991                         clocks = <&zs_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&m2_clk>,
992                                  <&zs_clk>, <&p_clk>, <&zg_clk>, <&zs_clk>, <&zs_clk>,
993                                  <&zs_clk>, <&zs_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>,
994                                  <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>;
995                         #clock-cells = <1>;
996                         renesas,clock-indices = <
997                                 R8A7790_CLK_VCP1 R8A7790_CLK_VCP0 R8A7790_CLK_VPC1
998                                 R8A7790_CLK_VPC0 R8A7790_CLK_JPU R8A7790_CLK_SSP1
999                                 R8A7790_CLK_TMU1 R8A7790_CLK_3DG R8A7790_CLK_2DDMAC
1000                                 R8A7790_CLK_FDP1_2 R8A7790_CLK_FDP1_1 R8A7790_CLK_FDP1_0
1001                                 R8A7790_CLK_TMU3 R8A7790_CLK_TMU2 R8A7790_CLK_CMT0
1002                                 R8A7790_CLK_TMU0 R8A7790_CLK_VSP1_DU1 R8A7790_CLK_VSP1_DU0
1003                                 R8A7790_CLK_VSP1_R R8A7790_CLK_VSP1_S
1004                         >;
1005                         clock-output-names =
1006                                 "vcp1", "vcp0", "vpc1", "vpc0", "jpu", "ssp1",
1007                                 "tmu1", "3dg", "2ddmac", "fdp1-2", "fdp1-1",
1008                                 "fdp1-0", "tmu3", "tmu2", "cmt0", "tmu0",
1009                                 "vsp1-du1", "vsp1-du0", "vsp1-rt", "vsp1-sy";
1010                 };
1011                 mstp2_clks: mstp2_clks@e6150138 {
1012                         compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1013                         reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
1014                         clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
1015                                  <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&zs_clk>,
1016                                  <&zs_clk>;
1017                         #clock-cells = <1>;
1018                         renesas,clock-indices = <
1019                                 R8A7790_CLK_SCIFA2 R8A7790_CLK_SCIFA1 R8A7790_CLK_SCIFA0
1020                                 R8A7790_CLK_MSIOF2 R8A7790_CLK_SCIFB0 R8A7790_CLK_SCIFB1
1021                                 R8A7790_CLK_MSIOF1 R8A7790_CLK_MSIOF3 R8A7790_CLK_SCIFB2
1022                                 R8A7790_CLK_SYS_DMAC1 R8A7790_CLK_SYS_DMAC0
1023                         >;
1024                         clock-output-names =
1025                                 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
1026                                 "scifb1", "msiof1", "msiof3", "scifb2",
1027                                 "sys-dmac1", "sys-dmac0";
1028                 };
1029                 mstp3_clks: mstp3_clks@e615013c {
1030                         compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1031                         reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
1032                         clocks = <&hp_clk>, <&cp_clk>, <&mmc1_clk>, <&sd3_clk>,
1033                                  <&sd2_clk>, <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>, <&mmc0_clk>,
1034                                  <&hp_clk>, <&mp_clk>, <&hp_clk>, <&mp_clk>, <&rclk_clk>;
1035                         #clock-cells = <1>;
1036                         renesas,clock-indices = <
1037                                 R8A7790_CLK_IIC2 R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
1038                                 R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0 R8A7790_CLK_MMCIF0
1039                                 R8A7790_CLK_IIC0 R8A7790_CLK_PCIEC R8A7790_CLK_IIC1 R8A7790_CLK_SSUSB R8A7790_CLK_CMT1
1040                         >;
1041                         clock-output-names =
1042                                 "iic2", "tpu0", "mmcif1", "sdhi3",
1043                                 "sdhi2", "sdhi1", "sdhi0", "mmcif0",
1044                                 "iic0", "pciec", "iic1", "ssusb", "cmt1";
1045                 };
1046                 mstp5_clks: mstp5_clks@e6150144 {
1047                         compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1048                         reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
1049                         clocks = <&extal_clk>, <&p_clk>;
1050                         #clock-cells = <1>;
1051                         renesas,clock-indices = <R8A7790_CLK_THERMAL R8A7790_CLK_PWM>;
1052                         clock-output-names = "thermal", "pwm";
1053                 };
1054                 mstp7_clks: mstp7_clks@e615014c {
1055                         compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1056                         reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
1057                         clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>,
1058                                  <&p_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>,
1059                                  <&zx_clk>;
1060                         #clock-cells = <1>;
1061                         renesas,clock-indices = <
1062                                 R8A7790_CLK_EHCI R8A7790_CLK_HSUSB R8A7790_CLK_HSCIF1
1063                                 R8A7790_CLK_HSCIF0 R8A7790_CLK_SCIF1 R8A7790_CLK_SCIF0
1064                                 R8A7790_CLK_DU2 R8A7790_CLK_DU1 R8A7790_CLK_DU0
1065                                 R8A7790_CLK_LVDS1 R8A7790_CLK_LVDS0
1066                         >;
1067                         clock-output-names =
1068                                 "ehci", "hsusb", "hscif1", "hscif0", "scif1",
1069                                 "scif0", "du2", "du1", "du0", "lvds1", "lvds0";
1070                 };
1071                 mstp8_clks: mstp8_clks@e6150990 {
1072                         compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1073                         reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
1074                         clocks = <&zg_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>, <&p_clk>,
1075                                  <&zs_clk>, <&zs_clk>;
1076                         #clock-cells = <1>;
1077                         renesas,clock-indices = <
1078                                 R8A7790_CLK_VIN3 R8A7790_CLK_VIN2 R8A7790_CLK_VIN1
1079                                 R8A7790_CLK_VIN0 R8A7790_CLK_ETHER R8A7790_CLK_SATA1
1080                                 R8A7790_CLK_SATA0
1081                         >;
1082                         clock-output-names =
1083                                 "vin3", "vin2", "vin1", "vin0", "ether", "sata1", "sata0";
1084                 };
1085                 mstp9_clks: mstp9_clks@e6150994 {
1086                         compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1087                         reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
1088                         clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>,
1089                                  <&cp_clk>, <&cp_clk>, <&cp_clk>,
1090                                  <&p_clk>, <&p_clk>, <&cpg_clocks R8A7790_CLK_QSPI>, <&cp_clk>,
1091                                  <&hp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>;
1092                         #clock-cells = <1>;
1093                         renesas,clock-indices = <
1094                                 R8A7790_CLK_GPIO5 R8A7790_CLK_GPIO4 R8A7790_CLK_GPIO3
1095                                 R8A7790_CLK_GPIO2 R8A7790_CLK_GPIO1 R8A7790_CLK_GPIO0
1096                                 R8A7790_CLK_RCAN1 R8A7790_CLK_RCAN0 R8A7790_CLK_QSPI_MOD R8A7790_CLK_IICDVFS
1097                                 R8A7790_CLK_I2C3 R8A7790_CLK_I2C2 R8A7790_CLK_I2C1 R8A7790_CLK_I2C0
1098                         >;
1099                         clock-output-names =
1100                                 "gpio5", "gpio4", "gpio3", "gpio2", "gpio1", "gpio0",
1101                                 "rcan1", "rcan0", "qspi_mod", "iic3",
1102                                 "i2c3", "i2c2", "i2c1", "i2c0";
1103                 };
1104                 mstp10_clks: mstp10_clks@e6150998 {
1105                         compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
1106                         reg = <0 0xe6150998 0 4>, <0 0xe61509a8 0 4>;
1107                         clocks = <&p_clk>,
1108                                 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1109                                 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
1110                                 <&p_clk>,
1111                                 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1112                                 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1113                                 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1114                                 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1115                                 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
1116                                 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>;
1117
1118                         #clock-cells = <1>;
1119                         clock-indices = <
1120                                 R8A7790_CLK_SSI_ALL
1121                                 R8A7790_CLK_SSI9 R8A7790_CLK_SSI8 R8A7790_CLK_SSI7 R8A7790_CLK_SSI6 R8A7790_CLK_SSI5
1122                                 R8A7790_CLK_SSI4 R8A7790_CLK_SSI3 R8A7790_CLK_SSI2 R8A7790_CLK_SSI1 R8A7790_CLK_SSI0
1123                                 R8A7790_CLK_SCU_ALL
1124                                 R8A7790_CLK_SCU_DVC1 R8A7790_CLK_SCU_DVC0
1125                                 R8A7790_CLK_SCU_SRC9 R8A7790_CLK_SCU_SRC8 R8A7790_CLK_SCU_SRC7 R8A7790_CLK_SCU_SRC6 R8A7790_CLK_SCU_SRC5
1126                                 R8A7790_CLK_SCU_SRC4 R8A7790_CLK_SCU_SRC3 R8A7790_CLK_SCU_SRC2 R8A7790_CLK_SCU_SRC1 R8A7790_CLK_SCU_SRC0
1127                         >;
1128                         clock-output-names =
1129                                 "ssi-all",
1130                                 "ssi9", "ssi8", "ssi7", "ssi6", "ssi5",
1131                                 "ssi4", "ssi3", "ssi2", "ssi1", "ssi0",
1132                                 "scu-all",
1133                                 "scu-dvc1", "scu-dvc0",
1134                                 "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5",
1135                                 "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0";
1136                 };
1137         };
1138
1139         qspi: spi@e6b10000 {
1140                 compatible = "renesas,qspi-r8a7790", "renesas,qspi";
1141                 reg = <0 0xe6b10000 0 0x2c>;
1142                 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
1143                 clocks = <&mstp9_clks R8A7790_CLK_QSPI_MOD>;
1144                 dmas = <&dmac0 0x17>, <&dmac0 0x18>;
1145                 dma-names = "tx", "rx";
1146                 num-cs = <1>;
1147                 #address-cells = <1>;
1148                 #size-cells = <0>;
1149                 status = "disabled";
1150         };
1151
1152         msiof0: spi@e6e20000 {
1153                 compatible = "renesas,msiof-r8a7790";
1154                 reg = <0 0xe6e20000 0 0x0064>, <0 0xe7e20000 0 0x0064>;
1155                 interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>;
1156                 clocks = <&mstp0_clks R8A7790_CLK_MSIOF0>;
1157                 dmas = <&dmac0 0x51>, <&dmac0 0x52>;
1158                 dma-names = "tx", "rx";
1159                 #address-cells = <1>;
1160                 #size-cells = <0>;
1161                 status = "disabled";
1162         };
1163
1164         msiof1: spi@e6e10000 {
1165                 compatible = "renesas,msiof-r8a7790";
1166                 reg = <0 0xe6e10000 0 0x0064>, <0 0xe7e10000 0 0x0064>;
1167                 interrupts = <0 157 IRQ_TYPE_LEVEL_HIGH>;
1168                 clocks = <&mstp2_clks R8A7790_CLK_MSIOF1>;
1169                 dmas = <&dmac0 0x55>, <&dmac0 0x56>;
1170                 dma-names = "tx", "rx";
1171                 #address-cells = <1>;
1172                 #size-cells = <0>;
1173                 status = "disabled";
1174         };
1175
1176         msiof2: spi@e6e00000 {
1177                 compatible = "renesas,msiof-r8a7790";
1178                 reg = <0 0xe6e00000 0 0x0064>, <0 0xe7e00000 0 0x0064>;
1179                 interrupts = <0 158 IRQ_TYPE_LEVEL_HIGH>;
1180                 clocks = <&mstp2_clks R8A7790_CLK_MSIOF2>;
1181                 dmas = <&dmac0 0x41>, <&dmac0 0x42>;
1182                 dma-names = "tx", "rx";
1183                 #address-cells = <1>;
1184                 #size-cells = <0>;
1185                 status = "disabled";
1186         };
1187
1188         msiof3: spi@e6c90000 {
1189                 compatible = "renesas,msiof-r8a7790";
1190                 reg = <0 0xe6c90000 0 0x0064>, <0 0xe7c90000 0 0x0064>;
1191                 interrupts = <0 159 IRQ_TYPE_LEVEL_HIGH>;
1192                 clocks = <&mstp2_clks R8A7790_CLK_MSIOF3>;
1193                 dmas = <&dmac0 0x45>, <&dmac0 0x46>;
1194                 dma-names = "tx", "rx";
1195                 #address-cells = <1>;
1196                 #size-cells = <0>;
1197                 status = "disabled";
1198         };
1199
1200         xhci: usb@ee000000 {
1201                 compatible = "renesas,xhci-r8a7790";
1202                 reg = <0 0xee000000 0 0xc00>;
1203                 interrupts = <0 101 IRQ_TYPE_LEVEL_HIGH>;
1204                 clocks = <&mstp3_clks R8A7790_CLK_SSUSB>;
1205                 phys = <&usb2 1>;
1206                 phy-names = "usb";
1207                 status = "disabled";
1208         };
1209
1210         pci0: pci@ee090000 {
1211                 compatible = "renesas,pci-r8a7790";
1212                 device_type = "pci";
1213                 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
1214                 reg = <0 0xee090000 0 0xc00>,
1215                       <0 0xee080000 0 0x1100>;
1216                 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
1217                 status = "disabled";
1218
1219                 bus-range = <0 0>;
1220                 #address-cells = <3>;
1221                 #size-cells = <2>;
1222                 #interrupt-cells = <1>;
1223                 ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>;
1224                 interrupt-map-mask = <0xff00 0 0 0x7>;
1225                 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1226                                  0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
1227                                  0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
1228
1229                 usb@0,1 {
1230                         reg = <0x800 0 0 0 0>;
1231                         device_type = "pci";
1232                         phys = <&usb0 0>;
1233                         phy-names = "usb";
1234                 };
1235
1236                 usb@0,2 {
1237                         reg = <0x1000 0 0 0 0>;
1238                         device_type = "pci";
1239                         phys = <&usb0 0>;
1240                         phy-names = "usb";
1241                 };
1242         };
1243
1244         pci1: pci@ee0b0000 {
1245                 compatible = "renesas,pci-r8a7790";
1246                 device_type = "pci";
1247                 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
1248                 reg = <0 0xee0b0000 0 0xc00>,
1249                       <0 0xee0a0000 0 0x1100>;
1250                 interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>;
1251                 status = "disabled";
1252
1253                 bus-range = <1 1>;
1254                 #address-cells = <3>;
1255                 #size-cells = <2>;
1256                 #interrupt-cells = <1>;
1257                 ranges = <0x02000000 0 0xee0a0000 0 0xee0a0000 0 0x00010000>;
1258                 interrupt-map-mask = <0xff00 0 0 0x7>;
1259                 interrupt-map = <0x0000 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH
1260                                  0x0800 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH
1261                                  0x1000 0 0 2 &gic 0 112 IRQ_TYPE_LEVEL_HIGH>;
1262         };
1263
1264         pci2: pci@ee0d0000 {
1265                 compatible = "renesas,pci-r8a7790";
1266                 device_type = "pci";
1267                 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
1268                 reg = <0 0xee0d0000 0 0xc00>,
1269                       <0 0xee0c0000 0 0x1100>;
1270                 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
1271                 status = "disabled";
1272
1273                 bus-range = <2 2>;
1274                 #address-cells = <3>;
1275                 #size-cells = <2>;
1276                 #interrupt-cells = <1>;
1277                 ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>;
1278                 interrupt-map-mask = <0xff00 0 0 0x7>;
1279                 interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1280                                  0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1281                                  0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
1282
1283                 usb@0,1 {
1284                         reg = <0x800 0 0 0 0>;
1285                         device_type = "pci";
1286                         phys = <&usb2 0>;
1287                         phy-names = "usb";
1288                 };
1289
1290                 usb@0,2 {
1291                         reg = <0x1000 0 0 0 0>;
1292                         device_type = "pci";
1293                         phys = <&usb2 0>;
1294                         phy-names = "usb";
1295                 };
1296         };
1297
1298         pciec: pcie@fe000000 {
1299                 compatible = "renesas,pcie-r8a7790";
1300                 reg = <0 0xfe000000 0 0x80000>;
1301                 #address-cells = <3>;
1302                 #size-cells = <2>;
1303                 bus-range = <0x00 0xff>;
1304                 device_type = "pci";
1305                 ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000
1306                           0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000
1307                           0x02000000 0 0x30000000 0 0x30000000 0 0x08000000
1308                           0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;
1309                 /* Map all possible DDR as inbound ranges */
1310                 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000
1311                               0x43000000 1 0x80000000 1 0x80000000 0 0x80000000>;
1312                 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>,
1313                              <0 117 IRQ_TYPE_LEVEL_HIGH>,
1314                              <0 118 IRQ_TYPE_LEVEL_HIGH>;
1315                 #interrupt-cells = <1>;
1316                 interrupt-map-mask = <0 0 0 0>;
1317                 interrupt-map = <0 0 0 0 &gic 0 116 IRQ_TYPE_LEVEL_HIGH>;
1318                 clocks = <&mstp3_clks R8A7790_CLK_PCIEC>, <&pcie_bus_clk>;
1319                 clock-names = "pcie", "pcie_bus";
1320                 status = "disabled";
1321         };
1322
1323         rcar_sound: rcar_sound@ec500000 {
1324                 #sound-dai-cells = <1>;
1325                 compatible =  "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2", "renesas,rcar_sound";
1326                 reg =   <0 0xec500000 0 0x1000>, /* SCU */
1327                         <0 0xec5a0000 0 0x100>,  /* ADG */
1328                         <0 0xec540000 0 0x1000>, /* SSIU */
1329                         <0 0xec541000 0 0x1280>; /* SSI */
1330                 clocks = <&mstp10_clks R8A7790_CLK_SSI_ALL>,
1331                         <&mstp10_clks R8A7790_CLK_SSI9>, <&mstp10_clks R8A7790_CLK_SSI8>,
1332                         <&mstp10_clks R8A7790_CLK_SSI7>, <&mstp10_clks R8A7790_CLK_SSI6>,
1333                         <&mstp10_clks R8A7790_CLK_SSI5>, <&mstp10_clks R8A7790_CLK_SSI4>,
1334                         <&mstp10_clks R8A7790_CLK_SSI3>, <&mstp10_clks R8A7790_CLK_SSI2>,
1335                         <&mstp10_clks R8A7790_CLK_SSI1>, <&mstp10_clks R8A7790_CLK_SSI0>,
1336                         <&mstp10_clks R8A7790_CLK_SCU_SRC9>, <&mstp10_clks R8A7790_CLK_SCU_SRC8>,
1337                         <&mstp10_clks R8A7790_CLK_SCU_SRC7>, <&mstp10_clks R8A7790_CLK_SCU_SRC6>,
1338                         <&mstp10_clks R8A7790_CLK_SCU_SRC5>, <&mstp10_clks R8A7790_CLK_SCU_SRC4>,
1339                         <&mstp10_clks R8A7790_CLK_SCU_SRC3>, <&mstp10_clks R8A7790_CLK_SCU_SRC2>,
1340                         <&mstp10_clks R8A7790_CLK_SCU_SRC1>, <&mstp10_clks R8A7790_CLK_SCU_SRC0>,
1341                         <&mstp10_clks R8A7790_CLK_SCU_DVC0>, <&mstp10_clks R8A7790_CLK_SCU_DVC1>,
1342                         <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>;
1343                 clock-names = "ssi-all",
1344                                 "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5",
1345                                 "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0",
1346                                 "src.9", "src.8", "src.7", "src.6", "src.5",
1347                                 "src.4", "src.3", "src.2", "src.1", "src.0",
1348                                 "dvc.0", "dvc.1",
1349                                 "clk_a", "clk_b", "clk_c", "clk_i";
1350
1351                 status = "disabled";
1352
1353                 rcar_sound,dvc {
1354                         dvc0: dvc@0 { };
1355                         dvc1: dvc@1 { };
1356                 };
1357
1358                 rcar_sound,src {
1359                         src0: src@0 { };
1360                         src1: src@1 { };
1361                         src2: src@2 { };
1362                         src3: src@3 { };
1363                         src4: src@4 { };
1364                         src5: src@5 { };
1365                         src6: src@6 { };
1366                         src7: src@7 { };
1367                         src8: src@8 { };
1368                         src9: src@9 { };
1369                 };
1370
1371                 rcar_sound,ssi {
1372                         ssi0: ssi@0 { interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; };
1373                         ssi1: ssi@1 { interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>; };
1374                         ssi2: ssi@2 { interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>; };
1375                         ssi3: ssi@3 { interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>; };
1376                         ssi4: ssi@4 { interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>; };
1377                         ssi5: ssi@5 { interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>; };
1378                         ssi6: ssi@6 { interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>; };
1379                         ssi7: ssi@7 { interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>; };
1380                         ssi8: ssi@8 { interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>; };
1381                         ssi9: ssi@9 { interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>; };
1382                 };
1383         };
1384 };