blob: 0b746ddd5cd6e048f86e65e0579791e0ec93e5f5 [file] [log] [blame]
Sergei Shtylyov7c4163a2016-06-13 00:06:52 +03001/*
2 * Device Tree Source for the r8a7792 SoC
3 *
4 * Copyright (C) 2016 Cogent Embedded Inc.
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
11#include <dt-bindings/clock/r8a7792-clock.h>
12#include <dt-bindings/interrupt-controller/irq.h>
13#include <dt-bindings/interrupt-controller/arm-gic.h>
14#include <dt-bindings/power/r8a7792-sysc.h>
15
16/ {
17 compatible = "renesas,r8a7792";
18 #address-cells = <2>;
19 #size-cells = <2>;
20
21 cpus {
22 #address-cells = <1>;
23 #size-cells = <0>;
Sergei Shtylyov8fd763c2016-06-21 01:31:01 +030024 enable-method = "renesas,apmu";
Sergei Shtylyov7c4163a2016-06-13 00:06:52 +030025
26 cpu0: cpu@0 {
27 device_type = "cpu";
28 compatible = "arm,cortex-a15";
29 reg = <0>;
30 clock-frequency = <1000000000>;
31 clocks = <&cpg_clocks R8A7792_CLK_Z>;
32 power-domains = <&sysc R8A7792_PD_CA15_CPU0>;
33 next-level-cache = <&L2_CA15>;
34 };
35
Sergei Shtylyov8fd763c2016-06-21 01:31:01 +030036 cpu1: cpu@1 {
37 device_type = "cpu";
38 compatible = "arm,cortex-a15";
39 reg = <1>;
40 clock-frequency = <1000000000>;
41 power-domains = <&sysc R8A7792_PD_CA15_CPU1>;
42 next-level-cache = <&L2_CA15>;
43 };
44
Sergei Shtylyov7c4163a2016-06-13 00:06:52 +030045 L2_CA15: cache-controller@0 {
46 compatible = "cache";
47 reg = <0>;
48 cache-unified;
49 cache-level = <2>;
50 power-domains = <&sysc R8A7792_PD_CA15_SCU>;
51 };
52 };
53
54 soc {
55 compatible = "simple-bus";
56 interrupt-parent = <&gic>;
57
58 #address-cells = <2>;
59 #size-cells = <2>;
60 ranges;
61
Sergei Shtylyov8fd763c2016-06-21 01:31:01 +030062 apmu@e6152000 {
63 compatible = "renesas,r8a7792-apmu", "renesas,apmu";
64 reg = <0 0xe6152000 0 0x188>;
65 cpus = <&cpu0 &cpu1>;
66 };
67
Sergei Shtylyov7c4163a2016-06-13 00:06:52 +030068 gic: interrupt-controller@f1001000 {
69 compatible = "arm,gic-400";
70 #interrupt-cells = <3>;
71 interrupt-controller;
72 reg = <0 0xf1001000 0 0x1000>,
73 <0 0xf1002000 0 0x1000>,
74 <0 0xf1004000 0 0x2000>,
75 <0 0xf1006000 0 0x2000>;
76 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) |
77 IRQ_TYPE_LEVEL_HIGH)>;
78 };
79
Sergei Shtylyov56efdbe52016-06-13 00:12:06 +030080 irqc: interrupt-controller@e61c0000 {
81 compatible = "renesas,irqc-r8a7792", "renesas,irqc";
82 #interrupt-cells = <2>;
83 interrupt-controller;
84 reg = <0 0xe61c0000 0 0x200>;
85 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
86 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
87 <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
88 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
89 clocks = <&mstp4_clks R8A7792_CLK_IRQC>;
90 power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
91 };
92
Sergei Shtylyov7c4163a2016-06-13 00:06:52 +030093 timer {
94 compatible = "arm,armv7-timer";
95 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
96 IRQ_TYPE_LEVEL_LOW)>,
97 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
98 IRQ_TYPE_LEVEL_LOW)>,
99 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) |
100 IRQ_TYPE_LEVEL_LOW)>,
101 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) |
102 IRQ_TYPE_LEVEL_LOW)>;
103 };
104
105 sysc: system-controller@e6180000 {
106 compatible = "renesas,r8a7792-sysc";
107 reg = <0 0xe6180000 0 0x0200>;
108 #power-domain-cells = <1>;
109 };
110
Sergei Shtylyov02183a52016-07-15 00:00:05 +0300111 pfc: pin-controller@e6060000 {
112 compatible = "renesas,pfc-r8a7792";
113 reg = <0 0xe6060000 0 0x144>;
114 };
115
Sergei Shtylyovfdf8ec02016-06-13 00:08:18 +0300116 dmac0: dma-controller@e6700000 {
117 compatible = "renesas,dmac-r8a7792",
118 "renesas,rcar-dmac";
119 reg = <0 0xe6700000 0 0x20000>;
120 interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH
121 GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH
122 GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH
123 GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH
124 GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH
125 GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH
126 GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH
127 GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH
128 GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH
129 GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH
130 GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH
131 GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH
132 GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH
133 GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH
134 GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH
135 GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>;
136 interrupt-names = "error",
137 "ch0", "ch1", "ch2", "ch3",
138 "ch4", "ch5", "ch6", "ch7",
139 "ch8", "ch9", "ch10", "ch11",
140 "ch12", "ch13", "ch14";
141 clocks = <&mstp2_clks R8A7792_CLK_SYS_DMAC0>;
142 clock-names = "fck";
143 power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
144 #dma-cells = <1>;
145 dma-channels = <15>;
146 };
147
148 dmac1: dma-controller@e6720000 {
149 compatible = "renesas,dmac-r8a7792",
150 "renesas,rcar-dmac";
151 reg = <0 0xe6720000 0 0x20000>;
152 interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH
153 GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH
154 GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH
155 GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH
156 GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH
157 GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH
158 GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH
159 GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH
160 GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH
161 GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH
162 GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH
163 GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH
164 GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH
165 GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH
166 GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH
167 GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH>;
168 interrupt-names = "error",
169 "ch0", "ch1", "ch2", "ch3",
170 "ch4", "ch5", "ch6", "ch7",
171 "ch8", "ch9", "ch10", "ch11",
172 "ch12", "ch13", "ch14";
173 clocks = <&mstp2_clks R8A7792_CLK_SYS_DMAC1>;
174 clock-names = "fck";
175 power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
176 #dma-cells = <1>;
177 dma-channels = <15>;
178 };
179
Sergei Shtylyove66796b2016-06-13 00:09:42 +0300180 scif0: serial@e6e60000 {
181 compatible = "renesas,scif-r8a7792",
182 "renesas,rcar-gen2-scif", "renesas,scif";
183 reg = <0 0xe6e60000 0 64>;
184 interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
185 clocks = <&mstp7_clks R8A7792_CLK_SCIF0>, <&zs_clk>,
186 <&scif_clk>;
187 clock-names = "fck", "brg_int", "scif_clk";
188 dmas = <&dmac0 0x29>, <&dmac0 0x2a>,
189 <&dmac1 0x29>, <&dmac1 0x2a>;
190 dma-names = "tx", "rx", "tx", "rx";
191 power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
192 status = "disabled";
193 };
194
195 scif1: serial@e6e68000 {
196 compatible = "renesas,scif-r8a7792",
197 "renesas,rcar-gen2-scif", "renesas,scif";
198 reg = <0 0xe6e68000 0 64>;
199 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
200 clocks = <&mstp7_clks R8A7792_CLK_SCIF1>, <&zs_clk>,
201 <&scif_clk>;
202 clock-names = "fck", "brg_int", "scif_clk";
203 dmas = <&dmac0 0x2d>, <&dmac0 0x2e>,
204 <&dmac1 0x2d>, <&dmac1 0x2e>;
205 dma-names = "tx", "rx", "tx", "rx";
206 power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
207 status = "disabled";
208 };
209
210 scif2: serial@e6e58000 {
211 compatible = "renesas,scif-r8a7792",
212 "renesas,rcar-gen2-scif", "renesas,scif";
213 reg = <0 0xe6e58000 0 64>;
214 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
215 clocks = <&mstp7_clks R8A7792_CLK_SCIF2>, <&zs_clk>,
216 <&scif_clk>;
217 clock-names = "fck", "brg_int", "scif_clk";
218 dmas = <&dmac0 0x2b>, <&dmac0 0x2c>,
219 <&dmac1 0x2b>, <&dmac1 0x2c>;
220 dma-names = "tx", "rx", "tx", "rx";
221 power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
222 status = "disabled";
223 };
224
225 scif3: serial@e6ea8000 {
226 compatible = "renesas,scif-r8a7792",
227 "renesas,rcar-gen2-scif", "renesas,scif";
228 reg = <0 0xe6ea8000 0 64>;
229 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
230 clocks = <&mstp7_clks R8A7792_CLK_SCIF3>, <&zs_clk>,
231 <&scif_clk>;
232 clock-names = "fck", "brg_int", "scif_clk";
233 dmas = <&dmac0 0x2f>, <&dmac0 0x30>,
234 <&dmac1 0x2f>, <&dmac1 0x30>;
235 dma-names = "tx", "rx", "tx", "rx";
236 power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
237 status = "disabled";
238 };
239
240 hscif0: serial@e62c0000 {
241 compatible = "renesas,hscif-r8a7792",
242 "renesas,rcar-gen2-hscif", "renesas,hscif";
243 reg = <0 0xe62c0000 0 96>;
244 interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
245 clocks = <&mstp7_clks R8A7792_CLK_HSCIF0>, <&zs_clk>,
246 <&scif_clk>;
247 clock-names = "fck", "brg_int", "scif_clk";
248 dmas = <&dmac0 0x39>, <&dmac0 0x3a>,
249 <&dmac1 0x39>, <&dmac1 0x3a>;
250 dma-names = "tx", "rx", "tx", "rx";
251 power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
252 status = "disabled";
253 };
254
255 hscif1: serial@e62c8000 {
256 compatible = "renesas,hscif-r8a7792",
257 "renesas,rcar-gen2-hscif", "renesas,hscif";
258 reg = <0 0xe62c8000 0 96>;
259 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
260 clocks = <&mstp7_clks R8A7792_CLK_HSCIF1>, <&zs_clk>,
261 <&scif_clk>;
262 clock-names = "fck", "brg_int", "scif_clk";
263 dmas = <&dmac0 0x4d>, <&dmac0 0x4e>,
264 <&dmac1 0x4d>, <&dmac1 0x4e>;
265 dma-names = "tx", "rx", "tx", "rx";
266 power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
267 status = "disabled";
268 };
269
Sergei Shtylyov3e1839e2016-06-17 01:03:53 +0300270 jpu: jpeg-codec@fe980000 {
271 compatible = "renesas,jpu-r8a7792",
272 "renesas,rcar-gen2-jpu";
273 reg = <0 0xfe980000 0 0x10300>;
274 interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
275 clocks = <&mstp1_clks R8A7792_CLK_JPU>;
276 power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
277 };
278
Sergei Shtylyov7c4163a2016-06-13 00:06:52 +0300279 /* Special CPG clocks */
280 cpg_clocks: cpg_clocks@e6150000 {
281 compatible = "renesas,r8a7792-cpg-clocks",
282 "renesas,rcar-gen2-cpg-clocks";
283 reg = <0 0xe6150000 0 0x1000>;
284 clocks = <&extal_clk>;
285 #clock-cells = <1>;
286 clock-output-names = "main", "pll0", "pll1", "pll3",
Sergei Shtylyove0c3f922016-07-12 00:52:43 +0300287 "lb", "qspi", "z";
Sergei Shtylyov7c4163a2016-06-13 00:06:52 +0300288 #power-domain-cells = <0>;
289 };
290
291 /* Fixed factor clocks */
Sergei Shtylyov4b9b7b32016-07-12 00:51:58 +0300292 pll1_div2_clk: pll1_div2 {
293 compatible = "fixed-factor-clock";
294 clocks = <&cpg_clocks R8A7792_CLK_PLL1>;
295 #clock-cells = <0>;
296 clock-div = <2>;
297 clock-mult = <1>;
298 };
Sergei Shtylyov7c4163a2016-06-13 00:06:52 +0300299 zs_clk: zs {
300 compatible = "fixed-factor-clock";
301 clocks = <&cpg_clocks R8A7792_CLK_PLL1>;
302 #clock-cells = <0>;
303 clock-div = <6>;
304 clock-mult = <1>;
305 };
306 p_clk: p {
307 compatible = "fixed-factor-clock";
308 clocks = <&cpg_clocks R8A7792_CLK_PLL1>;
309 #clock-cells = <0>;
310 clock-div = <24>;
311 clock-mult = <1>;
312 };
313 cp_clk: cp {
314 compatible = "fixed-factor-clock";
315 clocks = <&cpg_clocks R8A7792_CLK_PLL1>;
316 #clock-cells = <0>;
317 clock-div = <48>;
318 clock-mult = <1>;
319 };
Sergei Shtylyoveebc8e22016-06-17 01:02:48 +0300320 m2_clk: m2 {
321 compatible = "fixed-factor-clock";
322 clocks = <&cpg_clocks R8A7792_CLK_PLL1>;
323 #clock-cells = <0>;
324 clock-div = <8>;
325 clock-mult = <1>;
326 };
Sergei Shtylyov7c4163a2016-06-13 00:06:52 +0300327
328 /* Gate clocks */
Sergei Shtylyoveebc8e22016-06-17 01:02:48 +0300329 mstp1_clks: mstp1_clks@e6150134 {
330 compatible = "renesas,r8a7792-mstp-clocks",
331 "renesas,cpg-mstp-clocks";
332 reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
333 clocks = <&m2_clk>;
334 #clock-cells = <1>;
335 clock-indices = <R8A7792_CLK_JPU>;
336 clock-output-names = "jpu";
337 };
Sergei Shtylyov7c4163a2016-06-13 00:06:52 +0300338 mstp2_clks: mstp2_clks@e6150138 {
339 compatible = "renesas,r8a7792-mstp-clocks",
340 "renesas,cpg-mstp-clocks";
341 reg = <0 0xe6150138 0 4>, <0 0xe6150040 0 4>;
342 clocks = <&zs_clk>, <&zs_clk>;
343 #clock-cells = <1>;
344 clock-indices = <
345 R8A7792_CLK_SYS_DMAC1 R8A7792_CLK_SYS_DMAC0
346 >;
347 clock-output-names = "sys-dmac1", "sys-dmac0";
348 };
349 mstp4_clks: mstp4_clks@e6150140 {
350 compatible = "renesas,r8a7792-mstp-clocks",
351 "renesas,cpg-mstp-clocks";
352 reg = <0 0xe6150140 0 4>, <0 0xe615004c 0 4>;
353 clocks = <&cp_clk>;
354 #clock-cells = <1>;
355 clock-indices = <R8A7792_CLK_IRQC>;
356 clock-output-names = "irqc";
357 };
358 mstp7_clks: mstp7_clks@e615014c {
359 compatible = "renesas,r8a7792-mstp-clocks",
360 "renesas,cpg-mstp-clocks";
361 reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
362 clocks = <&zs_clk>, <&zs_clk>, <&p_clk>, <&p_clk>,
363 <&p_clk>, <&p_clk>;
364 #clock-cells = <1>;
365 clock-indices = <
366 R8A7792_CLK_HSCIF1 R8A7792_CLK_HSCIF0
367 R8A7792_CLK_SCIF3 R8A7792_CLK_SCIF2
368 R8A7792_CLK_SCIF1 R8A7792_CLK_SCIF0
369 >;
370 clock-output-names = "hscif1", "hscif0", "scif3",
371 "scif2", "scif1", "scif0";
372 };
373 };
374
375 /* External root clock */
376 extal_clk: extal {
377 compatible = "fixed-clock";
378 #clock-cells = <0>;
379 /* This value must be overridden by the board. */
380 clock-frequency = <0>;
381 };
382
383 /* External SCIF clock */
384 scif_clk: scif {
385 compatible = "fixed-clock";
386 #clock-cells = <0>;
387 /* This value must be overridden by the board. */
388 clock-frequency = <0>;
389 };
390};