blob: fc5e7243467abe3cf831130973ae497b665683c3 [file] [log] [blame]
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -07001/*
2 * Device Tree Source for Renesas r8a7778
3 *
4 * Copyright (C) 2013 Renesas Solutions Corp.
5 * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
6 *
7 * based on r8a7779
8 *
9 * Copyright (C) 2013 Renesas Solutions Corp.
10 * Copyright (C) 2013 Simon Horman
11 *
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.
15 */
16
17/include/ "skeleton.dtsi"
18
Ulrich Hecht93aa9702015-02-16 17:58:47 +010019#include <dt-bindings/clock/r8a7778-clock.h>
Simon Horman0c34bd12016-01-21 13:52:45 +090020#include <dt-bindings/interrupt-controller/arm-gic.h>
Laurent Pinchart5f75e732013-11-19 03:18:25 +010021#include <dt-bindings/interrupt-controller/irq.h>
22
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070023/ {
24 compatible = "renesas,r8a7778";
Laurent Pinchart9ff254a2014-04-30 02:41:28 +020025 interrupt-parent = <&gic>;
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070026
27 cpus {
Magnus Damm869f92a2014-08-20 22:02:27 +090028 #address-cells = <1>;
29 #size-cells = <0>;
30
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070031 cpu@0 {
Magnus Damm869f92a2014-08-20 22:02:27 +090032 device_type = "cpu";
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070033 compatible = "arm,cortex-a9";
Magnus Damm869f92a2014-08-20 22:02:27 +090034 reg = <0>;
35 clock-frequency = <800000000>;
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070036 };
37 };
38
Kuninori Morimotoa50da082013-10-31 18:22:21 -070039 aliases {
40 spi0 = &hspi0;
41 spi1 = &hspi1;
42 spi2 = &hspi2;
43 };
44
Ulrich Hechtd4578202015-02-16 17:58:57 +010045 bsc: bus@1c000000 {
46 compatible = "simple-bus";
47 #address-cells = <1>;
48 #size-cells = <1>;
49 ranges = <0 0 0x1c000000>;
50 };
51
Ulrich Hecht05cabb82015-02-16 17:58:52 +010052 ether: ethernet@fde00000 {
53 compatible = "renesas,ether-r8a7778";
54 reg = <0xfde00000 0x400>;
Simon Horman0c34bd12016-01-21 13:52:45 +090055 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht05cabb82015-02-16 17:58:52 +010056 clocks = <&mstp1_clks R8A7778_CLK_ETHER>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +020057 power-domains = <&cpg_clocks>;
Ulrich Hecht05cabb82015-02-16 17:58:52 +010058 phy-mode = "rmii";
59 #address-cells = <1>;
60 #size-cells = <0>;
61 status = "disabled";
62 };
63
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070064 gic: interrupt-controller@fe438000 {
Geert Uytterhoeven26828d92015-11-20 13:36:55 +010065 compatible = "arm,pl390";
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070066 #interrupt-cells = <3>;
67 interrupt-controller;
68 reg = <0xfe438000 0x1000>,
69 <0xfe430000 0x100>;
70 };
Laurent Pinchart0697ccc2013-05-09 15:05:57 +020071
Kuninori Morimoto87f1ba82013-10-02 01:32:12 -070072 /* irqpin: IRQ0 - IRQ3 */
Geert Uytterhoevenb38150f2015-04-27 14:55:26 +020073 irqpin: interrupt-controller@fe78001c {
Magnus Dammd79af222013-11-28 08:15:11 +090074 compatible = "renesas,intc-irqpin-r8a7778", "renesas,intc-irqpin";
Kuninori Morimoto87f1ba82013-10-02 01:32:12 -070075 #interrupt-cells = <2>;
76 interrupt-controller;
77 status = "disabled"; /* default off */
78 reg = <0xfe78001c 4>,
79 <0xfe780010 4>,
80 <0xfe780024 4>,
81 <0xfe780044 4>,
82 <0xfe780064 4>;
Simon Horman0c34bd12016-01-21 13:52:45 +090083 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH
84 GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH
85 GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH
86 GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
Kuninori Morimoto87f1ba82013-10-02 01:32:12 -070087 sense-bitfield-width = <2>;
88 };
89
Laurent Pinchartaaf7eda2013-05-10 15:51:14 +020090 gpio0: gpio@ffc40000 {
91 compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
92 reg = <0xffc40000 0x2c>;
Simon Horman0c34bd12016-01-21 13:52:45 +090093 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartaaf7eda2013-05-10 15:51:14 +020094 #gpio-cells = <2>;
95 gpio-controller;
96 gpio-ranges = <&pfc 0 0 32>;
97 #interrupt-cells = <2>;
98 interrupt-controller;
99 };
100
101 gpio1: gpio@ffc41000 {
102 compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
103 reg = <0xffc41000 0x2c>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900104 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartaaf7eda2013-05-10 15:51:14 +0200105 #gpio-cells = <2>;
106 gpio-controller;
107 gpio-ranges = <&pfc 0 32 32>;
108 #interrupt-cells = <2>;
109 interrupt-controller;
110 };
111
112 gpio2: gpio@ffc42000 {
113 compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
114 reg = <0xffc42000 0x2c>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900115 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartaaf7eda2013-05-10 15:51:14 +0200116 #gpio-cells = <2>;
117 gpio-controller;
118 gpio-ranges = <&pfc 0 64 32>;
119 #interrupt-cells = <2>;
120 interrupt-controller;
121 };
122
123 gpio3: gpio@ffc43000 {
124 compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
125 reg = <0xffc43000 0x2c>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900126 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartaaf7eda2013-05-10 15:51:14 +0200127 #gpio-cells = <2>;
128 gpio-controller;
129 gpio-ranges = <&pfc 0 96 32>;
130 #interrupt-cells = <2>;
131 interrupt-controller;
132 };
133
134 gpio4: gpio@ffc44000 {
135 compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
136 reg = <0xffc44000 0x2c>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900137 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartaaf7eda2013-05-10 15:51:14 +0200138 #gpio-cells = <2>;
139 gpio-controller;
140 gpio-ranges = <&pfc 0 128 27>;
141 #interrupt-cells = <2>;
142 interrupt-controller;
143 };
144
Laurent Pinchart0697ccc2013-05-09 15:05:57 +0200145 pfc: pfc@fffc0000 {
146 compatible = "renesas,pfc-r8a7778";
Laurent Pinchart80d01fe2013-10-03 19:35:41 +0200147 reg = <0xfffc0000 0x118>;
Laurent Pinchart0697ccc2013-05-09 15:05:57 +0200148 };
Kuninori Morimoto3acb51b2013-10-03 23:44:15 -0700149
150 i2c0: i2c@ffc70000 {
151 #address-cells = <1>;
152 #size-cells = <0>;
153 compatible = "renesas,i2c-r8a7778";
154 reg = <0xffc70000 0x1000>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900155 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100156 clocks = <&mstp0_clks R8A7778_CLK_I2C0>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200157 power-domains = <&cpg_clocks>;
Kuninori Morimoto3acb51b2013-10-03 23:44:15 -0700158 status = "disabled";
159 };
160
161 i2c1: i2c@ffc71000 {
162 #address-cells = <1>;
163 #size-cells = <0>;
164 compatible = "renesas,i2c-r8a7778";
165 reg = <0xffc71000 0x1000>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900166 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100167 clocks = <&mstp0_clks R8A7778_CLK_I2C1>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200168 power-domains = <&cpg_clocks>;
Kuninori Morimoto3acb51b2013-10-03 23:44:15 -0700169 status = "disabled";
170 };
171
172 i2c2: i2c@ffc72000 {
173 #address-cells = <1>;
174 #size-cells = <0>;
175 compatible = "renesas,i2c-r8a7778";
176 reg = <0xffc72000 0x1000>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900177 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100178 clocks = <&mstp0_clks R8A7778_CLK_I2C2>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200179 power-domains = <&cpg_clocks>;
Kuninori Morimoto3acb51b2013-10-03 23:44:15 -0700180 status = "disabled";
181 };
182
183 i2c3: i2c@ffc73000 {
184 #address-cells = <1>;
185 #size-cells = <0>;
186 compatible = "renesas,i2c-r8a7778";
187 reg = <0xffc73000 0x1000>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900188 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100189 clocks = <&mstp0_clks R8A7778_CLK_I2C3>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200190 power-domains = <&cpg_clocks>;
Kuninori Morimoto3acb51b2013-10-03 23:44:15 -0700191 status = "disabled";
192 };
Kuninori Morimotof7b901752013-10-03 18:32:22 -0700193
Simon Horman2109b5a2014-07-07 09:54:30 +0200194 tmu0: timer@ffd80000 {
Geert Uytterhoeven45b439c2014-10-24 13:36:03 +0200195 compatible = "renesas,tmu-r8a7778", "renesas,tmu";
Simon Horman2109b5a2014-07-07 09:54:30 +0200196 reg = <0xffd80000 0x30>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900197 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
198 <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
199 <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100200 clocks = <&mstp0_clks R8A7778_CLK_TMU0>;
201 clock-names = "fck";
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200202 power-domains = <&cpg_clocks>;
Simon Horman2109b5a2014-07-07 09:54:30 +0200203
204 #renesas,channels = <3>;
205
206 status = "disabled";
207 };
208
209 tmu1: timer@ffd81000 {
Geert Uytterhoeven45b439c2014-10-24 13:36:03 +0200210 compatible = "renesas,tmu-r8a7778", "renesas,tmu";
Simon Horman2109b5a2014-07-07 09:54:30 +0200211 reg = <0xffd81000 0x30>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900212 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
213 <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
214 <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100215 clocks = <&mstp0_clks R8A7778_CLK_TMU1>;
216 clock-names = "fck";
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200217 power-domains = <&cpg_clocks>;
Simon Horman2109b5a2014-07-07 09:54:30 +0200218
219 #renesas,channels = <3>;
220
221 status = "disabled";
222 };
223
224 tmu2: timer@ffd82000 {
Geert Uytterhoeven45b439c2014-10-24 13:36:03 +0200225 compatible = "renesas,tmu-r8a7778", "renesas,tmu";
Simon Horman2109b5a2014-07-07 09:54:30 +0200226 reg = <0xffd82000 0x30>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900227 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
228 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
229 <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100230 clocks = <&mstp0_clks R8A7778_CLK_TMU2>;
231 clock-names = "fck";
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200232 power-domains = <&cpg_clocks>;
Simon Horman2109b5a2014-07-07 09:54:30 +0200233
234 #renesas,channels = <3>;
235
236 status = "disabled";
237 };
238
Ulrich Hecht39a96792015-02-26 17:42:11 +0100239 rcar_sound: sound@ffd90000 {
Kuninori Morimoto2020ddd2015-12-08 00:10:59 +0000240 /*
241 * #sound-dai-cells is required
242 *
243 * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>;
244 * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>;
245 */
Ulrich Hecht39a96792015-02-26 17:42:11 +0100246 compatible = "renesas,rcar_sound-r8a7778", "renesas,rcar_sound-gen1";
247 reg = <0xffd90000 0x1000>, /* SRU */
Kuninori Morimoto23640ff2015-08-25 07:14:50 +0000248 <0xffd91000 0x240>, /* SSI */
Ulrich Hecht39a96792015-02-26 17:42:11 +0100249 <0xfffe0000 0x24>; /* ADG */
250 clocks = <&mstp3_clks R8A7778_CLK_SSI8>,
251 <&mstp3_clks R8A7778_CLK_SSI7>,
252 <&mstp3_clks R8A7778_CLK_SSI6>,
253 <&mstp3_clks R8A7778_CLK_SSI5>,
254 <&mstp3_clks R8A7778_CLK_SSI4>,
255 <&mstp0_clks R8A7778_CLK_SSI3>,
256 <&mstp0_clks R8A7778_CLK_SSI2>,
257 <&mstp0_clks R8A7778_CLK_SSI1>,
258 <&mstp0_clks R8A7778_CLK_SSI0>,
259 <&mstp5_clks R8A7778_CLK_SRU_SRC8>,
260 <&mstp5_clks R8A7778_CLK_SRU_SRC7>,
261 <&mstp5_clks R8A7778_CLK_SRU_SRC6>,
262 <&mstp5_clks R8A7778_CLK_SRU_SRC5>,
263 <&mstp5_clks R8A7778_CLK_SRU_SRC4>,
264 <&mstp5_clks R8A7778_CLK_SRU_SRC3>,
265 <&mstp5_clks R8A7778_CLK_SRU_SRC2>,
266 <&mstp5_clks R8A7778_CLK_SRU_SRC1>,
267 <&mstp5_clks R8A7778_CLK_SRU_SRC0>,
268 <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>,
269 <&cpg_clocks R8A7778_CLK_S1>;
270 clock-names = "ssi.8", "ssi.7", "ssi.6", "ssi.5", "ssi.4",
271 "ssi.3", "ssi.2", "ssi.1", "ssi.0",
272 "src.8", "src.7", "src.6", "src.5", "src.4",
273 "src.3", "src.2", "src.1", "src.0",
274 "clk_a", "clk_b", "clk_c", "clk_i";
275
276 status = "disabled";
277
278 rcar_sound,src {
279 src3: src@3 { };
280 src4: src@4 { };
281 src5: src@5 { };
282 src6: src@6 { };
283 src7: src@7 { };
284 src8: src@8 { };
285 src9: src@9 { };
286 };
287
288 rcar_sound,ssi {
Simon Horman0c34bd12016-01-21 13:52:45 +0900289 ssi3: ssi@3 { interrupts = <GIC_SPI 0x85 IRQ_TYPE_LEVEL_HIGH>; };
290 ssi4: ssi@4 { interrupts = <GIC_SPI 0x85 IRQ_TYPE_LEVEL_HIGH>; };
291 ssi5: ssi@5 { interrupts = <GIC_SPI 0x86 IRQ_TYPE_LEVEL_HIGH>; };
292 ssi6: ssi@6 { interrupts = <GIC_SPI 0x86 IRQ_TYPE_LEVEL_HIGH>; };
293 ssi7: ssi@7 { interrupts = <GIC_SPI 0x86 IRQ_TYPE_LEVEL_HIGH>; };
294 ssi8: ssi@8 { interrupts = <GIC_SPI 0x86 IRQ_TYPE_LEVEL_HIGH>; };
295 ssi9: ssi@9 { interrupts = <GIC_SPI 0x86 IRQ_TYPE_LEVEL_HIGH>; };
Ulrich Hecht39a96792015-02-26 17:42:11 +0100296 };
297 };
298
Simon Horman9930dc82014-07-07 09:54:27 +0200299 scif0: serial@ffe40000 {
300 compatible = "renesas,scif-r8a7778", "renesas,scif";
301 reg = <0xffe40000 0x100>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900302 interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100303 clocks = <&mstp0_clks R8A7778_CLK_SCIF0>;
304 clock-names = "sci_ick";
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200305 power-domains = <&cpg_clocks>;
Simon Horman9930dc82014-07-07 09:54:27 +0200306 status = "disabled";
307 };
308
309 scif1: serial@ffe41000 {
310 compatible = "renesas,scif-r8a7778", "renesas,scif";
311 reg = <0xffe41000 0x100>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900312 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100313 clocks = <&mstp0_clks R8A7778_CLK_SCIF1>;
314 clock-names = "sci_ick";
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200315 power-domains = <&cpg_clocks>;
Simon Horman9930dc82014-07-07 09:54:27 +0200316 status = "disabled";
317 };
318
319 scif2: serial@ffe42000 {
320 compatible = "renesas,scif-r8a7778", "renesas,scif";
321 reg = <0xffe42000 0x100>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900322 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100323 clocks = <&mstp0_clks R8A7778_CLK_SCIF2>;
324 clock-names = "sci_ick";
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200325 power-domains = <&cpg_clocks>;
Simon Horman9930dc82014-07-07 09:54:27 +0200326 status = "disabled";
327 };
328
329 scif3: serial@ffe43000 {
330 compatible = "renesas,scif-r8a7778", "renesas,scif";
331 reg = <0xffe43000 0x100>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900332 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100333 clocks = <&mstp0_clks R8A7778_CLK_SCIF3>;
334 clock-names = "sci_ick";
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200335 power-domains = <&cpg_clocks>;
Simon Horman9930dc82014-07-07 09:54:27 +0200336 status = "disabled";
337 };
338
339 scif4: serial@ffe44000 {
340 compatible = "renesas,scif-r8a7778", "renesas,scif";
341 reg = <0xffe44000 0x100>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900342 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100343 clocks = <&mstp0_clks R8A7778_CLK_SCIF4>;
344 clock-names = "sci_ick";
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200345 power-domains = <&cpg_clocks>;
Simon Horman9930dc82014-07-07 09:54:27 +0200346 status = "disabled";
347 };
348
349 scif5: serial@ffe45000 {
350 compatible = "renesas,scif-r8a7778", "renesas,scif";
351 reg = <0xffe45000 0x100>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900352 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100353 clocks = <&mstp0_clks R8A7778_CLK_SCIF5>;
354 clock-names = "sci_ick";
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200355 power-domains = <&cpg_clocks>;
Simon Horman9930dc82014-07-07 09:54:27 +0200356 status = "disabled";
357 };
358
Kuninori Morimoto14e1d912013-10-21 19:35:42 -0700359 mmcif: mmc@ffe4e000 {
Kuninori Morimotof7b901752013-10-03 18:32:22 -0700360 compatible = "renesas,sh-mmcif";
361 reg = <0xffe4e000 0x100>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900362 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100363 clocks = <&mstp3_clks R8A7778_CLK_MMC>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200364 power-domains = <&cpg_clocks>;
Kuninori Morimotof7b901752013-10-03 18:32:22 -0700365 status = "disabled";
366 };
Kuninori Morimoto04cbd882013-10-10 23:35:46 -0700367
Kuninori Morimoto14e1d912013-10-21 19:35:42 -0700368 sdhi0: sd@ffe4c000 {
Kuninori Morimoto04cbd882013-10-10 23:35:46 -0700369 compatible = "renesas,sdhi-r8a7778";
370 reg = <0xffe4c000 0x100>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900371 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100372 clocks = <&mstp3_clks R8A7778_CLK_SDHI0>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200373 power-domains = <&cpg_clocks>;
Kuninori Morimoto04cbd882013-10-10 23:35:46 -0700374 status = "disabled";
375 };
376
Kuninori Morimoto14e1d912013-10-21 19:35:42 -0700377 sdhi1: sd@ffe4d000 {
Kuninori Morimoto04cbd882013-10-10 23:35:46 -0700378 compatible = "renesas,sdhi-r8a7778";
379 reg = <0xffe4d000 0x100>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900380 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100381 clocks = <&mstp3_clks R8A7778_CLK_SDHI1>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200382 power-domains = <&cpg_clocks>;
Kuninori Morimoto04cbd882013-10-10 23:35:46 -0700383 status = "disabled";
384 };
385
Kuninori Morimoto14e1d912013-10-21 19:35:42 -0700386 sdhi2: sd@ffe4f000 {
Kuninori Morimoto04cbd882013-10-10 23:35:46 -0700387 compatible = "renesas,sdhi-r8a7778";
388 reg = <0xffe4f000 0x100>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900389 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100390 clocks = <&mstp3_clks R8A7778_CLK_SDHI2>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200391 power-domains = <&cpg_clocks>;
Kuninori Morimoto04cbd882013-10-10 23:35:46 -0700392 status = "disabled";
393 };
Kuninori Morimotoae4273e2013-10-03 23:44:15 -0700394
Kuninori Morimotoa50da082013-10-31 18:22:21 -0700395 hspi0: spi@fffc7000 {
Geert Uytterhoevena34c50d2014-03-14 11:06:40 +0100396 compatible = "renesas,hspi-r8a7778", "renesas,hspi";
Kuninori Morimotoa50da082013-10-31 18:22:21 -0700397 reg = <0xfffc7000 0x18>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900398 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100399 clocks = <&mstp0_clks R8A7778_CLK_HSPI>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200400 power-domains = <&cpg_clocks>;
Geert Uytterhoevena34c50d2014-03-14 11:06:40 +0100401 #address-cells = <1>;
402 #size-cells = <0>;
Kuninori Morimotoa50da082013-10-31 18:22:21 -0700403 status = "disabled";
404 };
405
406 hspi1: spi@fffc8000 {
Geert Uytterhoevena34c50d2014-03-14 11:06:40 +0100407 compatible = "renesas,hspi-r8a7778", "renesas,hspi";
Kuninori Morimotoa50da082013-10-31 18:22:21 -0700408 reg = <0xfffc8000 0x18>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900409 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100410 clocks = <&mstp0_clks R8A7778_CLK_HSPI>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200411 power-domains = <&cpg_clocks>;
Geert Uytterhoevena34c50d2014-03-14 11:06:40 +0100412 #address-cells = <1>;
413 #size-cells = <0>;
Kuninori Morimotoa50da082013-10-31 18:22:21 -0700414 status = "disabled";
415 };
416
417 hspi2: spi@fffc6000 {
Geert Uytterhoevena34c50d2014-03-14 11:06:40 +0100418 compatible = "renesas,hspi-r8a7778", "renesas,hspi";
Kuninori Morimotoa50da082013-10-31 18:22:21 -0700419 reg = <0xfffc6000 0x18>;
Simon Horman0c34bd12016-01-21 13:52:45 +0900420 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Ulrich Hecht66462be2015-02-16 17:58:50 +0100421 clocks = <&mstp0_clks R8A7778_CLK_HSPI>;
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200422 power-domains = <&cpg_clocks>;
Geert Uytterhoevena34c50d2014-03-14 11:06:40 +0100423 #address-cells = <1>;
424 #size-cells = <0>;
Kuninori Morimotoa50da082013-10-31 18:22:21 -0700425 status = "disabled";
426 };
Ulrich Hecht93aa9702015-02-16 17:58:47 +0100427
428 clocks {
429 #address-cells = <1>;
430 #size-cells = <1>;
431 ranges;
432
433 /* External input clock */
434 extal_clk: extal_clk {
435 compatible = "fixed-clock";
436 #clock-cells = <0>;
437 clock-frequency = <0>;
438 clock-output-names = "extal";
439 };
440
441 /* Special CPG clocks */
442 cpg_clocks: cpg_clocks@ffc80000 {
443 compatible = "renesas,r8a7778-cpg-clocks";
444 reg = <0xffc80000 0x80>;
445 #clock-cells = <1>;
446 clocks = <&extal_clk>;
447 clock-output-names = "plla", "pllb", "b",
448 "out", "p", "s", "s1";
Geert Uytterhoevena670f3662015-08-04 14:28:08 +0200449 #power-domain-cells = <0>;
Ulrich Hecht93aa9702015-02-16 17:58:47 +0100450 };
451
452 /* Audio clocks; frequencies are set by boards if applicable. */
453 audio_clk_a: audio_clk_a {
454 compatible = "fixed-clock";
455 #clock-cells = <0>;
456 clock-output-names = "audio_clk_a";
457 };
458 audio_clk_b: audio_clk_b {
459 compatible = "fixed-clock";
460 #clock-cells = <0>;
461 clock-output-names = "audio_clk_b";
462 };
463 audio_clk_c: audio_clk_c {
464 compatible = "fixed-clock";
465 #clock-cells = <0>;
466 clock-output-names = "audio_clk_c";
467 };
468
469 /* Fixed ratio clocks */
470 g_clk: g_clk {
471 compatible = "fixed-factor-clock";
472 clocks = <&cpg_clocks R8A7778_CLK_PLLA>;
473 #clock-cells = <0>;
474 clock-div = <12>;
475 clock-mult = <1>;
476 clock-output-names = "g";
477 };
478 i_clk: i_clk {
479 compatible = "fixed-factor-clock";
480 clocks = <&cpg_clocks R8A7778_CLK_PLLA>;
481 #clock-cells = <0>;
482 clock-div = <1>;
483 clock-mult = <1>;
484 clock-output-names = "i";
485 };
486 s3_clk: s3_clk {
487 compatible = "fixed-factor-clock";
488 clocks = <&cpg_clocks R8A7778_CLK_PLLA>;
489 #clock-cells = <0>;
490 clock-div = <4>;
491 clock-mult = <1>;
492 clock-output-names = "s3";
493 };
494 s4_clk: s4_clk {
495 compatible = "fixed-factor-clock";
496 clocks = <&cpg_clocks R8A7778_CLK_PLLA>;
497 #clock-cells = <0>;
498 clock-div = <8>;
499 clock-mult = <1>;
500 clock-output-names = "s4";
501 };
502 z_clk: z_clk {
503 compatible = "fixed-factor-clock";
504 clocks = <&cpg_clocks R8A7778_CLK_PLLB>;
505 #clock-cells = <0>;
506 clock-div = <1>;
507 clock-mult = <1>;
508 clock-output-names = "z";
509 };
510
511 /* Gate clocks */
512 mstp0_clks: mstp0_clks@ffc80030 {
513 compatible = "renesas,r8a7778-mstp-clocks", "renesas,cpg-mstp-clocks";
514 reg = <0xffc80030 4>;
515 clocks = <&cpg_clocks R8A7778_CLK_P>,
516 <&cpg_clocks R8A7778_CLK_P>,
517 <&cpg_clocks R8A7778_CLK_P>,
518 <&cpg_clocks R8A7778_CLK_P>,
519 <&cpg_clocks R8A7778_CLK_P>,
520 <&cpg_clocks R8A7778_CLK_P>,
521 <&cpg_clocks R8A7778_CLK_P>,
522 <&cpg_clocks R8A7778_CLK_P>,
523 <&cpg_clocks R8A7778_CLK_P>,
524 <&cpg_clocks R8A7778_CLK_P>,
525 <&cpg_clocks R8A7778_CLK_P>,
526 <&cpg_clocks R8A7778_CLK_P>,
527 <&cpg_clocks R8A7778_CLK_P>,
528 <&cpg_clocks R8A7778_CLK_P>,
529 <&cpg_clocks R8A7778_CLK_P>,
530 <&cpg_clocks R8A7778_CLK_P>,
531 <&cpg_clocks R8A7778_CLK_P>,
532 <&cpg_clocks R8A7778_CLK_P>,
533 <&cpg_clocks R8A7778_CLK_S>;
534 #clock-cells = <1>;
535 clock-indices = <
536 R8A7778_CLK_I2C0 R8A7778_CLK_I2C1
537 R8A7778_CLK_I2C2 R8A7778_CLK_I2C3
538 R8A7778_CLK_SCIF0 R8A7778_CLK_SCIF1
539 R8A7778_CLK_SCIF2 R8A7778_CLK_SCIF3
540 R8A7778_CLK_SCIF4 R8A7778_CLK_SCIF5
541 R8A7778_CLK_TMU0 R8A7778_CLK_TMU1
542 R8A7778_CLK_TMU2 R8A7778_CLK_SSI0
543 R8A7778_CLK_SSI1 R8A7778_CLK_SSI2
544 R8A7778_CLK_SSI3 R8A7778_CLK_SRU
545 R8A7778_CLK_HSPI
546 >;
547 clock-output-names =
548 "i2c0", "i2c1", "i2c2", "i2c3", "scif0",
549 "scif1", "scif2", "scif3", "scif4", "scif5",
550 "tmu0", "tmu1", "tmu2", "ssi0", "ssi1",
551 "ssi2", "ssi3", "sru", "hspi";
552 };
553 mstp1_clks: mstp1_clks@ffc80034 {
554 compatible = "renesas,r8a7778-mstp-clocks", "renesas,cpg-mstp-clocks";
555 reg = <0xffc80034 4>, <0xffc80044 4>;
556 clocks = <&cpg_clocks R8A7778_CLK_P>,
557 <&cpg_clocks R8A7778_CLK_S>,
558 <&cpg_clocks R8A7778_CLK_S>,
559 <&cpg_clocks R8A7778_CLK_P>;
560 #clock-cells = <1>;
561 clock-indices = <
562 R8A7778_CLK_ETHER R8A7778_CLK_VIN0
563 R8A7778_CLK_VIN1 R8A7778_CLK_USB
564 >;
565 clock-output-names =
566 "ether", "vin0", "vin1", "usb";
567 };
568 mstp3_clks: mstp3_clks@ffc8003c {
569 compatible = "renesas,r8a7778-mstp-clocks", "renesas,cpg-mstp-clocks";
570 reg = <0xffc8003c 4>;
571 clocks = <&s4_clk>,
572 <&cpg_clocks R8A7778_CLK_P>,
573 <&cpg_clocks R8A7778_CLK_P>,
574 <&cpg_clocks R8A7778_CLK_P>,
575 <&cpg_clocks R8A7778_CLK_P>,
576 <&cpg_clocks R8A7778_CLK_P>,
577 <&cpg_clocks R8A7778_CLK_P>,
578 <&cpg_clocks R8A7778_CLK_P>,
579 <&cpg_clocks R8A7778_CLK_P>;
580 #clock-cells = <1>;
581 clock-indices = <
582 R8A7778_CLK_MMC R8A7778_CLK_SDHI0
583 R8A7778_CLK_SDHI1 R8A7778_CLK_SDHI2
584 R8A7778_CLK_SSI4 R8A7778_CLK_SSI5
585 R8A7778_CLK_SSI6 R8A7778_CLK_SSI7
586 R8A7778_CLK_SSI8
587 >;
588 clock-output-names =
589 "mmc", "sdhi0", "sdhi1", "sdhi2", "ssi4",
590 "ssi5", "ssi6", "ssi7", "ssi8";
591 };
592 mstp5_clks: mstp5_clks@ffc80054 {
593 compatible = "renesas,r8a7778-mstp-clocks", "renesas,cpg-mstp-clocks";
594 reg = <0xffc80054 4>;
595 clocks = <&cpg_clocks R8A7778_CLK_P>,
596 <&cpg_clocks R8A7778_CLK_P>,
597 <&cpg_clocks R8A7778_CLK_P>,
598 <&cpg_clocks R8A7778_CLK_P>,
599 <&cpg_clocks R8A7778_CLK_P>,
600 <&cpg_clocks R8A7778_CLK_P>,
601 <&cpg_clocks R8A7778_CLK_P>,
602 <&cpg_clocks R8A7778_CLK_P>,
603 <&cpg_clocks R8A7778_CLK_P>;
604 #clock-cells = <1>;
605 clock-indices = <
606 R8A7778_CLK_SRU_SRC0 R8A7778_CLK_SRU_SRC1
607 R8A7778_CLK_SRU_SRC2 R8A7778_CLK_SRU_SRC3
608 R8A7778_CLK_SRU_SRC4 R8A7778_CLK_SRU_SRC5
609 R8A7778_CLK_SRU_SRC6 R8A7778_CLK_SRU_SRC7
610 R8A7778_CLK_SRU_SRC8
611 >;
612 clock-output-names =
613 "sru-src0", "sru-src1", "sru-src2",
614 "sru-src3", "sru-src4", "sru-src5",
615 "sru-src6", "sru-src7", "sru-src8";
616 };
617 };
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -0700618};