2 * Device Tree Source for Renesas r8a7779
4 * Copyright (C) 2013 Renesas Solutions Corp.
5 * Copyright (C) 2013 Simon Horman
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.
12 /include/ "skeleton.dtsi"
14 #include <dt-bindings/clock/r8a7779-clock.h>
15 #include <dt-bindings/interrupt-controller/arm-gic.h>
16 #include <dt-bindings/interrupt-controller/irq.h>
19 compatible = "renesas,r8a7779";
20 interrupt-parent = <&gic>;
28 compatible = "arm,cortex-a9";
30 clock-frequency = <1000000000>;
34 compatible = "arm,cortex-a9";
36 clock-frequency = <1000000000>;
40 compatible = "arm,cortex-a9";
42 clock-frequency = <1000000000>;
46 compatible = "arm,cortex-a9";
48 clock-frequency = <1000000000>;
58 gic: interrupt-controller@f0001000 {
59 compatible = "arm,cortex-a9-gic";
60 #interrupt-cells = <3>;
62 reg = <0xf0001000 0x1000>,
67 compatible = "arm,cortex-a9-twd-timer";
68 reg = <0xf0000600 0x20>;
69 interrupts = <GIC_PPI 13
70 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
71 clocks = <&cpg_clocks R8A7779_CLK_ZS>;
74 gpio0: gpio@ffc40000 {
75 compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
76 reg = <0xffc40000 0x2c>;
77 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
80 gpio-ranges = <&pfc 0 0 32>;
81 #interrupt-cells = <2>;
85 gpio1: gpio@ffc41000 {
86 compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
87 reg = <0xffc41000 0x2c>;
88 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
91 gpio-ranges = <&pfc 0 32 32>;
92 #interrupt-cells = <2>;
96 gpio2: gpio@ffc42000 {
97 compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
98 reg = <0xffc42000 0x2c>;
99 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
102 gpio-ranges = <&pfc 0 64 32>;
103 #interrupt-cells = <2>;
104 interrupt-controller;
107 gpio3: gpio@ffc43000 {
108 compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
109 reg = <0xffc43000 0x2c>;
110 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
113 gpio-ranges = <&pfc 0 96 32>;
114 #interrupt-cells = <2>;
115 interrupt-controller;
118 gpio4: gpio@ffc44000 {
119 compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
120 reg = <0xffc44000 0x2c>;
121 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
124 gpio-ranges = <&pfc 0 128 32>;
125 #interrupt-cells = <2>;
126 interrupt-controller;
129 gpio5: gpio@ffc45000 {
130 compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
131 reg = <0xffc45000 0x2c>;
132 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
135 gpio-ranges = <&pfc 0 160 32>;
136 #interrupt-cells = <2>;
137 interrupt-controller;
140 gpio6: gpio@ffc46000 {
141 compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
142 reg = <0xffc46000 0x2c>;
143 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
146 gpio-ranges = <&pfc 0 192 9>;
147 #interrupt-cells = <2>;
148 interrupt-controller;
151 irqpin0: interrupt-controller@fe78001c {
152 compatible = "renesas,intc-irqpin-r8a7779", "renesas,intc-irqpin";
153 #interrupt-cells = <2>;
155 interrupt-controller;
156 reg = <0xfe78001c 4>,
162 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH
163 GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH
164 GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH
165 GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
166 sense-bitfield-width = <2>;
170 #address-cells = <1>;
172 compatible = "renesas,i2c-r8a7779";
173 reg = <0xffc70000 0x1000>;
174 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
175 clocks = <&mstp0_clks R8A7779_CLK_I2C0>;
176 power-domains = <&cpg_clocks>;
181 #address-cells = <1>;
183 compatible = "renesas,i2c-r8a7779";
184 reg = <0xffc71000 0x1000>;
185 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
186 clocks = <&mstp0_clks R8A7779_CLK_I2C1>;
187 power-domains = <&cpg_clocks>;
192 #address-cells = <1>;
194 compatible = "renesas,i2c-r8a7779";
195 reg = <0xffc72000 0x1000>;
196 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
197 clocks = <&mstp0_clks R8A7779_CLK_I2C2>;
198 power-domains = <&cpg_clocks>;
203 #address-cells = <1>;
205 compatible = "renesas,i2c-r8a7779";
206 reg = <0xffc73000 0x1000>;
207 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
208 clocks = <&mstp0_clks R8A7779_CLK_I2C3>;
209 power-domains = <&cpg_clocks>;
213 scif0: serial@ffe40000 {
214 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
216 reg = <0xffe40000 0x100>;
217 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
218 clocks = <&mstp0_clks R8A7779_CLK_SCIF0>,
219 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
220 clock-names = "fck", "brg_int", "scif_clk";
221 power-domains = <&cpg_clocks>;
225 scif1: serial@ffe41000 {
226 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
228 reg = <0xffe41000 0x100>;
229 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
230 clocks = <&mstp0_clks R8A7779_CLK_SCIF1>,
231 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
232 clock-names = "fck", "brg_int", "scif_clk";
233 power-domains = <&cpg_clocks>;
237 scif2: serial@ffe42000 {
238 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
240 reg = <0xffe42000 0x100>;
241 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
242 clocks = <&mstp0_clks R8A7779_CLK_SCIF2>,
243 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
244 clock-names = "fck", "brg_int", "scif_clk";
245 power-domains = <&cpg_clocks>;
249 scif3: serial@ffe43000 {
250 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
252 reg = <0xffe43000 0x100>;
253 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
254 clocks = <&mstp0_clks R8A7779_CLK_SCIF3>,
255 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
256 clock-names = "fck", "brg_int", "scif_clk";
257 power-domains = <&cpg_clocks>;
261 scif4: serial@ffe44000 {
262 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
264 reg = <0xffe44000 0x100>;
265 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
266 clocks = <&mstp0_clks R8A7779_CLK_SCIF4>,
267 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
268 clock-names = "fck", "brg_int", "scif_clk";
269 power-domains = <&cpg_clocks>;
273 scif5: serial@ffe45000 {
274 compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
276 reg = <0xffe45000 0x100>;
277 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
278 clocks = <&mstp0_clks R8A7779_CLK_SCIF5>,
279 <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
280 clock-names = "fck", "brg_int", "scif_clk";
281 power-domains = <&cpg_clocks>;
286 compatible = "renesas,pfc-r8a7779";
287 reg = <0xfffc0000 0x23c>;
291 compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
292 reg = <0xffc48000 0x38>;
295 tmu0: timer@ffd80000 {
296 compatible = "renesas,tmu-r8a7779", "renesas,tmu";
297 reg = <0xffd80000 0x30>;
298 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
299 <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
300 <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
301 clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
303 power-domains = <&cpg_clocks>;
305 #renesas,channels = <3>;
310 tmu1: timer@ffd81000 {
311 compatible = "renesas,tmu-r8a7779", "renesas,tmu";
312 reg = <0xffd81000 0x30>;
313 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
314 <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
315 <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
316 clocks = <&mstp0_clks R8A7779_CLK_TMU1>;
318 power-domains = <&cpg_clocks>;
320 #renesas,channels = <3>;
325 tmu2: timer@ffd82000 {
326 compatible = "renesas,tmu-r8a7779", "renesas,tmu";
327 reg = <0xffd82000 0x30>;
328 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
329 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
330 <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
331 clocks = <&mstp0_clks R8A7779_CLK_TMU2>;
333 power-domains = <&cpg_clocks>;
335 #renesas,channels = <3>;
340 sata: sata@fc600000 {
341 compatible = "renesas,sata-r8a7779", "renesas,rcar-sata";
342 reg = <0xfc600000 0x2000>;
343 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
344 clocks = <&mstp1_clks R8A7779_CLK_SATA>;
345 power-domains = <&cpg_clocks>;
349 compatible = "renesas,sdhi-r8a7779";
350 reg = <0xffe4c000 0x100>;
351 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
352 clocks = <&mstp3_clks R8A7779_CLK_SDHI0>;
353 power-domains = <&cpg_clocks>;
358 compatible = "renesas,sdhi-r8a7779";
359 reg = <0xffe4d000 0x100>;
360 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
361 clocks = <&mstp3_clks R8A7779_CLK_SDHI1>;
362 power-domains = <&cpg_clocks>;
367 compatible = "renesas,sdhi-r8a7779";
368 reg = <0xffe4e000 0x100>;
369 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
370 clocks = <&mstp3_clks R8A7779_CLK_SDHI2>;
371 power-domains = <&cpg_clocks>;
376 compatible = "renesas,sdhi-r8a7779";
377 reg = <0xffe4f000 0x100>;
378 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
379 clocks = <&mstp3_clks R8A7779_CLK_SDHI3>;
380 power-domains = <&cpg_clocks>;
384 hspi0: spi@fffc7000 {
385 compatible = "renesas,hspi-r8a7779", "renesas,hspi";
386 reg = <0xfffc7000 0x18>;
387 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
388 #address-cells = <1>;
390 clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
391 power-domains = <&cpg_clocks>;
395 hspi1: spi@fffc8000 {
396 compatible = "renesas,hspi-r8a7779", "renesas,hspi";
397 reg = <0xfffc8000 0x18>;
398 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
399 #address-cells = <1>;
401 clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
402 power-domains = <&cpg_clocks>;
406 hspi2: spi@fffc6000 {
407 compatible = "renesas,hspi-r8a7779", "renesas,hspi";
408 reg = <0xfffc6000 0x18>;
409 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
410 #address-cells = <1>;
412 clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
413 power-domains = <&cpg_clocks>;
417 du: display@fff80000 {
418 compatible = "renesas,du-r8a7779";
419 reg = <0 0xfff80000 0 0x40000>;
420 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
421 clocks = <&mstp1_clks R8A7779_CLK_DU>;
422 power-domains = <&cpg_clocks>;
426 #address-cells = <1>;
431 du_out_rgb0: endpoint {
436 du_out_rgb1: endpoint {
443 #address-cells = <1>;
447 /* External root clock */
448 extal_clk: extal_clk {
449 compatible = "fixed-clock";
451 /* This value must be overriden by the board. */
452 clock-frequency = <0>;
453 clock-output-names = "extal";
456 /* External SCIF clock */
458 compatible = "fixed-clock";
460 /* This value must be overridden by the board. */
461 clock-frequency = <0>;
465 /* Special CPG clocks */
466 cpg_clocks: clocks@ffc80000 {
467 compatible = "renesas,r8a7779-cpg-clocks";
468 reg = <0xffc80000 0x30>;
469 clocks = <&extal_clk>;
471 clock-output-names = "plla", "z", "zs", "s",
472 "s1", "p", "b", "out";
473 #power-domain-cells = <0>;
476 /* Fixed factor clocks */
478 compatible = "fixed-factor-clock";
479 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
483 clock-output-names = "i";
486 compatible = "fixed-factor-clock";
487 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
491 clock-output-names = "s3";
494 compatible = "fixed-factor-clock";
495 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
499 clock-output-names = "s4";
502 compatible = "fixed-factor-clock";
503 clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
507 clock-output-names = "g";
511 mstp0_clks: clocks@ffc80030 {
512 compatible = "renesas,r8a7779-mstp-clocks",
513 "renesas,cpg-mstp-clocks";
514 reg = <0xffc80030 4>;
515 clocks = <&cpg_clocks R8A7779_CLK_S>,
516 <&cpg_clocks R8A7779_CLK_P>,
517 <&cpg_clocks R8A7779_CLK_P>,
518 <&cpg_clocks R8A7779_CLK_P>,
519 <&cpg_clocks R8A7779_CLK_S>,
520 <&cpg_clocks R8A7779_CLK_S>,
521 <&cpg_clocks R8A7779_CLK_P>,
522 <&cpg_clocks R8A7779_CLK_P>,
523 <&cpg_clocks R8A7779_CLK_P>,
524 <&cpg_clocks R8A7779_CLK_P>,
525 <&cpg_clocks R8A7779_CLK_P>,
526 <&cpg_clocks R8A7779_CLK_P>,
527 <&cpg_clocks R8A7779_CLK_P>,
528 <&cpg_clocks R8A7779_CLK_P>,
529 <&cpg_clocks R8A7779_CLK_P>,
530 <&cpg_clocks R8A7779_CLK_P>;
533 R8A7779_CLK_HSPI R8A7779_CLK_TMU2
534 R8A7779_CLK_TMU1 R8A7779_CLK_TMU0
535 R8A7779_CLK_HSCIF1 R8A7779_CLK_HSCIF0
536 R8A7779_CLK_SCIF5 R8A7779_CLK_SCIF4
537 R8A7779_CLK_SCIF3 R8A7779_CLK_SCIF2
538 R8A7779_CLK_SCIF1 R8A7779_CLK_SCIF0
539 R8A7779_CLK_I2C3 R8A7779_CLK_I2C2
540 R8A7779_CLK_I2C1 R8A7779_CLK_I2C0
543 "hspi", "tmu2", "tmu1", "tmu0", "hscif1",
544 "hscif0", "scif5", "scif4", "scif3", "scif2",
545 "scif1", "scif0", "i2c3", "i2c2", "i2c1",
548 mstp1_clks: clocks@ffc80034 {
549 compatible = "renesas,r8a7779-mstp-clocks",
550 "renesas,cpg-mstp-clocks";
551 reg = <0xffc80034 4>, <0xffc80044 4>;
552 clocks = <&cpg_clocks R8A7779_CLK_P>,
553 <&cpg_clocks R8A7779_CLK_P>,
554 <&cpg_clocks R8A7779_CLK_S>,
555 <&cpg_clocks R8A7779_CLK_S>,
556 <&cpg_clocks R8A7779_CLK_S>,
557 <&cpg_clocks R8A7779_CLK_S>,
558 <&cpg_clocks R8A7779_CLK_P>,
559 <&cpg_clocks R8A7779_CLK_P>,
560 <&cpg_clocks R8A7779_CLK_P>,
561 <&cpg_clocks R8A7779_CLK_S>;
564 R8A7779_CLK_USB01 R8A7779_CLK_USB2
565 R8A7779_CLK_DU R8A7779_CLK_VIN2
566 R8A7779_CLK_VIN1 R8A7779_CLK_VIN0
567 R8A7779_CLK_ETHER R8A7779_CLK_SATA
568 R8A7779_CLK_PCIE R8A7779_CLK_VIN3
577 mstp3_clks: clocks@ffc8003c {
578 compatible = "renesas,r8a7779-mstp-clocks",
579 "renesas,cpg-mstp-clocks";
580 reg = <0xffc8003c 4>;
581 clocks = <&s4_clk>, <&s4_clk>, <&s4_clk>, <&s4_clk>,
582 <&s4_clk>, <&s4_clk>;
585 R8A7779_CLK_SDHI3 R8A7779_CLK_SDHI2
586 R8A7779_CLK_SDHI1 R8A7779_CLK_SDHI0
587 R8A7779_CLK_MMC1 R8A7779_CLK_MMC0
590 "sdhi3", "sdhi2", "sdhi1", "sdhi0",