blob: 641af27bc1230a8200bc102d34b0c86defe54438 [file] [log] [blame]
Biju Das9b33e302019-09-27 14:06:24 +01001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the r8a774b1 SoC
4 *
5 * Copyright (C) 2019 Renesas Electronics Corp.
6 */
7
8#include <dt-bindings/interrupt-controller/irq.h>
9#include <dt-bindings/interrupt-controller/arm-gic.h>
10#include <dt-bindings/clock/r8a774b1-cpg-mssr.h>
11#include <dt-bindings/power/r8a774b1-sysc.h>
12
13/ {
14 compatible = "renesas,r8a774b1";
15 #address-cells = <2>;
16 #size-cells = <2>;
17
18 /*
19 * The external audio clocks are configured as 0 Hz fixed frequency
20 * clocks by default.
21 * Boards that provide audio clocks should override them.
22 */
23 audio_clk_a: audio_clk_a {
24 compatible = "fixed-clock";
25 #clock-cells = <0>;
26 clock-frequency = <0>;
27 };
28
29 audio_clk_b: audio_clk_b {
30 compatible = "fixed-clock";
31 #clock-cells = <0>;
32 clock-frequency = <0>;
33 };
34
35 audio_clk_c: audio_clk_c {
36 compatible = "fixed-clock";
37 #clock-cells = <0>;
38 clock-frequency = <0>;
39 };
40
41 /* External CAN clock - to be overridden by boards that provide it */
42 can_clk: can {
43 compatible = "fixed-clock";
44 #clock-cells = <0>;
45 clock-frequency = <0>;
46 };
47
48 cpus {
49 #address-cells = <1>;
50 #size-cells = <0>;
51
52 a57_0: cpu@0 {
53 compatible = "arm,cortex-a57";
54 reg = <0x0>;
55 device_type = "cpu";
56 power-domains = <&sysc R8A774B1_PD_CA57_CPU0>;
57 next-level-cache = <&L2_CA57>;
58 enable-method = "psci";
59 #cooling-cells = <2>;
60 dynamic-power-coefficient = <854>;
61 clocks = <&cpg CPG_CORE R8A774B1_CLK_Z>;
62 };
63
64 a57_1: cpu@1 {
65 compatible = "arm,cortex-a57";
66 reg = <0x1>;
67 device_type = "cpu";
68 power-domains = <&sysc R8A774B1_PD_CA57_CPU1>;
69 next-level-cache = <&L2_CA57>;
70 enable-method = "psci";
71 clocks = <&cpg CPG_CORE R8A774B1_CLK_Z>;
72 };
73
74 L2_CA57: cache-controller-0 {
75 compatible = "cache";
76 power-domains = <&sysc R8A774B1_PD_CA57_SCU>;
77 cache-unified;
78 cache-level = <2>;
79 };
80 };
81
82 extal_clk: extal {
83 compatible = "fixed-clock";
84 #clock-cells = <0>;
85 /* This value must be overridden by the board */
86 clock-frequency = <0>;
87 };
88
89 extalr_clk: extalr {
90 compatible = "fixed-clock";
91 #clock-cells = <0>;
92 /* This value must be overridden by the board */
93 clock-frequency = <0>;
94 };
95
96 /* External PCIe clock - can be overridden by the board */
97 pcie_bus_clk: pcie_bus {
98 compatible = "fixed-clock";
99 #clock-cells = <0>;
100 clock-frequency = <0>;
101 };
102
103 pmu_a57 {
104 compatible = "arm,cortex-a57-pmu";
105 interrupts-extended = <&gic GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
106 <&gic GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
107 interrupt-affinity = <&a57_0>, <&a57_1>;
108 };
109
110 psci {
111 compatible = "arm,psci-1.0", "arm,psci-0.2";
112 method = "smc";
113 };
114
115 /* External SCIF clock - to be overridden by boards that provide it */
116 scif_clk: scif {
117 compatible = "fixed-clock";
118 #clock-cells = <0>;
119 clock-frequency = <0>;
120 };
121
122 soc {
123 compatible = "simple-bus";
124 interrupt-parent = <&gic>;
125 #address-cells = <2>;
126 #size-cells = <2>;
127 ranges;
128
129 rwdt: watchdog@e6020000 {
130 reg = <0 0xe6020000 0 0x0c>;
131 /* placeholder */
132 };
133
134 gpio0: gpio@e6050000 {
Biju Dasbbbb9192019-09-30 09:18:45 +0100135 compatible = "renesas,gpio-r8a774b1",
136 "renesas,rcar-gen3-gpio";
Biju Das9b33e302019-09-27 14:06:24 +0100137 reg = <0 0xe6050000 0 0x50>;
Biju Dasbbbb9192019-09-30 09:18:45 +0100138 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Biju Das9b33e302019-09-27 14:06:24 +0100139 #gpio-cells = <2>;
140 gpio-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100141 gpio-ranges = <&pfc 0 0 16>;
Biju Das9b33e302019-09-27 14:06:24 +0100142 #interrupt-cells = <2>;
143 interrupt-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100144 clocks = <&cpg CPG_MOD 912>;
145 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
146 resets = <&cpg 912>;
Biju Das9b33e302019-09-27 14:06:24 +0100147 };
148
149 gpio1: gpio@e6051000 {
Biju Dasbbbb9192019-09-30 09:18:45 +0100150 compatible = "renesas,gpio-r8a774b1",
151 "renesas,rcar-gen3-gpio";
Biju Das9b33e302019-09-27 14:06:24 +0100152 reg = <0 0xe6051000 0 0x50>;
Biju Dasbbbb9192019-09-30 09:18:45 +0100153 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Biju Das9b33e302019-09-27 14:06:24 +0100154 #gpio-cells = <2>;
155 gpio-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100156 gpio-ranges = <&pfc 0 32 29>;
Biju Das9b33e302019-09-27 14:06:24 +0100157 #interrupt-cells = <2>;
158 interrupt-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100159 clocks = <&cpg CPG_MOD 911>;
160 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
161 resets = <&cpg 911>;
Biju Das9b33e302019-09-27 14:06:24 +0100162 };
163
164 gpio2: gpio@e6052000 {
Biju Dasbbbb9192019-09-30 09:18:45 +0100165 compatible = "renesas,gpio-r8a774b1",
166 "renesas,rcar-gen3-gpio";
Biju Das9b33e302019-09-27 14:06:24 +0100167 reg = <0 0xe6052000 0 0x50>;
Biju Dasbbbb9192019-09-30 09:18:45 +0100168 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Biju Das9b33e302019-09-27 14:06:24 +0100169 #gpio-cells = <2>;
170 gpio-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100171 gpio-ranges = <&pfc 0 64 15>;
Biju Das9b33e302019-09-27 14:06:24 +0100172 #interrupt-cells = <2>;
173 interrupt-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100174 clocks = <&cpg CPG_MOD 910>;
175 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
176 resets = <&cpg 910>;
Biju Das9b33e302019-09-27 14:06:24 +0100177 };
178
179 gpio3: gpio@e6053000 {
Biju Dasbbbb9192019-09-30 09:18:45 +0100180 compatible = "renesas,gpio-r8a774b1",
181 "renesas,rcar-gen3-gpio";
Biju Das9b33e302019-09-27 14:06:24 +0100182 reg = <0 0xe6053000 0 0x50>;
Biju Dasbbbb9192019-09-30 09:18:45 +0100183 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Biju Das9b33e302019-09-27 14:06:24 +0100184 #gpio-cells = <2>;
185 gpio-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100186 gpio-ranges = <&pfc 0 96 16>;
Biju Das9b33e302019-09-27 14:06:24 +0100187 #interrupt-cells = <2>;
188 interrupt-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100189 clocks = <&cpg CPG_MOD 909>;
190 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
191 resets = <&cpg 909>;
Biju Das9b33e302019-09-27 14:06:24 +0100192 };
193
194 gpio4: gpio@e6054000 {
Biju Dasbbbb9192019-09-30 09:18:45 +0100195 compatible = "renesas,gpio-r8a774b1",
196 "renesas,rcar-gen3-gpio";
Biju Das9b33e302019-09-27 14:06:24 +0100197 reg = <0 0xe6054000 0 0x50>;
Biju Dasbbbb9192019-09-30 09:18:45 +0100198 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Biju Das9b33e302019-09-27 14:06:24 +0100199 #gpio-cells = <2>;
200 gpio-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100201 gpio-ranges = <&pfc 0 128 18>;
Biju Das9b33e302019-09-27 14:06:24 +0100202 #interrupt-cells = <2>;
203 interrupt-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100204 clocks = <&cpg CPG_MOD 908>;
205 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
206 resets = <&cpg 908>;
Biju Das9b33e302019-09-27 14:06:24 +0100207 };
208
209 gpio5: gpio@e6055000 {
Biju Dasbbbb9192019-09-30 09:18:45 +0100210 compatible = "renesas,gpio-r8a774b1",
211 "renesas,rcar-gen3-gpio";
Biju Das9b33e302019-09-27 14:06:24 +0100212 reg = <0 0xe6055000 0 0x50>;
Biju Dasbbbb9192019-09-30 09:18:45 +0100213 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Biju Das9b33e302019-09-27 14:06:24 +0100214 #gpio-cells = <2>;
215 gpio-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100216 gpio-ranges = <&pfc 0 160 26>;
Biju Das9b33e302019-09-27 14:06:24 +0100217 #interrupt-cells = <2>;
218 interrupt-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100219 clocks = <&cpg CPG_MOD 907>;
220 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
221 resets = <&cpg 907>;
Biju Das9b33e302019-09-27 14:06:24 +0100222 };
223
224 gpio6: gpio@e6055400 {
Biju Dasbbbb9192019-09-30 09:18:45 +0100225 compatible = "renesas,gpio-r8a774b1",
226 "renesas,rcar-gen3-gpio";
Biju Das9b33e302019-09-27 14:06:24 +0100227 reg = <0 0xe6055400 0 0x50>;
Biju Dasbbbb9192019-09-30 09:18:45 +0100228 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Biju Das9b33e302019-09-27 14:06:24 +0100229 #gpio-cells = <2>;
230 gpio-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100231 gpio-ranges = <&pfc 0 192 32>;
Biju Das9b33e302019-09-27 14:06:24 +0100232 #interrupt-cells = <2>;
233 interrupt-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100234 clocks = <&cpg CPG_MOD 906>;
235 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
236 resets = <&cpg 906>;
Biju Das9b33e302019-09-27 14:06:24 +0100237 };
238
239 gpio7: gpio@e6055800 {
Biju Dasbbbb9192019-09-30 09:18:45 +0100240 compatible = "renesas,gpio-r8a774b1",
241 "renesas,rcar-gen3-gpio";
Biju Das9b33e302019-09-27 14:06:24 +0100242 reg = <0 0xe6055800 0 0x50>;
Biju Dasbbbb9192019-09-30 09:18:45 +0100243 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Biju Das9b33e302019-09-27 14:06:24 +0100244 #gpio-cells = <2>;
245 gpio-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100246 gpio-ranges = <&pfc 0 224 4>;
Biju Das9b33e302019-09-27 14:06:24 +0100247 #interrupt-cells = <2>;
248 interrupt-controller;
Biju Dasbbbb9192019-09-30 09:18:45 +0100249 clocks = <&cpg CPG_MOD 905>;
250 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
251 resets = <&cpg 905>;
Biju Das9b33e302019-09-27 14:06:24 +0100252 };
253
254 pfc: pin-controller@e6060000 {
255 compatible = "renesas,pfc-r8a774b1";
256 reg = <0 0xe6060000 0 0x50c>;
257 };
258
259 cpg: clock-controller@e6150000 {
260 compatible = "renesas,r8a774b1-cpg-mssr";
261 reg = <0 0xe6150000 0 0x1000>;
262 clocks = <&extal_clk>, <&extalr_clk>;
263 clock-names = "extal", "extalr";
264 #clock-cells = <2>;
265 #power-domain-cells = <0>;
266 #reset-cells = <1>;
267 };
268
269 rst: reset-controller@e6160000 {
270 compatible = "renesas,r8a774b1-rst";
271 reg = <0 0xe6160000 0 0x0200>;
272 };
273
274 sysc: system-controller@e6180000 {
275 compatible = "renesas,r8a774b1-sysc";
276 reg = <0 0xe6180000 0 0x0400>;
277 #power-domain-cells = <1>;
278 };
279
280 i2c4: i2c@e66d8000 {
281 #address-cells = <1>;
282 #size-cells = <0>;
283 reg = <0 0xe66d8000 0 0x40>;
284 /* placeholder */
285 };
286
287 hscif0: serial@e6540000 {
Biju Das83e76202019-09-30 09:18:44 +0100288 compatible = "renesas,hscif-r8a774b1",
289 "renesas,rcar-gen3-hscif",
290 "renesas,hscif";
Biju Das9b33e302019-09-27 14:06:24 +0100291 reg = <0 0xe6540000 0 0x60>;
Biju Das83e76202019-09-30 09:18:44 +0100292 interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
293 clocks = <&cpg CPG_MOD 520>,
294 <&cpg CPG_CORE R8A774B1_CLK_S3D1>,
295 <&scif_clk>;
296 clock-names = "fck", "brg_int", "scif_clk";
297 dmas = <&dmac1 0x31>, <&dmac1 0x30>,
298 <&dmac2 0x31>, <&dmac2 0x30>;
299 dma-names = "tx", "rx", "tx", "rx";
300 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
301 resets = <&cpg 520>;
302 status = "disabled";
303 };
304
305 hscif1: serial@e6550000 {
306 compatible = "renesas,hscif-r8a774b1",
307 "renesas,rcar-gen3-hscif",
308 "renesas,hscif";
309 reg = <0 0xe6550000 0 0x60>;
310 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
311 clocks = <&cpg CPG_MOD 519>,
312 <&cpg CPG_CORE R8A774B1_CLK_S3D1>,
313 <&scif_clk>;
314 clock-names = "fck", "brg_int", "scif_clk";
315 dmas = <&dmac1 0x33>, <&dmac1 0x32>,
316 <&dmac2 0x33>, <&dmac2 0x32>;
317 dma-names = "tx", "rx", "tx", "rx";
318 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
319 resets = <&cpg 519>;
320 status = "disabled";
321 };
322
323 hscif2: serial@e6560000 {
324 compatible = "renesas,hscif-r8a774b1",
325 "renesas,rcar-gen3-hscif",
326 "renesas,hscif";
327 reg = <0 0xe6560000 0 0x60>;
328 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
329 clocks = <&cpg CPG_MOD 518>,
330 <&cpg CPG_CORE R8A774B1_CLK_S3D1>,
331 <&scif_clk>;
332 clock-names = "fck", "brg_int", "scif_clk";
333 dmas = <&dmac1 0x35>, <&dmac1 0x34>,
334 <&dmac2 0x35>, <&dmac2 0x34>;
335 dma-names = "tx", "rx", "tx", "rx";
336 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
337 resets = <&cpg 518>;
338 status = "disabled";
339 };
340
341 hscif3: serial@e66a0000 {
342 compatible = "renesas,hscif-r8a774b1",
343 "renesas,rcar-gen3-hscif",
344 "renesas,hscif";
345 reg = <0 0xe66a0000 0 0x60>;
346 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
347 clocks = <&cpg CPG_MOD 517>,
348 <&cpg CPG_CORE R8A774B1_CLK_S3D1>,
349 <&scif_clk>;
350 clock-names = "fck", "brg_int", "scif_clk";
351 dmas = <&dmac0 0x37>, <&dmac0 0x36>;
352 dma-names = "tx", "rx";
353 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
354 resets = <&cpg 517>;
355 status = "disabled";
356 };
357
358 hscif4: serial@e66b0000 {
359 compatible = "renesas,hscif-r8a774b1",
360 "renesas,rcar-gen3-hscif",
361 "renesas,hscif";
362 reg = <0 0xe66b0000 0 0x60>;
363 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
364 clocks = <&cpg CPG_MOD 516>,
365 <&cpg CPG_CORE R8A774B1_CLK_S3D1>,
366 <&scif_clk>;
367 clock-names = "fck", "brg_int", "scif_clk";
368 dmas = <&dmac0 0x39>, <&dmac0 0x38>;
369 dma-names = "tx", "rx";
370 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
371 resets = <&cpg 516>;
372 status = "disabled";
Biju Das9b33e302019-09-27 14:06:24 +0100373 };
374
375 hsusb: usb@e6590000 {
376 reg = <0 0xe6590000 0 0x200>;
377 /* placeholder */
378 };
379
380 usb3_phy0: usb-phy@e65ee000 {
381 reg = <0 0xe65ee000 0 0x90>;
382 #phy-cells = <0>;
383 /* placeholder */
384 };
385
Biju Dasfd863e52019-09-30 09:18:43 +0100386 dmac0: dma-controller@e6700000 {
387 compatible = "renesas,dmac-r8a774b1",
388 "renesas,rcar-dmac";
389 reg = <0 0xe6700000 0 0x10000>;
390 interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH
391 GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH
392 GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH
393 GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH
394 GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH
395 GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH
396 GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH
397 GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH
398 GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH
399 GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH
400 GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH
401 GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH
402 GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH
403 GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH
404 GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH
405 GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH
406 GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>;
407 interrupt-names = "error",
408 "ch0", "ch1", "ch2", "ch3",
409 "ch4", "ch5", "ch6", "ch7",
410 "ch8", "ch9", "ch10", "ch11",
411 "ch12", "ch13", "ch14", "ch15";
412 clocks = <&cpg CPG_MOD 219>;
413 clock-names = "fck";
414 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
415 resets = <&cpg 219>;
416 #dma-cells = <1>;
417 dma-channels = <16>;
418 };
419
420 dmac1: dma-controller@e7300000 {
421 compatible = "renesas,dmac-r8a774b1",
422 "renesas,rcar-dmac";
423 reg = <0 0xe7300000 0 0x10000>;
424 interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH
425 GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH
426 GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH
427 GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH
428 GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH
429 GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH
430 GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH
431 GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH
432 GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH
433 GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH
434 GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH
435 GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH
436 GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH
437 GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH
438 GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH
439 GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH
440 GIC_SPI 319 IRQ_TYPE_LEVEL_HIGH>;
441 interrupt-names = "error",
442 "ch0", "ch1", "ch2", "ch3",
443 "ch4", "ch5", "ch6", "ch7",
444 "ch8", "ch9", "ch10", "ch11",
445 "ch12", "ch13", "ch14", "ch15";
446 clocks = <&cpg CPG_MOD 218>;
447 clock-names = "fck";
448 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
449 resets = <&cpg 218>;
450 #dma-cells = <1>;
451 dma-channels = <16>;
452 };
453
454 dmac2: dma-controller@e7310000 {
455 compatible = "renesas,dmac-r8a774b1",
456 "renesas,rcar-dmac";
457 reg = <0 0xe7310000 0 0x10000>;
458 interrupts = <GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH
459 GIC_SPI 417 IRQ_TYPE_LEVEL_HIGH
460 GIC_SPI 418 IRQ_TYPE_LEVEL_HIGH
461 GIC_SPI 419 IRQ_TYPE_LEVEL_HIGH
462 GIC_SPI 420 IRQ_TYPE_LEVEL_HIGH
463 GIC_SPI 421 IRQ_TYPE_LEVEL_HIGH
464 GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH
465 GIC_SPI 423 IRQ_TYPE_LEVEL_HIGH
466 GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH
467 GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH
468 GIC_SPI 426 IRQ_TYPE_LEVEL_HIGH
469 GIC_SPI 427 IRQ_TYPE_LEVEL_HIGH
470 GIC_SPI 428 IRQ_TYPE_LEVEL_HIGH
471 GIC_SPI 429 IRQ_TYPE_LEVEL_HIGH
472 GIC_SPI 430 IRQ_TYPE_LEVEL_HIGH
473 GIC_SPI 431 IRQ_TYPE_LEVEL_HIGH
474 GIC_SPI 397 IRQ_TYPE_LEVEL_HIGH>;
475 interrupt-names = "error",
476 "ch0", "ch1", "ch2", "ch3",
477 "ch4", "ch5", "ch6", "ch7",
478 "ch8", "ch9", "ch10", "ch11",
479 "ch12", "ch13", "ch14", "ch15";
480 clocks = <&cpg CPG_MOD 217>;
481 clock-names = "fck";
482 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
483 resets = <&cpg 217>;
484 #dma-cells = <1>;
485 dma-channels = <16>;
486 };
487
Biju Das9b33e302019-09-27 14:06:24 +0100488 avb: ethernet@e6800000 {
489 reg = <0 0xe6800000 0 0x800>;
490 /* placeholder */
491 };
492
493 can0: can@e6c30000 {
494 reg = <0 0xe6c30000 0 0x1000>;
495 /* placeholder */
496 };
497
498 can1: can@e6c38000 {
499 reg = <0 0xe6c38000 0 0x1000>;
500 /* placeholder */
501 };
502
503 canfd: can@e66c0000 {
504 reg = <0 0xe66c0000 0 0x8000>;
505 /* placeholder */
506 };
507
Biju Das83e76202019-09-30 09:18:44 +0100508 scif0: serial@e6e60000 {
509 compatible = "renesas,scif-r8a774b1",
510 "renesas,rcar-gen3-scif", "renesas,scif";
511 reg = <0 0xe6e60000 0 0x40>;
512 interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
513 clocks = <&cpg CPG_MOD 207>,
514 <&cpg CPG_CORE R8A774B1_CLK_S3D1>,
515 <&scif_clk>;
516 clock-names = "fck", "brg_int", "scif_clk";
517 dmas = <&dmac1 0x51>, <&dmac1 0x50>,
518 <&dmac2 0x51>, <&dmac2 0x50>;
519 dma-names = "tx", "rx", "tx", "rx";
520 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
521 resets = <&cpg 207>;
522 status = "disabled";
523 };
524
525 scif1: serial@e6e68000 {
526 compatible = "renesas,scif-r8a774b1",
527 "renesas,rcar-gen3-scif", "renesas,scif";
528 reg = <0 0xe6e68000 0 0x40>;
529 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
530 clocks = <&cpg CPG_MOD 206>,
531 <&cpg CPG_CORE R8A774B1_CLK_S3D1>,
532 <&scif_clk>;
533 clock-names = "fck", "brg_int", "scif_clk";
534 dmas = <&dmac1 0x53>, <&dmac1 0x52>,
535 <&dmac2 0x53>, <&dmac2 0x52>;
536 dma-names = "tx", "rx", "tx", "rx";
537 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
538 resets = <&cpg 206>;
539 status = "disabled";
540 };
541
Biju Das9b33e302019-09-27 14:06:24 +0100542 scif2: serial@e6e88000 {
543 compatible = "renesas,scif-r8a774b1",
544 "renesas,rcar-gen3-scif", "renesas,scif";
Biju Das83e76202019-09-30 09:18:44 +0100545 reg = <0 0xe6e88000 0 0x40>;
Biju Das9b33e302019-09-27 14:06:24 +0100546 interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
547 clocks = <&cpg CPG_MOD 310>,
548 <&cpg CPG_CORE R8A774B1_CLK_S3D1>,
549 <&scif_clk>;
550 clock-names = "fck", "brg_int", "scif_clk";
Biju Das83e76202019-09-30 09:18:44 +0100551 dmas = <&dmac1 0x13>, <&dmac1 0x12>,
552 <&dmac2 0x13>, <&dmac2 0x12>;
553 dma-names = "tx", "rx", "tx", "rx";
Biju Das9b33e302019-09-27 14:06:24 +0100554 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
555 resets = <&cpg 310>;
556 status = "disabled";
557 };
558
Biju Das83e76202019-09-30 09:18:44 +0100559 scif3: serial@e6c50000 {
560 compatible = "renesas,scif-r8a774b1",
561 "renesas,rcar-gen3-scif", "renesas,scif";
562 reg = <0 0xe6c50000 0 0x40>;
563 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
564 clocks = <&cpg CPG_MOD 204>,
565 <&cpg CPG_CORE R8A774B1_CLK_S3D1>,
566 <&scif_clk>;
567 clock-names = "fck", "brg_int", "scif_clk";
568 dmas = <&dmac0 0x57>, <&dmac0 0x56>;
569 dma-names = "tx", "rx";
570 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
571 resets = <&cpg 204>;
572 status = "disabled";
573 };
574
575 scif4: serial@e6c40000 {
576 compatible = "renesas,scif-r8a774b1",
577 "renesas,rcar-gen3-scif", "renesas,scif";
578 reg = <0 0xe6c40000 0 0x40>;
579 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
580 clocks = <&cpg CPG_MOD 203>,
581 <&cpg CPG_CORE R8A774B1_CLK_S3D1>,
582 <&scif_clk>;
583 clock-names = "fck", "brg_int", "scif_clk";
584 dmas = <&dmac0 0x59>, <&dmac0 0x58>;
585 dma-names = "tx", "rx";
586 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
587 resets = <&cpg 203>;
588 status = "disabled";
589 };
590
591 scif5: serial@e6f30000 {
592 compatible = "renesas,scif-r8a774b1",
593 "renesas,rcar-gen3-scif", "renesas,scif";
594 reg = <0 0xe6f30000 0 0x40>;
595 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
596 clocks = <&cpg CPG_MOD 202>,
597 <&cpg CPG_CORE R8A774B1_CLK_S3D1>,
598 <&scif_clk>;
599 clock-names = "fck", "brg_int", "scif_clk";
600 dmas = <&dmac1 0x5b>, <&dmac1 0x5a>,
601 <&dmac2 0x5b>, <&dmac2 0x5a>;
602 dma-names = "tx", "rx", "tx", "rx";
603 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
604 resets = <&cpg 202>;
605 status = "disabled";
606 };
607
Biju Das9b33e302019-09-27 14:06:24 +0100608 rcar_sound: sound@ec500000 {
609 reg = <0 0xec500000 0 0x1000>, /* SCU */
610 <0 0xec5a0000 0 0x100>, /* ADG */
611 <0 0xec540000 0 0x1000>, /* SSIU */
612 <0 0xec541000 0 0x280>, /* SSI */
613 <0 0xec760000 0 0x200>; /* Audio DMAC peri peri*/
614
615 rcar_sound,ssi {
616 ssi0: ssi-0 { };
617 ssi1: ssi-1 { };
618 ssi2: ssi-2 { };
619 ssi3: ssi-3 { };
620 ssi4: ssi-4 { };
621 ssi5: ssi-5 { };
622 ssi6: ssi-6 { };
623 ssi7: ssi-7 { };
624 ssi8: ssi-8 { };
625 ssi9: ssi-9 { };
626 };
627 };
628
629 xhci0: usb@ee000000 {
630 reg = <0 0xee000000 0 0xc00>;
631 /* placeholder */
632 };
633
634 usb3_peri0: usb@ee020000 {
635 reg = <0 0xee020000 0 0x400>;
636 /* placeholder */
637 };
638
639 ohci0: usb@ee080000 {
640 reg = <0 0xee080000 0 0x100>;
641 /* placeholder */
642 };
643
644 ohci1: usb@ee0a0000 {
645 reg = <0 0xee0a0000 0 0x100>;
646 /* placeholder */
647 };
648
649 ehci0: usb@ee080100 {
650 reg = <0 0xee080100 0 0x100>;
651 /* placeholder */
652 };
653
654 ehci1: usb@ee0a0100 {
655 reg = <0 0xee0a0100 0 0x100>;
656 /* placeholder */
657 };
658
659 usb2_phy0: usb-phy@ee080200 {
660 reg = <0 0xee080200 0 0x700>;
661 /* placeholder */
662 };
663
664 usb2_phy1: usb-phy@ee0a0200 {
665 reg = <0 0xee0a0200 0 0x700>;
666 /* placeholder */
667 };
668
669 sdhi0: sd@ee100000 {
670 reg = <0 0xee100000 0 0x2000>;
671 /* placeholder */
672 };
673
674 sdhi1: sd@ee120000 {
675 reg = <0 0xee120000 0 0x2000>;
676 /* placeholder */
677 };
678
679 sdhi2: sd@ee140000 {
680 reg = <0 0xee140000 0 0x2000>;
681 /* placeholder */
682 };
683
684 sdhi3: sd@ee160000 {
685 reg = <0 0xee160000 0 0x2000>;
686 /* placeholder */
687 };
688
689 gic: interrupt-controller@f1010000 {
690 compatible = "arm,gic-400";
691 #interrupt-cells = <3>;
692 #address-cells = <0>;
693 interrupt-controller;
694 reg = <0x0 0xf1010000 0 0x1000>,
695 <0x0 0xf1020000 0 0x20000>,
696 <0x0 0xf1040000 0 0x20000>,
697 <0x0 0xf1060000 0 0x20000>;
698 interrupts = <GIC_PPI 9
699 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
700 clocks = <&cpg CPG_MOD 408>;
701 clock-names = "clk";
702 power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
703 resets = <&cpg 408>;
704 };
705
706 pciec0: pcie@fe000000 {
707 reg = <0 0xfe000000 0 0x80000>;
708 #address-cells = <3>;
709 #size-cells = <2>;
710 bus-range = <0x00 0xff>;
711 /* placeholder */
712 };
713
714 pciec1: pcie@ee800000 {
715 reg = <0 0xee800000 0 0x80000>;
716 #address-cells = <3>;
717 #size-cells = <2>;
718 bus-range = <0x00 0xff>;
719 /* placeholder */
720 };
721
722 hdmi0: hdmi@fead0000 {
723 reg = <0 0xfead0000 0 0x10000>;
724
725 ports {
726 #address-cells = <1>;
727 #size-cells = <0>;
728
729 port@0 {
730 reg = <0>;
731 dw_hdmi0_in: endpoint {
732 };
733 };
734 port@1 {
735 reg = <1>;
736 };
737 };
738 };
739
740 du: display@feb00000 {
741 reg = <0 0xfeb00000 0 0x80000>;
742
743 ports {
744 #address-cells = <1>;
745 #size-cells = <0>;
746
747 port@0 {
748 reg = <0>;
749 du_out_rgb: endpoint {
750 };
751 };
752 port@1 {
753 reg = <1>;
754 du_out_hdmi0: endpoint {
755 };
756 };
757 port@2 {
758 reg = <2>;
759 du_out_lvds0: endpoint {
760 };
761 };
762 };
763 };
764
765 prr: chipid@fff00044 {
766 compatible = "renesas,prr";
767 reg = <0 0xfff00044 0 4>;
768 };
769 };
770
771 timer {
772 compatible = "arm,armv8-timer";
773 interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
774 <&gic GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
775 <&gic GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
776 <&gic GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
777 };
778
779 /* External USB clocks - can be overridden by the board */
780 usb3s0_clk: usb3s0 {
781 compatible = "fixed-clock";
782 #clock-cells = <0>;
783 clock-frequency = <0>;
784 };
785
786 usb_extal_clk: usb_extal {
787 compatible = "fixed-clock";
788 #clock-cells = <0>;
789 clock-frequency = <0>;
790 };
791};