blob: cfeeecdad0568d7d11880384ca6568fae8fa40e8 [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 PXs3 SoC
4//
5// Copyright (C) 2017 Socionext Inc.
6// Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada61e6cc02017-01-21 18:05:30 +09007
Masahiro Yamadab443fb42017-11-25 00:25:35 +09008#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/gpio/uniphier-gpio.h>
10
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090011/memreserve/ 0x80000000 0x02000000;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090012
13/ {
14 compatible = "socionext,uniphier-pxs3";
15 #address-cells = <2>;
16 #size-cells = <2>;
17 interrupt-parent = <&gic>;
18
19 cpus {
20 #address-cells = <2>;
21 #size-cells = <0>;
22
23 cpu-map {
24 cluster0 {
25 core0 {
26 cpu = <&cpu0>;
27 };
28 core1 {
29 cpu = <&cpu1>;
30 };
31 core2 {
32 cpu = <&cpu2>;
33 };
34 core3 {
35 cpu = <&cpu3>;
36 };
37 };
38 };
39
40 cpu0: cpu@0 {
41 device_type = "cpu";
42 compatible = "arm,cortex-a53", "arm,armv8";
43 reg = <0 0x000>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090044 clocks = <&sys_clk 33>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090045 enable-method = "psci";
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090046 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090047 };
48
49 cpu1: cpu@1 {
50 device_type = "cpu";
51 compatible = "arm,cortex-a53", "arm,armv8";
52 reg = <0 0x001>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090053 clocks = <&sys_clk 33>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090054 enable-method = "psci";
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090055 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090056 };
57
58 cpu2: cpu@2 {
59 device_type = "cpu";
60 compatible = "arm,cortex-a53", "arm,armv8";
61 reg = <0 0x002>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090062 clocks = <&sys_clk 33>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090063 enable-method = "psci";
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090064 operating-points-v2 = <&cluster0_opp>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090065 };
66
67 cpu3: cpu@3 {
68 device_type = "cpu";
69 compatible = "arm,cortex-a53", "arm,armv8";
70 reg = <0 0x003>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090071 clocks = <&sys_clk 33>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +090072 enable-method = "psci";
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090073 operating-points-v2 = <&cluster0_opp>;
74 };
75 };
76
Masahiro Yamadab443fb42017-11-25 00:25:35 +090077 cluster0_opp: opp-table {
Masahiro Yamada31c86aa2017-08-29 12:20:53 +090078 compatible = "operating-points-v2";
79 opp-shared;
80
81 opp-250000000 {
82 opp-hz = /bits/ 64 <250000000>;
83 clock-latency-ns = <300>;
84 };
85 opp-325000000 {
86 opp-hz = /bits/ 64 <325000000>;
87 clock-latency-ns = <300>;
88 };
89 opp-500000000 {
90 opp-hz = /bits/ 64 <500000000>;
91 clock-latency-ns = <300>;
92 };
93 opp-650000000 {
94 opp-hz = /bits/ 64 <650000000>;
95 clock-latency-ns = <300>;
96 };
97 opp-666667000 {
98 opp-hz = /bits/ 64 <666667000>;
99 clock-latency-ns = <300>;
100 };
101 opp-866667000 {
102 opp-hz = /bits/ 64 <866667000>;
103 clock-latency-ns = <300>;
104 };
105 opp-1000000000 {
106 opp-hz = /bits/ 64 <1000000000>;
107 clock-latency-ns = <300>;
108 };
109 opp-1300000000 {
110 opp-hz = /bits/ 64 <1300000000>;
111 clock-latency-ns = <300>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900112 };
113 };
114
115 psci {
116 compatible = "arm,psci-1.0";
117 method = "smc";
118 };
119
120 clocks {
121 refclk: ref {
122 compatible = "fixed-clock";
123 #clock-cells = <0>;
124 clock-frequency = <25000000>;
125 };
126 };
127
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900128 emmc_pwrseq: emmc-pwrseq {
129 compatible = "mmc-pwrseq-emmc";
130 reset-gpios = <&gpio UNIPHIER_GPIO_PORT(5, 7) GPIO_ACTIVE_LOW>;
131 };
132
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900133 timer {
134 compatible = "arm,armv8-timer";
135 interrupts = <1 13 4>,
136 <1 14 4>,
137 <1 11 4>,
138 <1 10 4>;
139 };
140
Masahiro Yamada7ad79c12017-03-13 00:16:40 +0900141 soc@0 {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900142 compatible = "simple-bus";
143 #address-cells = <1>;
144 #size-cells = <1>;
145 ranges = <0 0 0 0xffffffff>;
146
147 serial0: serial@54006800 {
148 compatible = "socionext,uniphier-uart";
149 status = "disabled";
150 reg = <0x54006800 0x40>;
151 interrupts = <0 33 4>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&pinctrl_uart0>;
154 clocks = <&peri_clk 0>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900155 resets = <&peri_rst 0>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900156 };
157
158 serial1: serial@54006900 {
159 compatible = "socionext,uniphier-uart";
160 status = "disabled";
161 reg = <0x54006900 0x40>;
162 interrupts = <0 35 4>;
163 pinctrl-names = "default";
164 pinctrl-0 = <&pinctrl_uart1>;
165 clocks = <&peri_clk 1>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900166 resets = <&peri_rst 1>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900167 };
168
169 serial2: serial@54006a00 {
170 compatible = "socionext,uniphier-uart";
171 status = "disabled";
172 reg = <0x54006a00 0x40>;
173 interrupts = <0 37 4>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pinctrl_uart2>;
176 clocks = <&peri_clk 2>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900177 resets = <&peri_rst 2>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900178 };
179
180 serial3: serial@54006b00 {
181 compatible = "socionext,uniphier-uart";
182 status = "disabled";
183 reg = <0x54006b00 0x40>;
184 interrupts = <0 177 4>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&pinctrl_uart3>;
187 clocks = <&peri_clk 3>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900188 resets = <&peri_rst 3>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900189 };
190
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900191 gpio: gpio@55000000 {
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900192 compatible = "socionext,uniphier-gpio";
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900193 reg = <0x55000000 0x200>;
194 interrupt-parent = <&aidet>;
195 interrupt-controller;
196 #interrupt-cells = <2>;
197 gpio-controller;
198 #gpio-cells = <2>;
199 gpio-ranges = <&pinctrl 0 0 0>,
Masahiro Yamada46820e32018-03-15 11:43:03 +0900200 <&pinctrl 104 0 0>,
201 <&pinctrl 168 0 0>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900202 gpio-ranges-group-names = "gpio_range0",
203 "gpio_range1",
204 "gpio_range2";
Masahiro Yamada0f72b742017-10-13 19:21:52 +0900205 ngpios = <286>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900206 socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
207 <21 217 3>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900208 };
209
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900210 i2c0: i2c@58780000 {
211 compatible = "socionext,uniphier-fi2c";
212 status = "disabled";
213 reg = <0x58780000 0x80>;
214 #address-cells = <1>;
215 #size-cells = <0>;
216 interrupts = <0 41 4>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&pinctrl_i2c0>;
219 clocks = <&peri_clk 4>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900220 resets = <&peri_rst 4>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900221 clock-frequency = <100000>;
222 };
223
224 i2c1: i2c@58781000 {
225 compatible = "socionext,uniphier-fi2c";
226 status = "disabled";
227 reg = <0x58781000 0x80>;
228 #address-cells = <1>;
229 #size-cells = <0>;
230 interrupts = <0 42 4>;
231 pinctrl-names = "default";
232 pinctrl-0 = <&pinctrl_i2c1>;
233 clocks = <&peri_clk 5>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900234 resets = <&peri_rst 5>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900235 clock-frequency = <100000>;
236 };
237
238 i2c2: i2c@58782000 {
239 compatible = "socionext,uniphier-fi2c";
240 status = "disabled";
241 reg = <0x58782000 0x80>;
242 #address-cells = <1>;
243 #size-cells = <0>;
244 interrupts = <0 43 4>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900245 pinctrl-names = "default";
246 pinctrl-0 = <&pinctrl_i2c2>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900247 clocks = <&peri_clk 6>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900248 resets = <&peri_rst 6>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900249 clock-frequency = <100000>;
250 };
251
252 i2c3: i2c@58783000 {
253 compatible = "socionext,uniphier-fi2c";
254 status = "disabled";
255 reg = <0x58783000 0x80>;
256 #address-cells = <1>;
257 #size-cells = <0>;
258 interrupts = <0 44 4>;
259 pinctrl-names = "default";
260 pinctrl-0 = <&pinctrl_i2c3>;
261 clocks = <&peri_clk 7>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900262 resets = <&peri_rst 7>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900263 clock-frequency = <100000>;
264 };
265
266 /* chip-internal connection for HDMI */
267 i2c6: i2c@58786000 {
268 compatible = "socionext,uniphier-fi2c";
269 reg = <0x58786000 0x80>;
270 #address-cells = <1>;
271 #size-cells = <0>;
272 interrupts = <0 26 4>;
273 clocks = <&peri_clk 10>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900274 resets = <&peri_rst 10>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900275 clock-frequency = <400000>;
276 };
277
278 system_bus: system-bus@58c00000 {
279 compatible = "socionext,uniphier-system-bus";
280 status = "disabled";
281 reg = <0x58c00000 0x400>;
282 #address-cells = <2>;
283 #size-cells = <1>;
284 pinctrl-names = "default";
285 pinctrl-0 = <&pinctrl_system_bus>;
286 };
287
Masahiro Yamadaabb6ac22017-05-15 14:23:46 +0900288 smpctrl@59801000 {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900289 compatible = "socionext,uniphier-smpctrl";
290 reg = <0x59801000 0x400>;
291 };
292
293 sdctrl@59810000 {
294 compatible = "socionext,uniphier-pxs3-sdctrl",
295 "simple-mfd", "syscon";
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900296 reg = <0x59810000 0x400>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900297
298 sd_clk: clock {
299 compatible = "socionext,uniphier-pxs3-sd-clock";
300 #clock-cells = <1>;
301 };
302
303 sd_rst: reset {
304 compatible = "socionext,uniphier-pxs3-sd-reset";
305 #reset-cells = <1>;
306 };
307 };
308
309 perictrl@59820000 {
310 compatible = "socionext,uniphier-pxs3-perictrl",
311 "simple-mfd", "syscon";
312 reg = <0x59820000 0x200>;
313
314 peri_clk: clock {
315 compatible = "socionext,uniphier-pxs3-peri-clock";
316 #clock-cells = <1>;
317 };
318
319 peri_rst: reset {
320 compatible = "socionext,uniphier-pxs3-peri-reset";
321 #reset-cells = <1>;
322 };
323 };
324
325 emmc: sdhc@5a000000 {
326 compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900327 reg = <0x5a000000 0x400>;
328 interrupts = <0 78 4>;
329 pinctrl-names = "default";
330 pinctrl-0 = <&pinctrl_emmc_1v8>;
331 clocks = <&sys_clk 4>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900332 resets = <&sys_rst 4>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900333 bus-width = <8>;
334 mmc-ddr-1_8v;
335 mmc-hs200-1_8v;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900336 mmc-pwrseq = <&emmc_pwrseq>;
Masahiro Yamadac3d3e2a2018-05-23 00:30:54 +0900337 cdns,phy-input-delay-legacy = <9>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900338 cdns,phy-input-delay-mmc-highspeed = <2>;
339 cdns,phy-input-delay-mmc-ddr = <3>;
340 cdns,phy-dll-delay-sdclk = <21>;
341 cdns,phy-dll-delay-sdclk-hsmmc = <21>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900342 };
343
344 sd: sdhc@5a400000 {
345 compatible = "socionext,uniphier-sdhc";
346 status = "disabled";
347 reg = <0x5a400000 0x800>;
348 interrupts = <0 76 4>;
349 pinctrl-names = "default";
350 pinctrl-0 = <&pinctrl_sd>;
351 clocks = <&sd_clk 0>;
352 reset-names = "host";
353 resets = <&sd_rst 0>;
354 bus-width = <4>;
355 cap-sd-highspeed;
356 };
357
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900358 soc_glue: soc-glue@5f800000 {
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900359 compatible = "socionext,uniphier-pxs3-soc-glue",
360 "simple-mfd", "syscon";
361 reg = <0x5f800000 0x2000>;
362
363 pinctrl: pinctrl {
364 compatible = "socionext,uniphier-pxs3-pinctrl";
365 };
366 };
367
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900368 soc-glue@5f900000 {
369 compatible = "socionext,uniphier-pxs3-soc-glue-debug",
370 "simple-mfd";
371 #address-cells = <1>;
372 #size-cells = <1>;
373 ranges = <0 0x5f900000 0x2000>;
374
375 efuse@100 {
376 compatible = "socionext,uniphier-efuse";
377 reg = <0x100 0x28>;
378 };
379
380 efuse@200 {
381 compatible = "socionext,uniphier-efuse";
382 reg = <0x200 0x68>;
383 };
384 };
385
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900386 aidet: aidet@5fc20000 {
387 compatible = "socionext,uniphier-pxs3-aidet";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900388 reg = <0x5fc20000 0x200>;
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900389 interrupt-controller;
390 #interrupt-cells = <2>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900391 };
392
393 gic: interrupt-controller@5fe00000 {
394 compatible = "arm,gic-v3";
395 reg = <0x5fe00000 0x10000>, /* GICD */
396 <0x5fe80000 0x80000>; /* GICR */
397 interrupt-controller;
398 #interrupt-cells = <3>;
399 interrupts = <1 9 4>;
400 };
401
402 sysctrl@61840000 {
403 compatible = "socionext,uniphier-pxs3-sysctrl",
404 "simple-mfd", "syscon";
405 reg = <0x61840000 0x10000>;
406
407 sys_clk: clock {
408 compatible = "socionext,uniphier-pxs3-clock";
409 #clock-cells = <1>;
410 };
411
412 sys_rst: reset {
413 compatible = "socionext,uniphier-pxs3-reset";
414 #reset-cells = <1>;
415 };
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900416
417 watchdog {
418 compatible = "socionext,uniphier-wdt";
419 };
420 };
421
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900422 eth0: ethernet@65000000 {
423 compatible = "socionext,uniphier-pxs3-ave4";
424 status = "disabled";
425 reg = <0x65000000 0x8500>;
426 interrupts = <0 66 4>;
427 pinctrl-names = "default";
428 pinctrl-0 = <&pinctrl_ether_rgmii>;
Kunihiko Hayashi3c0fa6c2018-05-11 18:49:16 +0900429 clock-names = "ether";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900430 clocks = <&sys_clk 6>;
Kunihiko Hayashi3c0fa6c2018-05-11 18:49:16 +0900431 reset-names = "ether";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900432 resets = <&sys_rst 6>;
433 phy-mode = "rgmii";
434 local-mac-address = [00 00 00 00 00 00];
Kunihiko Hayashi69b3d4e2018-05-11 18:49:14 +0900435 socionext,syscon-phy-mode = <&soc_glue 0>;
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900436
437 mdio0: mdio {
438 #address-cells = <1>;
439 #size-cells = <0>;
440 };
441 };
442
443 eth1: ethernet@65200000 {
444 compatible = "socionext,uniphier-pxs3-ave4";
445 status = "disabled";
446 reg = <0x65200000 0x8500>;
447 interrupts = <0 67 4>;
448 pinctrl-names = "default";
449 pinctrl-0 = <&pinctrl_ether1_rgmii>;
Kunihiko Hayashi3c0fa6c2018-05-11 18:49:16 +0900450 clock-names = "ether";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900451 clocks = <&sys_clk 7>;
Kunihiko Hayashi3c0fa6c2018-05-11 18:49:16 +0900452 reset-names = "ether";
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900453 resets = <&sys_rst 7>;
454 phy-mode = "rgmii";
455 local-mac-address = [00 00 00 00 00 00];
Kunihiko Hayashi69b3d4e2018-05-11 18:49:14 +0900456 socionext,syscon-phy-mode = <&soc_glue 1>;
Masahiro Yamada3e98fc12018-04-16 12:35:33 +0900457
458 mdio1: mdio {
459 #address-cells = <1>;
460 #size-cells = <0>;
461 };
462 };
463
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900464 usb0: usb@65b00000 {
465 compatible = "socionext,uniphier-pxs3-dwc3";
466 status = "disabled";
467 reg = <0x65b00000 0x1000>;
468 #address-cells = <1>;
469 #size-cells = <1>;
470 ranges;
471 pinctrl-names = "default";
472 pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>;
473 dwc3@65a00000 {
474 compatible = "snps,dwc3";
475 reg = <0x65a00000 0x10000>;
476 interrupts = <0 134 4>;
477 dr_mode = "host";
478 tx-fifo-resize;
479 };
480 };
481
482 usb1: usb@65d00000 {
483 compatible = "socionext,uniphier-pxs3-dwc3";
484 status = "disabled";
485 reg = <0x65d00000 0x1000>;
486 #address-cells = <1>;
487 #size-cells = <1>;
488 ranges;
489 pinctrl-names = "default";
490 pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>;
491 dwc3@65c00000 {
492 compatible = "snps,dwc3";
493 reg = <0x65c00000 0x10000>;
494 interrupts = <0 137 4>;
495 dr_mode = "host";
496 tx-fifo-resize;
497 };
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900498 };
499
500 nand: nand@68000000 {
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900501 compatible = "socionext,uniphier-denali-nand-v5b";
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900502 status = "disabled";
503 reg-names = "nand_data", "denali_reg";
504 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
505 interrupts = <0 65 4>;
506 pinctrl-names = "default";
507 pinctrl-0 = <&pinctrl_nand>;
508 clocks = <&sys_clk 2>;
Masahiro Yamadab443fb42017-11-25 00:25:35 +0900509 resets = <&sys_rst 2>;
Masahiro Yamada61e6cc02017-01-21 18:05:30 +0900510 };
511 };
512};
513
Masahiro Yamada31c86aa2017-08-29 12:20:53 +0900514#include "uniphier-pinctrl.dtsi"