2 * Device Tree Source for Renesas r8a7778
4 * Copyright (C) 2013 Renesas Solutions Corp.
5 * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
9 * Copyright (C) 2013 Renesas Solutions Corp.
10 * Copyright (C) 2013 Simon Horman
12 * This file is licensed under the terms of the GNU General Public License
13 * version 2. This program is licensed "as is" without any warranty of any
14 * kind, whether express or implied.
17 /include/ "skeleton.dtsi"
19 #include <dt-bindings/clock/r8a7778-clock.h>
20 #include <dt-bindings/interrupt-controller/irq.h>
23 compatible = "renesas,r8a7778";
24 interrupt-parent = <&gic>;
32 compatible = "arm,cortex-a9";
34 clock-frequency = <800000000>;
44 gic: interrupt-controller@fe438000 {
45 compatible = "arm,cortex-a9-gic";
46 #interrupt-cells = <3>;
48 reg = <0xfe438000 0x1000>,
52 /* irqpin: IRQ0 - IRQ3 */
53 irqpin: irqpin@fe78001c {
54 compatible = "renesas,intc-irqpin-r8a7778", "renesas,intc-irqpin";
55 #interrupt-cells = <2>;
57 status = "disabled"; /* default off */
63 interrupts = <0 27 IRQ_TYPE_LEVEL_HIGH
64 0 28 IRQ_TYPE_LEVEL_HIGH
65 0 29 IRQ_TYPE_LEVEL_HIGH
66 0 30 IRQ_TYPE_LEVEL_HIGH>;
67 sense-bitfield-width = <2>;
70 gpio0: gpio@ffc40000 {
71 compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
72 reg = <0xffc40000 0x2c>;
73 interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>;
76 gpio-ranges = <&pfc 0 0 32>;
77 #interrupt-cells = <2>;
81 gpio1: gpio@ffc41000 {
82 compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
83 reg = <0xffc41000 0x2c>;
84 interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>;
87 gpio-ranges = <&pfc 0 32 32>;
88 #interrupt-cells = <2>;
92 gpio2: gpio@ffc42000 {
93 compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
94 reg = <0xffc42000 0x2c>;
95 interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>;
98 gpio-ranges = <&pfc 0 64 32>;
99 #interrupt-cells = <2>;
100 interrupt-controller;
103 gpio3: gpio@ffc43000 {
104 compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
105 reg = <0xffc43000 0x2c>;
106 interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>;
109 gpio-ranges = <&pfc 0 96 32>;
110 #interrupt-cells = <2>;
111 interrupt-controller;
114 gpio4: gpio@ffc44000 {
115 compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
116 reg = <0xffc44000 0x2c>;
117 interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>;
120 gpio-ranges = <&pfc 0 128 27>;
121 #interrupt-cells = <2>;
122 interrupt-controller;
126 compatible = "renesas,pfc-r8a7778";
127 reg = <0xfffc0000 0x118>;
131 #address-cells = <1>;
133 compatible = "renesas,i2c-r8a7778";
134 reg = <0xffc70000 0x1000>;
135 interrupts = <0 67 IRQ_TYPE_LEVEL_HIGH>;
140 #address-cells = <1>;
142 compatible = "renesas,i2c-r8a7778";
143 reg = <0xffc71000 0x1000>;
144 interrupts = <0 78 IRQ_TYPE_LEVEL_HIGH>;
149 #address-cells = <1>;
151 compatible = "renesas,i2c-r8a7778";
152 reg = <0xffc72000 0x1000>;
153 interrupts = <0 76 IRQ_TYPE_LEVEL_HIGH>;
158 #address-cells = <1>;
160 compatible = "renesas,i2c-r8a7778";
161 reg = <0xffc73000 0x1000>;
162 interrupts = <0 77 IRQ_TYPE_LEVEL_HIGH>;
166 tmu0: timer@ffd80000 {
167 compatible = "renesas,tmu-r8a7778", "renesas,tmu";
168 reg = <0xffd80000 0x30>;
169 interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>,
170 <0 33 IRQ_TYPE_LEVEL_HIGH>,
171 <0 34 IRQ_TYPE_LEVEL_HIGH>;
173 #renesas,channels = <3>;
178 tmu1: timer@ffd81000 {
179 compatible = "renesas,tmu-r8a7778", "renesas,tmu";
180 reg = <0xffd81000 0x30>;
181 interrupts = <0 36 IRQ_TYPE_LEVEL_HIGH>,
182 <0 37 IRQ_TYPE_LEVEL_HIGH>,
183 <0 38 IRQ_TYPE_LEVEL_HIGH>;
185 #renesas,channels = <3>;
190 tmu2: timer@ffd82000 {
191 compatible = "renesas,tmu-r8a7778", "renesas,tmu";
192 reg = <0xffd82000 0x30>;
193 interrupts = <0 40 IRQ_TYPE_LEVEL_HIGH>,
194 <0 41 IRQ_TYPE_LEVEL_HIGH>,
195 <0 42 IRQ_TYPE_LEVEL_HIGH>;
197 #renesas,channels = <3>;
202 scif0: serial@ffe40000 {
203 compatible = "renesas,scif-r8a7778", "renesas,scif";
204 reg = <0xffe40000 0x100>;
205 interrupts = <0 70 IRQ_TYPE_LEVEL_HIGH>;
209 scif1: serial@ffe41000 {
210 compatible = "renesas,scif-r8a7778", "renesas,scif";
211 reg = <0xffe41000 0x100>;
212 interrupts = <0 71 IRQ_TYPE_LEVEL_HIGH>;
216 scif2: serial@ffe42000 {
217 compatible = "renesas,scif-r8a7778", "renesas,scif";
218 reg = <0xffe42000 0x100>;
219 interrupts = <0 72 IRQ_TYPE_LEVEL_HIGH>;
223 scif3: serial@ffe43000 {
224 compatible = "renesas,scif-r8a7778", "renesas,scif";
225 reg = <0xffe43000 0x100>;
226 interrupts = <0 73 IRQ_TYPE_LEVEL_HIGH>;
230 scif4: serial@ffe44000 {
231 compatible = "renesas,scif-r8a7778", "renesas,scif";
232 reg = <0xffe44000 0x100>;
233 interrupts = <0 74 IRQ_TYPE_LEVEL_HIGH>;
237 scif5: serial@ffe45000 {
238 compatible = "renesas,scif-r8a7778", "renesas,scif";
239 reg = <0xffe45000 0x100>;
240 interrupts = <0 75 IRQ_TYPE_LEVEL_HIGH>;
244 mmcif: mmc@ffe4e000 {
245 compatible = "renesas,sh-mmcif";
246 reg = <0xffe4e000 0x100>;
247 interrupts = <0 61 IRQ_TYPE_LEVEL_HIGH>;
252 compatible = "renesas,sdhi-r8a7778";
253 reg = <0xffe4c000 0x100>;
254 interrupts = <0 87 IRQ_TYPE_LEVEL_HIGH>;
259 compatible = "renesas,sdhi-r8a7778";
260 reg = <0xffe4d000 0x100>;
261 interrupts = <0 88 IRQ_TYPE_LEVEL_HIGH>;
266 compatible = "renesas,sdhi-r8a7778";
267 reg = <0xffe4f000 0x100>;
268 interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>;
272 hspi0: spi@fffc7000 {
273 compatible = "renesas,hspi-r8a7778", "renesas,hspi";
274 reg = <0xfffc7000 0x18>;
275 interrupts = <0 63 IRQ_TYPE_LEVEL_HIGH>;
276 #address-cells = <1>;
281 hspi1: spi@fffc8000 {
282 compatible = "renesas,hspi-r8a7778", "renesas,hspi";
283 reg = <0xfffc8000 0x18>;
284 interrupts = <0 84 IRQ_TYPE_LEVEL_HIGH>;
285 #address-cells = <1>;
290 hspi2: spi@fffc6000 {
291 compatible = "renesas,hspi-r8a7778", "renesas,hspi";
292 reg = <0xfffc6000 0x18>;
293 interrupts = <0 85 IRQ_TYPE_LEVEL_HIGH>;
294 #address-cells = <1>;
300 #address-cells = <1>;
304 /* External input clock */
305 extal_clk: extal_clk {
306 compatible = "fixed-clock";
308 clock-frequency = <0>;
309 clock-output-names = "extal";
312 /* Special CPG clocks */
313 cpg_clocks: cpg_clocks@ffc80000 {
314 compatible = "renesas,r8a7778-cpg-clocks";
315 reg = <0xffc80000 0x80>;
317 clocks = <&extal_clk>;
318 clock-output-names = "plla", "pllb", "b",
319 "out", "p", "s", "s1";
322 /* Audio clocks; frequencies are set by boards if applicable. */
323 audio_clk_a: audio_clk_a {
324 compatible = "fixed-clock";
326 clock-output-names = "audio_clk_a";
328 audio_clk_b: audio_clk_b {
329 compatible = "fixed-clock";
331 clock-output-names = "audio_clk_b";
333 audio_clk_c: audio_clk_c {
334 compatible = "fixed-clock";
336 clock-output-names = "audio_clk_c";
339 /* Fixed ratio clocks */
341 compatible = "fixed-factor-clock";
342 clocks = <&cpg_clocks R8A7778_CLK_PLLA>;
346 clock-output-names = "g";
349 compatible = "fixed-factor-clock";
350 clocks = <&cpg_clocks R8A7778_CLK_PLLA>;
354 clock-output-names = "i";
357 compatible = "fixed-factor-clock";
358 clocks = <&cpg_clocks R8A7778_CLK_PLLA>;
362 clock-output-names = "s3";
365 compatible = "fixed-factor-clock";
366 clocks = <&cpg_clocks R8A7778_CLK_PLLA>;
370 clock-output-names = "s4";
373 compatible = "fixed-factor-clock";
374 clocks = <&cpg_clocks R8A7778_CLK_PLLB>;
378 clock-output-names = "z";
382 mstp0_clks: mstp0_clks@ffc80030 {
383 compatible = "renesas,r8a7778-mstp-clocks", "renesas,cpg-mstp-clocks";
384 reg = <0xffc80030 4>;
385 clocks = <&cpg_clocks R8A7778_CLK_P>,
386 <&cpg_clocks R8A7778_CLK_P>,
387 <&cpg_clocks R8A7778_CLK_P>,
388 <&cpg_clocks R8A7778_CLK_P>,
389 <&cpg_clocks R8A7778_CLK_P>,
390 <&cpg_clocks R8A7778_CLK_P>,
391 <&cpg_clocks R8A7778_CLK_P>,
392 <&cpg_clocks R8A7778_CLK_P>,
393 <&cpg_clocks R8A7778_CLK_P>,
394 <&cpg_clocks R8A7778_CLK_P>,
395 <&cpg_clocks R8A7778_CLK_P>,
396 <&cpg_clocks R8A7778_CLK_P>,
397 <&cpg_clocks R8A7778_CLK_P>,
398 <&cpg_clocks R8A7778_CLK_P>,
399 <&cpg_clocks R8A7778_CLK_P>,
400 <&cpg_clocks R8A7778_CLK_P>,
401 <&cpg_clocks R8A7778_CLK_P>,
402 <&cpg_clocks R8A7778_CLK_P>,
403 <&cpg_clocks R8A7778_CLK_S>;
406 R8A7778_CLK_I2C0 R8A7778_CLK_I2C1
407 R8A7778_CLK_I2C2 R8A7778_CLK_I2C3
408 R8A7778_CLK_SCIF0 R8A7778_CLK_SCIF1
409 R8A7778_CLK_SCIF2 R8A7778_CLK_SCIF3
410 R8A7778_CLK_SCIF4 R8A7778_CLK_SCIF5
411 R8A7778_CLK_TMU0 R8A7778_CLK_TMU1
412 R8A7778_CLK_TMU2 R8A7778_CLK_SSI0
413 R8A7778_CLK_SSI1 R8A7778_CLK_SSI2
414 R8A7778_CLK_SSI3 R8A7778_CLK_SRU
418 "i2c0", "i2c1", "i2c2", "i2c3", "scif0",
419 "scif1", "scif2", "scif3", "scif4", "scif5",
420 "tmu0", "tmu1", "tmu2", "ssi0", "ssi1",
421 "ssi2", "ssi3", "sru", "hspi";
423 mstp1_clks: mstp1_clks@ffc80034 {
424 compatible = "renesas,r8a7778-mstp-clocks", "renesas,cpg-mstp-clocks";
425 reg = <0xffc80034 4>, <0xffc80044 4>;
426 clocks = <&cpg_clocks R8A7778_CLK_P>,
427 <&cpg_clocks R8A7778_CLK_S>,
428 <&cpg_clocks R8A7778_CLK_S>,
429 <&cpg_clocks R8A7778_CLK_P>;
432 R8A7778_CLK_ETHER R8A7778_CLK_VIN0
433 R8A7778_CLK_VIN1 R8A7778_CLK_USB
436 "ether", "vin0", "vin1", "usb";
438 mstp3_clks: mstp3_clks@ffc8003c {
439 compatible = "renesas,r8a7778-mstp-clocks", "renesas,cpg-mstp-clocks";
440 reg = <0xffc8003c 4>;
442 <&cpg_clocks R8A7778_CLK_P>,
443 <&cpg_clocks R8A7778_CLK_P>,
444 <&cpg_clocks R8A7778_CLK_P>,
445 <&cpg_clocks R8A7778_CLK_P>,
446 <&cpg_clocks R8A7778_CLK_P>,
447 <&cpg_clocks R8A7778_CLK_P>,
448 <&cpg_clocks R8A7778_CLK_P>,
449 <&cpg_clocks R8A7778_CLK_P>;
452 R8A7778_CLK_MMC R8A7778_CLK_SDHI0
453 R8A7778_CLK_SDHI1 R8A7778_CLK_SDHI2
454 R8A7778_CLK_SSI4 R8A7778_CLK_SSI5
455 R8A7778_CLK_SSI6 R8A7778_CLK_SSI7
459 "mmc", "sdhi0", "sdhi1", "sdhi2", "ssi4",
460 "ssi5", "ssi6", "ssi7", "ssi8";
462 mstp5_clks: mstp5_clks@ffc80054 {
463 compatible = "renesas,r8a7778-mstp-clocks", "renesas,cpg-mstp-clocks";
464 reg = <0xffc80054 4>;
465 clocks = <&cpg_clocks R8A7778_CLK_P>,
466 <&cpg_clocks R8A7778_CLK_P>,
467 <&cpg_clocks R8A7778_CLK_P>,
468 <&cpg_clocks R8A7778_CLK_P>,
469 <&cpg_clocks R8A7778_CLK_P>,
470 <&cpg_clocks R8A7778_CLK_P>,
471 <&cpg_clocks R8A7778_CLK_P>,
472 <&cpg_clocks R8A7778_CLK_P>,
473 <&cpg_clocks R8A7778_CLK_P>;
476 R8A7778_CLK_SRU_SRC0 R8A7778_CLK_SRU_SRC1
477 R8A7778_CLK_SRU_SRC2 R8A7778_CLK_SRU_SRC3
478 R8A7778_CLK_SRU_SRC4 R8A7778_CLK_SRU_SRC5
479 R8A7778_CLK_SRU_SRC6 R8A7778_CLK_SRU_SRC7
483 "sru-src0", "sru-src1", "sru-src2",
484 "sru-src3", "sru-src4", "sru-src5",
485 "sru-src6", "sru-src7", "sru-src8";