blob: 6aea9af2b6c516867217fcc90fd8984db1995691 [file] [log] [blame]
Masahiro Yamada3e98fc12018-04-16 12:35:33 +09001// SPDX-License-Identifier: GPL-2.0+ OR MIT
2//
3// Device Tree Source for UniPhier Pro5 SoC
4//
5// Copyright (C) 2015-2016 Socionext Inc.
6// Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada10ee0a62015-08-28 22:33:14 +09007
Masahiro Yamada10ee0a62015-08-28 22:33:14 +09008/ {
Masahiro Yamada52159d22016-10-07 16:43:00 +09009 compatible = "socionext,uniphier-pro5";
Masahiro Yamadaf16eda92017-03-13 00:16:39 +090010 #address-cells = <1>;
11 #size-cells = <1>;
Masahiro Yamada10ee0a62015-08-28 22:33:14 +090012
13 cpus {
14 #address-cells = <1>;
15 #size-cells = <0>;
Masahiro Yamada10ee0a62015-08-28 22:33:14 +090016
17 cpu@0 {
18 device_type = "cpu";
19 compatible = "arm,cortex-a9";
20 reg = <0>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090021 clocks = <&sys_clk 32>;
Masahiro Yamada52159d22016-10-07 16:43:00 +090022 enable-method = "psci";
Masahiro Yamada4e1f81d2015-12-16 10:54:08 +090023 next-level-cache = <&l2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090024 operating-points-v2 = <&cpu_opp>;
Masahiro Yamada10ee0a62015-08-28 22:33:14 +090025 };
26
27 cpu@1 {
28 device_type = "cpu";
29 compatible = "arm,cortex-a9";
30 reg = <1>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090031 clocks = <&sys_clk 32>;
Masahiro Yamada52159d22016-10-07 16:43:00 +090032 enable-method = "psci";
Masahiro Yamada4e1f81d2015-12-16 10:54:08 +090033 next-level-cache = <&l2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090034 operating-points-v2 = <&cpu_opp>;
Masahiro Yamada10ee0a62015-08-28 22:33:14 +090035 };
36 };
37
Masahiro Yamadab443fb42017-11-25 00:25:35 +090038 cpu_opp: opp-table {
Masahiro Yamadacd622142016-12-05 18:31:39 +090039 compatible = "operating-points-v2";
40 opp-shared;
41
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090042 opp-100000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090043 opp-hz = /bits/ 64 <100000000>;
44 clock-latency-ns = <300>;
45 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090046 opp-116667000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090047 opp-hz = /bits/ 64 <116667000>;
48 clock-latency-ns = <300>;
49 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090050 opp-150000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090051 opp-hz = /bits/ 64 <150000000>;
52 clock-latency-ns = <300>;
53 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090054 opp-175000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090055 opp-hz = /bits/ 64 <175000000>;
56 clock-latency-ns = <300>;
57 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090058 opp-200000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090059 opp-hz = /bits/ 64 <200000000>;
60 clock-latency-ns = <300>;
61 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090062 opp-233334000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090063 opp-hz = /bits/ 64 <233334000>;
64 clock-latency-ns = <300>;
65 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090066 opp-300000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090067 opp-hz = /bits/ 64 <300000000>;
68 clock-latency-ns = <300>;
69 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090070 opp-350000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090071 opp-hz = /bits/ 64 <350000000>;
72 clock-latency-ns = <300>;
73 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090074 opp-400000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090075 opp-hz = /bits/ 64 <400000000>;
76 clock-latency-ns = <300>;
77 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090078 opp-466667000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090079 opp-hz = /bits/ 64 <466667000>;
80 clock-latency-ns = <300>;
81 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090082 opp-600000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090083 opp-hz = /bits/ 64 <600000000>;
84 clock-latency-ns = <300>;
85 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090086 opp-700000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090087 opp-hz = /bits/ 64 <700000000>;
88 clock-latency-ns = <300>;
89 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090090 opp-800000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090091 opp-hz = /bits/ 64 <800000000>;
92 clock-latency-ns = <300>;
93 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090094 opp-933334000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090095 opp-hz = /bits/ 64 <933334000>;
96 clock-latency-ns = <300>;
97 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090098 opp-1200000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090099 opp-hz = /bits/ 64 <1200000000>;
100 clock-latency-ns = <300>;
101 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900102 opp-1400000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900103 opp-hz = /bits/ 64 <1400000000>;
104 clock-latency-ns = <300>;
105 };
106 };
107
108 psci {
109 compatible = "arm,psci-0.2";
110 method = "smc";
111 };
112
Masahiro Yamada10ee0a62015-08-28 22:33:14 +0900113 clocks {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900114 refclk: ref {
115 compatible = "fixed-clock";
116 #clock-cells = <0>;
117 clock-frequency = <20000000>;
118 };
119
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900120 arm_timer_clk: arm-timer {
Masahiro Yamada10ee0a62015-08-28 22:33:14 +0900121 #clock-cells = <0>;
122 compatible = "fixed-clock";
123 clock-frequency = <50000000>;
124 };
Masahiro Yamadacd622142016-12-05 18:31:39 +0900125 };
Masahiro Yamada10ee0a62015-08-28 22:33:14 +0900126
Masahiro Yamadacd622142016-12-05 18:31:39 +0900127 soc {
128 compatible = "simple-bus";
129 #address-cells = <1>;
130 #size-cells = <1>;
131 ranges;
132 interrupt-parent = <&intc>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900133
134 l2: l2-cache@500c0000 {
135 compatible = "socionext,uniphier-system-cache";
136 reg = <0x500c0000 0x2000>, <0x503c0100 0x8>,
137 <0x506c0000 0x400>;
138 interrupts = <0 190 4>, <0 191 4>;
139 cache-unified;
140 cache-size = <(2 * 1024 * 1024)>;
141 cache-sets = <512>;
142 cache-line-size = <128>;
143 cache-level = <2>;
144 next-level-cache = <&l3>;
145 };
146
147 l3: l3-cache@500c8000 {
148 compatible = "socionext,uniphier-system-cache";
149 reg = <0x500c8000 0x2000>, <0x503c8100 0x8>,
150 <0x506c8000 0x400>;
151 interrupts = <0 174 4>, <0 175 4>;
152 cache-unified;
153 cache-size = <(2 * 1024 * 1024)>;
154 cache-sets = <512>;
155 cache-line-size = <256>;
156 cache-level = <3>;
157 };
158
159 serial0: serial@54006800 {
160 compatible = "socionext,uniphier-uart";
161 status = "disabled";
162 reg = <0x54006800 0x40>;
163 interrupts = <0 33 4>;
164 pinctrl-names = "default";
165 pinctrl-0 = <&pinctrl_uart0>;
166 clocks = <&peri_clk 0>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900167 resets = <&peri_rst 0>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900168 };
169
170 serial1: serial@54006900 {
171 compatible = "socionext,uniphier-uart";
172 status = "disabled";
173 reg = <0x54006900 0x40>;
174 interrupts = <0 35 4>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&pinctrl_uart1>;
177 clocks = <&peri_clk 1>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900178 resets = <&peri_rst 1>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900179 };
180
181 serial2: serial@54006a00 {
182 compatible = "socionext,uniphier-uart";
183 status = "disabled";
184 reg = <0x54006a00 0x40>;
185 interrupts = <0 37 4>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&pinctrl_uart2>;
188 clocks = <&peri_clk 2>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900189 resets = <&peri_rst 2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900190 };
191
192 serial3: serial@54006b00 {
193 compatible = "socionext,uniphier-uart";
194 status = "disabled";
195 reg = <0x54006b00 0x40>;
196 interrupts = <0 177 4>;
197 pinctrl-names = "default";
198 pinctrl-0 = <&pinctrl_uart3>;
199 clocks = <&peri_clk 3>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900200 resets = <&peri_rst 3>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900201 };
202
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900203 gpio: gpio@55000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900204 compatible = "socionext,uniphier-gpio";
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900205 reg = <0x55000000 0x200>;
206 interrupt-parent = <&aidet>;
207 interrupt-controller;
208 #interrupt-cells = <2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900209 gpio-controller;
210 #gpio-cells = <2>;
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900211 gpio-ranges = <&pinctrl 0 0 0>;
212 gpio-ranges-group-names = "gpio_range";
213 ngpios = <248>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900214 socionext,interrupt-ranges = <0 48 16>, <16 154 5>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900215 };
216
217 i2c0: i2c@58780000 {
218 compatible = "socionext,uniphier-fi2c";
219 status = "disabled";
220 reg = <0x58780000 0x80>;
221 #address-cells = <1>;
222 #size-cells = <0>;
223 interrupts = <0 41 4>;
224 pinctrl-names = "default";
225 pinctrl-0 = <&pinctrl_i2c0>;
226 clocks = <&peri_clk 4>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900227 resets = <&peri_rst 4>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900228 clock-frequency = <100000>;
229 };
230
231 i2c1: i2c@58781000 {
232 compatible = "socionext,uniphier-fi2c";
233 status = "disabled";
234 reg = <0x58781000 0x80>;
235 #address-cells = <1>;
236 #size-cells = <0>;
237 interrupts = <0 42 4>;
238 pinctrl-names = "default";
239 pinctrl-0 = <&pinctrl_i2c1>;
240 clocks = <&peri_clk 5>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900241 resets = <&peri_rst 5>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900242 clock-frequency = <100000>;
243 };
244
245 i2c2: i2c@58782000 {
246 compatible = "socionext,uniphier-fi2c";
247 status = "disabled";
248 reg = <0x58782000 0x80>;
249 #address-cells = <1>;
250 #size-cells = <0>;
251 interrupts = <0 43 4>;
252 pinctrl-names = "default";
253 pinctrl-0 = <&pinctrl_i2c2>;
254 clocks = <&peri_clk 6>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900255 resets = <&peri_rst 6>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900256 clock-frequency = <100000>;
257 };
258
259 i2c3: i2c@58783000 {
260 compatible = "socionext,uniphier-fi2c";
261 status = "disabled";
262 reg = <0x58783000 0x80>;
263 #address-cells = <1>;
264 #size-cells = <0>;
265 interrupts = <0 44 4>;
266 pinctrl-names = "default";
267 pinctrl-0 = <&pinctrl_i2c3>;
268 clocks = <&peri_clk 7>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900269 resets = <&peri_rst 7>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900270 clock-frequency = <100000>;
271 };
272
273 /* i2c4 does not exist */
274
275 /* chip-internal connection for DMD */
276 i2c5: i2c@58785000 {
277 compatible = "socionext,uniphier-fi2c";
278 reg = <0x58785000 0x80>;
279 #address-cells = <1>;
280 #size-cells = <0>;
281 interrupts = <0 25 4>;
282 clocks = <&peri_clk 9>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900283 resets = <&peri_rst 9>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900284 clock-frequency = <400000>;
285 };
286
287 /* chip-internal connection for HDMI */
288 i2c6: i2c@58786000 {
289 compatible = "socionext,uniphier-fi2c";
290 reg = <0x58786000 0x80>;
291 #address-cells = <1>;
292 #size-cells = <0>;
293 interrupts = <0 26 4>;
294 clocks = <&peri_clk 10>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900295 resets = <&peri_rst 10>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900296 clock-frequency = <400000>;
297 };
298
299 system_bus: system-bus@58c00000 {
300 compatible = "socionext,uniphier-system-bus";
301 status = "disabled";
302 reg = <0x58c00000 0x400>;
303 #address-cells = <2>;
304 #size-cells = <1>;
305 pinctrl-names = "default";
306 pinctrl-0 = <&pinctrl_system_bus>;
307 };
308
Masahiro Yamadaabb6ac22017-05-15 14:23:46 +0900309 smpctrl@59801000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900310 compatible = "socionext,uniphier-smpctrl";
311 reg = <0x59801000 0x400>;
312 };
313
314 sdctrl@59810000 {
315 compatible = "socionext,uniphier-pro5-sdctrl",
316 "simple-mfd", "syscon";
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900317 reg = <0x59810000 0x400>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900318
319 sd_clk: clock {
320 compatible = "socionext,uniphier-pro5-sd-clock";
321 #clock-cells = <1>;
322 };
323
324 sd_rst: reset {
325 compatible = "socionext,uniphier-pro5-sd-reset";
326 #reset-cells = <1>;
327 };
328 };
329
330 perictrl@59820000 {
331 compatible = "socionext,uniphier-pro5-perictrl",
332 "simple-mfd", "syscon";
333 reg = <0x59820000 0x200>;
334
335 peri_clk: clock {
336 compatible = "socionext,uniphier-pro5-peri-clock";
337 #clock-cells = <1>;
338 };
339
340 peri_rst: reset {
341 compatible = "socionext,uniphier-pro5-peri-reset";
342 #reset-cells = <1>;
343 };
344 };
345
346 soc-glue@5f800000 {
347 compatible = "socionext,uniphier-pro5-soc-glue",
348 "simple-mfd", "syscon";
349 reg = <0x5f800000 0x2000>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900350
351 pinctrl: pinctrl {
352 compatible = "socionext,uniphier-pro5-pinctrl";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900353 };
354 };
355
Masahiro Yamada46820e32018-03-15 11:43:03 +0900356 soc-glue@5f900000 {
357 compatible = "socionext,uniphier-pro5-soc-glue-debug",
358 "simple-mfd";
359 #address-cells = <1>;
360 #size-cells = <1>;
361 ranges = <0 0x5f900000 0x2000>;
362
363 efuse@100 {
364 compatible = "socionext,uniphier-efuse";
365 reg = <0x100 0x28>;
366 };
367
368 efuse@130 {
369 compatible = "socionext,uniphier-efuse";
370 reg = <0x130 0x8>;
371 };
372
373 efuse@200 {
374 compatible = "socionext,uniphier-efuse";
375 reg = <0x200 0x28>;
376 };
377
378 efuse@300 {
379 compatible = "socionext,uniphier-efuse";
380 reg = <0x300 0x14>;
381 };
382
383 efuse@400 {
384 compatible = "socionext,uniphier-efuse";
385 reg = <0x400 0x8>;
386 };
387 };
388
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900389 aidet: aidet@5fc20000 {
390 compatible = "socionext,uniphier-pro5-aidet";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900391 reg = <0x5fc20000 0x200>;
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900392 interrupt-controller;
393 #interrupt-cells = <2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900394 };
395
396 timer@60000200 {
397 compatible = "arm,cortex-a9-global-timer";
398 reg = <0x60000200 0x20>;
399 interrupts = <1 11 0x304>;
400 clocks = <&arm_timer_clk>;
401 };
402
403 timer@60000600 {
404 compatible = "arm,cortex-a9-twd-timer";
405 reg = <0x60000600 0x20>;
406 interrupts = <1 13 0x304>;
407 clocks = <&arm_timer_clk>;
408 };
409
410 intc: interrupt-controller@60001000 {
411 compatible = "arm,cortex-a9-gic";
412 reg = <0x60001000 0x1000>,
413 <0x60000100 0x100>;
414 #interrupt-cells = <3>;
415 interrupt-controller;
416 };
417
418 sysctrl@61840000 {
419 compatible = "socionext,uniphier-pro5-sysctrl",
420 "simple-mfd", "syscon";
421 reg = <0x61840000 0x10000>;
422
423 sys_clk: clock {
424 compatible = "socionext,uniphier-pro5-clock";
425 #clock-cells = <1>;
426 };
427
428 sys_rst: reset {
429 compatible = "socionext,uniphier-pro5-reset";
430 #reset-cells = <1>;
431 };
432 };
433
434 usb0: usb@65b00000 {
435 compatible = "socionext,uniphier-pro5-dwc3";
436 status = "disabled";
437 reg = <0x65b00000 0x1000>;
438 #address-cells = <1>;
439 #size-cells = <1>;
440 ranges;
441 pinctrl-names = "default";
442 pinctrl-0 = <&pinctrl_usb0>;
443 dwc3@65a00000 {
444 compatible = "snps,dwc3";
445 reg = <0x65a00000 0x10000>;
446 interrupts = <0 134 4>;
Masahiro Yamada3444d1d2017-08-13 09:01:17 +0900447 dr_mode = "host";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900448 tx-fifo-resize;
449 };
450 };
451
452 usb1: usb@65d00000 {
453 compatible = "socionext,uniphier-pro5-dwc3";
454 status = "disabled";
455 reg = <0x65d00000 0x1000>;
456 #address-cells = <1>;
457 #size-cells = <1>;
458 ranges;
459 pinctrl-names = "default";
460 pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb2>;
461 dwc3@65c00000 {
462 compatible = "snps,dwc3";
463 reg = <0x65c00000 0x10000>;
464 interrupts = <0 137 4>;
Masahiro Yamada3444d1d2017-08-13 09:01:17 +0900465 dr_mode = "host";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900466 tx-fifo-resize;
467 };
468 };
469
470 nand: nand@68000000 {
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900471 compatible = "socionext,uniphier-denali-nand-v5b";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900472 status = "disabled";
473 reg-names = "nand_data", "denali_reg";
474 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
475 interrupts = <0 65 4>;
476 pinctrl-names = "default";
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900477 pinctrl-0 = <&pinctrl_nand2cs>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900478 clocks = <&sys_clk 2>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900479 resets = <&sys_rst 2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900480 };
481
482 emmc: sdhc@68400000 {
483 compatible = "socionext,uniphier-sdhc";
484 status = "disabled";
485 reg = <0x68400000 0x800>;
486 interrupts = <0 78 4>;
487 pinctrl-names = "default";
488 pinctrl-0 = <&pinctrl_emmc>;
489 clocks = <&sd_clk 1>;
490 reset-names = "host";
491 resets = <&sd_rst 1>;
492 bus-width = <8>;
493 non-removable;
494 cap-mmc-highspeed;
495 cap-mmc-hw-reset;
496 no-3-3-v;
497 };
498
499 sd: sdhc@68800000 {
500 compatible = "socionext,uniphier-sdhc";
501 status = "disabled";
502 reg = <0x68800000 0x800>;
503 interrupts = <0 76 4>;
504 pinctrl-names = "default", "1.8v";
505 pinctrl-0 = <&pinctrl_sd>;
506 pinctrl-1 = <&pinctrl_sd_1v8>;
507 clocks = <&sd_clk 0>;
508 reset-names = "host";
509 resets = <&sd_rst 0>;
510 bus-width = <4>;
511 cap-sd-highspeed;
512 sd-uhs-sdr12;
513 sd-uhs-sdr25;
514 sd-uhs-sdr50;
Masahiro Yamada10ee0a62015-08-28 22:33:14 +0900515 };
516 };
Masahiro Yamada8f062432015-12-16 10:54:07 +0900517};
Masahiro Yamada10ee0a62015-08-28 22:33:14 +0900518
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900519#include "uniphier-pinctrl.dtsi"