blob: 9383b8436111c158a3a66ea883edab6a789ca036 [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;
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +010027 spi0 = &qspi;
Wolfram Sang6b1d7c62014-02-16 10:40:58 +010028 };
29
Magnus Damm0468b2d2013-03-28 00:49:34 +090030 cpus {
31 #address-cells = <1>;
32 #size-cells = <0>;
33
34 cpu0: cpu@0 {
35 device_type = "cpu";
36 compatible = "arm,cortex-a15";
37 reg = <0>;
38 clock-frequency = <1300000000>;
39 };
Magnus Dammc1f95972013-08-29 08:22:17 +090040
41 cpu1: cpu@1 {
42 device_type = "cpu";
43 compatible = "arm,cortex-a15";
44 reg = <1>;
45 clock-frequency = <1300000000>;
46 };
47
48 cpu2: cpu@2 {
49 device_type = "cpu";
50 compatible = "arm,cortex-a15";
51 reg = <2>;
52 clock-frequency = <1300000000>;
53 };
54
55 cpu3: cpu@3 {
56 device_type = "cpu";
57 compatible = "arm,cortex-a15";
58 reg = <3>;
59 clock-frequency = <1300000000>;
60 };
Magnus Damm2007e742013-09-15 00:28:58 +090061
62 cpu4: cpu@4 {
63 device_type = "cpu";
64 compatible = "arm,cortex-a7";
65 reg = <0x100>;
66 clock-frequency = <780000000>;
67 };
68
69 cpu5: cpu@5 {
70 device_type = "cpu";
71 compatible = "arm,cortex-a7";
72 reg = <0x101>;
73 clock-frequency = <780000000>;
74 };
75
76 cpu6: cpu@6 {
77 device_type = "cpu";
78 compatible = "arm,cortex-a7";
79 reg = <0x102>;
80 clock-frequency = <780000000>;
81 };
82
83 cpu7: cpu@7 {
84 device_type = "cpu";
85 compatible = "arm,cortex-a7";
86 reg = <0x103>;
87 clock-frequency = <780000000>;
88 };
Magnus Damm0468b2d2013-03-28 00:49:34 +090089 };
90
91 gic: interrupt-controller@f1001000 {
92 compatible = "arm,cortex-a15-gic";
93 #interrupt-cells = <3>;
94 #address-cells = <0>;
95 interrupt-controller;
Takashi Yoshii8585deb2013-03-29 16:49:17 +090096 reg = <0 0xf1001000 0 0x1000>,
97 <0 0xf1002000 0 0x1000>,
98 <0 0xf1004000 0 0x2000>,
99 <0 0xf1006000 0 0x2000>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100100 interrupts = <1 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Magnus Damm0468b2d2013-03-28 00:49:34 +0900101 };
102
Magnus Damm23de2272013-11-21 14:19:29 +0900103 gpio0: gpio@e6050000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200104 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900105 reg = <0 0xe6050000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100106 interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200107 #gpio-cells = <2>;
108 gpio-controller;
109 gpio-ranges = <&pfc 0 0 32>;
110 #interrupt-cells = <2>;
111 interrupt-controller;
112 };
113
Magnus Damm23de2272013-11-21 14:19:29 +0900114 gpio1: gpio@e6051000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200115 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900116 reg = <0 0xe6051000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100117 interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200118 #gpio-cells = <2>;
119 gpio-controller;
120 gpio-ranges = <&pfc 0 32 32>;
121 #interrupt-cells = <2>;
122 interrupt-controller;
123 };
124
Magnus Damm23de2272013-11-21 14:19:29 +0900125 gpio2: gpio@e6052000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200126 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900127 reg = <0 0xe6052000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100128 interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200129 #gpio-cells = <2>;
130 gpio-controller;
131 gpio-ranges = <&pfc 0 64 32>;
132 #interrupt-cells = <2>;
133 interrupt-controller;
134 };
135
Magnus Damm23de2272013-11-21 14:19:29 +0900136 gpio3: gpio@e6053000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200137 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900138 reg = <0 0xe6053000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100139 interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200140 #gpio-cells = <2>;
141 gpio-controller;
142 gpio-ranges = <&pfc 0 96 32>;
143 #interrupt-cells = <2>;
144 interrupt-controller;
145 };
146
Magnus Damm23de2272013-11-21 14:19:29 +0900147 gpio4: gpio@e6054000 {
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200148 compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
Magnus Damm23de2272013-11-21 14:19:29 +0900149 reg = <0 0xe6054000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100150 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200151 #gpio-cells = <2>;
152 gpio-controller;
153 gpio-ranges = <&pfc 0 128 32>;
154 #interrupt-cells = <2>;
155 interrupt-controller;
156 };
157
Magnus Damm23de2272013-11-21 14:19:29 +0900158 gpio5: gpio@e6055000 {
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 0xe6055000 0 0x50>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100161 interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchartf98e10c2013-05-10 15:51:14 +0200162 #gpio-cells = <2>;
163 gpio-controller;
164 gpio-ranges = <&pfc 0 160 32>;
165 #interrupt-cells = <2>;
166 interrupt-controller;
167 };
168
Magnus Damm03e2f562013-11-20 16:59:30 +0900169 thermal@e61f0000 {
170 compatible = "renesas,thermal-r8a7790", "renesas,rcar-thermal";
171 reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
Magnus Damm03e2f562013-11-20 16:59:30 +0900172 interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
Geert Uytterhoevend3a439d2014-01-07 19:57:14 +0100173 clocks = <&mstp5_clks R8A7790_CLK_THERMAL>;
Magnus Damm03e2f562013-11-20 16:59:30 +0900174 };
175
Magnus Damm0468b2d2013-03-28 00:49:34 +0900176 timer {
177 compatible = "arm,armv7-timer";
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100178 interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
179 <1 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
180 <1 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
181 <1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Magnus Damm0468b2d2013-03-28 00:49:34 +0900182 };
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900183
184 irqc0: interrupt-controller@e61c0000 {
Magnus Damm220fc352013-11-20 09:07:40 +0900185 compatible = "renesas,irqc-r8a7790", "renesas,irqc";
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900186 #interrupt-cells = <2>;
187 interrupt-controller;
Takashi Yoshii8585deb2013-03-29 16:49:17 +0900188 reg = <0 0xe61c0000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100189 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
190 <0 1 IRQ_TYPE_LEVEL_HIGH>,
191 <0 2 IRQ_TYPE_LEVEL_HIGH>,
192 <0 3 IRQ_TYPE_LEVEL_HIGH>;
Magnus Damm8f5ec0a2013-03-28 00:49:54 +0900193 };
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200194
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200195 i2c0: i2c@e6508000 {
196 #address-cells = <1>;
197 #size-cells = <0>;
198 compatible = "renesas,i2c-r8a7790";
199 reg = <0 0xe6508000 0 0x40>;
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>;
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>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100220 interrupts = <0 286 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000221 clocks = <&mstp9_clks R8A7790_CLK_I2C2>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200222 status = "disabled";
223 };
224
225 i2c3: i2c@e6540000 {
226 #address-cells = <1>;
227 #size-cells = <0>;
228 compatible = "renesas,i2c-r8a7790";
229 reg = <0 0xe6540000 0 0x40>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100230 interrupts = <0 290 IRQ_TYPE_LEVEL_HIGH>;
Ben Dooks2450bad2014-01-20 11:44:21 +0000231 clocks = <&mstp9_clks R8A7790_CLK_I2C3>;
Guennadi Liakhovetskiedd2b9f2013-09-26 19:20:58 +0200232 status = "disabled";
233 };
234
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200235 mmcif0: mmcif@ee200000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900236 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200237 reg = <0 0xee200000 0 0x80>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100238 interrupts = <0 169 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100239 clocks = <&mstp3_clks R8A7790_CLK_MMCIF0>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200240 reg-io-width = <4>;
241 status = "disabled";
242 };
243
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700244 mmcif1: mmc@ee220000 {
Magnus Damm063e85602013-11-20 09:05:53 +0900245 compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200246 reg = <0 0xee220000 0 0x80>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100247 interrupts = <0 170 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100248 clocks = <&mstp3_clks R8A7790_CLK_MMCIF1>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200249 reg-io-width = <4>;
250 status = "disabled";
251 };
252
Laurent Pinchart9694c772013-05-09 15:05:57 +0200253 pfc: pfc@e6060000 {
254 compatible = "renesas,pfc-r8a7790";
255 reg = <0 0xe6060000 0 0x250>;
256 };
Olof Johansson55689bf2013-08-14 00:24:05 -0700257
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700258 sdhi0: sd@ee100000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200259 compatible = "renesas,sdhi-r8a7790";
Ben Dooksd721a152013-12-16 12:38:48 +0000260 reg = <0 0xee100000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100261 interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100262 clocks = <&mstp3_clks R8A7790_CLK_SDHI0>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200263 cap-sd-highspeed;
264 status = "disabled";
265 };
266
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700267 sdhi1: sd@ee120000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200268 compatible = "renesas,sdhi-r8a7790";
Ben Dooksd721a152013-12-16 12:38:48 +0000269 reg = <0 0xee120000 0 0x200>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100270 interrupts = <0 166 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100271 clocks = <&mstp3_clks R8A7790_CLK_SDHI1>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200272 cap-sd-highspeed;
273 status = "disabled";
274 };
275
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700276 sdhi2: sd@ee140000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200277 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200278 reg = <0 0xee140000 0 0x100>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100279 interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100280 clocks = <&mstp3_clks R8A7790_CLK_SDHI2>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200281 cap-sd-highspeed;
282 status = "disabled";
283 };
284
Kuninori Morimotob718aa42013-10-21 19:36:13 -0700285 sdhi3: sd@ee160000 {
Guennadi Liakhovetskidf1d0582013-08-29 17:14:49 +0200286 compatible = "renesas,sdhi-r8a7790";
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200287 reg = <0 0xee160000 0 0x100>;
Laurent Pinchart5f75e732013-11-19 03:18:25 +0100288 interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart72197ca2013-12-11 15:05:15 +0100289 clocks = <&mstp3_clks R8A7790_CLK_SDHI3>;
Guennadi Liakhovetski8c9b1aa2013-07-08 17:54:46 +0200290 cap-sd-highspeed;
291 status = "disabled";
292 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100293
Laurent Pinchart597af202013-10-29 16:23:12 +0100294 scifa0: serial@e6c40000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100295 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100296 reg = <0 0xe6c40000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100297 interrupts = <0 144 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100298 clocks = <&mstp2_clks R8A7790_CLK_SCIFA0>;
299 clock-names = "sci_ick";
300 status = "disabled";
301 };
302
303 scifa1: serial@e6c50000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100304 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100305 reg = <0 0xe6c50000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100306 interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100307 clocks = <&mstp2_clks R8A7790_CLK_SCIFA1>;
308 clock-names = "sci_ick";
309 status = "disabled";
310 };
311
312 scifa2: serial@e6c60000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100313 compatible = "renesas,scifa-r8a7790", "renesas,scifa";
Laurent Pinchart597af202013-10-29 16:23:12 +0100314 reg = <0 0xe6c60000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100315 interrupts = <0 151 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100316 clocks = <&mstp2_clks R8A7790_CLK_SCIFA2>;
317 clock-names = "sci_ick";
318 status = "disabled";
319 };
320
321 scifb0: serial@e6c20000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100322 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100323 reg = <0 0xe6c20000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100324 interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100325 clocks = <&mstp2_clks R8A7790_CLK_SCIFB0>;
326 clock-names = "sci_ick";
327 status = "disabled";
328 };
329
330 scifb1: serial@e6c30000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100331 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100332 reg = <0 0xe6c30000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100333 interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100334 clocks = <&mstp2_clks R8A7790_CLK_SCIFB1>;
335 clock-names = "sci_ick";
336 status = "disabled";
337 };
338
339 scifb2: serial@e6ce0000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100340 compatible = "renesas,scifb-r8a7790", "renesas,scifb";
Laurent Pinchart597af202013-10-29 16:23:12 +0100341 reg = <0 0xe6ce0000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100342 interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100343 clocks = <&mstp2_clks R8A7790_CLK_SCIFB2>;
344 clock-names = "sci_ick";
345 status = "disabled";
346 };
347
348 scif0: serial@e6e60000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100349 compatible = "renesas,scif-r8a7790", "renesas,scif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100350 reg = <0 0xe6e60000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100351 interrupts = <0 152 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100352 clocks = <&mstp7_clks R8A7790_CLK_SCIF0>;
353 clock-names = "sci_ick";
354 status = "disabled";
355 };
356
357 scif1: serial@e6e68000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100358 compatible = "renesas,scif-r8a7790", "renesas,scif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100359 reg = <0 0xe6e68000 0 64>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100360 interrupts = <0 153 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100361 clocks = <&mstp7_clks R8A7790_CLK_SCIF1>;
362 clock-names = "sci_ick";
363 status = "disabled";
364 };
365
366 hscif0: serial@e62c0000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100367 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100368 reg = <0 0xe62c0000 0 96>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100369 interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100370 clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>;
371 clock-names = "sci_ick";
372 status = "disabled";
373 };
374
375 hscif1: serial@e62c8000 {
Laurent Pinchart59d2b512014-01-21 13:48:38 +0100376 compatible = "renesas,hscif-r8a7790", "renesas,hscif";
Laurent Pinchart597af202013-10-29 16:23:12 +0100377 reg = <0 0xe62c8000 0 96>;
Laurent Pinchart1f4c7452014-01-21 13:48:39 +0100378 interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>;
Laurent Pinchart597af202013-10-29 16:23:12 +0100379 clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>;
380 clock-names = "sci_ick";
381 status = "disabled";
382 };
383
Sergei Shtylyovd8913c62014-02-20 02:20:43 +0300384 ether: ethernet@ee700000 {
385 compatible = "renesas,ether-r8a7790";
386 reg = <0 0xee700000 0 0x400>;
387 interrupts = <0 162 IRQ_TYPE_LEVEL_HIGH>;
388 clocks = <&mstp8_clks R8A7790_CLK_ETHER>;
389 phy-mode = "rmii";
390 #address-cells = <1>;
391 #size-cells = <0>;
392 status = "disabled";
393 };
394
Valentine Barshakcde630f2014-01-14 21:05:30 +0400395 sata0: sata@ee300000 {
396 compatible = "renesas,sata-r8a7790";
397 reg = <0 0xee300000 0 0x2000>;
Valentine Barshakcde630f2014-01-14 21:05:30 +0400398 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
399 clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
400 status = "disabled";
401 };
402
403 sata1: sata@ee500000 {
404 compatible = "renesas,sata-r8a7790";
405 reg = <0 0xee500000 0 0x2000>;
Valentine Barshakcde630f2014-01-14 21:05:30 +0400406 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
407 clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
408 status = "disabled";
409 };
410
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100411 clocks {
412 #address-cells = <2>;
413 #size-cells = <2>;
414 ranges;
415
416 /* External root clock */
417 extal_clk: extal_clk {
418 compatible = "fixed-clock";
419 #clock-cells = <0>;
420 /* This value must be overriden by the board. */
421 clock-frequency = <0>;
422 clock-output-names = "extal";
423 };
424
Kuninori Morimotoc7c2ec32014-01-13 18:25:39 -0800425 /*
426 * The external audio clocks are configured as 0 Hz fixed frequency clocks by
427 * default. Boards that provide audio clocks should override them.
428 */
429 audio_clk_a: audio_clk_a {
430 compatible = "fixed-clock";
431 #clock-cells = <0>;
432 clock-frequency = <0>;
433 clock-output-names = "audio_clk_a";
434 };
435 audio_clk_b: audio_clk_b {
436 compatible = "fixed-clock";
437 #clock-cells = <0>;
438 clock-frequency = <0>;
439 clock-output-names = "audio_clk_b";
440 };
441 audio_clk_c: audio_clk_c {
442 compatible = "fixed-clock";
443 #clock-cells = <0>;
444 clock-frequency = <0>;
445 clock-output-names = "audio_clk_c";
446 };
447
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100448 /* Special CPG clocks */
449 cpg_clocks: cpg_clocks@e6150000 {
450 compatible = "renesas,r8a7790-cpg-clocks",
451 "renesas,rcar-gen2-cpg-clocks";
452 reg = <0 0xe6150000 0 0x1000>;
453 clocks = <&extal_clk>;
454 #clock-cells = <1>;
455 clock-output-names = "main", "pll0", "pll1", "pll3",
456 "lb", "qspi", "sdh", "sd0", "sd1",
457 "z";
458 };
459
460 /* Variable factor clocks */
461 sd2_clk: sd2_clk@e6150078 {
462 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
463 reg = <0 0xe6150078 0 4>;
464 clocks = <&pll1_div2_clk>;
465 #clock-cells = <0>;
466 clock-output-names = "sd2";
467 };
468 sd3_clk: sd3_clk@e615007c {
469 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
470 reg = <0 0xe615007c 0 4>;
471 clocks = <&pll1_div2_clk>;
472 #clock-cells = <0>;
473 clock-output-names = "sd3";
474 };
475 mmc0_clk: mmc0_clk@e6150240 {
476 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
477 reg = <0 0xe6150240 0 4>;
478 clocks = <&pll1_div2_clk>;
479 #clock-cells = <0>;
480 clock-output-names = "mmc0";
481 };
482 mmc1_clk: mmc1_clk@e6150244 {
483 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
484 reg = <0 0xe6150244 0 4>;
485 clocks = <&pll1_div2_clk>;
486 #clock-cells = <0>;
487 clock-output-names = "mmc1";
488 };
489 ssp_clk: ssp_clk@e6150248 {
490 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
491 reg = <0 0xe6150248 0 4>;
492 clocks = <&pll1_div2_clk>;
493 #clock-cells = <0>;
494 clock-output-names = "ssp";
495 };
496 ssprs_clk: ssprs_clk@e615024c {
497 compatible = "renesas,r8a7790-div6-clock", "renesas,cpg-div6-clock";
498 reg = <0 0xe615024c 0 4>;
499 clocks = <&pll1_div2_clk>;
500 #clock-cells = <0>;
501 clock-output-names = "ssprs";
502 };
503
504 /* Fixed factor clocks */
505 pll1_div2_clk: pll1_div2_clk {
506 compatible = "fixed-factor-clock";
507 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
508 #clock-cells = <0>;
509 clock-div = <2>;
510 clock-mult = <1>;
511 clock-output-names = "pll1_div2";
512 };
513 z2_clk: z2_clk {
514 compatible = "fixed-factor-clock";
515 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
516 #clock-cells = <0>;
517 clock-div = <2>;
518 clock-mult = <1>;
519 clock-output-names = "z2";
520 };
521 zg_clk: zg_clk {
522 compatible = "fixed-factor-clock";
523 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
524 #clock-cells = <0>;
525 clock-div = <3>;
526 clock-mult = <1>;
527 clock-output-names = "zg";
528 };
529 zx_clk: zx_clk {
530 compatible = "fixed-factor-clock";
531 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
532 #clock-cells = <0>;
533 clock-div = <3>;
534 clock-mult = <1>;
535 clock-output-names = "zx";
536 };
537 zs_clk: zs_clk {
538 compatible = "fixed-factor-clock";
539 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
540 #clock-cells = <0>;
541 clock-div = <6>;
542 clock-mult = <1>;
543 clock-output-names = "zs";
544 };
545 hp_clk: hp_clk {
546 compatible = "fixed-factor-clock";
547 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
548 #clock-cells = <0>;
549 clock-div = <12>;
550 clock-mult = <1>;
551 clock-output-names = "hp";
552 };
553 i_clk: i_clk {
554 compatible = "fixed-factor-clock";
555 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
556 #clock-cells = <0>;
557 clock-div = <2>;
558 clock-mult = <1>;
559 clock-output-names = "i";
560 };
561 b_clk: b_clk {
562 compatible = "fixed-factor-clock";
563 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
564 #clock-cells = <0>;
565 clock-div = <12>;
566 clock-mult = <1>;
567 clock-output-names = "b";
568 };
569 p_clk: p_clk {
570 compatible = "fixed-factor-clock";
571 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
572 #clock-cells = <0>;
573 clock-div = <24>;
574 clock-mult = <1>;
575 clock-output-names = "p";
576 };
577 cl_clk: cl_clk {
578 compatible = "fixed-factor-clock";
579 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
580 #clock-cells = <0>;
581 clock-div = <48>;
582 clock-mult = <1>;
583 clock-output-names = "cl";
584 };
585 m2_clk: m2_clk {
586 compatible = "fixed-factor-clock";
587 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
588 #clock-cells = <0>;
589 clock-div = <8>;
590 clock-mult = <1>;
591 clock-output-names = "m2";
592 };
593 imp_clk: imp_clk {
594 compatible = "fixed-factor-clock";
595 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
596 #clock-cells = <0>;
597 clock-div = <4>;
598 clock-mult = <1>;
599 clock-output-names = "imp";
600 };
601 rclk_clk: rclk_clk {
602 compatible = "fixed-factor-clock";
603 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
604 #clock-cells = <0>;
605 clock-div = <(48 * 1024)>;
606 clock-mult = <1>;
607 clock-output-names = "rclk";
608 };
609 oscclk_clk: oscclk_clk {
610 compatible = "fixed-factor-clock";
611 clocks = <&cpg_clocks R8A7790_CLK_PLL1>;
612 #clock-cells = <0>;
613 clock-div = <(12 * 1024)>;
614 clock-mult = <1>;
615 clock-output-names = "oscclk";
616 };
617 zb3_clk: zb3_clk {
618 compatible = "fixed-factor-clock";
619 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
620 #clock-cells = <0>;
621 clock-div = <4>;
622 clock-mult = <1>;
623 clock-output-names = "zb3";
624 };
625 zb3d2_clk: zb3d2_clk {
626 compatible = "fixed-factor-clock";
627 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
628 #clock-cells = <0>;
629 clock-div = <8>;
630 clock-mult = <1>;
631 clock-output-names = "zb3d2";
632 };
633 ddr_clk: ddr_clk {
634 compatible = "fixed-factor-clock";
635 clocks = <&cpg_clocks R8A7790_CLK_PLL3>;
636 #clock-cells = <0>;
637 clock-div = <8>;
638 clock-mult = <1>;
639 clock-output-names = "ddr";
640 };
641 mp_clk: mp_clk {
642 compatible = "fixed-factor-clock";
643 clocks = <&pll1_div2_clk>;
644 #clock-cells = <0>;
645 clock-div = <15>;
646 clock-mult = <1>;
647 clock-output-names = "mp";
648 };
649 cp_clk: cp_clk {
650 compatible = "fixed-factor-clock";
651 clocks = <&extal_clk>;
652 #clock-cells = <0>;
653 clock-div = <2>;
654 clock-mult = <1>;
655 clock-output-names = "cp";
656 };
657
658 /* Gate clocks */
Laurent Pinchart9d909512013-12-19 16:51:01 +0100659 mstp0_clks: mstp0_clks@e6150130 {
660 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
661 reg = <0 0xe6150130 0 4>, <0 0xe6150030 0 4>;
662 clocks = <&mp_clk>;
663 #clock-cells = <1>;
664 renesas,clock-indices = <R8A7790_CLK_MSIOF0>;
665 clock-output-names = "msiof0";
666 };
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100667 mstp1_clks: mstp1_clks@e6150134 {
668 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
669 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
670 clocks = <&p_clk>, <&p_clk>, <&p_clk>, <&rclk_clk>,
671 <&cp_clk>, <&zs_clk>, <&zs_clk>, <&zs_clk>,
672 <&zs_clk>;
673 #clock-cells = <1>;
674 renesas,clock-indices = <
675 R8A7790_CLK_TMU1 R8A7790_CLK_TMU3 R8A7790_CLK_TMU2
676 R8A7790_CLK_CMT0 R8A7790_CLK_TMU0 R8A7790_CLK_VSP1_DU1
677 R8A7790_CLK_VSP1_DU0 R8A7790_CLK_VSP1_RT R8A7790_CLK_VSP1_SY
678 >;
679 clock-output-names =
680 "tmu1", "tmu3", "tmu2", "cmt0", "tmu0", "vsp1-du1",
681 "vsp1-du0", "vsp1-rt", "vsp1-sy";
682 };
683 mstp2_clks: mstp2_clks@e6150138 {
684 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
685 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
686 clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
Laurent Pinchart9d909512013-12-19 16:51:01 +0100687 <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100688 #clock-cells = <1>;
689 renesas,clock-indices = <
690 R8A7790_CLK_SCIFA2 R8A7790_CLK_SCIFA1 R8A7790_CLK_SCIFA0
Laurent Pinchart9d909512013-12-19 16:51:01 +0100691 R8A7790_CLK_MSIOF2 R8A7790_CLK_SCIFB0 R8A7790_CLK_SCIFB1
692 R8A7790_CLK_MSIOF1 R8A7790_CLK_MSIOF3 R8A7790_CLK_SCIFB2
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100693 >;
694 clock-output-names =
Laurent Pinchart9d909512013-12-19 16:51:01 +0100695 "scifa2", "scifa1", "scifa0", "msiof2", "scifb0",
696 "scifb1", "msiof1", "msiof3", "scifb2";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100697 };
698 mstp3_clks: mstp3_clks@e615013c {
699 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
700 reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
701 clocks = <&cp_clk>, <&mmc1_clk>, <&sd3_clk>, <&sd2_clk>,
702 <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>,
703 <&mmc0_clk>, <&rclk_clk>;
704 #clock-cells = <1>;
705 renesas,clock-indices = <
706 R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
707 R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0
708 R8A7790_CLK_MMCIF0 R8A7790_CLK_CMT1
709 >;
710 clock-output-names =
711 "tpu0", "mmcif1", "sdhi3", "sdhi2",
712 "sdhi1", "sdhi0", "mmcif0", "cmt1";
713 };
714 mstp5_clks: mstp5_clks@e6150144 {
715 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
716 reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
717 clocks = <&extal_clk>, <&p_clk>;
718 #clock-cells = <1>;
719 renesas,clock-indices = <R8A7790_CLK_THERMAL R8A7790_CLK_PWM>;
720 clock-output-names = "thermal", "pwm";
721 };
722 mstp7_clks: mstp7_clks@e615014c {
723 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
724 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
725 clocks = <&mp_clk>, <&mp_clk>, <&zs_clk>, <&zs_clk>, <&p_clk>,
726 <&p_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>, <&zx_clk>,
727 <&zx_clk>;
728 #clock-cells = <1>;
729 renesas,clock-indices = <
730 R8A7790_CLK_EHCI R8A7790_CLK_HSUSB R8A7790_CLK_HSCIF1
731 R8A7790_CLK_HSCIF0 R8A7790_CLK_SCIF1 R8A7790_CLK_SCIF0
732 R8A7790_CLK_DU2 R8A7790_CLK_DU1 R8A7790_CLK_DU0
733 R8A7790_CLK_LVDS1 R8A7790_CLK_LVDS0
734 >;
735 clock-output-names =
736 "ehci", "hsusb", "hscif1", "hscif0", "scif1",
737 "scif0", "du2", "du1", "du0", "lvds1", "lvds0";
738 };
739 mstp8_clks: mstp8_clks@e6150990 {
740 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
741 reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
Laurent Pinchartbccccc32014-01-07 09:22:55 +0100742 clocks = <&zg_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>, <&p_clk>,
743 <&zs_clk>, <&zs_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100744 #clock-cells = <1>;
Laurent Pinchart3f2beaa2014-01-07 09:22:53 +0100745 renesas,clock-indices = <
746 R8A7790_CLK_VIN3 R8A7790_CLK_VIN2 R8A7790_CLK_VIN1
Laurent Pinchartbccccc32014-01-07 09:22:55 +0100747 R8A7790_CLK_VIN0 R8A7790_CLK_ETHER R8A7790_CLK_SATA1
748 R8A7790_CLK_SATA0
Laurent Pinchart3f2beaa2014-01-07 09:22:53 +0100749 >;
Laurent Pinchartbccccc32014-01-07 09:22:55 +0100750 clock-output-names =
751 "vin3", "vin2", "vin1", "vin0", "ether", "sata1", "sata0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100752 };
753 mstp9_clks: mstp9_clks@e6150994 {
754 compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
755 reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
Laurent Pinchart91b56ca2013-12-19 16:51:03 +0100756 clocks = <&p_clk>, <&p_clk>, <&cpg_clocks R8A7790_CLK_QSPI>,
757 <&p_clk>, <&p_clk>, <&p_clk>, <&p_clk>;
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100758 #clock-cells = <1>;
759 renesas,clock-indices = <
Laurent Pinchart91b56ca2013-12-19 16:51:03 +0100760 R8A7790_CLK_RCAN1 R8A7790_CLK_RCAN0 R8A7790_CLK_QSPI_MOD
761 R8A7790_CLK_I2C3 R8A7790_CLK_I2C2 R8A7790_CLK_I2C1
762 R8A7790_CLK_I2C0
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100763 >;
Laurent Pinchart91b56ca2013-12-19 16:51:03 +0100764 clock-output-names =
765 "rcan1", "rcan0", "qspi_mod", "i2c3", "i2c2", "i2c1", "i2c0";
Laurent Pinchart22a1f592013-12-11 15:05:14 +0100766 };
767 };
Geert Uytterhoeven7053e132014-02-10 11:47:29 +0100768
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +0100769 qspi: spi@e6b10000 {
Geert Uytterhoeven7053e132014-02-10 11:47:29 +0100770 compatible = "renesas,qspi-r8a7790", "renesas,qspi";
771 reg = <0 0xe6b10000 0 0x2c>;
Geert Uytterhoeven7053e132014-02-10 11:47:29 +0100772 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
773 clocks = <&mstp9_clks R8A7790_CLK_QSPI_MOD>;
774 num-cs = <1>;
775 #address-cells = <1>;
776 #size-cells = <0>;
777 status = "disabled";
778 };
Magnus Damm0468b2d2013-03-28 00:49:34 +0900779};