blob: 7218bfff0bca03d3b58e03a01fe98c0f7154650b [file] [log] [blame]
Magnus Damm0468b2d2013-03-28 00:49:34 +09001/*
2 * Device Tree Source for the r8a7790 SoC
3 *
Sergei Shtylyovd8913c62014-02-20 02:20:43 +03004 * Copyright (C) 2013-2014 Renesas Solutions Corp.
5 * Copyright (C) 2014 Cogent Embedded Inc.
Magnus Damm0468b2d2013-03-28 00:49:34 +09006 *
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.
10 */
11
Laurent Pinchart22a1f592013-12-11 15:05:14 +010012#include <dt-bindings/clock/r8a7790-clock.h>
Laurent Pinchart5f75e732013-11-19 03:18:25 +010013#include <dt-bindings/interrupt-controller/arm-gic.h>
14#include <dt-bindings/interrupt-controller/irq.h>
15
Magnus Damm0468b2d2013-03-28 00:49:34 +090016/ {
17 compatible = "renesas,r8a7790";
18 interrupt-parent = <&gic>;
Takashi Yoshii8585deb2013-03-29 16:49:17 +090019 #address-cells = <2>;
20 #size-cells = <2>;
Magnus Damm0468b2d2013-03-28 00:49:34 +090021
Wolfram Sang6b1d7c62014-02-16 10:40:58 +010022 aliases {
23 i2c0 = &i2c0;
24 i2c1 = &i2c1;
25 i2c2 = &i2c2;
26 i2c3 = &i2c3;
Wolfram Sang05f39912014-03-25 19:56:29 +010027 i2c4 = &iic0;
28 i2c5 = &iic1;
29 i2c6 = &iic2;
30 i2c7 = &iic3;
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +010031 spi0 = &qspi;
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +010032 spi1 = &msiof0;
33 spi2 = &msiof1;
34 spi3 = &msiof2;
35 spi4 = &msiof3;
Wolfram Sang6b1d7c62014-02-16 10:40:58 +010036 };
37
Magnus Damm0468b2d2013-03-28 00:49:34 +090038 cpus {
39 #address-cells = <1>;
40 #size-cells = <0>;
41
42 cpu0: cpu@0 {
43 device_type = "cpu";
44 compatible = "arm,cortex-a15";
45 reg = <0>;
46 clock-frequency = <1300000000>;
Benoit Coussonb989e132014-06-03 21:02:24 +090047 voltage-tolerance = <1>; /* 1% */
48 clocks = <&cpg_clocks R8A7790_CLK_Z>;
49 clock-latency = <300000>; /* 300 us */
50
51 /* kHz - uV - OPPs unknown yet */
52 operating-points = <1400000 1000000>,
53 <1225000 1000000>,
54 <1050000 1000000>,
55 < 875000 1000000>,
56 < 700000 1000000>,
57 < 350000 1000000>;
Magnus Damm0468b2d2013-03-28 00:49:34 +090058 };
Magnus Dammc1f95972013-08-29 08:22:17 +090059
60 cpu1: cpu@1 {
61 device_type = "cpu";
62 compatible = "arm,cortex-a15";
63 reg = <1>;
64 clock-frequency = <1300000000>;
65 };
66
67 cpu2: cpu@2 {
68 device_type = "cpu";
69 compatible = "arm,cortex-a15";
70 reg = <2>;
71 clock-frequency = <1300000000>;
72 };
73
74 cpu3: cpu@3 {
75 device_type = "cpu";
76 compatible = "arm,cortex-a15";
77 reg = <3>;
78 clock-frequency = <1300000000>;
79 };
Magnus Damm2007e742013-09-15 00:28:58 +090080
81 cpu4: cpu@4 {
82 device_type = "cpu";
83 compatible = "arm,cortex-a7";
84 reg = <0x100>;
85 clock-frequency = <780000000>;
86 };
87
88 cpu5: cpu@5 {
89 device_type = "cpu";
90 compatible = "arm,cortex-a7";
91 reg = <0x101>;
92 clock-frequency = <780000000>;
93 };
94
95 cpu6: cpu@6 {
96 device_type = "cpu";
97 compatible = "arm,cortex-a7";
98 reg = <0x102>;
99 clock-frequency = <780000000>;
100 };
101
102 cpu7: cpu@7 {
103 device_type = "cpu";
104 compatible = "arm,cortex-a7";
105 reg = <0x103>;
106 clock-frequency = <780000000>;
107 };
Magnus Damm0468b2d2013-03-28 00:49:34 +0900108 };
109
110 gic: interrupt-controller@f1001000 {
111 compatible = "arm,cortex-a15-gic";
112 #interrupt-cells = <3>;
113 #address-cells = <0>;
114 interrupt-controller;
Takashi Yoshii8585deb2013-03-29 16:49:17 +0900115 reg = <0 0xf1001000 0 0x1000>,
116 <0 0xf1002000 0 0x1000>,
117 <0 0xf1004000 0 0x2000>,
118 <0 0xf1006000 0 0x2000>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100119 interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Magnus Damm0468b2d2013-03-28 00:49:34 +0900120 };
121
Magnus Damm23de2272013-11-21 14:19:29 +0900122 gpio0: gpio@e6050000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200123 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900124 reg = <0 0xe6050000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100125 interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200126 #gpio-cells = <2>;
127 gpio-controller;
128 gpio-ranges = <&pfc 0 0 32>;
129 #interrupt-cells = <2>;
130 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200131 clocks = <&mstp9_clks R8A7790_CLK_GPIO0>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200132 };
133
Magnus Damm23de2272013-11-21 14:19:29 +0900134 gpio1: gpio@e6051000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200135 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900136 reg = <0 0xe6051000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100137 interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200138 #gpio-cells = <2>;
139 gpio-controller;
140 gpio-ranges = <&pfc 0 32 32>;
141 #interrupt-cells = <2>;
142 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200143 clocks = <&mstp9_clks R8A7790_CLK_GPIO1>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200144 };
145
Magnus Damm23de2272013-11-21 14:19:29 +0900146 gpio2: gpio@e6052000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200147 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900148 reg = <0 0xe6052000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100149 interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200150 #gpio-cells = <2>;
151 gpio-controller;
152 gpio-ranges = <&pfc 0 64 32>;
153 #interrupt-cells = <2>;
154 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200155 clocks = <&mstp9_clks R8A7790_CLK_GPIO2>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200156 };
157
Magnus Damm23de2272013-11-21 14:19:29 +0900158 gpio3: gpio@e6053000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200159 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900160 reg = <0 0xe6053000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100161 interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200162 #gpio-cells = <2>;
163 gpio-controller;
164 gpio-ranges = <&pfc 0 96 32>;
165 #interrupt-cells = <2>;
166 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200167 clocks = <&mstp9_clks R8A7790_CLK_GPIO3>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200168 };
169
Magnus Damm23de2272013-11-21 14:19:29 +0900170 gpio4: gpio@e6054000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200171 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900172 reg = <0 0xe6054000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100173 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200174 #gpio-cells = <2>;
175 gpio-controller;
176 gpio-ranges = <&pfc 0 128 32>;
177 #interrupt-cells = <2>;
178 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200179 clocks = <&mstp9_clks R8A7790_CLK_GPIO4>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200180 };
181
Magnus Damm23de2272013-11-21 14:19:29 +0900182 gpio5: gpio@e6055000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200183 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900184 reg = <0 0xe6055000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100185 interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200186 #gpio-cells = <2>;
187 gpio-controller;
188 gpio-ranges = <&pfc 0 160 32>;
189 #interrupt-cells = <2>;
190 interrupt-controller;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200191 clocks = <&mstp9_clks R8A7790_CLK_GPIO5>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200192 };
193
Magnus Damm03e2f562013-11-20 16:59:30 +0900194 thermal@e61f0000 {
195 compatible = "renesas,thermal-r8a7790", "renesas,rcar-thermal";
196 reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
Magnus Damm03e2f562013-11-20 16:59:30 +0900197 interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoevend3a439d2014-01-07 19:57:14 +0100198 clocks = <&mstp5_clks R8A7790_CLK_THERMAL>;
Magnus Damm03e2f562013-11-20 16:59:30 +0900199 };
200
Magnus Damm0468b2d2013-03-28 00:49:34 +0900201 timer {
202 compatible = "arm,armv7-timer";
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100203 interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
204 <1 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
205 <1 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
206 <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Magnus Damm0468b2d2013-03-28 00:49:34 +0900207 };
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900208
Laurent Pinchart39cf6d72014-07-09 15:12:37 +0200209 cmt0: timer@ffca0000 {
210 compatible = "renesas,cmt-48-gen2";
211 reg = <0 0xffca0000 0 0x1004>;
212 interrupts = <0 142 IRQ_TYPE_LEVEL_HIGH>,
213 <0 143 IRQ_TYPE_LEVEL_HIGH>;
214 clocks = <&mstp1_clks R8A7790_CLK_CMT0>;
215 clock-names = "fck";
216
217 renesas,channels-mask = <0x60>;
218
219 status = "disabled";
220 };
221
222 cmt1: timer@e6130000 {
223 compatible = "renesas,cmt-48-gen2";
224 reg = <0 0xe6130000 0 0x1004>;
225 interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>,
226 <0 121 IRQ_TYPE_LEVEL_HIGH>,
227 <0 122 IRQ_TYPE_LEVEL_HIGH>,
228 <0 123 IRQ_TYPE_LEVEL_HIGH>,
229 <0 124 IRQ_TYPE_LEVEL_HIGH>,
230 <0 125 IRQ_TYPE_LEVEL_HIGH>,
231 <0 126 IRQ_TYPE_LEVEL_HIGH>,
232 <0 127 IRQ_TYPE_LEVEL_HIGH>;
233 clocks = <&mstp3_clks R8A7790_CLK_CMT1>;
234 clock-names = "fck";
235
236 renesas,channels-mask = <0xff>;
237
238 status = "disabled";
239 };
240
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900241 irqc0: interrupt-controller@e61c0000 {
Magnus Damm220fc352013-11-20 09:07:40 +0900242 compatible = "renesas,irqc-r8a7790", "renesas,irqc";
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900243 #interrupt-cells = <2>;
244 interrupt-controller;
Takashi Yoshii8585deb2013-03-29 16:49:17 +0900245 reg = <0 0xe61c0000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100246 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
247 <0 1 IRQ_TYPE_LEVEL_HIGH>,
248 <0 2 IRQ_TYPE_LEVEL_HIGH>,
249 <0 3 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900250 };
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200251
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200252 i2c0: i2c@e6508000 {
253 #address-cells = <1>;
254 #size-cells = <0>;
255 compatible = "renesas,i2c-r8a7790";
256 reg = <0 0xe6508000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100257 interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000258 clocks = <&mstp9_clks R8A7790_CLK_I2C0>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200259 status = "disabled";
260 };
261
262 i2c1: i2c@e6518000 {
263 #address-cells = <1>;
264 #size-cells = <0>;
265 compatible = "renesas,i2c-r8a7790";
266 reg = <0 0xe6518000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100267 interrupts = <0 288 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000268 clocks = <&mstp9_clks R8A7790_CLK_I2C1>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200269 status = "disabled";
270 };
271
272 i2c2: i2c@e6530000 {
273 #address-cells = <1>;
274 #size-cells = <0>;
275 compatible = "renesas,i2c-r8a7790";
276 reg = <0 0xe6530000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100277 interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000278 clocks = <&mstp9_clks R8A7790_CLK_I2C2>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200279 status = "disabled";
280 };
281
282 i2c3: i2c@e6540000 {
283 #address-cells = <1>;
284 #size-cells = <0>;
285 compatible = "renesas,i2c-r8a7790";
286 reg = <0 0xe6540000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100287 interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000288 clocks = <&mstp9_clks R8A7790_CLK_I2C3>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200289 status = "disabled";
290 };
291
Wolfram Sang05f39912014-03-25 19:56:29 +0100292 iic0: i2c@e6500000 {
293 #address-cells = <1>;
294 #size-cells = <0>;
295 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
296 reg = <0 0xe6500000 0 0x425>;
297 interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>;
298 clocks = <&mstp3_clks R8A7790_CLK_IIC0>;
299 status = "disabled";
300 };
301
302 iic1: i2c@e6510000 {
303 #address-cells = <1>;
304 #size-cells = <0>;
305 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
306 reg = <0 0xe6510000 0 0x425>;
307 interrupts = <0 175 IRQ_TYPE_LEVEL_HIGH>;
308 clocks = <&mstp3_clks R8A7790_CLK_IIC1>;
309 status = "disabled";
310 };
311
312 iic2: i2c@e6520000 {
313 #address-cells = <1>;
314 #size-cells = <0>;
315 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
316 reg = <0 0xe6520000 0 0x425>;
317 interrupts = <0 176 IRQ_TYPE_LEVEL_HIGH>;
318 clocks = <&mstp3_clks R8A7790_CLK_IIC2>;
319 status = "disabled";
320 };
321
322 iic3: i2c@e60b0000 {
323 #address-cells = <1>;
324 #size-cells = <0>;
325 compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
326 reg = <0 0xe60b0000 0 0x425>;
327 interrupts = <0 173 IRQ_TYPE_LEVEL_HIGH>;
328 clocks = <&mstp9_clks R8A7790_CLK_IICDVFS>;
329 status = "disabled";
330 };
331
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200332 mmcif0: mmcif@ee200000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900333 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200334 reg = <0 0xee200000 0 0x80>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100335 interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100336 clocks = <&mstp3_clks R8A7790_CLK_MMCIF0>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200337 reg-io-width = <4>;
338 status = "disabled";
339 };
340
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700341 mmcif1: mmc@ee220000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900342 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200343 reg = <0 0xee220000 0 0x80>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100344 interrupts = <0 170 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100345 clocks = <&mstp3_clks R8A7790_CLK_MMCIF1>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200346 reg-io-width = <4>;
347 status = "disabled";
348 };
349
Laurent Pinchart9694c772013-05-09 15:05:57 +0200350 pfc: pfc@e6060000 {
351 compatible = "renesas,pfc-r8a7790";
352 reg = <0 0xe6060000 0 0x250>;
353 };
Olof Johansson55689bf2013-08-14 00:24:05 -0700354
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700355 sdhi0: sd@ee100000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200356 compatible = "renesas,sdhi-r8a7790";
Ben Dooksd721a152013-12-16 12:38:48 +0000357 reg = <0 0xee100000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100358 interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100359 clocks = <&mstp3_clks R8A7790_CLK_SDHI0>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200360 cap-sd-highspeed;
361 status = "disabled";
362 };
363
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700364 sdhi1: sd@ee120000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200365 compatible = "renesas,sdhi-r8a7790";
Ben Dooksd721a152013-12-16 12:38:48 +0000366 reg = <0 0xee120000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100367 interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100368 clocks = <&mstp3_clks R8A7790_CLK_SDHI1>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200369 cap-sd-highspeed;
370 status = "disabled";
371 };
372
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700373 sdhi2: sd@ee140000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200374 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200375 reg = <0 0xee140000 0 0x100>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100376 interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100377 clocks = <&mstp3_clks R8A7790_CLK_SDHI2>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200378 cap-sd-highspeed;
379 status = "disabled";
380 };
381
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700382 sdhi3: sd@ee160000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200383 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200384 reg = <0 0xee160000 0 0x100>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100385 interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100386 clocks = <&mstp3_clks R8A7790_CLK_SDHI3>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200387 cap-sd-highspeed;
388 status = "disabled";
389 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100390
Laurent Pinchart597af202013-10-29 16:23:12 +0100391 scifa0: serial@e6c40000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100392 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100393 reg = <0 0xe6c40000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100394 interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100395 clocks = <&mstp2_clks R8A7790_CLK_SCIFA0>;
396 clock-names = "sci_ick";
397 status = "disabled";
398 };
399
400 scifa1: serial@e6c50000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100401 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100402 reg = <0 0xe6c50000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100403 interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100404 clocks = <&mstp2_clks R8A7790_CLK_SCIFA1>;
405 clock-names = "sci_ick";
406 status = "disabled";
407 };
408
409 scifa2: serial@e6c60000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100410 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100411 reg = <0 0xe6c60000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100412 interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100413 clocks = <&mstp2_clks R8A7790_CLK_SCIFA2>;
414 clock-names = "sci_ick";
415 status = "disabled";
416 };
417
418 scifb0: serial@e6c20000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100419 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100420 reg = <0 0xe6c20000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100421 interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100422 clocks = <&mstp2_clks R8A7790_CLK_SCIFB0>;
423 clock-names = "sci_ick";
424 status = "disabled";
425 };
426
427 scifb1: serial@e6c30000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100428 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100429 reg = <0 0xe6c30000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100430 interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100431 clocks = <&mstp2_clks R8A7790_CLK_SCIFB1>;
432 clock-names = "sci_ick";
433 status = "disabled";
434 };
435
436 scifb2: serial@e6ce0000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100437 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100438 reg = <0 0xe6ce0000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100439 interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100440 clocks = <&mstp2_clks R8A7790_CLK_SCIFB2>;
441 clock-names = "sci_ick";
442 status = "disabled";
443 };
444
445 scif0: serial@e6e60000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100446 compatible = "renesas,scif-r8a7790", "renesas,scif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100447 reg = <0 0xe6e60000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100448 interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100449 clocks = <&mstp7_clks R8A7790_CLK_SCIF0>;
450 clock-names = "sci_ick";
451 status = "disabled";
452 };
453
454 scif1: serial@e6e68000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100455 compatible = "renesas,scif-r8a7790", "renesas,scif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100456 reg = <0 0xe6e68000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100457 interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100458 clocks = <&mstp7_clks R8A7790_CLK_SCIF1>;
459 clock-names = "sci_ick";
460 status = "disabled";
461 };
462
463 hscif0: serial@e62c0000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100464 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100465 reg = <0 0xe62c0000 0 96>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100466 interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100467 clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>;
468 clock-names = "sci_ick";
469 status = "disabled";
470 };
471
472 hscif1: serial@e62c8000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100473 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100474 reg = <0 0xe62c8000 0 96>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100475 interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100476 clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>;
477 clock-names = "sci_ick";
478 status = "disabled";
479 };
480
Sergei Shtylyovd8913c62014-02-20 02:20:43 +0300481 ether: ethernet@ee700000 {
482 compatible = "renesas,ether-r8a7790";
483 reg = <0 0xee700000 0 0x400>;
484 interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>;
485 clocks = <&mstp8_clks R8A7790_CLK_ETHER>;
486 phy-mode = "rmii";
487 #address-cells = <1>;
488 #size-cells = <0>;
489 status = "disabled";
490 };
491
Valentine Barshakcde630f2014-01-14 21:05:30 +0400492 sata0: sata@ee300000 {
493 compatible = "renesas,sata-r8a7790";
494 reg = <0 0xee300000 0 0x2000>;
Valentine Barshakcde630f2014-01-14 21:05:30 +0400495 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
496 clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
497 status = "disabled";
498 };
499
500 sata1: sata@ee500000 {
501 compatible = "renesas,sata-r8a7790";
502 reg = <0 0xee500000 0 0x2000>;
Valentine Barshakcde630f2014-01-14 21:05:30 +0400503 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
504 clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
505 status = "disabled";
506 };
507
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100508 clocks {
509 #address-cells = <2>;
510 #size-cells = <2>;
511 ranges;
512
513 /* External root clock */
514 extal_clk: extal_clk {
515 compatible = "fixed-clock";
516 #clock-cells = <0>;
517 /* This value must be overriden by the board. */
518 clock-frequency = <0>;
519 clock-output-names = "extal";
520 };
521
Phil Edworthy51d17912014-06-13 10:37:16 +0100522 /* External PCIe clock - can be overridden by the board */
523 pcie_bus_clk: pcie_bus_clk {
524 compatible = "fixed-clock";
525 #clock-cells = <0>;
526 clock-frequency = <100000000>;
527 clock-output-names = "pcie_bus";
528 status = "disabled";
529 };
530
Kuninori Morimotoc7c2ec32014-01-13 18:25:39 -0800531 /*
532 * The external audio clocks are configured as 0 Hz fixed frequency clocks by
533 * default. Boards that provide audio clocks should override them.
534 */
535 audio_clk_a: audio_clk_a {
536 compatible = "fixed-clock";
537 #clock-cells = <0>;
538 clock-frequency = <0>;
539 clock-output-names = "audio_clk_a";
540 };
541 audio_clk_b: audio_clk_b {
542 compatible = "fixed-clock";
543 #clock-cells = <0>;
544 clock-frequency = <0>;
545 clock-output-names = "audio_clk_b";
546 };
547 audio_clk_c: audio_clk_c {
548 compatible = "fixed-clock";
549 #clock-cells = <0>;
550 clock-frequency = <0>;
551 clock-output-names = "audio_clk_c";
552 };
553
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100554 /* Special CPG clocks */
555 cpg_clocks: cpg_clocks@e6150000 {
556 compatible = "renesas,r8a7790-cpg-clocks",
557 "renesas,rcar-gen2-cpg-clocks";
558 reg = <0 0xe6150000 0 0x1000>;
559 clocks = <&extal_clk>;
560 #clock-cells = <1>;
561 clock-output-names = "main", "pll0", "pll1", "pll3",
562 "lb", "qspi", "sdh", "sd0", "sd1",
563 "z";
564 };
565
566 /* Variable factor clocks */
567 sd2_clk: sd2_clk@e6150078 {
568 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
569 reg = <0 0xe6150078 0 4>;
570 clocks = <&pll1_div2_clk>;
571 #clock-cells = <0>;
572 clock-output-names = "sd2";
573 };
574 sd3_clk: sd3_clk@e615007c {
575 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
576 reg = <0 0xe615007c 0 4>;
577 clocks = <&pll1_div2_clk>;
578 #clock-cells = <0>;
579 clock-output-names = "sd3";
580 };
581 mmc0_clk: mmc0_clk@e6150240 {
582 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
583 reg = <0 0xe6150240 0 4>;
584 clocks = <&pll1_div2_clk>;
585 #clock-cells = <0>;
586 clock-output-names = "mmc0";
587 };
588 mmc1_clk: mmc1_clk@e6150244 {
589 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
590 reg = <0 0xe6150244 0 4>;
591 clocks = <&pll1_div2_clk>;
592 #clock-cells = <0>;
593 clock-output-names = "mmc1";
594 };
595 ssp_clk: ssp_clk@e6150248 {
596 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
597 reg = <0 0xe6150248 0 4>;
598 clocks = <&pll1_div2_clk>;
599 #clock-cells = <0>;
600 clock-output-names = "ssp";
601 };
602 ssprs_clk: ssprs_clk@e615024c {
603 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
604 reg = <0 0xe615024c 0 4>;
605 clocks = <&pll1_div2_clk>;
606 #clock-cells = <0>;
607 clock-output-names = "ssprs";
608 };
609
610 /* Fixed factor clocks */
611 pll1_div2_clk: pll1_div2_clk {
612 compatible = "fixed-factor-clock";
613 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
614 #clock-cells = <0>;
615 clock-div = <2>;
616 clock-mult = <1>;
617 clock-output-names = "pll1_div2";
618 };
619 z2_clk: z2_clk {
620 compatible = "fixed-factor-clock";
621 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
622 #clock-cells = <0>;
623 clock-div = <2>;
624 clock-mult = <1>;
625 clock-output-names = "z2";
626 };
627 zg_clk: zg_clk {
628 compatible = "fixed-factor-clock";
629 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
630 #clock-cells = <0>;
631 clock-div = <3>;
632 clock-mult = <1>;
633 clock-output-names = "zg";
634 };
635 zx_clk: zx_clk {
636 compatible = "fixed-factor-clock";
637 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
638 #clock-cells = <0>;
639 clock-div = <3>;
640 clock-mult = <1>;
641 clock-output-names = "zx";
642 };
643 zs_clk: zs_clk {
644 compatible = "fixed-factor-clock";
645 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
646 #clock-cells = <0>;
647 clock-div = <6>;
648 clock-mult = <1>;
649 clock-output-names = "zs";
650 };
651 hp_clk: hp_clk {
652 compatible = "fixed-factor-clock";
653 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
654 #clock-cells = <0>;
655 clock-div = <12>;
656 clock-mult = <1>;
657 clock-output-names = "hp";
658 };
659 i_clk: i_clk {
660 compatible = "fixed-factor-clock";
661 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
662 #clock-cells = <0>;
663 clock-div = <2>;
664 clock-mult = <1>;
665 clock-output-names = "i";
666 };
667 b_clk: b_clk {
668 compatible = "fixed-factor-clock";
669 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
670 #clock-cells = <0>;
671 clock-div = <12>;
672 clock-mult = <1>;
673 clock-output-names = "b";
674 };
675 p_clk: p_clk {
676 compatible = "fixed-factor-clock";
677 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
678 #clock-cells = <0>;
679 clock-div = <24>;
680 clock-mult = <1>;
681 clock-output-names = "p";
682 };
683 cl_clk: cl_clk {
684 compatible = "fixed-factor-clock";
685 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
686 #clock-cells = <0>;
687 clock-div = <48>;
688 clock-mult = <1>;
689 clock-output-names = "cl";
690 };
691 m2_clk: m2_clk {
692 compatible = "fixed-factor-clock";
693 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
694 #clock-cells = <0>;
695 clock-div = <8>;
696 clock-mult = <1>;
697 clock-output-names = "m2";
698 };
699 imp_clk: imp_clk {
700 compatible = "fixed-factor-clock";
701 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
702 #clock-cells = <0>;
703 clock-div = <4>;
704 clock-mult = <1>;
705 clock-output-names = "imp";
706 };
707 rclk_clk: rclk_clk {
708 compatible = "fixed-factor-clock";
709 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
710 #clock-cells = <0>;
711 clock-div = <(48 * 1024)>;
712 clock-mult = <1>;
713 clock-output-names = "rclk";
714 };
715 oscclk_clk: oscclk_clk {
716 compatible = "fixed-factor-clock";
717 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
718 #clock-cells = <0>;
719 clock-div = <(12 * 1024)>;
720 clock-mult = <1>;
721 clock-output-names = "oscclk";
722 };
723 zb3_clk: zb3_clk {
724 compatible = "fixed-factor-clock";
725 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
726 #clock-cells = <0>;
727 clock-div = <4>;
728 clock-mult = <1>;
729 clock-output-names = "zb3";
730 };
731 zb3d2_clk: zb3d2_clk {
732 compatible = "fixed-factor-clock";
733 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
734 #clock-cells = <0>;
735 clock-div = <8>;
736 clock-mult = <1>;
737 clock-output-names = "zb3d2";
738 };
739 ddr_clk: ddr_clk {
740 compatible = "fixed-factor-clock";
741 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
742 #clock-cells = <0>;
743 clock-div = <8>;
744 clock-mult = <1>;
745 clock-output-names = "ddr";
746 };
747 mp_clk: mp_clk {
748 compatible = "fixed-factor-clock";
749 clocks = <&pll1_div2_clk>;
750 #clock-cells = <0>;
751 clock-div = <15>;
752 clock-mult = <1>;
753 clock-output-names = "mp";
754 };
755 cp_clk: cp_clk {
756 compatible = "fixed-factor-clock";
757 clocks = <&extal_clk>;
758 #clock-cells = <0>;
759 clock-div = <2>;
760 clock-mult = <1>;
761 clock-output-names = "cp";
762 };
763
764 /* Gate clocks */
Laurent Pinchart9d909512013-12-19 16:51:01 +0100765 mstp0_clks: mstp0_clks@e6150130 {
766 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
767 reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
768 clocks = <&mp_clk>;
769 #clock-cells = <1>;
770 renesas,clock-indices = <R8A7790_CLK_MSIOF0>;
771 clock-output-names = "msiof0";
772 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100773 mstp1_clks: mstp1_clks@e6150134 {
774 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
775 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
776 clocks = <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>,
777 <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>,
778 <&zs_clk>;
779 #clock-cells = <1>;
780 renesas,clock-indices = <
781 R8A7790_CLK_TMU1 R8A7790_CLK_TMU3 R8A7790_CLK_TMU2
782 R8A7790_CLK_CMT0 R8A7790_CLK_TMU0 R8A7790_CLK_VSP1_DU1
Laurent Pinchart79ea9932014-04-02 16:31:46 +0200783 R8A7790_CLK_VSP1_DU0 R8A7790_CLK_VSP1_R R8A7790_CLK_VSP1_S
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100784 >;
785 clock-output-names =
786 "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1",
787 "vsp1-du0", "vsp1-rt", "vsp1-sy";
788 };
789 mstp2_clks: mstp2_clks@e6150138 {
790 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
791 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
792 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
Laurent Pinchart9d909512013-12-19 16:51:01 +0100793 <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100794 #clock-cells = <1>;
795 renesas,clock-indices = <
796 R8A7790_CLK_SCIFA2 R8A7790_CLK_SCIFA1 R8A7790_CLK_SCIFA0
Laurent Pinchart9d909512013-12-19 16:51:01 +0100797 R8A7790_CLK_MSIOF2 R8A7790_CLK_SCIFB0 R8A7790_CLK_SCIFB1
798 R8A7790_CLK_MSIOF1 R8A7790_CLK_MSIOF3 R8A7790_CLK_SCIFB2
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100799 >;
800 clock-output-names =
Laurent Pinchart9d909512013-12-19 16:51:01 +0100801 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
802 "scifb1", "msiof1", "msiof3", "scifb2";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100803 };
804 mstp3_clks: mstp3_clks@e615013c {
805 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
806 reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
Wolfram Sang17465142014-03-11 22:24:37 +0100807 clocks = <&hp_clk>, <&cp_clk>, <&mmc1_clk>, <&sd3_clk>,
808 <&sd2_clk>, <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>, <&mmc0_clk>,
Phil Edworthyecafea82014-06-13 10:37:15 +0100809 <&hp_clk>, <&mp_clk>, <&hp_clk>, <&mp_clk>, <&rclk_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100810 #clock-cells = <1>;
811 renesas,clock-indices = <
Wolfram Sang17465142014-03-11 22:24:37 +0100812 R8A7790_CLK_IIC2 R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
813 R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0 R8A7790_CLK_MMCIF0
Phil Edworthyecafea82014-06-13 10:37:15 +0100814 R8A7790_CLK_IIC0 R8A7790_CLK_PCIEC R8A7790_CLK_IIC1 R8A7790_CLK_SSUSB R8A7790_CLK_CMT1
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100815 >;
816 clock-output-names =
Wolfram Sang17465142014-03-11 22:24:37 +0100817 "iic2", "tpu0", "mmcif1", "sdhi3",
818 "sdhi2", "sdhi1", "sdhi0", "mmcif0",
Phil Edworthyecafea82014-06-13 10:37:15 +0100819 "iic0", "pciec", "iic1", "ssusb", "cmt1";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100820 };
821 mstp5_clks: mstp5_clks@e6150144 {
822 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
823 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
824 clocks = <&extal_clk>, <&p_clk>;
825 #clock-cells = <1>;
826 renesas,clock-indices = <R8A7790_CLK_THERMAL R8A7790_CLK_PWM>;
827 clock-output-names = "thermal", "pwm";
828 };
829 mstp7_clks: mstp7_clks@e615014c {
830 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
831 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
832 clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>,
833 <&p_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>,
834 <&zx_clk>;
835 #clock-cells = <1>;
836 renesas,clock-indices = <
837 R8A7790_CLK_EHCI R8A7790_CLK_HSUSB R8A7790_CLK_HSCIF1
838 R8A7790_CLK_HSCIF0 R8A7790_CLK_SCIF1 R8A7790_CLK_SCIF0
839 R8A7790_CLK_DU2 R8A7790_CLK_DU1 R8A7790_CLK_DU0
840 R8A7790_CLK_LVDS1 R8A7790_CLK_LVDS0
841 >;
842 clock-output-names =
843 "ehci", "hsusb", "hscif1", "hscif0", "scif1",
844 "scif0", "du2", "du1", "du0", "lvds1", "lvds0";
845 };
846 mstp8_clks: mstp8_clks@e6150990 {
847 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
848 reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
Laurent Pinchartbccccc32014-01-07 09:22:55 +0100849 clocks = <&zg_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>, <&p_clk>,
850 <&zs_clk>, <&zs_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100851 #clock-cells = <1>;
Laurent Pinchart3f2beaa2014-01-07 09:22:53 +0100852 renesas,clock-indices = <
853 R8A7790_CLK_VIN3 R8A7790_CLK_VIN2 R8A7790_CLK_VIN1
Laurent Pinchartbccccc32014-01-07 09:22:55 +0100854 R8A7790_CLK_VIN0 R8A7790_CLK_ETHER R8A7790_CLK_SATA1
855 R8A7790_CLK_SATA0
Laurent Pinchart3f2beaa2014-01-07 09:22:53 +0100856 >;
Laurent Pinchartbccccc32014-01-07 09:22:55 +0100857 clock-output-names =
858 "vin3", "vin2", "vin1", "vin0", "ether", "sata1", "sata0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100859 };
860 mstp9_clks: mstp9_clks@e6150994 {
861 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
862 reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200863 clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>,
864 <&cp_clk>, <&cp_clk>, <&cp_clk>,
865 <&p_clk>, <&p_clk>, <&cpg_clocks R8A7790_CLK_QSPI>, <&cp_clk>,
Laurent Pinchart3672b052014-04-01 13:02:17 +0200866 <&hp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100867 #clock-cells = <1>;
868 renesas,clock-indices = <
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200869 R8A7790_CLK_GPIO5 R8A7790_CLK_GPIO4 R8A7790_CLK_GPIO3
870 R8A7790_CLK_GPIO2 R8A7790_CLK_GPIO1 R8A7790_CLK_GPIO0
Wolfram Sang17465142014-03-11 22:24:37 +0100871 R8A7790_CLK_RCAN1 R8A7790_CLK_RCAN0 R8A7790_CLK_QSPI_MOD R8A7790_CLK_IICDVFS
872 R8A7790_CLK_I2C3 R8A7790_CLK_I2C2 R8A7790_CLK_I2C1 R8A7790_CLK_I2C0
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100873 >;
Laurent Pinchart91b56ca2013-12-19 16:51:03 +0100874 clock-output-names =
Geert Uytterhoeven81f68832014-04-23 10:25:27 +0200875 "gpio5", "gpio4", "gpio3", "gpio2", "gpio1", "gpio0",
Wolfram Sang17465142014-03-11 22:24:37 +0100876 "rcan1", "rcan0", "qspi_mod", "iic3",
877 "i2c3", "i2c2", "i2c1", "i2c0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100878 };
Kuninori Morimotobcde3722014-06-10 23:53:27 -0700879 mstp10_clks: mstp10_clks@e6150998 {
880 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
881 reg = <0 0xe6150998 0 4>, <0 0xe61509a8 0 4>;
882 clocks = <&p_clk>,
883 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
884 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>,
885 <&p_clk>,
886 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
887 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
888 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
889 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
890 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>,
891 <&mstp10_clks R8A7790_CLK_SCU_ALL>, <&mstp10_clks R8A7790_CLK_SCU_ALL>;
892
893 #clock-cells = <1>;
894 clock-indices = <
895 R8A7790_CLK_SSI_ALL
896 R8A7790_CLK_SSI9 R8A7790_CLK_SSI8 R8A7790_CLK_SSI7 R8A7790_CLK_SSI6 R8A7790_CLK_SSI5
897 R8A7790_CLK_SSI4 R8A7790_CLK_SSI3 R8A7790_CLK_SSI2 R8A7790_CLK_SSI1 R8A7790_CLK_SSI0
898 R8A7790_CLK_SCU_ALL
899 R8A7790_CLK_SCU_DVC1 R8A7790_CLK_SCU_DVC0
900 R8A7790_CLK_SCU_SRC9 R8A7790_CLK_SCU_SRC8 R8A7790_CLK_SCU_SRC7 R8A7790_CLK_SCU_SRC6 R8A7790_CLK_SCU_SRC5
901 R8A7790_CLK_SCU_SRC4 R8A7790_CLK_SCU_SRC3 R8A7790_CLK_SCU_SRC2 R8A7790_CLK_SCU_SRC1 R8A7790_CLK_SCU_SRC0
902 >;
903 clock-output-names =
904 "ssi-all",
905 "ssi9", "ssi8", "ssi7", "ssi6", "ssi5",
906 "ssi4", "ssi3", "ssi2", "ssi1", "ssi0",
907 "scu-all",
908 "scu-dvc1", "scu-dvc0",
909 "scu-src9", "scu-src8", "scu-src7", "scu-src6", "scu-src5",
910 "scu-src4", "scu-src3", "scu-src2", "scu-src1", "scu-src0";
911 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100912 };
Geert Uytterhoeven7053e132014-02-10 11:47:29 +0100913
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +0100914 qspi: spi@e6b10000 {
Geert Uytterhoeven7053e132014-02-10 11:47:29 +0100915 compatible = "renesas,qspi-r8a7790", "renesas,qspi";
916 reg = <0 0xe6b10000 0 0x2c>;
Geert Uytterhoeven7053e132014-02-10 11:47:29 +0100917 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
918 clocks = <&mstp9_clks R8A7790_CLK_QSPI_MOD>;
919 num-cs = <1>;
920 #address-cells = <1>;
921 #size-cells = <0>;
922 status = "disabled";
923 };
Geert Uytterhoevenae8a6142014-02-25 11:30:15 +0100924
925 msiof0: spi@e6e20000 {
926 compatible = "renesas,msiof-r8a7790";
927 reg = <0 0xe6e20000 0 0x0064>;
928 interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>;
929 clocks = <&mstp0_clks R8A7790_CLK_MSIOF0>;
930 #address-cells = <1>;
931 #size-cells = <0>;
932 status = "disabled";
933 };
934
935 msiof1: spi@e6e10000 {
936 compatible = "renesas,msiof-r8a7790";
937 reg = <0 0xe6e10000 0 0x0064>;
938 interrupts = <0 157 IRQ_TYPE_LEVEL_HIGH>;
939 clocks = <&mstp2_clks R8A7790_CLK_MSIOF1>;
940 #address-cells = <1>;
941 #size-cells = <0>;
942 status = "disabled";
943 };
944
945 msiof2: spi@e6e00000 {
946 compatible = "renesas,msiof-r8a7790";
947 reg = <0 0xe6e00000 0 0x0064>;
948 interrupts = <0 158 IRQ_TYPE_LEVEL_HIGH>;
949 clocks = <&mstp2_clks R8A7790_CLK_MSIOF2>;
950 #address-cells = <1>;
951 #size-cells = <0>;
952 status = "disabled";
953 };
954
955 msiof3: spi@e6c90000 {
956 compatible = "renesas,msiof-r8a7790";
957 reg = <0 0xe6c90000 0 0x0064>;
958 interrupts = <0 159 IRQ_TYPE_LEVEL_HIGH>;
959 clocks = <&mstp2_clks R8A7790_CLK_MSIOF3>;
960 #address-cells = <1>;
961 #size-cells = <0>;
962 status = "disabled";
963 };
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -0700964
Ben Dooksff4f3eb2014-06-24 21:59:54 +0400965 pci0: pci@ee090000 {
966 compatible = "renesas,pci-r8a7790";
967 device_type = "pci";
968 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
969 reg = <0 0xee090000 0 0xc00>,
970 <0 0xee080000 0 0x1100>;
971 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
972 status = "disabled";
973
974 bus-range = <0 0>;
975 #address-cells = <3>;
976 #size-cells = <2>;
977 #interrupt-cells = <1>;
978 ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>;
979 interrupt-map-mask = <0xff00 0 0 0x7>;
980 interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
Geert Uytterhoeven517ec802014-06-30 11:49:53 +0200981 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
982 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooksff4f3eb2014-06-24 21:59:54 +0400983 };
984
985 pci1: pci@ee0b0000 {
986 compatible = "renesas,pci-r8a7790";
987 device_type = "pci";
988 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
989 reg = <0 0xee0b0000 0 0xc00>,
990 <0 0xee0a0000 0 0x1100>;
991 interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>;
992 status = "disabled";
993
994 bus-range = <1 1>;
995 #address-cells = <3>;
996 #size-cells = <2>;
997 #interrupt-cells = <1>;
998 ranges = <0x02000000 0 0xee0a0000 0 0xee0a0000 0 0x00010000>;
999 interrupt-map-mask = <0xff00 0 0 0x7>;
1000 interrupt-map = <0x0000 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH
Geert Uytterhoeven517ec802014-06-30 11:49:53 +02001001 0x0800 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH
1002 0x1000 0 0 2 &gic 0 112 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001003 };
1004
1005 pci2: pci@ee0d0000 {
1006 compatible = "renesas,pci-r8a7790";
1007 device_type = "pci";
1008 clocks = <&mstp7_clks R8A7790_CLK_EHCI>;
1009 reg = <0 0xee0d0000 0 0xc00>,
1010 <0 0xee0c0000 0 0x1100>;
1011 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
1012 status = "disabled";
1013
1014 bus-range = <2 2>;
1015 #address-cells = <3>;
1016 #size-cells = <2>;
1017 #interrupt-cells = <1>;
1018 ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>;
1019 interrupt-map-mask = <0xff00 0 0 0x7>;
1020 interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
Geert Uytterhoeven517ec802014-06-30 11:49:53 +02001021 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
1022 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooksff4f3eb2014-06-24 21:59:54 +04001023 };
1024
Phil Edworthy745329d2014-06-13 10:37:17 +01001025 pciec: pcie@fe000000 {
1026 compatible = "renesas,pcie-r8a7790";
1027 reg = <0 0xfe000000 0 0x80000>;
1028 #address-cells = <3>;
1029 #size-cells = <2>;
1030 bus-range = <0x00 0xff>;
1031 device_type = "pci";
1032 ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000
1033 0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000
1034 0x02000000 0 0x30000000 0 0x30000000 0 0x08000000
1035 0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>;
1036 /* Map all possible DDR as inbound ranges */
1037 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000
1038 0x43000000 1 0x80000000 1 0x80000000 0 0x80000000>;
1039 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>,
1040 <0 117 IRQ_TYPE_LEVEL_HIGH>,
1041 <0 118 IRQ_TYPE_LEVEL_HIGH>;
1042 #interrupt-cells = <1>;
1043 interrupt-map-mask = <0 0 0 0>;
1044 interrupt-map = <0 0 0 0 &gic 0 116 IRQ_TYPE_LEVEL_HIGH>;
1045 clocks = <&mstp3_clks R8A7790_CLK_PCIEC>, <&pcie_bus_clk>;
1046 clock-names = "pcie", "pcie_bus";
1047 status = "disabled";
1048 };
1049
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001050 rcar_sound: rcar_sound@0xec500000 {
1051 #sound-dai-cells = <1>;
1052 compatible = "renesas,rcar_sound-r8a7790", "renesas,rcar_sound-gen2", "renesas,rcar_sound";
1053 interrupt-parent = <&gic>;
1054 reg = <0 0xec500000 0 0x1000>, /* SCU */
1055 <0 0xec5a0000 0 0x100>, /* ADG */
1056 <0 0xec540000 0 0x1000>, /* SSIU */
1057 <0 0xec541000 0 0x1280>; /* SSI */
1058 clocks = <&mstp10_clks R8A7790_CLK_SSI_ALL>,
1059 <&mstp10_clks R8A7790_CLK_SSI9>, <&mstp10_clks R8A7790_CLK_SSI8>,
1060 <&mstp10_clks R8A7790_CLK_SSI7>, <&mstp10_clks R8A7790_CLK_SSI6>,
1061 <&mstp10_clks R8A7790_CLK_SSI5>, <&mstp10_clks R8A7790_CLK_SSI4>,
1062 <&mstp10_clks R8A7790_CLK_SSI3>, <&mstp10_clks R8A7790_CLK_SSI2>,
1063 <&mstp10_clks R8A7790_CLK_SSI1>, <&mstp10_clks R8A7790_CLK_SSI0>,
1064 <&mstp10_clks R8A7790_CLK_SCU_SRC9>, <&mstp10_clks R8A7790_CLK_SCU_SRC8>,
1065 <&mstp10_clks R8A7790_CLK_SCU_SRC7>, <&mstp10_clks R8A7790_CLK_SCU_SRC6>,
1066 <&mstp10_clks R8A7790_CLK_SCU_SRC5>, <&mstp10_clks R8A7790_CLK_SCU_SRC4>,
1067 <&mstp10_clks R8A7790_CLK_SCU_SRC3>, <&mstp10_clks R8A7790_CLK_SCU_SRC2>,
1068 <&mstp10_clks R8A7790_CLK_SCU_SRC1>, <&mstp10_clks R8A7790_CLK_SCU_SRC0>,
Kuninori Morimoto334d69a2014-06-25 17:52:17 -07001069 <&mstp10_clks R8A7790_CLK_SCU_DVC0>, <&mstp10_clks R8A7790_CLK_SCU_DVC1>,
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001070 <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&m2_clk>;
1071 clock-names = "ssi-all",
1072 "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5",
1073 "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0",
1074 "src.9", "src.8", "src.7", "src.6", "src.5",
1075 "src.4", "src.3", "src.2", "src.1", "src.0",
Kuninori Morimoto334d69a2014-06-25 17:52:17 -07001076 "dvc.0", "dvc.1",
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001077 "clk_a", "clk_b", "clk_c", "clk_i";
1078
1079 status = "disabled";
1080
Kuninori Morimoto334d69a2014-06-25 17:52:17 -07001081 rcar_sound,dvc {
1082 dvc0: dvc@0 { };
1083 dvc1: dvc@1 { };
1084 };
1085
Kuninori Morimoto7df2fd52014-06-10 23:53:54 -07001086 rcar_sound,src {
1087 src0: src@0 { };
1088 src1: src@1 { };
1089 src2: src@2 { };
1090 src3: src@3 { };
1091 src4: src@4 { };
1092 src5: src@5 { };
1093 src6: src@6 { };
1094 src7: src@7 { };
1095 src8: src@8 { };
1096 src9: src@9 { };
1097 };
1098
1099 rcar_sound,ssi {
1100 ssi0: ssi@0 { interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; };
1101 ssi1: ssi@1 { interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>; };
1102 ssi2: ssi@2 { interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>; };
1103 ssi3: ssi@3 { interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>; };
1104 ssi4: ssi@4 { interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>; };
1105 ssi5: ssi@5 { interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>; };
1106 ssi6: ssi@6 { interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>; };
1107 ssi7: ssi@7 { interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>; };
1108 ssi8: ssi@8 { interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>; };
1109 ssi9: ssi@9 { interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>; };
1110 };
1111 };
Magnus Damm0468b2d2013-03-28 00:49:34 +09001112};