blob: c3b627cf47ef6eecef892090d70636454d96d57f [file] [log] [blame]
Masahiro Yamada10ee0a62015-08-28 22:33:14 +09001/*
Masahiro Yamada52159d22016-10-07 16:43:00 +09002 * Device Tree Source for UniPhier Pro5 SoC
Masahiro Yamada10ee0a62015-08-28 22:33:14 +09003 *
Masahiro Yamada52159d22016-10-07 16:43:00 +09004 * Copyright (C) 2015-2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada10ee0a62015-08-28 22:33:14 +09006 *
Masahiro Yamadad9403002017-06-22 16:46:40 +09007 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Masahiro Yamada10ee0a62015-08-28 22:33:14 +09008 */
9
Masahiro Yamada10ee0a62015-08-28 22:33:14 +090010/ {
Masahiro Yamada52159d22016-10-07 16:43:00 +090011 compatible = "socionext,uniphier-pro5";
Masahiro Yamadaf16eda92017-03-13 00:16:39 +090012 #address-cells = <1>;
13 #size-cells = <1>;
Masahiro Yamada10ee0a62015-08-28 22:33:14 +090014
15 cpus {
16 #address-cells = <1>;
17 #size-cells = <0>;
Masahiro Yamada10ee0a62015-08-28 22:33:14 +090018
19 cpu@0 {
20 device_type = "cpu";
21 compatible = "arm,cortex-a9";
22 reg = <0>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090023 clocks = <&sys_clk 32>;
Masahiro Yamada52159d22016-10-07 16:43:00 +090024 enable-method = "psci";
Masahiro Yamada4e1f81d2015-12-16 10:54:08 +090025 next-level-cache = <&l2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090026 operating-points-v2 = <&cpu_opp>;
Masahiro Yamada10ee0a62015-08-28 22:33:14 +090027 };
28
29 cpu@1 {
30 device_type = "cpu";
31 compatible = "arm,cortex-a9";
32 reg = <1>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090033 clocks = <&sys_clk 32>;
Masahiro Yamada52159d22016-10-07 16:43:00 +090034 enable-method = "psci";
Masahiro Yamada4e1f81d2015-12-16 10:54:08 +090035 next-level-cache = <&l2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +090036 operating-points-v2 = <&cpu_opp>;
Masahiro Yamada10ee0a62015-08-28 22:33:14 +090037 };
38 };
39
Masahiro Yamadab443fb42017-11-25 00:25:35 +090040 cpu_opp: opp-table {
Masahiro Yamadacd622142016-12-05 18:31:39 +090041 compatible = "operating-points-v2";
42 opp-shared;
43
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090044 opp-100000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090045 opp-hz = /bits/ 64 <100000000>;
46 clock-latency-ns = <300>;
47 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090048 opp-116667000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090049 opp-hz = /bits/ 64 <116667000>;
50 clock-latency-ns = <300>;
51 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090052 opp-150000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090053 opp-hz = /bits/ 64 <150000000>;
54 clock-latency-ns = <300>;
55 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090056 opp-175000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090057 opp-hz = /bits/ 64 <175000000>;
58 clock-latency-ns = <300>;
59 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090060 opp-200000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090061 opp-hz = /bits/ 64 <200000000>;
62 clock-latency-ns = <300>;
63 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090064 opp-233334000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090065 opp-hz = /bits/ 64 <233334000>;
66 clock-latency-ns = <300>;
67 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090068 opp-300000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090069 opp-hz = /bits/ 64 <300000000>;
70 clock-latency-ns = <300>;
71 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090072 opp-350000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090073 opp-hz = /bits/ 64 <350000000>;
74 clock-latency-ns = <300>;
75 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090076 opp-400000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090077 opp-hz = /bits/ 64 <400000000>;
78 clock-latency-ns = <300>;
79 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090080 opp-466667000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090081 opp-hz = /bits/ 64 <466667000>;
82 clock-latency-ns = <300>;
83 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090084 opp-600000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090085 opp-hz = /bits/ 64 <600000000>;
86 clock-latency-ns = <300>;
87 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090088 opp-700000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090089 opp-hz = /bits/ 64 <700000000>;
90 clock-latency-ns = <300>;
91 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090092 opp-800000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090093 opp-hz = /bits/ 64 <800000000>;
94 clock-latency-ns = <300>;
95 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +090096 opp-933334000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +090097 opp-hz = /bits/ 64 <933334000>;
98 clock-latency-ns = <300>;
99 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900100 opp-1200000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900101 opp-hz = /bits/ 64 <1200000000>;
102 clock-latency-ns = <300>;
103 };
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900104 opp-1400000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900105 opp-hz = /bits/ 64 <1400000000>;
106 clock-latency-ns = <300>;
107 };
108 };
109
110 psci {
111 compatible = "arm,psci-0.2";
112 method = "smc";
113 };
114
Masahiro Yamada10ee0a62015-08-28 22:33:14 +0900115 clocks {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900116 refclk: ref {
117 compatible = "fixed-clock";
118 #clock-cells = <0>;
119 clock-frequency = <20000000>;
120 };
121
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900122 arm_timer_clk: arm-timer {
Masahiro Yamada10ee0a62015-08-28 22:33:14 +0900123 #clock-cells = <0>;
124 compatible = "fixed-clock";
125 clock-frequency = <50000000>;
126 };
Masahiro Yamadacd622142016-12-05 18:31:39 +0900127 };
Masahiro Yamada10ee0a62015-08-28 22:33:14 +0900128
Masahiro Yamadacd622142016-12-05 18:31:39 +0900129 soc {
130 compatible = "simple-bus";
131 #address-cells = <1>;
132 #size-cells = <1>;
133 ranges;
134 interrupt-parent = <&intc>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900135
136 l2: l2-cache@500c0000 {
137 compatible = "socionext,uniphier-system-cache";
138 reg = <0x500c0000 0x2000>, <0x503c0100 0x8>,
139 <0x506c0000 0x400>;
140 interrupts = <0 190 4>, <0 191 4>;
141 cache-unified;
142 cache-size = <(2 * 1024 * 1024)>;
143 cache-sets = <512>;
144 cache-line-size = <128>;
145 cache-level = <2>;
146 next-level-cache = <&l3>;
147 };
148
149 l3: l3-cache@500c8000 {
150 compatible = "socionext,uniphier-system-cache";
151 reg = <0x500c8000 0x2000>, <0x503c8100 0x8>,
152 <0x506c8000 0x400>;
153 interrupts = <0 174 4>, <0 175 4>;
154 cache-unified;
155 cache-size = <(2 * 1024 * 1024)>;
156 cache-sets = <512>;
157 cache-line-size = <256>;
158 cache-level = <3>;
159 };
160
161 serial0: serial@54006800 {
162 compatible = "socionext,uniphier-uart";
163 status = "disabled";
164 reg = <0x54006800 0x40>;
165 interrupts = <0 33 4>;
166 pinctrl-names = "default";
167 pinctrl-0 = <&pinctrl_uart0>;
168 clocks = <&peri_clk 0>;
169 clock-frequency = <73728000>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900170 resets = <&peri_rst 0>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900171 };
172
173 serial1: serial@54006900 {
174 compatible = "socionext,uniphier-uart";
175 status = "disabled";
176 reg = <0x54006900 0x40>;
177 interrupts = <0 35 4>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&pinctrl_uart1>;
180 clocks = <&peri_clk 1>;
181 clock-frequency = <73728000>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900182 resets = <&peri_rst 1>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900183 };
184
185 serial2: serial@54006a00 {
186 compatible = "socionext,uniphier-uart";
187 status = "disabled";
188 reg = <0x54006a00 0x40>;
189 interrupts = <0 37 4>;
190 pinctrl-names = "default";
191 pinctrl-0 = <&pinctrl_uart2>;
192 clocks = <&peri_clk 2>;
193 clock-frequency = <73728000>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900194 resets = <&peri_rst 2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900195 };
196
197 serial3: serial@54006b00 {
198 compatible = "socionext,uniphier-uart";
199 status = "disabled";
200 reg = <0x54006b00 0x40>;
201 interrupts = <0 177 4>;
202 pinctrl-names = "default";
203 pinctrl-0 = <&pinctrl_uart3>;
204 clocks = <&peri_clk 3>;
205 clock-frequency = <73728000>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900206 resets = <&peri_rst 3>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900207 };
208
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900209 gpio: gpio@55000000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900210 compatible = "socionext,uniphier-gpio";
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900211 reg = <0x55000000 0x200>;
212 interrupt-parent = <&aidet>;
213 interrupt-controller;
214 #interrupt-cells = <2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900215 gpio-controller;
216 #gpio-cells = <2>;
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900217 gpio-ranges = <&pinctrl 0 0 0>;
218 gpio-ranges-group-names = "gpio_range";
219 ngpios = <248>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900220 socionext,interrupt-ranges = <0 48 16>, <16 154 5>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900221 };
222
223 i2c0: i2c@58780000 {
224 compatible = "socionext,uniphier-fi2c";
225 status = "disabled";
226 reg = <0x58780000 0x80>;
227 #address-cells = <1>;
228 #size-cells = <0>;
229 interrupts = <0 41 4>;
230 pinctrl-names = "default";
231 pinctrl-0 = <&pinctrl_i2c0>;
232 clocks = <&peri_clk 4>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900233 resets = <&peri_rst 4>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900234 clock-frequency = <100000>;
235 };
236
237 i2c1: i2c@58781000 {
238 compatible = "socionext,uniphier-fi2c";
239 status = "disabled";
240 reg = <0x58781000 0x80>;
241 #address-cells = <1>;
242 #size-cells = <0>;
243 interrupts = <0 42 4>;
244 pinctrl-names = "default";
245 pinctrl-0 = <&pinctrl_i2c1>;
246 clocks = <&peri_clk 5>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900247 resets = <&peri_rst 5>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900248 clock-frequency = <100000>;
249 };
250
251 i2c2: i2c@58782000 {
252 compatible = "socionext,uniphier-fi2c";
253 status = "disabled";
254 reg = <0x58782000 0x80>;
255 #address-cells = <1>;
256 #size-cells = <0>;
257 interrupts = <0 43 4>;
258 pinctrl-names = "default";
259 pinctrl-0 = <&pinctrl_i2c2>;
260 clocks = <&peri_clk 6>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900261 resets = <&peri_rst 6>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900262 clock-frequency = <100000>;
263 };
264
265 i2c3: i2c@58783000 {
266 compatible = "socionext,uniphier-fi2c";
267 status = "disabled";
268 reg = <0x58783000 0x80>;
269 #address-cells = <1>;
270 #size-cells = <0>;
271 interrupts = <0 44 4>;
272 pinctrl-names = "default";
273 pinctrl-0 = <&pinctrl_i2c3>;
274 clocks = <&peri_clk 7>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900275 resets = <&peri_rst 7>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900276 clock-frequency = <100000>;
277 };
278
279 /* i2c4 does not exist */
280
281 /* chip-internal connection for DMD */
282 i2c5: i2c@58785000 {
283 compatible = "socionext,uniphier-fi2c";
284 reg = <0x58785000 0x80>;
285 #address-cells = <1>;
286 #size-cells = <0>;
287 interrupts = <0 25 4>;
288 clocks = <&peri_clk 9>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900289 resets = <&peri_rst 9>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900290 clock-frequency = <400000>;
291 };
292
293 /* chip-internal connection for HDMI */
294 i2c6: i2c@58786000 {
295 compatible = "socionext,uniphier-fi2c";
296 reg = <0x58786000 0x80>;
297 #address-cells = <1>;
298 #size-cells = <0>;
299 interrupts = <0 26 4>;
300 clocks = <&peri_clk 10>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900301 resets = <&peri_rst 10>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900302 clock-frequency = <400000>;
303 };
304
305 system_bus: system-bus@58c00000 {
306 compatible = "socionext,uniphier-system-bus";
307 status = "disabled";
308 reg = <0x58c00000 0x400>;
309 #address-cells = <2>;
310 #size-cells = <1>;
311 pinctrl-names = "default";
312 pinctrl-0 = <&pinctrl_system_bus>;
313 };
314
Masahiro Yamadaabb6ac22017-05-15 14:23:46 +0900315 smpctrl@59801000 {
Masahiro Yamadacd622142016-12-05 18:31:39 +0900316 compatible = "socionext,uniphier-smpctrl";
317 reg = <0x59801000 0x400>;
318 };
319
320 sdctrl@59810000 {
321 compatible = "socionext,uniphier-pro5-sdctrl",
322 "simple-mfd", "syscon";
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900323 reg = <0x59810000 0x400>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900324
325 sd_clk: clock {
326 compatible = "socionext,uniphier-pro5-sd-clock";
327 #clock-cells = <1>;
328 };
329
330 sd_rst: reset {
331 compatible = "socionext,uniphier-pro5-sd-reset";
332 #reset-cells = <1>;
333 };
334 };
335
336 perictrl@59820000 {
337 compatible = "socionext,uniphier-pro5-perictrl",
338 "simple-mfd", "syscon";
339 reg = <0x59820000 0x200>;
340
341 peri_clk: clock {
342 compatible = "socionext,uniphier-pro5-peri-clock";
343 #clock-cells = <1>;
344 };
345
346 peri_rst: reset {
347 compatible = "socionext,uniphier-pro5-peri-reset";
348 #reset-cells = <1>;
349 };
350 };
351
352 soc-glue@5f800000 {
353 compatible = "socionext,uniphier-pro5-soc-glue",
354 "simple-mfd", "syscon";
355 reg = <0x5f800000 0x2000>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900356
357 pinctrl: pinctrl {
358 compatible = "socionext,uniphier-pro5-pinctrl";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900359 };
360 };
361
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900362 aidet: aidet@5fc20000 {
363 compatible = "socionext,uniphier-pro5-aidet";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900364 reg = <0x5fc20000 0x200>;
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900365 interrupt-controller;
366 #interrupt-cells = <2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900367 };
368
369 timer@60000200 {
370 compatible = "arm,cortex-a9-global-timer";
371 reg = <0x60000200 0x20>;
372 interrupts = <1 11 0x304>;
373 clocks = <&arm_timer_clk>;
374 };
375
376 timer@60000600 {
377 compatible = "arm,cortex-a9-twd-timer";
378 reg = <0x60000600 0x20>;
379 interrupts = <1 13 0x304>;
380 clocks = <&arm_timer_clk>;
381 };
382
383 intc: interrupt-controller@60001000 {
384 compatible = "arm,cortex-a9-gic";
385 reg = <0x60001000 0x1000>,
386 <0x60000100 0x100>;
387 #interrupt-cells = <3>;
388 interrupt-controller;
389 };
390
391 sysctrl@61840000 {
392 compatible = "socionext,uniphier-pro5-sysctrl",
393 "simple-mfd", "syscon";
394 reg = <0x61840000 0x10000>;
395
396 sys_clk: clock {
397 compatible = "socionext,uniphier-pro5-clock";
398 #clock-cells = <1>;
399 };
400
401 sys_rst: reset {
402 compatible = "socionext,uniphier-pro5-reset";
403 #reset-cells = <1>;
404 };
405 };
406
407 usb0: usb@65b00000 {
408 compatible = "socionext,uniphier-pro5-dwc3";
409 status = "disabled";
410 reg = <0x65b00000 0x1000>;
411 #address-cells = <1>;
412 #size-cells = <1>;
413 ranges;
414 pinctrl-names = "default";
415 pinctrl-0 = <&pinctrl_usb0>;
416 dwc3@65a00000 {
417 compatible = "snps,dwc3";
418 reg = <0x65a00000 0x10000>;
419 interrupts = <0 134 4>;
Masahiro Yamada3444d1d2017-08-13 09:01:17 +0900420 dr_mode = "host";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900421 tx-fifo-resize;
422 };
423 };
424
425 usb1: usb@65d00000 {
426 compatible = "socionext,uniphier-pro5-dwc3";
427 status = "disabled";
428 reg = <0x65d00000 0x1000>;
429 #address-cells = <1>;
430 #size-cells = <1>;
431 ranges;
432 pinctrl-names = "default";
433 pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb2>;
434 dwc3@65c00000 {
435 compatible = "snps,dwc3";
436 reg = <0x65c00000 0x10000>;
437 interrupts = <0 137 4>;
Masahiro Yamada3444d1d2017-08-13 09:01:17 +0900438 dr_mode = "host";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900439 tx-fifo-resize;
440 };
441 };
442
443 nand: nand@68000000 {
Masahiro Yamada4e7f8de2017-04-20 16:54:44 +0900444 compatible = "socionext,uniphier-denali-nand-v5b";
Masahiro Yamadacd622142016-12-05 18:31:39 +0900445 status = "disabled";
446 reg-names = "nand_data", "denali_reg";
447 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
448 interrupts = <0 65 4>;
449 pinctrl-names = "default";
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900450 pinctrl-0 = <&pinctrl_nand2cs>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900451 clocks = <&sys_clk 2>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900452 resets = <&sys_rst 2>;
Masahiro Yamadacd622142016-12-05 18:31:39 +0900453 };
454
455 emmc: sdhc@68400000 {
456 compatible = "socionext,uniphier-sdhc";
457 status = "disabled";
458 reg = <0x68400000 0x800>;
459 interrupts = <0 78 4>;
460 pinctrl-names = "default";
461 pinctrl-0 = <&pinctrl_emmc>;
462 clocks = <&sd_clk 1>;
463 reset-names = "host";
464 resets = <&sd_rst 1>;
465 bus-width = <8>;
466 non-removable;
467 cap-mmc-highspeed;
468 cap-mmc-hw-reset;
469 no-3-3-v;
470 };
471
472 sd: sdhc@68800000 {
473 compatible = "socionext,uniphier-sdhc";
474 status = "disabled";
475 reg = <0x68800000 0x800>;
476 interrupts = <0 76 4>;
477 pinctrl-names = "default", "1.8v";
478 pinctrl-0 = <&pinctrl_sd>;
479 pinctrl-1 = <&pinctrl_sd_1v8>;
480 clocks = <&sd_clk 0>;
481 reset-names = "host";
482 resets = <&sd_rst 0>;
483 bus-width = <4>;
484 cap-sd-highspeed;
485 sd-uhs-sdr12;
486 sd-uhs-sdr25;
487 sd-uhs-sdr50;
Masahiro Yamada10ee0a62015-08-28 22:33:14 +0900488 };
489 };
Masahiro Yamada8f062432015-12-16 10:54:07 +0900490};
Masahiro Yamada10ee0a62015-08-28 22:33:14 +0900491
Masahiro Yamada6c9e46e2017-08-29 12:20:52 +0900492#include "uniphier-pinctrl.dtsi"