1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the R-Car H1 (R8A77790) SoC
5 * Copyright (C) 2013 Renesas Solutions Corp.
6 * Copyright (C) 2013 Simon Horman
9 #include <dt-bindings/clock/r8a7779-clock.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/power/r8a7779-sysc.h>
15 compatible = "renesas,r8a7779";
16 interrupt-parent = <&gic>;
26 compatible = "arm,cortex-a9";
28 clock-frequency = <1000000000>;
29 clocks = <&cpg_clocks R8A7779_CLK_Z>;
33 compatible = "arm,cortex-a9";
35 clock-frequency = <1000000000>;
36 clocks = <&cpg_clocks R8A7779_CLK_Z>;
37 power-domains = <&sysc R8A7779_PD_ARM1>;
41 compatible = "arm,cortex-a9";
43 clock-frequency = <1000000000>;
44 clocks = <&cpg_clocks R8A7779_CLK_Z>;
45 power-domains = <&sysc R8A7779_PD_ARM2>;
49 compatible = "arm,cortex-a9";
51 clock-frequency = <1000000000>;
52 clocks = <&cpg_clocks R8A7779_CLK_Z>;
53 power-domains = <&sysc R8A7779_PD_ARM3>;
63 gic: interrupt-controller@f0001000 {
64 compatible = "arm,cortex-a9-gic";
65 #interrupt-cells = <3>;
67 reg = <0xf0001000 0x1000>,
72 compatible = "arm,cortex-a9-twd-timer";
73 reg = <0xf0000600 0x20>;
74 interrupts = <GIC_PPI 13
75 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
76 clocks = <&cpg_clocks R8A7779_CLK_ZS>;
79 gpio0: gpio@ffc40000 {
80 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
81 reg = <0xffc40000 0x2c>;
82 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
85 gpio-ranges = <&pfc 0 0 32>;
86 #interrupt-cells = <2>;
90 gpio1: gpio@ffc41000 {
91 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
92 reg = <0xffc41000 0x2c>;
93 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
96 gpio-ranges = <&pfc 0 32 32>;
97 #interrupt-cells = <2>;
101 gpio2: gpio@ffc42000 {
102 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
103 reg = <0xffc42000 0x2c>;
104 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
107 gpio-ranges = <&pfc 0 64 32>;
108 #interrupt-cells = <2>;
109 interrupt-controller;
112 gpio3: gpio@ffc43000 {
113 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
114 reg = <0xffc43000 0x2c>;
115 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
118 gpio-ranges = <&pfc 0 96 32>;
119 #interrupt-cells = <2>;
120 interrupt-controller;
123 gpio4: gpio@ffc44000 {
124 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
125 reg = <0xffc44000 0x2c>;
126 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
129 gpio-ranges = <&pfc 0 128 32>;
130 #interrupt-cells = <2>;
131 interrupt-controller;
134 gpio5: gpio@ffc45000 {
135 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
136 reg = <0xffc45000 0x2c>;
137 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
140 gpio-ranges = <&pfc 0 160 32>;
141 #interrupt-cells = <2>;
142 interrupt-controller;
145 gpio6: gpio@ffc46000 {
146 compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
147 reg = <0xffc46000 0x2c>;
148 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
151 gpio-ranges = <&pfc 0 192 9>;
152 #interrupt-cells = <2>;
153 interrupt-controller;
156 irqpin0: interrupt-controller@fe78001c {
157 compatible = "renesas,intc-irqpin-r8a7779", "renesas,intc-irqpin";
158 #interrupt-cells = <2>;
160 interrupt-controller;
161 reg = <0xfe78001c 4>,
167 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH
168 GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH
169 GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH
170 GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
171 sense-bitfield-width = <2>;
175 #address-cells = <1>;
177 compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
178 reg = <0xffc70000 0x1000>;
179 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
180 clocks = <&mstp0_clks R8A7779_CLK_I2C0>;
181 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
186 #address-cells = <1>;
188 compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
189 reg = <0xffc71000 0x1000>;
190 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
191 clocks = <&mstp0_clks R8A7779_CLK_I2C1>;
192 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
197 #address-cells = <1>;
199 compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
200 reg = <0xffc72000 0x1000>;
201 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
202 clocks = <&mstp0_clks R8A7779_CLK_I2C2>;
203 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
208 #address-cells = <1>;
210 compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
211 reg = <0xffc73000 0x1000>;
212 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
213 clocks = <&mstp0_clks R8A7779_CLK_I2C3>;
214 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
218 scif0: serial@ffe40000 {
219 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
221 reg = <0xffe40000 0x100>;
222 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
223 clocks = <&mstp0_clks R8A7779_CLK_SCIF0>,
224 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
225 clock-names = "fck", "brg_int", "scif_clk";
226 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
230 scif1: serial@ffe41000 {
231 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
233 reg = <0xffe41000 0x100>;
234 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
235 clocks = <&mstp0_clks R8A7779_CLK_SCIF1>,
236 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
237 clock-names = "fck", "brg_int", "scif_clk";
238 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
242 scif2: serial@ffe42000 {
243 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
245 reg = <0xffe42000 0x100>;
246 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
247 clocks = <&mstp0_clks R8A7779_CLK_SCIF2>,
248 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
249 clock-names = "fck", "brg_int", "scif_clk";
250 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
254 scif3: serial@ffe43000 {
255 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
257 reg = <0xffe43000 0x100>;
258 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
259 clocks = <&mstp0_clks R8A7779_CLK_SCIF3>,
260 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
261 clock-names = "fck", "brg_int", "scif_clk";
262 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
266 scif4: serial@ffe44000 {
267 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
269 reg = <0xffe44000 0x100>;
270 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
271 clocks = <&mstp0_clks R8A7779_CLK_SCIF4>,
272 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
273 clock-names = "fck", "brg_int", "scif_clk";
274 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
278 scif5: serial@ffe45000 {
279 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
281 reg = <0xffe45000 0x100>;
282 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
283 clocks = <&mstp0_clks R8A7779_CLK_SCIF5>,
284 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
285 clock-names = "fck", "brg_int", "scif_clk";
286 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
290 hscif0: serial@ffe48000 {
291 compatible = "renesas,hscif-r8a7779",
292 "renesas,rcar-gen1-hscif", "renesas,hscif";
293 reg = <0xffe48000 96>;
294 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
295 clocks = <&mstp0_clks R8A7779_CLK_HSCIF0>,
296 <&cpg_clocks R8A7779_CLK_S>,
298 clock-names = "fck", "brg_int", "scif_clk";
299 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
303 hscif1: serial@ffe49000 {
304 compatible = "renesas,hscif-r8a7779",
305 "renesas,rcar-gen1-hscif", "renesas,hscif";
306 reg = <0xffe49000 96>;
307 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
308 clocks = <&mstp0_clks R8A7779_CLK_HSCIF1>,
309 <&cpg_clocks R8A7779_CLK_S>,
311 clock-names = "fck", "brg_int", "scif_clk";
312 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
316 pfc: pin-controller@fffc0000 {
317 compatible = "renesas,pfc-r8a7779";
318 reg = <0xfffc0000 0x23c>;
322 compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
323 reg = <0xffc48000 0x38>;
326 tmu0: timer@ffd80000 {
327 compatible = "renesas,tmu-r8a7779", "renesas,tmu";
328 reg = <0xffd80000 0x30>;
329 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
330 <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
331 <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
332 clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
334 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
336 #renesas,channels = <3>;
341 tmu1: timer@ffd81000 {
342 compatible = "renesas,tmu-r8a7779", "renesas,tmu";
343 reg = <0xffd81000 0x30>;
344 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
345 <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
346 <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
347 clocks = <&mstp0_clks R8A7779_CLK_TMU1>;
349 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
351 #renesas,channels = <3>;
356 tmu2: timer@ffd82000 {
357 compatible = "renesas,tmu-r8a7779", "renesas,tmu";
358 reg = <0xffd82000 0x30>;
359 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
360 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
361 <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
362 clocks = <&mstp0_clks R8A7779_CLK_TMU2>;
364 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
366 #renesas,channels = <3>;
371 sata: sata@fc600000 {
372 compatible = "renesas,sata-r8a7779", "renesas,rcar-sata";
373 reg = <0xfc600000 0x200000>;
374 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
375 clocks = <&mstp1_clks R8A7779_CLK_SATA>;
376 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
381 compatible = "renesas,sdhi-r8a7779",
382 "renesas,rcar-gen1-sdhi";
383 reg = <0xffe4c000 0x100>;
384 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
385 clocks = <&mstp3_clks R8A7779_CLK_SDHI0>;
386 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
391 compatible = "renesas,sdhi-r8a7779",
392 "renesas,rcar-gen1-sdhi";
393 reg = <0xffe4d000 0x100>;
394 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
395 clocks = <&mstp3_clks R8A7779_CLK_SDHI1>;
396 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
401 compatible = "renesas,sdhi-r8a7779",
402 "renesas,rcar-gen1-sdhi";
403 reg = <0xffe4e000 0x100>;
404 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
405 clocks = <&mstp3_clks R8A7779_CLK_SDHI2>;
406 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
411 compatible = "renesas,sdhi-r8a7779",
412 "renesas,rcar-gen1-sdhi";
413 reg = <0xffe4f000 0x100>;
414 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
415 clocks = <&mstp3_clks R8A7779_CLK_SDHI3>;
416 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
420 hspi0: spi@fffc7000 {
421 compatible = "renesas,hspi-r8a7779", "renesas,hspi";
422 reg = <0xfffc7000 0x18>;
423 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
424 #address-cells = <1>;
426 clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
427 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
431 hspi1: spi@fffc8000 {
432 compatible = "renesas,hspi-r8a7779", "renesas,hspi";
433 reg = <0xfffc8000 0x18>;
434 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
435 #address-cells = <1>;
437 clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
438 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
442 hspi2: spi@fffc6000 {
443 compatible = "renesas,hspi-r8a7779", "renesas,hspi";
444 reg = <0xfffc6000 0x18>;
445 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
446 #address-cells = <1>;
448 clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
449 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
453 du: display@fff80000 {
454 compatible = "renesas,du-r8a7779";
455 reg = <0xfff80000 0x40000>;
456 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
457 clocks = <&mstp1_clks R8A7779_CLK_DU>;
458 power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
462 #address-cells = <1>;
467 du_out_rgb0: endpoint {
472 du_out_rgb1: endpoint {
479 #address-cells = <1>;
483 /* External root clock */
485 compatible = "fixed-clock";
487 /* This value must be overriden by the board. */
488 clock-frequency = <0>;
491 /* External SCIF clock */
493 compatible = "fixed-clock";
495 /* This value must be overridden by the board. */
496 clock-frequency = <0>;
499 /* Special CPG clocks */
500 cpg_clocks: clocks@ffc80000 {
501 compatible = "renesas,r8a7779-cpg-clocks";
502 reg = <0xffc80000 0x30>;
503 clocks = <&extal_clk>;
505 clock-output-names = "plla", "z", "zs", "s",
506 "s1", "p", "b", "out";
507 #power-domain-cells = <0>;
510 /* Fixed factor clocks */
512 compatible = "fixed-factor-clock";
513 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
519 compatible = "fixed-factor-clock";
520 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
526 compatible = "fixed-factor-clock";
527 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
533 compatible = "fixed-factor-clock";
534 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
541 mstp0_clks: clocks@ffc80030 {
542 compatible = "renesas,r8a7779-mstp-clocks",
543 "renesas,cpg-mstp-clocks";
544 reg = <0xffc80030 4>;
545 clocks = <&cpg_clocks R8A7779_CLK_S>,
546 <&cpg_clocks R8A7779_CLK_P>,
547 <&cpg_clocks R8A7779_CLK_P>,
548 <&cpg_clocks R8A7779_CLK_P>,
549 <&cpg_clocks R8A7779_CLK_S>,
550 <&cpg_clocks R8A7779_CLK_S>,
551 <&cpg_clocks R8A7779_CLK_P>,
552 <&cpg_clocks R8A7779_CLK_P>,
553 <&cpg_clocks R8A7779_CLK_P>,
554 <&cpg_clocks R8A7779_CLK_P>,
555 <&cpg_clocks R8A7779_CLK_P>,
556 <&cpg_clocks R8A7779_CLK_P>,
557 <&cpg_clocks R8A7779_CLK_P>,
558 <&cpg_clocks R8A7779_CLK_P>,
559 <&cpg_clocks R8A7779_CLK_P>,
560 <&cpg_clocks R8A7779_CLK_P>;
563 R8A7779_CLK_HSPI R8A7779_CLK_TMU2
564 R8A7779_CLK_TMU1 R8A7779_CLK_TMU0
565 R8A7779_CLK_HSCIF1 R8A7779_CLK_HSCIF0
566 R8A7779_CLK_SCIF5 R8A7779_CLK_SCIF4
567 R8A7779_CLK_SCIF3 R8A7779_CLK_SCIF2
568 R8A7779_CLK_SCIF1 R8A7779_CLK_SCIF0
569 R8A7779_CLK_I2C3 R8A7779_CLK_I2C2
570 R8A7779_CLK_I2C1 R8A7779_CLK_I2C0
573 "hspi", "tmu2", "tmu1", "tmu0", "hscif1",
574 "hscif0", "scif5", "scif4", "scif3", "scif2",
575 "scif1", "scif0", "i2c3", "i2c2", "i2c1",
578 mstp1_clks: clocks@ffc80034 {
579 compatible = "renesas,r8a7779-mstp-clocks",
580 "renesas,cpg-mstp-clocks";
581 reg = <0xffc80034 4>, <0xffc80044 4>;
582 clocks = <&cpg_clocks R8A7779_CLK_P>,
583 <&cpg_clocks R8A7779_CLK_P>,
584 <&cpg_clocks R8A7779_CLK_S>,
585 <&cpg_clocks R8A7779_CLK_S>,
586 <&cpg_clocks R8A7779_CLK_S>,
587 <&cpg_clocks R8A7779_CLK_S>,
588 <&cpg_clocks R8A7779_CLK_P>,
589 <&cpg_clocks R8A7779_CLK_P>,
590 <&cpg_clocks R8A7779_CLK_P>,
591 <&cpg_clocks R8A7779_CLK_S>;
594 R8A7779_CLK_USB01 R8A7779_CLK_USB2
595 R8A7779_CLK_DU R8A7779_CLK_VIN2
596 R8A7779_CLK_VIN1 R8A7779_CLK_VIN0
597 R8A7779_CLK_ETHER R8A7779_CLK_SATA
598 R8A7779_CLK_PCIE R8A7779_CLK_VIN3
607 mstp3_clks: clocks@ffc8003c {
608 compatible = "renesas,r8a7779-mstp-clocks",
609 "renesas,cpg-mstp-clocks";
610 reg = <0xffc8003c 4>;
611 clocks = <&s4_clk>, <&s4_clk>, <&s4_clk>, <&s4_clk>,
612 <&s4_clk>, <&s4_clk>;
615 R8A7779_CLK_SDHI3 R8A7779_CLK_SDHI2
616 R8A7779_CLK_SDHI1 R8A7779_CLK_SDHI0
617 R8A7779_CLK_MMC1 R8A7779_CLK_MMC0
620 "sdhi3", "sdhi2", "sdhi1", "sdhi0",
625 prr: chipid@ff000044 {
626 compatible = "renesas,prr";
627 reg = <0xff000044 4>;
630 rst: reset-controller@ffcc0000 {
631 compatible = "renesas,r8a7779-reset-wdt";
632 reg = <0xffcc0000 0x48>;
635 sysc: system-controller@ffd85000 {
636 compatible = "renesas,r8a7779-sysc";
637 reg = <0xffd85000 0x0200>;
638 #power-domain-cells = <1>;