blob: 67a6d968cebb85944172b41262cb9a21aab4fa2d [file] [log] [blame]
Magnus Damm0468b2d2013-03-28 00:49:34 +09001/*
2 * Device Tree Source for the r8a7790 SoC
3 *
4 * Copyright (C) 2013 Renesas Solutions Corp.
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
9 */
10
Laurent Pinchart22a1f592013-12-11 15:05:14 +010011#include <dt-bindings/clock/r8a7790-clock.h>
Laurent Pinchart5f75e732013-11-19 03:18:25 +010012#include <dt-bindings/interrupt-controller/arm-gic.h>
13#include <dt-bindings/interrupt-controller/irq.h>
14
Magnus Damm0468b2d2013-03-28 00:49:34 +090015/ {
16 compatible = "renesas,r8a7790";
17 interrupt-parent = <&gic>;
Takashi Yoshii8585deb2013-03-29 16:49:17 +090018 #address-cells = <2>;
19 #size-cells = <2>;
Magnus Damm0468b2d2013-03-28 00:49:34 +090020
21 cpus {
22 #address-cells = <1>;
23 #size-cells = <0>;
24
25 cpu0: cpu@0 {
26 device_type = "cpu";
27 compatible = "arm,cortex-a15";
28 reg = <0>;
29 clock-frequency = <1300000000>;
30 };
Magnus Dammc1f95972013-08-29 08:22:17 +090031
32 cpu1: cpu@1 {
33 device_type = "cpu";
34 compatible = "arm,cortex-a15";
35 reg = <1>;
36 clock-frequency = <1300000000>;
37 };
38
39 cpu2: cpu@2 {
40 device_type = "cpu";
41 compatible = "arm,cortex-a15";
42 reg = <2>;
43 clock-frequency = <1300000000>;
44 };
45
46 cpu3: cpu@3 {
47 device_type = "cpu";
48 compatible = "arm,cortex-a15";
49 reg = <3>;
50 clock-frequency = <1300000000>;
51 };
Magnus Damm2007e742013-09-15 00:28:58 +090052
53 cpu4: cpu@4 {
54 device_type = "cpu";
55 compatible = "arm,cortex-a7";
56 reg = <0x100>;
57 clock-frequency = <780000000>;
58 };
59
60 cpu5: cpu@5 {
61 device_type = "cpu";
62 compatible = "arm,cortex-a7";
63 reg = <0x101>;
64 clock-frequency = <780000000>;
65 };
66
67 cpu6: cpu@6 {
68 device_type = "cpu";
69 compatible = "arm,cortex-a7";
70 reg = <0x102>;
71 clock-frequency = <780000000>;
72 };
73
74 cpu7: cpu@7 {
75 device_type = "cpu";
76 compatible = "arm,cortex-a7";
77 reg = <0x103>;
78 clock-frequency = <780000000>;
79 };
Magnus Damm0468b2d2013-03-28 00:49:34 +090080 };
81
82 gic: interrupt-controller@f1001000 {
83 compatible = "arm,cortex-a15-gic";
84 #interrupt-cells = <3>;
85 #address-cells = <0>;
86 interrupt-controller;
Takashi Yoshii8585deb2013-03-29 16:49:17 +090087 reg = <0 0xf1001000 0 0x1000>,
88 <0 0xf1002000 0 0x1000>,
89 <0 0xf1004000 0 0x2000>,
90 <0 0xf1006000 0 0x2000>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +010091 interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Magnus Damm0468b2d2013-03-28 00:49:34 +090092 };
93
Magnus Damm23de2272013-11-21 14:19:29 +090094 gpio0: gpio@e6050000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +020095 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +090096 reg = <0 0xe6050000 0 0x50>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +020097 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +010098 interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +020099 #gpio-cells = <2>;
100 gpio-controller;
101 gpio-ranges = <&pfc 0 0 32>;
102 #interrupt-cells = <2>;
103 interrupt-controller;
104 };
105
Magnus Damm23de2272013-11-21 14:19:29 +0900106 gpio1: gpio@e6051000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200107 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900108 reg = <0 0xe6051000 0 0x50>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200109 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100110 interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200111 #gpio-cells = <2>;
112 gpio-controller;
113 gpio-ranges = <&pfc 0 32 32>;
114 #interrupt-cells = <2>;
115 interrupt-controller;
116 };
117
Magnus Damm23de2272013-11-21 14:19:29 +0900118 gpio2: gpio@e6052000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200119 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900120 reg = <0 0xe6052000 0 0x50>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200121 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100122 interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200123 #gpio-cells = <2>;
124 gpio-controller;
125 gpio-ranges = <&pfc 0 64 32>;
126 #interrupt-cells = <2>;
127 interrupt-controller;
128 };
129
Magnus Damm23de2272013-11-21 14:19:29 +0900130 gpio3: gpio@e6053000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200131 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900132 reg = <0 0xe6053000 0 0x50>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200133 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100134 interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200135 #gpio-cells = <2>;
136 gpio-controller;
137 gpio-ranges = <&pfc 0 96 32>;
138 #interrupt-cells = <2>;
139 interrupt-controller;
140 };
141
Magnus Damm23de2272013-11-21 14:19:29 +0900142 gpio4: gpio@e6054000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200143 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900144 reg = <0 0xe6054000 0 0x50>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200145 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100146 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200147 #gpio-cells = <2>;
148 gpio-controller;
149 gpio-ranges = <&pfc 0 128 32>;
150 #interrupt-cells = <2>;
151 interrupt-controller;
152 };
153
Magnus Damm23de2272013-11-21 14:19:29 +0900154 gpio5: gpio@e6055000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200155 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900156 reg = <0 0xe6055000 0 0x50>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200157 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100158 interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200159 #gpio-cells = <2>;
160 gpio-controller;
161 gpio-ranges = <&pfc 0 160 32>;
162 #interrupt-cells = <2>;
163 interrupt-controller;
164 };
165
Magnus Damm03e2f562013-11-20 16:59:30 +0900166 thermal@e61f0000 {
167 compatible = "renesas,thermal-r8a7790", "renesas,rcar-thermal";
168 reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
169 interrupt-parent = <&gic>;
170 interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
171 };
172
Magnus Damm0468b2d2013-03-28 00:49:34 +0900173 timer {
174 compatible = "arm,armv7-timer";
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100175 interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
176 <1 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
177 <1 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
178 <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Magnus Damm0468b2d2013-03-28 00:49:34 +0900179 };
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900180
181 irqc0: interrupt-controller@e61c0000 {
Magnus Damm220fc352013-11-20 09:07:40 +0900182 compatible = "renesas,irqc-r8a7790", "renesas,irqc";
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900183 #interrupt-cells = <2>;
184 interrupt-controller;
Takashi Yoshii8585deb2013-03-29 16:49:17 +0900185 reg = <0 0xe61c0000 0 0x200>;
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900186 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100187 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
188 <0 1 IRQ_TYPE_LEVEL_HIGH>,
189 <0 2 IRQ_TYPE_LEVEL_HIGH>,
190 <0 3 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900191 };
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200192
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200193 i2c0: i2c@e6508000 {
194 #address-cells = <1>;
195 #size-cells = <0>;
196 compatible = "renesas,i2c-r8a7790";
197 reg = <0 0xe6508000 0 0x40>;
198 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100199 interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000200 clocks = <&mstp9_clks R8A7790_CLK_I2C0>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200201 status = "disabled";
202 };
203
204 i2c1: i2c@e6518000 {
205 #address-cells = <1>;
206 #size-cells = <0>;
207 compatible = "renesas,i2c-r8a7790";
208 reg = <0 0xe6518000 0 0x40>;
209 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100210 interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000211 clocks = <&mstp9_clks R8A7790_CLK_I2C1>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200212 status = "disabled";
213 };
214
215 i2c2: i2c@e6530000 {
216 #address-cells = <1>;
217 #size-cells = <0>;
218 compatible = "renesas,i2c-r8a7790";
219 reg = <0 0xe6530000 0 0x40>;
220 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100221 interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000222 clocks = <&mstp9_clks R8A7790_CLK_I2C2>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200223 status = "disabled";
224 };
225
226 i2c3: i2c@e6540000 {
227 #address-cells = <1>;
228 #size-cells = <0>;
229 compatible = "renesas,i2c-r8a7790";
230 reg = <0 0xe6540000 0 0x40>;
231 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100232 interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000233 clocks = <&mstp9_clks R8A7790_CLK_I2C3>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200234 status = "disabled";
235 };
236
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200237 mmcif0: mmcif@ee200000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900238 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200239 reg = <0 0xee200000 0 0x80>;
240 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100241 interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100242 clocks = <&mstp3_clks R8A7790_CLK_MMCIF0>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200243 reg-io-width = <4>;
244 status = "disabled";
245 };
246
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700247 mmcif1: mmc@ee220000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900248 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200249 reg = <0 0xee220000 0 0x80>;
250 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100251 interrupts = <0 170 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100252 clocks = <&mstp3_clks R8A7790_CLK_MMCIF1>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200253 reg-io-width = <4>;
254 status = "disabled";
255 };
256
Laurent Pinchart9694c772013-05-09 15:05:57 +0200257 pfc: pfc@e6060000 {
258 compatible = "renesas,pfc-r8a7790";
259 reg = <0 0xe6060000 0 0x250>;
260 };
Olof Johansson55689bf2013-08-14 00:24:05 -0700261
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700262 sdhi0: sd@ee100000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200263 compatible = "renesas,sdhi-r8a7790";
Ben Dooksd721a152013-12-16 12:38:48 +0000264 reg = <0 0xee100000 0 0x200>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200265 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100266 interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100267 clocks = <&mstp3_clks R8A7790_CLK_SDHI0>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200268 cap-sd-highspeed;
269 status = "disabled";
270 };
271
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700272 sdhi1: sd@ee120000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200273 compatible = "renesas,sdhi-r8a7790";
Ben Dooksd721a152013-12-16 12:38:48 +0000274 reg = <0 0xee120000 0 0x200>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200275 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100276 interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100277 clocks = <&mstp3_clks R8A7790_CLK_SDHI1>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200278 cap-sd-highspeed;
279 status = "disabled";
280 };
281
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700282 sdhi2: sd@ee140000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200283 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200284 reg = <0 0xee140000 0 0x100>;
285 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100286 interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100287 clocks = <&mstp3_clks R8A7790_CLK_SDHI2>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200288 cap-sd-highspeed;
289 status = "disabled";
290 };
291
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700292 sdhi3: sd@ee160000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200293 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200294 reg = <0 0xee160000 0 0x100>;
295 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100296 interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100297 clocks = <&mstp3_clks R8A7790_CLK_SDHI3>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200298 cap-sd-highspeed;
299 status = "disabled";
300 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100301
302 clocks {
303 #address-cells = <2>;
304 #size-cells = <2>;
305 ranges;
306
307 /* External root clock */
308 extal_clk: extal_clk {
309 compatible = "fixed-clock";
310 #clock-cells = <0>;
311 /* This value must be overriden by the board. */
312 clock-frequency = <0>;
313 clock-output-names = "extal";
314 };
315
Kuninori Morimotoc7c2ec32014-01-13 18:25:39 -0800316 /*
317 * The external audio clocks are configured as 0 Hz fixed frequency clocks by
318 * default. Boards that provide audio clocks should override them.
319 */
320 audio_clk_a: audio_clk_a {
321 compatible = "fixed-clock";
322 #clock-cells = <0>;
323 clock-frequency = <0>;
324 clock-output-names = "audio_clk_a";
325 };
326 audio_clk_b: audio_clk_b {
327 compatible = "fixed-clock";
328 #clock-cells = <0>;
329 clock-frequency = <0>;
330 clock-output-names = "audio_clk_b";
331 };
332 audio_clk_c: audio_clk_c {
333 compatible = "fixed-clock";
334 #clock-cells = <0>;
335 clock-frequency = <0>;
336 clock-output-names = "audio_clk_c";
337 };
338
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100339 /* Special CPG clocks */
340 cpg_clocks: cpg_clocks@e6150000 {
341 compatible = "renesas,r8a7790-cpg-clocks",
342 "renesas,rcar-gen2-cpg-clocks";
343 reg = <0 0xe6150000 0 0x1000>;
344 clocks = <&extal_clk>;
345 #clock-cells = <1>;
346 clock-output-names = "main", "pll0", "pll1", "pll3",
347 "lb", "qspi", "sdh", "sd0", "sd1",
348 "z";
349 };
350
351 /* Variable factor clocks */
352 sd2_clk: sd2_clk@e6150078 {
353 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
354 reg = <0 0xe6150078 0 4>;
355 clocks = <&pll1_div2_clk>;
356 #clock-cells = <0>;
357 clock-output-names = "sd2";
358 };
359 sd3_clk: sd3_clk@e615007c {
360 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
361 reg = <0 0xe615007c 0 4>;
362 clocks = <&pll1_div2_clk>;
363 #clock-cells = <0>;
364 clock-output-names = "sd3";
365 };
366 mmc0_clk: mmc0_clk@e6150240 {
367 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
368 reg = <0 0xe6150240 0 4>;
369 clocks = <&pll1_div2_clk>;
370 #clock-cells = <0>;
371 clock-output-names = "mmc0";
372 };
373 mmc1_clk: mmc1_clk@e6150244 {
374 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
375 reg = <0 0xe6150244 0 4>;
376 clocks = <&pll1_div2_clk>;
377 #clock-cells = <0>;
378 clock-output-names = "mmc1";
379 };
380 ssp_clk: ssp_clk@e6150248 {
381 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
382 reg = <0 0xe6150248 0 4>;
383 clocks = <&pll1_div2_clk>;
384 #clock-cells = <0>;
385 clock-output-names = "ssp";
386 };
387 ssprs_clk: ssprs_clk@e615024c {
388 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
389 reg = <0 0xe615024c 0 4>;
390 clocks = <&pll1_div2_clk>;
391 #clock-cells = <0>;
392 clock-output-names = "ssprs";
393 };
394
395 /* Fixed factor clocks */
396 pll1_div2_clk: pll1_div2_clk {
397 compatible = "fixed-factor-clock";
398 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
399 #clock-cells = <0>;
400 clock-div = <2>;
401 clock-mult = <1>;
402 clock-output-names = "pll1_div2";
403 };
404 z2_clk: z2_clk {
405 compatible = "fixed-factor-clock";
406 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
407 #clock-cells = <0>;
408 clock-div = <2>;
409 clock-mult = <1>;
410 clock-output-names = "z2";
411 };
412 zg_clk: zg_clk {
413 compatible = "fixed-factor-clock";
414 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
415 #clock-cells = <0>;
416 clock-div = <3>;
417 clock-mult = <1>;
418 clock-output-names = "zg";
419 };
420 zx_clk: zx_clk {
421 compatible = "fixed-factor-clock";
422 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
423 #clock-cells = <0>;
424 clock-div = <3>;
425 clock-mult = <1>;
426 clock-output-names = "zx";
427 };
428 zs_clk: zs_clk {
429 compatible = "fixed-factor-clock";
430 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
431 #clock-cells = <0>;
432 clock-div = <6>;
433 clock-mult = <1>;
434 clock-output-names = "zs";
435 };
436 hp_clk: hp_clk {
437 compatible = "fixed-factor-clock";
438 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
439 #clock-cells = <0>;
440 clock-div = <12>;
441 clock-mult = <1>;
442 clock-output-names = "hp";
443 };
444 i_clk: i_clk {
445 compatible = "fixed-factor-clock";
446 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
447 #clock-cells = <0>;
448 clock-div = <2>;
449 clock-mult = <1>;
450 clock-output-names = "i";
451 };
452 b_clk: b_clk {
453 compatible = "fixed-factor-clock";
454 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
455 #clock-cells = <0>;
456 clock-div = <12>;
457 clock-mult = <1>;
458 clock-output-names = "b";
459 };
460 p_clk: p_clk {
461 compatible = "fixed-factor-clock";
462 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
463 #clock-cells = <0>;
464 clock-div = <24>;
465 clock-mult = <1>;
466 clock-output-names = "p";
467 };
468 cl_clk: cl_clk {
469 compatible = "fixed-factor-clock";
470 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
471 #clock-cells = <0>;
472 clock-div = <48>;
473 clock-mult = <1>;
474 clock-output-names = "cl";
475 };
476 m2_clk: m2_clk {
477 compatible = "fixed-factor-clock";
478 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
479 #clock-cells = <0>;
480 clock-div = <8>;
481 clock-mult = <1>;
482 clock-output-names = "m2";
483 };
484 imp_clk: imp_clk {
485 compatible = "fixed-factor-clock";
486 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
487 #clock-cells = <0>;
488 clock-div = <4>;
489 clock-mult = <1>;
490 clock-output-names = "imp";
491 };
492 rclk_clk: rclk_clk {
493 compatible = "fixed-factor-clock";
494 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
495 #clock-cells = <0>;
496 clock-div = <(48 * 1024)>;
497 clock-mult = <1>;
498 clock-output-names = "rclk";
499 };
500 oscclk_clk: oscclk_clk {
501 compatible = "fixed-factor-clock";
502 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
503 #clock-cells = <0>;
504 clock-div = <(12 * 1024)>;
505 clock-mult = <1>;
506 clock-output-names = "oscclk";
507 };
508 zb3_clk: zb3_clk {
509 compatible = "fixed-factor-clock";
510 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
511 #clock-cells = <0>;
512 clock-div = <4>;
513 clock-mult = <1>;
514 clock-output-names = "zb3";
515 };
516 zb3d2_clk: zb3d2_clk {
517 compatible = "fixed-factor-clock";
518 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
519 #clock-cells = <0>;
520 clock-div = <8>;
521 clock-mult = <1>;
522 clock-output-names = "zb3d2";
523 };
524 ddr_clk: ddr_clk {
525 compatible = "fixed-factor-clock";
526 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
527 #clock-cells = <0>;
528 clock-div = <8>;
529 clock-mult = <1>;
530 clock-output-names = "ddr";
531 };
532 mp_clk: mp_clk {
533 compatible = "fixed-factor-clock";
534 clocks = <&pll1_div2_clk>;
535 #clock-cells = <0>;
536 clock-div = <15>;
537 clock-mult = <1>;
538 clock-output-names = "mp";
539 };
540 cp_clk: cp_clk {
541 compatible = "fixed-factor-clock";
542 clocks = <&extal_clk>;
543 #clock-cells = <0>;
544 clock-div = <2>;
545 clock-mult = <1>;
546 clock-output-names = "cp";
547 };
548
549 /* Gate clocks */
Laurent Pinchart9d909512013-12-19 16:51:01 +0100550 mstp0_clks: mstp0_clks@e6150130 {
551 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
552 reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
553 clocks = <&mp_clk>;
554 #clock-cells = <1>;
555 renesas,clock-indices = <R8A7790_CLK_MSIOF0>;
556 clock-output-names = "msiof0";
557 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100558 mstp1_clks: mstp1_clks@e6150134 {
559 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
560 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
561 clocks = <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>,
562 <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>,
563 <&zs_clk>;
564 #clock-cells = <1>;
565 renesas,clock-indices = <
566 R8A7790_CLK_TMU1 R8A7790_CLK_TMU3 R8A7790_CLK_TMU2
567 R8A7790_CLK_CMT0 R8A7790_CLK_TMU0 R8A7790_CLK_VSP1_DU1
568 R8A7790_CLK_VSP1_DU0 R8A7790_CLK_VSP1_RT R8A7790_CLK_VSP1_SY
569 >;
570 clock-output-names =
571 "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1",
572 "vsp1-du0", "vsp1-rt", "vsp1-sy";
573 };
574 mstp2_clks: mstp2_clks@e6150138 {
575 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
576 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
577 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
Laurent Pinchart9d909512013-12-19 16:51:01 +0100578 <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100579 #clock-cells = <1>;
580 renesas,clock-indices = <
581 R8A7790_CLK_SCIFA2 R8A7790_CLK_SCIFA1 R8A7790_CLK_SCIFA0
Laurent Pinchart9d909512013-12-19 16:51:01 +0100582 R8A7790_CLK_MSIOF2 R8A7790_CLK_SCIFB0 R8A7790_CLK_SCIFB1
583 R8A7790_CLK_MSIOF1 R8A7790_CLK_MSIOF3 R8A7790_CLK_SCIFB2
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100584 >;
585 clock-output-names =
Laurent Pinchart9d909512013-12-19 16:51:01 +0100586 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
587 "scifb1", "msiof1", "msiof3", "scifb2";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100588 };
589 mstp3_clks: mstp3_clks@e615013c {
590 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
591 reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
592 clocks = <&cp_clk>, <&mmc1_clk>, <&sd3_clk>, <&sd2_clk>,
593 <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>,
594 <&mmc0_clk>, <&rclk_clk>;
595 #clock-cells = <1>;
596 renesas,clock-indices = <
597 R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
598 R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0
599 R8A7790_CLK_MMCIF0 R8A7790_CLK_CMT1
600 >;
601 clock-output-names =
602 "tpu0", "mmcif1", "sdhi3", "sdhi2",
603 "sdhi1", "sdhi0", "mmcif0", "cmt1";
604 };
605 mstp5_clks: mstp5_clks@e6150144 {
606 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
607 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
608 clocks = <&extal_clk>, <&p_clk>;
609 #clock-cells = <1>;
610 renesas,clock-indices = <R8A7790_CLK_THERMAL R8A7790_CLK_PWM>;
611 clock-output-names = "thermal", "pwm";
612 };
613 mstp7_clks: mstp7_clks@e615014c {
614 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
615 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
616 clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>,
617 <&p_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>,
618 <&zx_clk>;
619 #clock-cells = <1>;
620 renesas,clock-indices = <
621 R8A7790_CLK_EHCI R8A7790_CLK_HSUSB R8A7790_CLK_HSCIF1
622 R8A7790_CLK_HSCIF0 R8A7790_CLK_SCIF1 R8A7790_CLK_SCIF0
623 R8A7790_CLK_DU2 R8A7790_CLK_DU1 R8A7790_CLK_DU0
624 R8A7790_CLK_LVDS1 R8A7790_CLK_LVDS0
625 >;
626 clock-output-names =
627 "ehci", "hsusb", "hscif1", "hscif0", "scif1",
628 "scif0", "du2", "du1", "du0", "lvds1", "lvds0";
629 };
630 mstp8_clks: mstp8_clks@e6150990 {
631 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
632 reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
633 clocks = <&p_clk>;
634 #clock-cells = <1>;
635 renesas,clock-indices = <R8A7790_CLK_ETHER>;
636 clock-output-names = "ether";
637 };
638 mstp9_clks: mstp9_clks@e6150994 {
639 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
640 reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
Laurent Pinchart91b56ca2013-12-19 16:51:03 +0100641 clocks = <&p_clk>, <&p_clk>, <&cpg_clocks R8A7790_CLK_QSPI>,
642 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100643 #clock-cells = <1>;
644 renesas,clock-indices = <
Laurent Pinchart91b56ca2013-12-19 16:51:03 +0100645 R8A7790_CLK_RCAN1 R8A7790_CLK_RCAN0 R8A7790_CLK_QSPI_MOD
646 R8A7790_CLK_I2C3 R8A7790_CLK_I2C2 R8A7790_CLK_I2C1
647 R8A7790_CLK_I2C0
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100648 >;
Laurent Pinchart91b56ca2013-12-19 16:51:03 +0100649 clock-output-names =
650 "rcan1", "rcan0", "qspi_mod", "i2c3", "i2c2", "i2c1", "i2c0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100651 };
652 };
Magnus Damm0468b2d2013-03-28 00:49:34 +0900653};