blob: 51c89783562814806fd2c54069cc240c9ef26883 [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>;
Geert Uytterhoevend3a439d2014-01-07 19:57:14 +0100171 clocks = <&mstp5_clks R8A7790_CLK_THERMAL>;
Magnus Damm03e2f562013-11-20 16:59:30 +0900172 };
173
Magnus Damm0468b2d2013-03-28 00:49:34 +0900174 timer {
175 compatible = "arm,armv7-timer";
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100176 interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
177 <1 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
178 <1 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
179 <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Magnus Damm0468b2d2013-03-28 00:49:34 +0900180 };
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900181
182 irqc0: interrupt-controller@e61c0000 {
Magnus Damm220fc352013-11-20 09:07:40 +0900183 compatible = "renesas,irqc-r8a7790", "renesas,irqc";
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900184 #interrupt-cells = <2>;
185 interrupt-controller;
Takashi Yoshii8585deb2013-03-29 16:49:17 +0900186 reg = <0 0xe61c0000 0 0x200>;
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900187 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100188 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
189 <0 1 IRQ_TYPE_LEVEL_HIGH>,
190 <0 2 IRQ_TYPE_LEVEL_HIGH>,
191 <0 3 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900192 };
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200193
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200194 i2c0: i2c@e6508000 {
195 #address-cells = <1>;
196 #size-cells = <0>;
197 compatible = "renesas,i2c-r8a7790";
198 reg = <0 0xe6508000 0 0x40>;
199 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100200 interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000201 clocks = <&mstp9_clks R8A7790_CLK_I2C0>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200202 status = "disabled";
203 };
204
205 i2c1: i2c@e6518000 {
206 #address-cells = <1>;
207 #size-cells = <0>;
208 compatible = "renesas,i2c-r8a7790";
209 reg = <0 0xe6518000 0 0x40>;
210 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100211 interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000212 clocks = <&mstp9_clks R8A7790_CLK_I2C1>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200213 status = "disabled";
214 };
215
216 i2c2: i2c@e6530000 {
217 #address-cells = <1>;
218 #size-cells = <0>;
219 compatible = "renesas,i2c-r8a7790";
220 reg = <0 0xe6530000 0 0x40>;
221 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100222 interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000223 clocks = <&mstp9_clks R8A7790_CLK_I2C2>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200224 status = "disabled";
225 };
226
227 i2c3: i2c@e6540000 {
228 #address-cells = <1>;
229 #size-cells = <0>;
230 compatible = "renesas,i2c-r8a7790";
231 reg = <0 0xe6540000 0 0x40>;
232 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100233 interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000234 clocks = <&mstp9_clks R8A7790_CLK_I2C3>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200235 status = "disabled";
236 };
237
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200238 mmcif0: mmcif@ee200000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900239 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200240 reg = <0 0xee200000 0 0x80>;
241 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100242 interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100243 clocks = <&mstp3_clks R8A7790_CLK_MMCIF0>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200244 reg-io-width = <4>;
245 status = "disabled";
246 };
247
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700248 mmcif1: mmc@ee220000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900249 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200250 reg = <0 0xee220000 0 0x80>;
251 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100252 interrupts = <0 170 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100253 clocks = <&mstp3_clks R8A7790_CLK_MMCIF1>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200254 reg-io-width = <4>;
255 status = "disabled";
256 };
257
Laurent Pinchart9694c772013-05-09 15:05:57 +0200258 pfc: pfc@e6060000 {
259 compatible = "renesas,pfc-r8a7790";
260 reg = <0 0xe6060000 0 0x250>;
261 };
Olof Johansson55689bf2013-08-14 00:24:05 -0700262
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700263 sdhi0: sd@ee100000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200264 compatible = "renesas,sdhi-r8a7790";
Ben Dooksd721a152013-12-16 12:38:48 +0000265 reg = <0 0xee100000 0 0x200>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200266 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100267 interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100268 clocks = <&mstp3_clks R8A7790_CLK_SDHI0>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200269 cap-sd-highspeed;
270 status = "disabled";
271 };
272
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700273 sdhi1: sd@ee120000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200274 compatible = "renesas,sdhi-r8a7790";
Ben Dooksd721a152013-12-16 12:38:48 +0000275 reg = <0 0xee120000 0 0x200>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200276 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100277 interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100278 clocks = <&mstp3_clks R8A7790_CLK_SDHI1>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200279 cap-sd-highspeed;
280 status = "disabled";
281 };
282
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700283 sdhi2: sd@ee140000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200284 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200285 reg = <0 0xee140000 0 0x100>;
286 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100287 interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100288 clocks = <&mstp3_clks R8A7790_CLK_SDHI2>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200289 cap-sd-highspeed;
290 status = "disabled";
291 };
292
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700293 sdhi3: sd@ee160000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200294 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200295 reg = <0 0xee160000 0 0x100>;
296 interrupt-parent = <&gic>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100297 interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100298 clocks = <&mstp3_clks R8A7790_CLK_SDHI3>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200299 cap-sd-highspeed;
300 status = "disabled";
301 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100302
Laurent Pinchart597af202013-10-29 16:23:12 +0100303 scifa0: serial@e6c40000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100304 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100305 reg = <0 0xe6c40000 0 64>;
306 interrupt-parent = <&gic>;
307 interrupts = <0 144 4>;
308 clocks = <&mstp2_clks R8A7790_CLK_SCIFA0>;
309 clock-names = "sci_ick";
310 status = "disabled";
311 };
312
313 scifa1: serial@e6c50000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100314 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100315 interrupt-parent = <&gic>;
316 reg = <0 0xe6c50000 0 64>;
317 interrupts = <0 145 4>;
318 clocks = <&mstp2_clks R8A7790_CLK_SCIFA1>;
319 clock-names = "sci_ick";
320 status = "disabled";
321 };
322
323 scifa2: serial@e6c60000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100324 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100325 interrupt-parent = <&gic>;
326 reg = <0 0xe6c60000 0 64>;
327 interrupts = <0 151 4>;
328 clocks = <&mstp2_clks R8A7790_CLK_SCIFA2>;
329 clock-names = "sci_ick";
330 status = "disabled";
331 };
332
333 scifb0: serial@e6c20000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100334 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100335 interrupt-parent = <&gic>;
336 reg = <0 0xe6c20000 0 64>;
337 interrupts = <0 148 4>;
338 clocks = <&mstp2_clks R8A7790_CLK_SCIFB0>;
339 clock-names = "sci_ick";
340 status = "disabled";
341 };
342
343 scifb1: serial@e6c30000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100344 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100345 interrupt-parent = <&gic>;
346 reg = <0 0xe6c30000 0 64>;
347 interrupts = <0 149 4>;
348 clocks = <&mstp2_clks R8A7790_CLK_SCIFB1>;
349 clock-names = "sci_ick";
350 status = "disabled";
351 };
352
353 scifb2: serial@e6ce0000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100354 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100355 interrupt-parent = <&gic>;
356 reg = <0 0xe6ce0000 0 64>;
357 interrupts = <0 150 4>;
358 clocks = <&mstp2_clks R8A7790_CLK_SCIFB2>;
359 clock-names = "sci_ick";
360 status = "disabled";
361 };
362
363 scif0: serial@e6e60000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100364 compatible = "renesas,scif-r8a7790", "renesas,scif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100365 interrupt-parent = <&gic>;
366 reg = <0 0xe6e60000 0 64>;
367 interrupts = <0 152 4>;
368 clocks = <&mstp7_clks R8A7790_CLK_SCIF0>;
369 clock-names = "sci_ick";
370 status = "disabled";
371 };
372
373 scif1: serial@e6e68000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100374 compatible = "renesas,scif-r8a7790", "renesas,scif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100375 interrupt-parent = <&gic>;
376 reg = <0 0xe6e68000 0 64>;
377 interrupts = <0 153 4>;
378 clocks = <&mstp7_clks R8A7790_CLK_SCIF1>;
379 clock-names = "sci_ick";
380 status = "disabled";
381 };
382
383 hscif0: serial@e62c0000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100384 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100385 interrupt-parent = <&gic>;
386 reg = <0 0xe62c0000 0 96>;
387 interrupts = <0 154 4>;
388 clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>;
389 clock-names = "sci_ick";
390 status = "disabled";
391 };
392
393 hscif1: serial@e62c8000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100394 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100395 interrupt-parent = <&gic>;
396 reg = <0 0xe62c8000 0 96>;
397 interrupts = <0 155 4>;
398 clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>;
399 clock-names = "sci_ick";
400 status = "disabled";
401 };
402
Valentine Barshakcde630f2014-01-14 21:05:30 +0400403 sata0: sata@ee300000 {
404 compatible = "renesas,sata-r8a7790";
405 reg = <0 0xee300000 0 0x2000>;
406 interrupt-parent = <&gic>;
407 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
408 clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
409 status = "disabled";
410 };
411
412 sata1: sata@ee500000 {
413 compatible = "renesas,sata-r8a7790";
414 reg = <0 0xee500000 0 0x2000>;
415 interrupt-parent = <&gic>;
416 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
417 clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
418 status = "disabled";
419 };
420
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100421 clocks {
422 #address-cells = <2>;
423 #size-cells = <2>;
424 ranges;
425
426 /* External root clock */
427 extal_clk: extal_clk {
428 compatible = "fixed-clock";
429 #clock-cells = <0>;
430 /* This value must be overriden by the board. */
431 clock-frequency = <0>;
432 clock-output-names = "extal";
433 };
434
435 /* Special CPG clocks */
436 cpg_clocks: cpg_clocks@e6150000 {
437 compatible = "renesas,r8a7790-cpg-clocks",
438 "renesas,rcar-gen2-cpg-clocks";
439 reg = <0 0xe6150000 0 0x1000>;
440 clocks = <&extal_clk>;
441 #clock-cells = <1>;
442 clock-output-names = "main", "pll0", "pll1", "pll3",
443 "lb", "qspi", "sdh", "sd0", "sd1",
444 "z";
445 };
446
447 /* Variable factor clocks */
448 sd2_clk: sd2_clk@e6150078 {
449 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
450 reg = <0 0xe6150078 0 4>;
451 clocks = <&pll1_div2_clk>;
452 #clock-cells = <0>;
453 clock-output-names = "sd2";
454 };
455 sd3_clk: sd3_clk@e615007c {
456 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
457 reg = <0 0xe615007c 0 4>;
458 clocks = <&pll1_div2_clk>;
459 #clock-cells = <0>;
460 clock-output-names = "sd3";
461 };
462 mmc0_clk: mmc0_clk@e6150240 {
463 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
464 reg = <0 0xe6150240 0 4>;
465 clocks = <&pll1_div2_clk>;
466 #clock-cells = <0>;
467 clock-output-names = "mmc0";
468 };
469 mmc1_clk: mmc1_clk@e6150244 {
470 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
471 reg = <0 0xe6150244 0 4>;
472 clocks = <&pll1_div2_clk>;
473 #clock-cells = <0>;
474 clock-output-names = "mmc1";
475 };
476 ssp_clk: ssp_clk@e6150248 {
477 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
478 reg = <0 0xe6150248 0 4>;
479 clocks = <&pll1_div2_clk>;
480 #clock-cells = <0>;
481 clock-output-names = "ssp";
482 };
483 ssprs_clk: ssprs_clk@e615024c {
484 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
485 reg = <0 0xe615024c 0 4>;
486 clocks = <&pll1_div2_clk>;
487 #clock-cells = <0>;
488 clock-output-names = "ssprs";
489 };
490
491 /* Fixed factor clocks */
492 pll1_div2_clk: pll1_div2_clk {
493 compatible = "fixed-factor-clock";
494 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
495 #clock-cells = <0>;
496 clock-div = <2>;
497 clock-mult = <1>;
498 clock-output-names = "pll1_div2";
499 };
500 z2_clk: z2_clk {
501 compatible = "fixed-factor-clock";
502 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
503 #clock-cells = <0>;
504 clock-div = <2>;
505 clock-mult = <1>;
506 clock-output-names = "z2";
507 };
508 zg_clk: zg_clk {
509 compatible = "fixed-factor-clock";
510 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
511 #clock-cells = <0>;
512 clock-div = <3>;
513 clock-mult = <1>;
514 clock-output-names = "zg";
515 };
516 zx_clk: zx_clk {
517 compatible = "fixed-factor-clock";
518 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
519 #clock-cells = <0>;
520 clock-div = <3>;
521 clock-mult = <1>;
522 clock-output-names = "zx";
523 };
524 zs_clk: zs_clk {
525 compatible = "fixed-factor-clock";
526 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
527 #clock-cells = <0>;
528 clock-div = <6>;
529 clock-mult = <1>;
530 clock-output-names = "zs";
531 };
532 hp_clk: hp_clk {
533 compatible = "fixed-factor-clock";
534 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
535 #clock-cells = <0>;
536 clock-div = <12>;
537 clock-mult = <1>;
538 clock-output-names = "hp";
539 };
540 i_clk: i_clk {
541 compatible = "fixed-factor-clock";
542 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
543 #clock-cells = <0>;
544 clock-div = <2>;
545 clock-mult = <1>;
546 clock-output-names = "i";
547 };
548 b_clk: b_clk {
549 compatible = "fixed-factor-clock";
550 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
551 #clock-cells = <0>;
552 clock-div = <12>;
553 clock-mult = <1>;
554 clock-output-names = "b";
555 };
556 p_clk: p_clk {
557 compatible = "fixed-factor-clock";
558 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
559 #clock-cells = <0>;
560 clock-div = <24>;
561 clock-mult = <1>;
562 clock-output-names = "p";
563 };
564 cl_clk: cl_clk {
565 compatible = "fixed-factor-clock";
566 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
567 #clock-cells = <0>;
568 clock-div = <48>;
569 clock-mult = <1>;
570 clock-output-names = "cl";
571 };
572 m2_clk: m2_clk {
573 compatible = "fixed-factor-clock";
574 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
575 #clock-cells = <0>;
576 clock-div = <8>;
577 clock-mult = <1>;
578 clock-output-names = "m2";
579 };
580 imp_clk: imp_clk {
581 compatible = "fixed-factor-clock";
582 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
583 #clock-cells = <0>;
584 clock-div = <4>;
585 clock-mult = <1>;
586 clock-output-names = "imp";
587 };
588 rclk_clk: rclk_clk {
589 compatible = "fixed-factor-clock";
590 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
591 #clock-cells = <0>;
592 clock-div = <(48 * 1024)>;
593 clock-mult = <1>;
594 clock-output-names = "rclk";
595 };
596 oscclk_clk: oscclk_clk {
597 compatible = "fixed-factor-clock";
598 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
599 #clock-cells = <0>;
600 clock-div = <(12 * 1024)>;
601 clock-mult = <1>;
602 clock-output-names = "oscclk";
603 };
604 zb3_clk: zb3_clk {
605 compatible = "fixed-factor-clock";
606 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
607 #clock-cells = <0>;
608 clock-div = <4>;
609 clock-mult = <1>;
610 clock-output-names = "zb3";
611 };
612 zb3d2_clk: zb3d2_clk {
613 compatible = "fixed-factor-clock";
614 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
615 #clock-cells = <0>;
616 clock-div = <8>;
617 clock-mult = <1>;
618 clock-output-names = "zb3d2";
619 };
620 ddr_clk: ddr_clk {
621 compatible = "fixed-factor-clock";
622 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
623 #clock-cells = <0>;
624 clock-div = <8>;
625 clock-mult = <1>;
626 clock-output-names = "ddr";
627 };
628 mp_clk: mp_clk {
629 compatible = "fixed-factor-clock";
630 clocks = <&pll1_div2_clk>;
631 #clock-cells = <0>;
632 clock-div = <15>;
633 clock-mult = <1>;
634 clock-output-names = "mp";
635 };
636 cp_clk: cp_clk {
637 compatible = "fixed-factor-clock";
638 clocks = <&extal_clk>;
639 #clock-cells = <0>;
640 clock-div = <2>;
641 clock-mult = <1>;
642 clock-output-names = "cp";
643 };
644
645 /* Gate clocks */
Laurent Pinchart9d909512013-12-19 16:51:01 +0100646 mstp0_clks: mstp0_clks@e6150130 {
647 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
648 reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
649 clocks = <&mp_clk>;
650 #clock-cells = <1>;
651 renesas,clock-indices = <R8A7790_CLK_MSIOF0>;
652 clock-output-names = "msiof0";
653 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100654 mstp1_clks: mstp1_clks@e6150134 {
655 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
656 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
657 clocks = <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>,
658 <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>,
659 <&zs_clk>;
660 #clock-cells = <1>;
661 renesas,clock-indices = <
662 R8A7790_CLK_TMU1 R8A7790_CLK_TMU3 R8A7790_CLK_TMU2
663 R8A7790_CLK_CMT0 R8A7790_CLK_TMU0 R8A7790_CLK_VSP1_DU1
664 R8A7790_CLK_VSP1_DU0 R8A7790_CLK_VSP1_RT R8A7790_CLK_VSP1_SY
665 >;
666 clock-output-names =
667 "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1",
668 "vsp1-du0", "vsp1-rt", "vsp1-sy";
669 };
670 mstp2_clks: mstp2_clks@e6150138 {
671 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
672 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
673 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
Laurent Pinchart9d909512013-12-19 16:51:01 +0100674 <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100675 #clock-cells = <1>;
676 renesas,clock-indices = <
677 R8A7790_CLK_SCIFA2 R8A7790_CLK_SCIFA1 R8A7790_CLK_SCIFA0
Laurent Pinchart9d909512013-12-19 16:51:01 +0100678 R8A7790_CLK_MSIOF2 R8A7790_CLK_SCIFB0 R8A7790_CLK_SCIFB1
679 R8A7790_CLK_MSIOF1 R8A7790_CLK_MSIOF3 R8A7790_CLK_SCIFB2
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100680 >;
681 clock-output-names =
Laurent Pinchart9d909512013-12-19 16:51:01 +0100682 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
683 "scifb1", "msiof1", "msiof3", "scifb2";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100684 };
685 mstp3_clks: mstp3_clks@e615013c {
686 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
687 reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
688 clocks = <&cp_clk>, <&mmc1_clk>, <&sd3_clk>, <&sd2_clk>,
689 <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>,
690 <&mmc0_clk>, <&rclk_clk>;
691 #clock-cells = <1>;
692 renesas,clock-indices = <
693 R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
694 R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0
695 R8A7790_CLK_MMCIF0 R8A7790_CLK_CMT1
696 >;
697 clock-output-names =
698 "tpu0", "mmcif1", "sdhi3", "sdhi2",
699 "sdhi1", "sdhi0", "mmcif0", "cmt1";
700 };
701 mstp5_clks: mstp5_clks@e6150144 {
702 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
703 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
704 clocks = <&extal_clk>, <&p_clk>;
705 #clock-cells = <1>;
706 renesas,clock-indices = <R8A7790_CLK_THERMAL R8A7790_CLK_PWM>;
707 clock-output-names = "thermal", "pwm";
708 };
709 mstp7_clks: mstp7_clks@e615014c {
710 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
711 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
712 clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>,
713 <&p_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>,
714 <&zx_clk>;
715 #clock-cells = <1>;
716 renesas,clock-indices = <
717 R8A7790_CLK_EHCI R8A7790_CLK_HSUSB R8A7790_CLK_HSCIF1
718 R8A7790_CLK_HSCIF0 R8A7790_CLK_SCIF1 R8A7790_CLK_SCIF0
719 R8A7790_CLK_DU2 R8A7790_CLK_DU1 R8A7790_CLK_DU0
720 R8A7790_CLK_LVDS1 R8A7790_CLK_LVDS0
721 >;
722 clock-output-names =
723 "ehci", "hsusb", "hscif1", "hscif0", "scif1",
724 "scif0", "du2", "du1", "du0", "lvds1", "lvds0";
725 };
726 mstp8_clks: mstp8_clks@e6150990 {
727 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
728 reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
Laurent Pinchartbccccc32014-01-07 09:22:55 +0100729 clocks = <&zg_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>, <&p_clk>,
730 <&zs_clk>, <&zs_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100731 #clock-cells = <1>;
Laurent Pinchart3f2beaa2014-01-07 09:22:53 +0100732 renesas,clock-indices = <
733 R8A7790_CLK_VIN3 R8A7790_CLK_VIN2 R8A7790_CLK_VIN1
Laurent Pinchartbccccc32014-01-07 09:22:55 +0100734 R8A7790_CLK_VIN0 R8A7790_CLK_ETHER R8A7790_CLK_SATA1
735 R8A7790_CLK_SATA0
Laurent Pinchart3f2beaa2014-01-07 09:22:53 +0100736 >;
Laurent Pinchartbccccc32014-01-07 09:22:55 +0100737 clock-output-names =
738 "vin3", "vin2", "vin1", "vin0", "ether", "sata1", "sata0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100739 };
740 mstp9_clks: mstp9_clks@e6150994 {
741 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
742 reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
Laurent Pinchart91b56ca2013-12-19 16:51:03 +0100743 clocks = <&p_clk>, <&p_clk>, <&cpg_clocks R8A7790_CLK_QSPI>,
744 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100745 #clock-cells = <1>;
746 renesas,clock-indices = <
Laurent Pinchart91b56ca2013-12-19 16:51:03 +0100747 R8A7790_CLK_RCAN1 R8A7790_CLK_RCAN0 R8A7790_CLK_QSPI_MOD
748 R8A7790_CLK_I2C3 R8A7790_CLK_I2C2 R8A7790_CLK_I2C1
749 R8A7790_CLK_I2C0
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100750 >;
Laurent Pinchart91b56ca2013-12-19 16:51:03 +0100751 clock-output-names =
752 "rcan1", "rcan0", "qspi_mod", "i2c3", "i2c2", "i2c1", "i2c0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100753 };
754 };
Magnus Damm0468b2d2013-03-28 00:49:34 +0900755};