]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/dts/uniphier-ld20.dtsi
Merge git://git.denx.de/u-boot-sunxi
[people/ms/u-boot.git] / arch / arm / dts / uniphier-ld20.dtsi
CommitLineData
7bdd1554 1/*
52159d27 2 * Device Tree Source for UniPhier LD20 SoC
7bdd1554 3 *
52159d27
MY
4 * Copyright (C) 2015-2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
7bdd1554 6 *
4e7f8de4
MY
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
10 * whole.
11 *
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
16 *
17 * This file is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * Or, alternatively,
23 *
24 * b) Permission is hereby granted, free of charge, to any person
25 * obtaining a copy of this software and associated documentation
26 * files (the "Software"), to deal in the Software without
27 * restriction, including without limitation the rights to use,
28 * copy, modify, merge, publish, distribute, sublicense, and/or
29 * sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following
31 * conditions:
32 *
33 * The above copyright notice and this permission notice shall be
34 * included in all copies or substantial portions of the Software.
35 *
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * OTHER DEALINGS IN THE SOFTWARE.
7bdd1554
MY
44 */
45
cd62214d 46/memreserve/ 0x80000000 0x00080000;
c4adc50e 47
7bdd1554 48/ {
52159d27 49 compatible = "socionext,uniphier-ld20";
7bdd1554
MY
50 #address-cells = <2>;
51 #size-cells = <2>;
52 interrupt-parent = <&gic>;
53
54 cpus {
55 #address-cells = <2>;
56 #size-cells = <0>;
57
58 cpu-map {
59 cluster0 {
60 core0 {
61 cpu = <&cpu0>;
62 };
63 core1 {
64 cpu = <&cpu1>;
65 };
66 };
67
68 cluster1 {
69 core0 {
70 cpu = <&cpu2>;
71 };
72 core1 {
73 cpu = <&cpu3>;
74 };
75 };
76 };
77
78 cpu0: cpu@0 {
79 device_type = "cpu";
80 compatible = "arm,cortex-a72", "arm,armv8";
81 reg = <0 0x000>;
cd62214d
MY
82 clocks = <&sys_clk 32>;
83 enable-method = "psci";
84 operating-points-v2 = <&cluster0_opp>;
7bdd1554
MY
85 };
86
87 cpu1: cpu@1 {
88 device_type = "cpu";
89 compatible = "arm,cortex-a72", "arm,armv8";
90 reg = <0 0x001>;
cd62214d
MY
91 clocks = <&sys_clk 32>;
92 enable-method = "psci";
93 operating-points-v2 = <&cluster0_opp>;
7bdd1554
MY
94 };
95
96 cpu2: cpu@100 {
97 device_type = "cpu";
98 compatible = "arm,cortex-a53", "arm,armv8";
99 reg = <0 0x100>;
cd62214d
MY
100 clocks = <&sys_clk 33>;
101 enable-method = "psci";
102 operating-points-v2 = <&cluster1_opp>;
7bdd1554
MY
103 };
104
105 cpu3: cpu@101 {
106 device_type = "cpu";
107 compatible = "arm,cortex-a53", "arm,armv8";
108 reg = <0 0x101>;
cd62214d
MY
109 clocks = <&sys_clk 33>;
110 enable-method = "psci";
111 operating-points-v2 = <&cluster1_opp>;
7bdd1554
MY
112 };
113 };
114
cd62214d
MY
115 cluster0_opp: opp_table0 {
116 compatible = "operating-points-v2";
117 opp-shared;
118
4e7f8de4 119 opp-250000000 {
cd62214d
MY
120 opp-hz = /bits/ 64 <250000000>;
121 clock-latency-ns = <300>;
122 };
4e7f8de4 123 opp-275000000 {
cd62214d
MY
124 opp-hz = /bits/ 64 <275000000>;
125 clock-latency-ns = <300>;
126 };
4e7f8de4 127 opp-500000000 {
cd62214d
MY
128 opp-hz = /bits/ 64 <500000000>;
129 clock-latency-ns = <300>;
130 };
4e7f8de4 131 opp-550000000 {
cd62214d
MY
132 opp-hz = /bits/ 64 <550000000>;
133 clock-latency-ns = <300>;
134 };
4e7f8de4 135 opp-666667000 {
cd62214d
MY
136 opp-hz = /bits/ 64 <666667000>;
137 clock-latency-ns = <300>;
138 };
4e7f8de4 139 opp-733334000 {
cd62214d
MY
140 opp-hz = /bits/ 64 <733334000>;
141 clock-latency-ns = <300>;
142 };
4e7f8de4 143 opp-1000000000 {
cd62214d
MY
144 opp-hz = /bits/ 64 <1000000000>;
145 clock-latency-ns = <300>;
146 };
4e7f8de4 147 opp-1100000000 {
cd62214d
MY
148 opp-hz = /bits/ 64 <1100000000>;
149 clock-latency-ns = <300>;
150 };
151 };
152
153 cluster1_opp: opp_table1 {
154 compatible = "operating-points-v2";
155 opp-shared;
156
4e7f8de4 157 opp-250000000 {
cd62214d
MY
158 opp-hz = /bits/ 64 <250000000>;
159 clock-latency-ns = <300>;
160 };
4e7f8de4 161 opp-275000000 {
cd62214d
MY
162 opp-hz = /bits/ 64 <275000000>;
163 clock-latency-ns = <300>;
164 };
4e7f8de4 165 opp-500000000 {
cd62214d
MY
166 opp-hz = /bits/ 64 <500000000>;
167 clock-latency-ns = <300>;
168 };
4e7f8de4 169 opp-550000000 {
cd62214d
MY
170 opp-hz = /bits/ 64 <550000000>;
171 clock-latency-ns = <300>;
172 };
4e7f8de4 173 opp-666667000 {
cd62214d
MY
174 opp-hz = /bits/ 64 <666667000>;
175 clock-latency-ns = <300>;
176 };
4e7f8de4 177 opp-733334000 {
cd62214d
MY
178 opp-hz = /bits/ 64 <733334000>;
179 clock-latency-ns = <300>;
180 };
4e7f8de4 181 opp-1000000000 {
cd62214d
MY
182 opp-hz = /bits/ 64 <1000000000>;
183 clock-latency-ns = <300>;
184 };
4e7f8de4 185 opp-1100000000 {
cd62214d
MY
186 opp-hz = /bits/ 64 <1100000000>;
187 clock-latency-ns = <300>;
188 };
189 };
190
191 psci {
192 compatible = "arm,psci-1.0";
193 method = "smc";
194 };
195
7bdd1554 196 clocks {
c4adc50e
MY
197 refclk: ref {
198 compatible = "fixed-clock";
199 #clock-cells = <0>;
200 clock-frequency = <25000000>;
201 };
7bdd1554
MY
202 };
203
204 timer {
205 compatible = "arm,armv8-timer";
35343a26
MY
206 interrupts = <1 13 4>,
207 <1 14 4>,
208 <1 11 4>,
209 <1 10 4>;
7bdd1554
MY
210 };
211
7ad79c12 212 soc@0 {
7bdd1554
MY
213 compatible = "simple-bus";
214 #address-cells = <1>;
215 #size-cells = <1>;
216 ranges = <0 0 0 0xffffffff>;
c4adc50e 217 u-boot,dm-pre-reloc;
7bdd1554
MY
218
219 serial0: serial@54006800 {
220 compatible = "socionext,uniphier-uart";
221 status = "disabled";
222 reg = <0x54006800 0x40>;
223 interrupts = <0 33 4>;
224 pinctrl-names = "default";
225 pinctrl-0 = <&pinctrl_uart0>;
35343a26 226 clocks = <&peri_clk 0>;
f1494981 227 clock-frequency = <58820000>;
7bdd1554
MY
228 };
229
230 serial1: serial@54006900 {
231 compatible = "socionext,uniphier-uart";
232 status = "disabled";
233 reg = <0x54006900 0x40>;
234 interrupts = <0 35 4>;
235 pinctrl-names = "default";
236 pinctrl-0 = <&pinctrl_uart1>;
35343a26 237 clocks = <&peri_clk 1>;
f1494981 238 clock-frequency = <58820000>;
7bdd1554
MY
239 };
240
241 serial2: serial@54006a00 {
242 compatible = "socionext,uniphier-uart";
243 status = "disabled";
244 reg = <0x54006a00 0x40>;
245 interrupts = <0 37 4>;
246 pinctrl-names = "default";
247 pinctrl-0 = <&pinctrl_uart2>;
35343a26 248 clocks = <&peri_clk 2>;
f1494981 249 clock-frequency = <58820000>;
7bdd1554
MY
250 };
251
252 serial3: serial@54006b00 {
253 compatible = "socionext,uniphier-uart";
254 status = "disabled";
255 reg = <0x54006b00 0x40>;
256 interrupts = <0 177 4>;
257 pinctrl-names = "default";
258 pinctrl-0 = <&pinctrl_uart3>;
35343a26 259 clocks = <&peri_clk 3>;
f1494981 260 clock-frequency = <58820000>;
7bdd1554
MY
261 };
262
263 i2c0: i2c@58780000 {
264 compatible = "socionext,uniphier-fi2c";
265 status = "disabled";
266 reg = <0x58780000 0x80>;
267 #address-cells = <1>;
268 #size-cells = <0>;
269 interrupts = <0 41 4>;
270 pinctrl-names = "default";
271 pinctrl-0 = <&pinctrl_i2c0>;
cd62214d 272 clocks = <&peri_clk 4>;
7bdd1554
MY
273 clock-frequency = <100000>;
274 };
275
276 i2c1: i2c@58781000 {
277 compatible = "socionext,uniphier-fi2c";
278 status = "disabled";
279 reg = <0x58781000 0x80>;
280 #address-cells = <1>;
281 #size-cells = <0>;
282 interrupts = <0 42 4>;
283 pinctrl-names = "default";
284 pinctrl-0 = <&pinctrl_i2c1>;
cd62214d 285 clocks = <&peri_clk 5>;
7bdd1554
MY
286 clock-frequency = <100000>;
287 };
288
289 i2c2: i2c@58782000 {
290 compatible = "socionext,uniphier-fi2c";
291 reg = <0x58782000 0x80>;
292 #address-cells = <1>;
293 #size-cells = <0>;
294 interrupts = <0 43 4>;
cd62214d 295 clocks = <&peri_clk 6>;
7bdd1554
MY
296 clock-frequency = <400000>;
297 };
298
299 i2c3: i2c@58783000 {
300 compatible = "socionext,uniphier-fi2c";
301 status = "disabled";
302 reg = <0x58783000 0x80>;
303 #address-cells = <1>;
304 #size-cells = <0>;
305 interrupts = <0 44 4>;
306 pinctrl-names = "default";
307 pinctrl-0 = <&pinctrl_i2c3>;
cd62214d 308 clocks = <&peri_clk 7>;
7bdd1554
MY
309 clock-frequency = <100000>;
310 };
311
312 i2c4: i2c@58784000 {
313 compatible = "socionext,uniphier-fi2c";
314 status = "disabled";
315 reg = <0x58784000 0x80>;
316 #address-cells = <1>;
317 #size-cells = <0>;
318 interrupts = <0 45 4>;
319 pinctrl-names = "default";
320 pinctrl-0 = <&pinctrl_i2c4>;
cd62214d 321 clocks = <&peri_clk 8>;
7bdd1554
MY
322 clock-frequency = <100000>;
323 };
324
325 i2c5: i2c@58785000 {
326 compatible = "socionext,uniphier-fi2c";
327 reg = <0x58785000 0x80>;
328 #address-cells = <1>;
329 #size-cells = <0>;
330 interrupts = <0 25 4>;
cd62214d 331 clocks = <&peri_clk 9>;
7bdd1554
MY
332 clock-frequency = <400000>;
333 };
334
335 system_bus: system-bus@58c00000 {
336 compatible = "socionext,uniphier-system-bus";
337 status = "disabled";
338 reg = <0x58c00000 0x400>;
339 #address-cells = <2>;
340 #size-cells = <1>;
c4adc50e
MY
341 pinctrl-names = "default";
342 pinctrl-0 = <&pinctrl_system_bus>;
7bdd1554
MY
343 };
344
abb6ac25 345 smpctrl@59801000 {
7bdd1554
MY
346 compatible = "socionext,uniphier-smpctrl";
347 reg = <0x59801000 0x400>;
348 };
349
cd62214d
MY
350 sdctrl@59810000 {
351 compatible = "socionext,uniphier-ld20-sdctrl",
35343a26 352 "simple-mfd", "syscon";
3d970876 353 reg = <0x59810000 0x800>;
35343a26 354
cd62214d
MY
355 sd_clk: clock {
356 compatible = "socionext,uniphier-ld20-sd-clock";
35343a26
MY
357 #clock-cells = <1>;
358 };
359
cd62214d
MY
360 sd_rst: reset {
361 compatible = "socionext,uniphier-ld20-sd-reset";
35343a26
MY
362 #reset-cells = <1>;
363 };
364 };
365
366 perictrl@59820000 {
cd62214d 367 compatible = "socionext,uniphier-ld20-perictrl",
35343a26
MY
368 "simple-mfd", "syscon";
369 reg = <0x59820000 0x200>;
370
371 peri_clk: clock {
372 compatible = "socionext,uniphier-ld20-peri-clock";
373 #clock-cells = <1>;
374 };
375
376 peri_rst: reset {
377 compatible = "socionext,uniphier-ld20-peri-reset";
378 #reset-cells = <1>;
379 };
3d970876
MY
380 };
381
cd62214d 382 emmc: sdhc@5a000000 {
7a6139c9 383 compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
cd62214d
MY
384 reg = <0x5a000000 0x400>;
385 interrupts = <0 78 4>;
386 pinctrl-names = "default";
387 pinctrl-0 = <&pinctrl_emmc_1v8>;
388 clocks = <&sys_clk 4>;
389 bus-width = <8>;
390 mmc-ddr-1_8v;
391 mmc-hs200-1_8v;
4e7f8de4
MY
392 cdns,phy-input-delay-legacy = <4>;
393 cdns,phy-input-delay-mmc-highspeed = <2>;
394 cdns,phy-input-delay-mmc-ddr = <3>;
395 cdns,phy-dll-delay-sdclk = <21>;
396 cdns,phy-dll-delay-sdclk-hsmmc = <21>;
cd62214d
MY
397 };
398
3d970876
MY
399 sd: sdhc@5a400000 {
400 compatible = "socionext,uniphier-sdhc";
401 status = "disabled";
402 reg = <0x5a400000 0x800>;
403 interrupts = <0 76 4>;
404 pinctrl-names = "default";
405 pinctrl-0 = <&pinctrl_sd>;
cd62214d 406 clocks = <&sd_clk 0>;
52159d27 407 reset-names = "host";
cd62214d 408 resets = <&sd_rst 0>;
3d970876 409 bus-width = <4>;
cd62214d 410 cap-sd-highspeed;
3d970876
MY
411 };
412
c4adc50e 413 soc-glue@5f800000 {
cd62214d 414 compatible = "socionext,uniphier-ld20-soc-glue",
35343a26 415 "simple-mfd", "syscon";
c4adc50e
MY
416 reg = <0x5f800000 0x2000>;
417 u-boot,dm-pre-reloc;
418
419 pinctrl: pinctrl {
420 compatible = "socionext,uniphier-ld20-pinctrl";
421 u-boot,dm-pre-reloc;
422 };
7bdd1554
MY
423 };
424
1013aef3
MY
425 aidet@5fc20000 {
426 compatible = "simple-mfd", "syscon";
427 reg = <0x5fc20000 0x200>;
428 };
429
7bdd1554
MY
430 gic: interrupt-controller@5fe00000 {
431 compatible = "arm,gic-v3";
432 reg = <0x5fe00000 0x10000>, /* GICD */
433 <0x5fe80000 0x80000>; /* GICR */
434 interrupt-controller;
435 #interrupt-cells = <3>;
436 interrupts = <1 9 4>;
437 };
35343a26
MY
438
439 sysctrl@61840000 {
cd62214d 440 compatible = "socionext,uniphier-ld20-sysctrl",
35343a26 441 "simple-mfd", "syscon";
cd62214d 442 reg = <0x61840000 0x10000>;
35343a26
MY
443
444 sys_clk: clock {
445 compatible = "socionext,uniphier-ld20-clock";
446 #clock-cells = <1>;
447 };
448
449 sys_rst: reset {
450 compatible = "socionext,uniphier-ld20-reset";
451 #reset-cells = <1>;
452 };
453 };
cd62214d
MY
454
455 usb: usb@65b00000 {
456 compatible = "socionext,uniphier-ld20-dwc3";
457 reg = <0x65b00000 0x1000>;
458 #address-cells = <1>;
459 #size-cells = <1>;
460 ranges;
461 pinctrl-names = "default";
462 pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb1>,
463 <&pinctrl_usb2>, <&pinctrl_usb3>;
464 dwc3@65a00000 {
465 compatible = "snps,dwc3";
466 reg = <0x65a00000 0x10000>;
467 interrupts = <0 134 4>;
468 tx-fifo-resize;
469 };
470 };
471
472 nand: nand@68000000 {
4e7f8de4 473 compatible = "socionext,uniphier-denali-nand-v5b";
cd62214d
MY
474 status = "disabled";
475 reg-names = "nand_data", "denali_reg";
476 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
477 interrupts = <0 65 4>;
478 pinctrl-names = "default";
479 pinctrl-0 = <&pinctrl_nand>;
480 clocks = <&sys_clk 2>;
481 nand-ecc-strength = <8>;
482 };
7bdd1554
MY
483 };
484};
485
486/include/ "uniphier-pinctrl.dtsi"