blob: 18a105a58f9cfae9f232ebe0e1e03b28b70b824b [file] [log] [blame]
Masahiro Yamada53f6ec62014-11-26 18:33:59 +09001/*
Masahiro Yamada39a67ff2016-10-07 16:43:00 +09002 * Device Tree Source for UniPhier LD4 SoC
Masahiro Yamada53f6ec62014-11-26 18:33:59 +09003 *
Masahiro Yamada39a67ff2016-10-07 16:43:00 +09004 * Copyright (C) 2015-2016 Socionext Inc.
5 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada53f6ec62014-11-26 18:33:59 +09006 *
Masahiro Yamada31a17882017-06-22 16:46:40 +09007 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Masahiro Yamada53f6ec62014-11-26 18:33:59 +09008 */
9
Masahiro Yamada53f6ec62014-11-26 18:33:59 +090010/ {
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090011 compatible = "socionext,uniphier-ld4";
Masahiro Yamada6cd78f72017-03-13 00:16:39 +090012 #address-cells = <1>;
13 #size-cells = <1>;
Masahiro Yamada53f6ec62014-11-26 18:33:59 +090014
15 cpus {
Masahiro Yamada53f6ec62014-11-26 18:33:59 +090016 #address-cells = <1>;
Masahiro Yamadaff7bf562014-12-06 00:03:23 +090017 #size-cells = <0>;
Masahiro Yamada53f6ec62014-11-26 18:33:59 +090018
19 cpu@0 {
20 device_type = "cpu";
21 compatible = "arm,cortex-a9";
22 reg = <0>;
Masahiro Yamada39a67ff2016-10-07 16:43:00 +090023 enable-method = "psci";
Masahiro Yamadab36f3052015-12-16 10:54:08 +090024 next-level-cache = <&l2>;
Masahiro Yamada53f6ec62014-11-26 18:33:59 +090025 };
26 };
27
Masahiro Yamada6e485b22016-12-05 18:31:39 +090028 psci {
29 compatible = "arm,psci-0.2";
30 method = "smc";
31 };
32
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +090033 clocks {
Masahiro Yamada6e485b22016-12-05 18:31:39 +090034 refclk: ref {
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +090035 compatible = "fixed-clock";
Masahiro Yamada6e485b22016-12-05 18:31:39 +090036 #clock-cells = <0>;
37 clock-frequency = <24576000>;
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +090038 };
Masahiro Yamada37649af2015-08-28 22:33:13 +090039
Masahiro Yamada6e485b22016-12-05 18:31:39 +090040 arm_timer_clk: arm_timer_clk {
Masahiro Yamada37649af2015-08-28 22:33:13 +090041 #clock-cells = <0>;
42 compatible = "fixed-clock";
Masahiro Yamada6e485b22016-12-05 18:31:39 +090043 clock-frequency = <50000000>;
Masahiro Yamada37649af2015-08-28 22:33:13 +090044 };
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +090045 };
46
Masahiro Yamada6e485b22016-12-05 18:31:39 +090047 soc {
48 compatible = "simple-bus";
49 #address-cells = <1>;
50 #size-cells = <1>;
51 ranges;
52 interrupt-parent = <&intc>;
53 u-boot,dm-pre-reloc;
Masahiro Yamadab36f3052015-12-16 10:54:08 +090054
Masahiro Yamada6e485b22016-12-05 18:31:39 +090055 l2: l2-cache@500c0000 {
56 compatible = "socionext,uniphier-system-cache";
57 reg = <0x500c0000 0x2000>, <0x503c0100 0x4>,
58 <0x506c0000 0x400>;
59 interrupts = <0 174 4>, <0 175 4>;
60 cache-unified;
61 cache-size = <(512 * 1024)>;
62 cache-sets = <256>;
63 cache-line-size = <128>;
64 cache-level = <2>;
65 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090066
Masahiro Yamada6e485b22016-12-05 18:31:39 +090067 serial0: serial@54006800 {
68 compatible = "socionext,uniphier-uart";
69 status = "disabled";
70 reg = <0x54006800 0x40>;
71 interrupts = <0 33 4>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&pinctrl_uart0>;
74 clocks = <&peri_clk 0>;
75 clock-frequency = <36864000>;
76 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090077
Masahiro Yamada6e485b22016-12-05 18:31:39 +090078 serial1: serial@54006900 {
79 compatible = "socionext,uniphier-uart";
80 status = "disabled";
81 reg = <0x54006900 0x40>;
82 interrupts = <0 35 4>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_uart1>;
85 clocks = <&peri_clk 1>;
86 clock-frequency = <36864000>;
87 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090088
Masahiro Yamada6e485b22016-12-05 18:31:39 +090089 serial2: serial@54006a00 {
90 compatible = "socionext,uniphier-uart";
91 status = "disabled";
92 reg = <0x54006a00 0x40>;
93 interrupts = <0 37 4>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&pinctrl_uart2>;
96 clocks = <&peri_clk 2>;
97 clock-frequency = <36864000>;
98 };
Masahiro Yamada6835b452016-02-16 17:03:51 +090099
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900100 serial3: serial@54006b00 {
101 compatible = "socionext,uniphier-uart";
102 status = "disabled";
103 reg = <0x54006b00 0x40>;
104 interrupts = <0 29 4>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&pinctrl_uart3>;
107 clocks = <&peri_clk 3>;
108 clock-frequency = <36864000>;
109 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900110
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900111 port0x: gpio@55000008 {
112 compatible = "socionext,uniphier-gpio";
113 reg = <0x55000008 0x8>;
114 gpio-controller;
115 #gpio-cells = <2>;
116 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900117
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900118 port1x: gpio@55000010 {
119 compatible = "socionext,uniphier-gpio";
120 reg = <0x55000010 0x8>;
121 gpio-controller;
122 #gpio-cells = <2>;
123 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900124
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900125 port2x: gpio@55000018 {
126 compatible = "socionext,uniphier-gpio";
127 reg = <0x55000018 0x8>;
128 gpio-controller;
129 #gpio-cells = <2>;
130 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900131
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900132 port3x: gpio@55000020 {
133 compatible = "socionext,uniphier-gpio";
134 reg = <0x55000020 0x8>;
135 gpio-controller;
136 #gpio-cells = <2>;
137 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900138
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900139 port4: gpio@55000028 {
140 compatible = "socionext,uniphier-gpio";
141 reg = <0x55000028 0x8>;
142 gpio-controller;
143 #gpio-cells = <2>;
144 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900145
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900146 port5x: gpio@55000030 {
147 compatible = "socionext,uniphier-gpio";
148 reg = <0x55000030 0x8>;
149 gpio-controller;
150 #gpio-cells = <2>;
151 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900152
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900153 port6x: gpio@55000038 {
154 compatible = "socionext,uniphier-gpio";
155 reg = <0x55000038 0x8>;
156 gpio-controller;
157 #gpio-cells = <2>;
158 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900159
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900160 port7x: gpio@55000040 {
161 compatible = "socionext,uniphier-gpio";
162 reg = <0x55000040 0x8>;
163 gpio-controller;
164 #gpio-cells = <2>;
165 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900166
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900167 port8x: gpio@55000048 {
168 compatible = "socionext,uniphier-gpio";
169 reg = <0x55000048 0x8>;
170 gpio-controller;
171 #gpio-cells = <2>;
172 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900173
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900174 port9x: gpio@55000050 {
175 compatible = "socionext,uniphier-gpio";
176 reg = <0x55000050 0x8>;
177 gpio-controller;
178 #gpio-cells = <2>;
179 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900180
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900181 port10x: gpio@55000058 {
182 compatible = "socionext,uniphier-gpio";
183 reg = <0x55000058 0x8>;
184 gpio-controller;
185 #gpio-cells = <2>;
186 };
Masahiro Yamada6835b452016-02-16 17:03:51 +0900187
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900188 port11x: gpio@55000060 {
189 compatible = "socionext,uniphier-gpio";
190 reg = <0x55000060 0x8>;
191 gpio-controller;
192 #gpio-cells = <2>;
193 };
Masahiro Yamadaff7bf562014-12-06 00:03:23 +0900194
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900195 port12x: gpio@55000068 {
196 compatible = "socionext,uniphier-gpio";
197 reg = <0x55000068 0x8>;
198 gpio-controller;
199 #gpio-cells = <2>;
200 };
Masahiro Yamadaff7bf562014-12-06 00:03:23 +0900201
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900202 port13x: gpio@55000070 {
203 compatible = "socionext,uniphier-gpio";
204 reg = <0x55000070 0x8>;
205 gpio-controller;
206 #gpio-cells = <2>;
207 };
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900208
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900209 port14x: gpio@55000078 {
210 compatible = "socionext,uniphier-gpio";
211 reg = <0x55000078 0x8>;
212 gpio-controller;
213 #gpio-cells = <2>;
214 };
Masahiro Yamada9a724622014-11-26 18:34:01 +0900215
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900216 port16x: gpio@55000088 {
217 compatible = "socionext,uniphier-gpio";
218 reg = <0x55000088 0x8>;
219 gpio-controller;
220 #gpio-cells = <2>;
221 };
Masahiro Yamada299307d2016-02-18 19:52:50 +0900222
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900223 i2c0: i2c@58400000 {
224 compatible = "socionext,uniphier-i2c";
225 status = "disabled";
226 reg = <0x58400000 0x40>;
227 #address-cells = <1>;
228 #size-cells = <0>;
229 interrupts = <0 41 1>;
230 pinctrl-names = "default";
231 pinctrl-0 = <&pinctrl_i2c0>;
232 clocks = <&peri_clk 4>;
233 clock-frequency = <100000>;
234 };
Masahiro Yamada299307d2016-02-18 19:52:50 +0900235
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900236 i2c1: i2c@58480000 {
237 compatible = "socionext,uniphier-i2c";
238 status = "disabled";
239 reg = <0x58480000 0x40>;
240 #address-cells = <1>;
241 #size-cells = <0>;
242 interrupts = <0 42 1>;
243 pinctrl-names = "default";
244 pinctrl-0 = <&pinctrl_i2c1>;
245 clocks = <&peri_clk 5>;
246 clock-frequency = <100000>;
247 };
Masahiro Yamada9a724622014-11-26 18:34:01 +0900248
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900249 /* chip-internal connection for DMD */
250 i2c2: i2c@58500000 {
251 compatible = "socionext,uniphier-i2c";
252 reg = <0x58500000 0x40>;
253 #address-cells = <1>;
254 #size-cells = <0>;
255 interrupts = <0 43 1>;
256 pinctrl-names = "default";
257 pinctrl-0 = <&pinctrl_i2c2>;
258 clocks = <&peri_clk 6>;
259 clock-frequency = <400000>;
260 };
Masahiro Yamada37649af2015-08-28 22:33:13 +0900261
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900262 i2c3: i2c@58580000 {
263 compatible = "socionext,uniphier-i2c";
264 status = "disabled";
265 reg = <0x58580000 0x40>;
266 #address-cells = <1>;
267 #size-cells = <0>;
268 interrupts = <0 44 1>;
269 pinctrl-names = "default";
270 pinctrl-0 = <&pinctrl_i2c3>;
271 clocks = <&peri_clk 7>;
272 clock-frequency = <100000>;
273 };
Masahiro Yamada2707e832016-06-29 19:39:02 +0900274
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900275 system_bus: system-bus@58c00000 {
276 compatible = "socionext,uniphier-system-bus";
277 status = "disabled";
278 reg = <0x58c00000 0x400>;
279 #address-cells = <2>;
280 #size-cells = <1>;
281 pinctrl-names = "default";
282 pinctrl-0 = <&pinctrl_system_bus>;
283 };
Masahiro Yamadaff7bf562014-12-06 00:03:23 +0900284
Masahiro Yamada938ab162017-05-15 14:23:46 +0900285 smpctrl@59801000 {
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900286 compatible = "socionext,uniphier-smpctrl";
287 reg = <0x59801000 0x400>;
288 };
Masahiro Yamada224e2f72016-02-02 21:11:33 +0900289
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900290 mioctrl@59810000 {
291 compatible = "socionext,uniphier-ld4-mioctrl",
292 "simple-mfd", "syscon";
293 reg = <0x59810000 0x800>;
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900294
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900295 mio_clk: clock {
296 compatible = "socionext,uniphier-ld4-mio-clock";
297 #clock-cells = <1>;
298 };
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900299
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900300 mio_rst: reset {
301 compatible = "socionext,uniphier-ld4-mio-reset";
302 #reset-cells = <1>;
303 };
304 };
Masahiro Yamadabbbb0bd2015-06-30 18:27:00 +0900305
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900306 perictrl@59820000 {
307 compatible = "socionext,uniphier-ld4-perictrl",
308 "simple-mfd", "syscon";
309 reg = <0x59820000 0x200>;
Masahiro Yamada37649af2015-08-28 22:33:13 +0900310
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900311 peri_clk: clock {
312 compatible = "socionext,uniphier-ld4-peri-clock";
313 #clock-cells = <1>;
314 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900315
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900316 peri_rst: reset {
317 compatible = "socionext,uniphier-ld4-peri-reset";
318 #reset-cells = <1>;
319 };
320 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900321
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900322 sd: sdhc@5a400000 {
323 compatible = "socionext,uniphier-sdhc";
324 status = "disabled";
325 reg = <0x5a400000 0x200>;
326 interrupts = <0 76 4>;
327 pinctrl-names = "default", "1.8v";
328 pinctrl-0 = <&pinctrl_sd>;
329 pinctrl-1 = <&pinctrl_sd_1v8>;
330 clocks = <&mio_clk 0>;
331 reset-names = "host", "bridge";
332 resets = <&mio_rst 0>, <&mio_rst 3>;
333 bus-width = <4>;
334 cap-sd-highspeed;
335 sd-uhs-sdr12;
336 sd-uhs-sdr25;
337 sd-uhs-sdr50;
338 };
Masahiro Yamada1d5df7b2016-02-02 21:11:36 +0900339
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900340 emmc: sdhc@5a500000 {
341 compatible = "socionext,uniphier-sdhc";
342 status = "disabled";
343 reg = <0x5a500000 0x200>;
344 interrupts = <0 78 4>;
345 pinctrl-names = "default", "1.8v";
346 pinctrl-0 = <&pinctrl_emmc>;
347 pinctrl-1 = <&pinctrl_emmc_1v8>;
348 clocks = <&mio_clk 1>;
349 reset-names = "host", "bridge";
350 resets = <&mio_rst 1>, <&mio_rst 4>;
351 bus-width = <8>;
352 non-removable;
353 cap-mmc-highspeed;
354 cap-mmc-hw-reset;
355 };
Masahiro Yamada80951832016-02-02 21:11:35 +0900356
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900357 usb0: usb@5a800100 {
358 compatible = "socionext,uniphier-ehci", "generic-ehci";
359 status = "disabled";
360 reg = <0x5a800100 0x100>;
361 interrupts = <0 80 4>;
362 pinctrl-names = "default";
363 pinctrl-0 = <&pinctrl_usb0>;
364 clocks = <&mio_clk 7>, <&mio_clk 8>, <&mio_clk 12>;
365 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
366 <&mio_rst 12>;
367 };
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900368
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900369 usb1: usb@5a810100 {
370 compatible = "socionext,uniphier-ehci", "generic-ehci";
371 status = "disabled";
372 reg = <0x5a810100 0x100>;
373 interrupts = <0 81 4>;
374 pinctrl-names = "default";
375 pinctrl-0 = <&pinctrl_usb1>;
376 clocks = <&mio_clk 7>, <&mio_clk 9>, <&mio_clk 13>;
377 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
378 <&mio_rst 13>;
379 };
Masahiro Yamada02bf5b82016-09-22 07:42:23 +0900380
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900381 usb2: usb@5a820100 {
382 compatible = "socionext,uniphier-ehci", "generic-ehci";
383 status = "disabled";
384 reg = <0x5a820100 0x100>;
385 interrupts = <0 82 4>;
386 pinctrl-names = "default";
387 pinctrl-0 = <&pinctrl_usb2>;
388 clocks = <&mio_clk 7>, <&mio_clk 10>, <&mio_clk 14>;
389 resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
390 <&mio_rst 14>;
391 };
392
393 soc-glue@5f800000 {
394 compatible = "socionext,uniphier-ld4-soc-glue",
395 "simple-mfd", "syscon";
396 reg = <0x5f800000 0x2000>;
397 u-boot,dm-pre-reloc;
398
399 pinctrl: pinctrl {
400 compatible = "socionext,uniphier-ld4-pinctrl";
401 u-boot,dm-pre-reloc;
402 };
403 };
404
405 timer@60000200 {
406 compatible = "arm,cortex-a9-global-timer";
407 reg = <0x60000200 0x20>;
408 interrupts = <1 11 0x104>;
409 clocks = <&arm_timer_clk>;
410 };
411
412 timer@60000600 {
413 compatible = "arm,cortex-a9-twd-timer";
414 reg = <0x60000600 0x20>;
415 interrupts = <1 13 0x104>;
416 clocks = <&arm_timer_clk>;
417 };
418
419 intc: interrupt-controller@60001000 {
420 compatible = "arm,cortex-a9-gic";
421 reg = <0x60001000 0x1000>,
422 <0x60000100 0x100>;
423 #interrupt-cells = <3>;
424 interrupt-controller;
425 };
426
427 aidet@61830000 {
428 compatible = "simple-mfd", "syscon";
429 reg = <0x61830000 0x200>;
430 };
431
432 sysctrl@61840000 {
433 compatible = "socionext,uniphier-ld4-sysctrl",
434 "simple-mfd", "syscon";
435 reg = <0x61840000 0x10000>;
436
437 sys_clk: clock {
438 compatible = "socionext,uniphier-ld4-clock";
439 #clock-cells = <1>;
440 };
441
442 sys_rst: reset {
443 compatible = "socionext,uniphier-ld4-reset";
444 #reset-cells = <1>;
445 };
446 };
447
448 nand: nand@68000000 {
Masahiro Yamada938ab162017-05-15 14:23:46 +0900449 compatible = "socionext,uniphier-denali-nand-v5a";
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900450 status = "disabled";
451 reg-names = "nand_data", "denali_reg";
452 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
453 interrupts = <0 65 4>;
454 pinctrl-names = "default";
455 pinctrl-0 = <&pinctrl_nand>;
456 clocks = <&sys_clk 2>;
457 nand-ecc-strength = <8>;
458 };
459 };
Masahiro Yamadae84513b2016-02-02 21:11:34 +0900460};
Masahiro Yamada6e485b22016-12-05 18:31:39 +0900461
462/include/ "uniphier-pinctrl.dtsi"