blob: 1b41945ead1a8cf6fa11f0737083f025def82a0d [file] [log] [blame]
Masahiro Yamadad89bcf22016-03-18 16:41:48 +09001/*
Masahiro Yamada39a67ff2016-10-07 16:43:00 +09002 * Device Tree Source for UniPhier LD20 SoC
Masahiro Yamadad89bcf22016-03-18 16:41:48 +09003 *
Masahiro Yamada39a67ff2016-10-07 16:43:00 +09004 * Copyright (C) 2015-2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamadad89bcf22016-03-18 16:41:48 +09006 *
7 * SPDX-License-Identifier: GPL-2.0+ X11
8 */
9
Masahiro Yamada6e485b22016-12-05 18:31:39 +090010/memreserve/ 0x80000000 0x00080000;
Masahiro Yamada1174603f2016-06-29 19:38:56 +090011
Masahiro Yamadad89bcf22016-03-18 16:41:48 +090012/ {
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090013 compatible = "socionext,uniphier-ld20";
Masahiro Yamadad89bcf22016-03-18 16:41:48 +090014 #address-cells = <2>;
15 #size-cells = <2>;
16 interrupt-parent = <&gic>;
17
18 cpus {
19 #address-cells = <2>;
20 #size-cells = <0>;
21
22 cpu-map {
23 cluster0 {
24 core0 {
25 cpu = <&cpu0>;
26 };
27 core1 {
28 cpu = <&cpu1>;
29 };
30 };
31
32 cluster1 {
33 core0 {
34 cpu = <&cpu2>;
35 };
36 core1 {
37 cpu = <&cpu3>;
38 };
39 };
40 };
41
42 cpu0: cpu@0 {
43 device_type = "cpu";
44 compatible = "arm,cortex-a72", "arm,armv8";
45 reg = <0 0x000>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090046 clocks = <&sys_clk 32>;
47 enable-method = "psci";
48 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +090049 };
50
51 cpu1: cpu@1 {
52 device_type = "cpu";
53 compatible = "arm,cortex-a72", "arm,armv8";
54 reg = <0 0x001>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090055 clocks = <&sys_clk 32>;
56 enable-method = "psci";
57 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +090058 };
59
60 cpu2: cpu@100 {
61 device_type = "cpu";
62 compatible = "arm,cortex-a53", "arm,armv8";
63 reg = <0 0x100>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090064 clocks = <&sys_clk 33>;
65 enable-method = "psci";
66 operating-points-v2 = <&cluster1_opp>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +090067 };
68
69 cpu3: cpu@101 {
70 device_type = "cpu";
71 compatible = "arm,cortex-a53", "arm,armv8";
72 reg = <0 0x101>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +090073 clocks = <&sys_clk 33>;
74 enable-method = "psci";
75 operating-points-v2 = <&cluster1_opp>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +090076 };
77 };
78
Masahiro Yamada6e485b22016-12-05 18:31:39 +090079 cluster0_opp: opp_table0 {
80 compatible = "operating-points-v2";
81 opp-shared;
82
83 opp@250000000 {
84 opp-hz = /bits/ 64 <250000000>;
85 clock-latency-ns = <300>;
86 };
87 opp@275000000 {
88 opp-hz = /bits/ 64 <275000000>;
89 clock-latency-ns = <300>;
90 };
91 opp@500000000 {
92 opp-hz = /bits/ 64 <500000000>;
93 clock-latency-ns = <300>;
94 };
95 opp@550000000 {
96 opp-hz = /bits/ 64 <550000000>;
97 clock-latency-ns = <300>;
98 };
99 opp@666667000 {
100 opp-hz = /bits/ 64 <666667000>;
101 clock-latency-ns = <300>;
102 };
103 opp@733334000 {
104 opp-hz = /bits/ 64 <733334000>;
105 clock-latency-ns = <300>;
106 };
107 opp@1000000000 {
108 opp-hz = /bits/ 64 <1000000000>;
109 clock-latency-ns = <300>;
110 };
111 opp@1100000000 {
112 opp-hz = /bits/ 64 <1100000000>;
113 clock-latency-ns = <300>;
114 };
115 };
116
117 cluster1_opp: opp_table1 {
118 compatible = "operating-points-v2";
119 opp-shared;
120
121 opp@250000000 {
122 opp-hz = /bits/ 64 <250000000>;
123 clock-latency-ns = <300>;
124 };
125 opp@275000000 {
126 opp-hz = /bits/ 64 <275000000>;
127 clock-latency-ns = <300>;
128 };
129 opp@500000000 {
130 opp-hz = /bits/ 64 <500000000>;
131 clock-latency-ns = <300>;
132 };
133 opp@550000000 {
134 opp-hz = /bits/ 64 <550000000>;
135 clock-latency-ns = <300>;
136 };
137 opp@666667000 {
138 opp-hz = /bits/ 64 <666667000>;
139 clock-latency-ns = <300>;
140 };
141 opp@733334000 {
142 opp-hz = /bits/ 64 <733334000>;
143 clock-latency-ns = <300>;
144 };
145 opp@1000000000 {
146 opp-hz = /bits/ 64 <1000000000>;
147 clock-latency-ns = <300>;
148 };
149 opp@1100000000 {
150 opp-hz = /bits/ 64 <1100000000>;
151 clock-latency-ns = <300>;
152 };
153 };
154
155 psci {
156 compatible = "arm,psci-1.0";
157 method = "smc";
158 };
159
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900160 clocks {
Masahiro Yamada1174603f2016-06-29 19:38:56 +0900161 refclk: ref {
162 compatible = "fixed-clock";
163 #clock-cells = <0>;
164 clock-frequency = <25000000>;
165 };
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900166 };
167
168 timer {
169 compatible = "arm,armv8-timer";
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900170 interrupts = <1 13 4>,
171 <1 14 4>,
172 <1 11 4>,
173 <1 10 4>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900174 };
175
176 soc {
177 compatible = "simple-bus";
178 #address-cells = <1>;
179 #size-cells = <1>;
180 ranges = <0 0 0 0xffffffff>;
Masahiro Yamada1174603f2016-06-29 19:38:56 +0900181 u-boot,dm-pre-reloc;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900182
183 serial0: serial@54006800 {
184 compatible = "socionext,uniphier-uart";
185 status = "disabled";
186 reg = <0x54006800 0x40>;
187 interrupts = <0 33 4>;
188 pinctrl-names = "default";
189 pinctrl-0 = <&pinctrl_uart0>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900190 clocks = <&peri_clk 0>;
Masahiro Yamada3a48c4d2016-03-28 21:39:17 +0900191 clock-frequency = <58820000>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900192 };
193
194 serial1: serial@54006900 {
195 compatible = "socionext,uniphier-uart";
196 status = "disabled";
197 reg = <0x54006900 0x40>;
198 interrupts = <0 35 4>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&pinctrl_uart1>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900201 clocks = <&peri_clk 1>;
Masahiro Yamada3a48c4d2016-03-28 21:39:17 +0900202 clock-frequency = <58820000>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900203 };
204
205 serial2: serial@54006a00 {
206 compatible = "socionext,uniphier-uart";
207 status = "disabled";
208 reg = <0x54006a00 0x40>;
209 interrupts = <0 37 4>;
210 pinctrl-names = "default";
211 pinctrl-0 = <&pinctrl_uart2>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900212 clocks = <&peri_clk 2>;
Masahiro Yamada3a48c4d2016-03-28 21:39:17 +0900213 clock-frequency = <58820000>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900214 };
215
216 serial3: serial@54006b00 {
217 compatible = "socionext,uniphier-uart";
218 status = "disabled";
219 reg = <0x54006b00 0x40>;
220 interrupts = <0 177 4>;
221 pinctrl-names = "default";
222 pinctrl-0 = <&pinctrl_uart3>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900223 clocks = <&peri_clk 3>;
Masahiro Yamada3a48c4d2016-03-28 21:39:17 +0900224 clock-frequency = <58820000>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900225 };
226
227 i2c0: i2c@58780000 {
228 compatible = "socionext,uniphier-fi2c";
229 status = "disabled";
230 reg = <0x58780000 0x80>;
231 #address-cells = <1>;
232 #size-cells = <0>;
233 interrupts = <0 41 4>;
234 pinctrl-names = "default";
235 pinctrl-0 = <&pinctrl_i2c0>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900236 clocks = <&peri_clk 4>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900237 clock-frequency = <100000>;
238 };
239
240 i2c1: i2c@58781000 {
241 compatible = "socionext,uniphier-fi2c";
242 status = "disabled";
243 reg = <0x58781000 0x80>;
244 #address-cells = <1>;
245 #size-cells = <0>;
246 interrupts = <0 42 4>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&pinctrl_i2c1>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900249 clocks = <&peri_clk 5>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900250 clock-frequency = <100000>;
251 };
252
253 i2c2: i2c@58782000 {
254 compatible = "socionext,uniphier-fi2c";
255 reg = <0x58782000 0x80>;
256 #address-cells = <1>;
257 #size-cells = <0>;
258 interrupts = <0 43 4>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900259 clocks = <&peri_clk 6>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900260 clock-frequency = <400000>;
261 };
262
263 i2c3: i2c@58783000 {
264 compatible = "socionext,uniphier-fi2c";
265 status = "disabled";
266 reg = <0x58783000 0x80>;
267 #address-cells = <1>;
268 #size-cells = <0>;
269 interrupts = <0 44 4>;
270 pinctrl-names = "default";
271 pinctrl-0 = <&pinctrl_i2c3>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900272 clocks = <&peri_clk 7>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900273 clock-frequency = <100000>;
274 };
275
276 i2c4: i2c@58784000 {
277 compatible = "socionext,uniphier-fi2c";
278 status = "disabled";
279 reg = <0x58784000 0x80>;
280 #address-cells = <1>;
281 #size-cells = <0>;
282 interrupts = <0 45 4>;
283 pinctrl-names = "default";
284 pinctrl-0 = <&pinctrl_i2c4>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900285 clocks = <&peri_clk 8>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900286 clock-frequency = <100000>;
287 };
288
289 i2c5: i2c@58785000 {
290 compatible = "socionext,uniphier-fi2c";
291 reg = <0x58785000 0x80>;
292 #address-cells = <1>;
293 #size-cells = <0>;
294 interrupts = <0 25 4>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900295 clocks = <&peri_clk 9>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +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>;
Masahiro Yamada1174603f2016-06-29 19:38:56 +0900305 pinctrl-names = "default";
306 pinctrl-0 = <&pinctrl_system_bus>;
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900307 };
308
309 smpctrl@59800000 {
310 compatible = "socionext,uniphier-smpctrl";
311 reg = <0x59801000 0x400>;
312 };
313
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900314 sdctrl@59810000 {
315 compatible = "socionext,uniphier-ld20-sdctrl",
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900316 "simple-mfd", "syscon";
Masahiro Yamadab9f5c5a2016-04-21 14:43:20 +0900317 reg = <0x59810000 0x800>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900318
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900319 sd_clk: clock {
320 compatible = "socionext,uniphier-ld20-sd-clock";
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900321 #clock-cells = <1>;
322 };
323
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900324 sd_rst: reset {
325 compatible = "socionext,uniphier-ld20-sd-reset";
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900326 #reset-cells = <1>;
327 };
328 };
329
330 perictrl@59820000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900331 compatible = "socionext,uniphier-ld20-perictrl",
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900332 "simple-mfd", "syscon";
333 reg = <0x59820000 0x200>;
334
335 peri_clk: clock {
336 compatible = "socionext,uniphier-ld20-peri-clock";
337 #clock-cells = <1>;
338 };
339
340 peri_rst: reset {
341 compatible = "socionext,uniphier-ld20-peri-reset";
342 #reset-cells = <1>;
343 };
Masahiro Yamadab9f5c5a2016-04-21 14:43:20 +0900344 };
345
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900346 emmc: sdhc@5a000000 {
347 compatible = "cdns,sd4hc";
348 reg = <0x5a000000 0x400>;
349 interrupts = <0 78 4>;
350 pinctrl-names = "default";
351 pinctrl-0 = <&pinctrl_emmc_1v8>;
352 clocks = <&sys_clk 4>;
353 bus-width = <8>;
354 mmc-ddr-1_8v;
355 mmc-hs200-1_8v;
356 /* mmc-hs400-1_8v; support depends on board design */
357 };
358
Masahiro Yamadab9f5c5a2016-04-21 14:43:20 +0900359 sd: sdhc@5a400000 {
360 compatible = "socionext,uniphier-sdhc";
361 status = "disabled";
362 reg = <0x5a400000 0x800>;
363 interrupts = <0 76 4>;
364 pinctrl-names = "default";
365 pinctrl-0 = <&pinctrl_sd>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900366 clocks = <&sd_clk 0>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +0900367 reset-names = "host";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900368 resets = <&sd_rst 0>;
Masahiro Yamadab9f5c5a2016-04-21 14:43:20 +0900369 bus-width = <4>;
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900370 cap-sd-highspeed;
Masahiro Yamadab9f5c5a2016-04-21 14:43:20 +0900371 };
372
Masahiro Yamada1174603f2016-06-29 19:38:56 +0900373 soc-glue@5f800000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900374 compatible = "socionext,uniphier-ld20-soc-glue",
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900375 "simple-mfd", "syscon";
Masahiro Yamada1174603f2016-06-29 19:38:56 +0900376 reg = <0x5f800000 0x2000>;
377 u-boot,dm-pre-reloc;
378
379 pinctrl: pinctrl {
380 compatible = "socionext,uniphier-ld20-pinctrl";
381 u-boot,dm-pre-reloc;
382 };
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900383 };
384
Masahiro Yamada2707e832016-06-29 19:39:02 +0900385 aidet@5fc20000 {
386 compatible = "simple-mfd", "syscon";
387 reg = <0x5fc20000 0x200>;
388 };
389
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900390 gic: interrupt-controller@5fe00000 {
391 compatible = "arm,gic-v3";
392 reg = <0x5fe00000 0x10000>, /* GICD */
393 <0x5fe80000 0x80000>; /* GICR */
394 interrupt-controller;
395 #interrupt-cells = <3>;
396 interrupts = <1 9 4>;
397 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900398
399 sysctrl@61840000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900400 compatible = "socionext,uniphier-ld20-sysctrl",
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900401 "simple-mfd", "syscon";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900402 reg = <0x61840000 0x10000>;
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900403
404 sys_clk: clock {
405 compatible = "socionext,uniphier-ld20-clock";
406 #clock-cells = <1>;
407 };
408
409 sys_rst: reset {
410 compatible = "socionext,uniphier-ld20-reset";
411 #reset-cells = <1>;
412 };
413 };
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900414
415 usb: usb@65b00000 {
416 compatible = "socionext,uniphier-ld20-dwc3";
417 reg = <0x65b00000 0x1000>;
418 #address-cells = <1>;
419 #size-cells = <1>;
420 ranges;
421 pinctrl-names = "default";
422 pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb1>,
423 <&pinctrl_usb2>, <&pinctrl_usb3>;
424 dwc3@65a00000 {
425 compatible = "snps,dwc3";
426 reg = <0x65a00000 0x10000>;
427 interrupts = <0 134 4>;
428 tx-fifo-resize;
429 };
430 };
431
432 nand: nand@68000000 {
433 compatible = "socionext,denali-nand-v5b";
434 status = "disabled";
435 reg-names = "nand_data", "denali_reg";
436 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
437 interrupts = <0 65 4>;
438 pinctrl-names = "default";
439 pinctrl-0 = <&pinctrl_nand>;
440 clocks = <&sys_clk 2>;
441 nand-ecc-strength = <8>;
442 };
Masahiro Yamadad89bcf22016-03-18 16:41:48 +0900443 };
444};
445
446/include/ "uniphier-pinctrl.dtsi"