Loading...
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2//
3// Device Tree Source for UniPhier PXs2 SoC
4//
5// Copyright (C) 2015-2016 Socionext Inc.
6// Author: Masahiro Yamada <yamada.masahiro@socionext.com>
7
8#include <dt-bindings/gpio/uniphier-gpio.h>
9#include <dt-bindings/interrupt-controller/arm-gic.h>
10#include <dt-bindings/thermal/thermal.h>
11
12/ {
13 compatible = "socionext,uniphier-pxs2";
14 #address-cells = <1>;
15 #size-cells = <1>;
16
17 cpus {
18 #address-cells = <1>;
19 #size-cells = <0>;
20
21 cpu0: cpu@0 {
22 device_type = "cpu";
23 compatible = "arm,cortex-a9";
24 reg = <0>;
25 clocks = <&sys_clk 32>;
26 enable-method = "psci";
27 next-level-cache = <&l2>;
28 operating-points-v2 = <&cpu_opp>;
29 #cooling-cells = <2>;
30 };
31
32 cpu1: cpu@1 {
33 device_type = "cpu";
34 compatible = "arm,cortex-a9";
35 reg = <1>;
36 clocks = <&sys_clk 32>;
37 enable-method = "psci";
38 next-level-cache = <&l2>;
39 operating-points-v2 = <&cpu_opp>;
40 #cooling-cells = <2>;
41 };
42
43 cpu2: cpu@2 {
44 device_type = "cpu";
45 compatible = "arm,cortex-a9";
46 reg = <2>;
47 clocks = <&sys_clk 32>;
48 enable-method = "psci";
49 next-level-cache = <&l2>;
50 operating-points-v2 = <&cpu_opp>;
51 #cooling-cells = <2>;
52 };
53
54 cpu3: cpu@3 {
55 device_type = "cpu";
56 compatible = "arm,cortex-a9";
57 reg = <3>;
58 clocks = <&sys_clk 32>;
59 enable-method = "psci";
60 next-level-cache = <&l2>;
61 operating-points-v2 = <&cpu_opp>;
62 #cooling-cells = <2>;
63 };
64 };
65
66 cpu_opp: opp-table {
67 compatible = "operating-points-v2";
68 opp-shared;
69
70 opp-100000000 {
71 opp-hz = /bits/ 64 <100000000>;
72 clock-latency-ns = <300>;
73 };
74 opp-150000000 {
75 opp-hz = /bits/ 64 <150000000>;
76 clock-latency-ns = <300>;
77 };
78 opp-200000000 {
79 opp-hz = /bits/ 64 <200000000>;
80 clock-latency-ns = <300>;
81 };
82 opp-300000000 {
83 opp-hz = /bits/ 64 <300000000>;
84 clock-latency-ns = <300>;
85 };
86 opp-400000000 {
87 opp-hz = /bits/ 64 <400000000>;
88 clock-latency-ns = <300>;
89 };
90 opp-600000000 {
91 opp-hz = /bits/ 64 <600000000>;
92 clock-latency-ns = <300>;
93 };
94 opp-800000000 {
95 opp-hz = /bits/ 64 <800000000>;
96 clock-latency-ns = <300>;
97 };
98 opp-1200000000 {
99 opp-hz = /bits/ 64 <1200000000>;
100 clock-latency-ns = <300>;
101 };
102 };
103
104 psci {
105 compatible = "arm,psci-0.2";
106 method = "smc";
107 };
108
109 clocks {
110 refclk: ref {
111 compatible = "fixed-clock";
112 #clock-cells = <0>;
113 clock-frequency = <25000000>;
114 };
115
116 arm_timer_clk: arm-timer {
117 #clock-cells = <0>;
118 compatible = "fixed-clock";
119 clock-frequency = <50000000>;
120 };
121 };
122
123 thermal-zones {
124 cpu-thermal {
125 polling-delay-passive = <250>; /* 250ms */
126 polling-delay = <1000>; /* 1000ms */
127 thermal-sensors = <&pvtctl>;
128
129 trips {
130 cpu_crit: cpu-crit {
131 temperature = <95000>; /* 95C */
132 hysteresis = <2000>;
133 type = "critical";
134 };
135 cpu_alert: cpu-alert {
136 temperature = <85000>; /* 85C */
137 hysteresis = <2000>;
138 type = "passive";
139 };
140 };
141
142 cooling-maps {
143 map {
144 trip = <&cpu_alert>;
145 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
146 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
147 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
148 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
149 };
150 };
151 };
152 };
153
154 soc {
155 compatible = "simple-bus";
156 #address-cells = <1>;
157 #size-cells = <1>;
158 ranges;
159 interrupt-parent = <&intc>;
160
161 l2: cache-controller@500c0000 {
162 compatible = "socionext,uniphier-system-cache";
163 reg = <0x500c0000 0x2000>, <0x503c0100 0x8>,
164 <0x506c0000 0x400>;
165 interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>,
166 <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>,
167 <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>,
168 <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
169 cache-unified;
170 cache-size = <(1280 * 1024)>;
171 cache-sets = <512>;
172 cache-line-size = <128>;
173 cache-level = <2>;
174 };
175
176 spi0: spi@54006000 {
177 compatible = "socionext,uniphier-scssi";
178 status = "disabled";
179 reg = <0x54006000 0x100>;
180 #address-cells = <1>;
181 #size-cells = <0>;
182 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&pinctrl_spi0>;
185 clocks = <&peri_clk 11>;
186 resets = <&peri_rst 11>;
187 };
188
189 spi1: spi@54006100 {
190 compatible = "socionext,uniphier-scssi";
191 status = "disabled";
192 reg = <0x54006100 0x100>;
193 #address-cells = <1>;
194 #size-cells = <0>;
195 interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&pinctrl_spi1>;
198 clocks = <&peri_clk 12>;
199 resets = <&peri_rst 12>;
200 };
201
202 serial0: serial@54006800 {
203 compatible = "socionext,uniphier-uart";
204 status = "disabled";
205 reg = <0x54006800 0x40>;
206 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
207 pinctrl-names = "default";
208 pinctrl-0 = <&pinctrl_uart0>;
209 clocks = <&peri_clk 0>;
210 resets = <&peri_rst 0>;
211 };
212
213 serial1: serial@54006900 {
214 compatible = "socionext,uniphier-uart";
215 status = "disabled";
216 reg = <0x54006900 0x40>;
217 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
218 pinctrl-names = "default";
219 pinctrl-0 = <&pinctrl_uart1>;
220 clocks = <&peri_clk 1>;
221 resets = <&peri_rst 1>;
222 };
223
224 serial2: serial@54006a00 {
225 compatible = "socionext,uniphier-uart";
226 status = "disabled";
227 reg = <0x54006a00 0x40>;
228 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
229 pinctrl-names = "default";
230 pinctrl-0 = <&pinctrl_uart2>;
231 clocks = <&peri_clk 2>;
232 resets = <&peri_rst 2>;
233 };
234
235 serial3: serial@54006b00 {
236 compatible = "socionext,uniphier-uart";
237 status = "disabled";
238 reg = <0x54006b00 0x40>;
239 interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
240 pinctrl-names = "default";
241 pinctrl-0 = <&pinctrl_uart3>;
242 clocks = <&peri_clk 3>;
243 resets = <&peri_rst 3>;
244 };
245
246 gpio: gpio@55000000 {
247 compatible = "socionext,uniphier-gpio";
248 reg = <0x55000000 0x200>;
249 interrupt-parent = <&aidet>;
250 interrupt-controller;
251 #interrupt-cells = <2>;
252 gpio-controller;
253 #gpio-cells = <2>;
254 gpio-ranges = <&pinctrl 0 0 0>,
255 <&pinctrl 96 0 0>;
256 gpio-ranges-group-names = "gpio_range0",
257 "gpio_range1";
258 ngpios = <232>;
259 socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
260 <21 217 3>;
261 };
262
263 audio@56000000 {
264 compatible = "socionext,uniphier-pxs2-aio";
265 reg = <0x56000000 0x80000>;
266 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
267 pinctrl-names = "default";
268 pinctrl-0 = <&pinctrl_ain1>,
269 <&pinctrl_ain2>,
270 <&pinctrl_ainiec1>,
271 <&pinctrl_aout2>,
272 <&pinctrl_aout3>,
273 <&pinctrl_aoutiec1>,
274 <&pinctrl_aoutiec2>;
275 clock-names = "aio";
276 clocks = <&sys_clk 40>;
277 reset-names = "aio";
278 resets = <&sys_rst 40>;
279 #sound-dai-cells = <1>;
280 socionext,syscon = <&soc_glue>;
281
282 i2s_port0: port@0 {
283 i2s_hdmi: endpoint {
284 };
285 };
286
287 i2s_port1: port@1 {
288 i2s_line: endpoint {
289 };
290 };
291
292 i2s_port2: port@2 {
293 i2s_aux: endpoint {
294 };
295 };
296
297 spdif_port0: port@3 {
298 spdif_hiecout1: endpoint {
299 };
300 };
301
302 spdif_port1: port@4 {
303 spdif_iecout1: endpoint {
304 };
305 };
306
307 comp_spdif_port0: port@5 {
308 comp_spdif_hiecout1: endpoint {
309 };
310 };
311
312 comp_spdif_port1: port@6 {
313 comp_spdif_iecout1: endpoint {
314 };
315 };
316 };
317
318 i2c0: i2c@58780000 {
319 compatible = "socionext,uniphier-fi2c";
320 status = "disabled";
321 reg = <0x58780000 0x80>;
322 #address-cells = <1>;
323 #size-cells = <0>;
324 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
325 pinctrl-names = "default";
326 pinctrl-0 = <&pinctrl_i2c0>;
327 clocks = <&peri_clk 4>;
328 resets = <&peri_rst 4>;
329 clock-frequency = <100000>;
330 };
331
332 i2c1: i2c@58781000 {
333 compatible = "socionext,uniphier-fi2c";
334 status = "disabled";
335 reg = <0x58781000 0x80>;
336 #address-cells = <1>;
337 #size-cells = <0>;
338 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
339 pinctrl-names = "default";
340 pinctrl-0 = <&pinctrl_i2c1>;
341 clocks = <&peri_clk 5>;
342 resets = <&peri_rst 5>;
343 clock-frequency = <100000>;
344 };
345
346 i2c2: i2c@58782000 {
347 compatible = "socionext,uniphier-fi2c";
348 status = "disabled";
349 reg = <0x58782000 0x80>;
350 #address-cells = <1>;
351 #size-cells = <0>;
352 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
353 pinctrl-names = "default";
354 pinctrl-0 = <&pinctrl_i2c2>;
355 clocks = <&peri_clk 6>;
356 resets = <&peri_rst 6>;
357 clock-frequency = <100000>;
358 };
359
360 i2c3: i2c@58783000 {
361 compatible = "socionext,uniphier-fi2c";
362 status = "disabled";
363 reg = <0x58783000 0x80>;
364 #address-cells = <1>;
365 #size-cells = <0>;
366 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
367 pinctrl-names = "default";
368 pinctrl-0 = <&pinctrl_i2c3>;
369 clocks = <&peri_clk 7>;
370 resets = <&peri_rst 7>;
371 clock-frequency = <100000>;
372 };
373
374 /* chip-internal connection for DMD */
375 i2c4: i2c@58784000 {
376 compatible = "socionext,uniphier-fi2c";
377 reg = <0x58784000 0x80>;
378 #address-cells = <1>;
379 #size-cells = <0>;
380 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
381 clocks = <&peri_clk 8>;
382 resets = <&peri_rst 8>;
383 clock-frequency = <400000>;
384 };
385
386 /* chip-internal connection for STM */
387 i2c5: i2c@58785000 {
388 compatible = "socionext,uniphier-fi2c";
389 reg = <0x58785000 0x80>;
390 #address-cells = <1>;
391 #size-cells = <0>;
392 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
393 clocks = <&peri_clk 9>;
394 resets = <&peri_rst 9>;
395 clock-frequency = <400000>;
396 };
397
398 /* chip-internal connection for HDMI */
399 i2c6: i2c@58786000 {
400 compatible = "socionext,uniphier-fi2c";
401 reg = <0x58786000 0x80>;
402 #address-cells = <1>;
403 #size-cells = <0>;
404 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
405 clocks = <&peri_clk 10>;
406 resets = <&peri_rst 10>;
407 clock-frequency = <400000>;
408 };
409
410 system_bus: system-bus@58c00000 {
411 compatible = "socionext,uniphier-system-bus";
412 status = "disabled";
413 reg = <0x58c00000 0x400>;
414 #address-cells = <2>;
415 #size-cells = <1>;
416 pinctrl-names = "default";
417 pinctrl-0 = <&pinctrl_system_bus>;
418 };
419
420 smpctrl@59801000 {
421 compatible = "socionext,uniphier-smpctrl";
422 reg = <0x59801000 0x400>;
423 };
424
425 sdctrl@59810000 {
426 compatible = "socionext,uniphier-pxs2-sdctrl",
427 "simple-mfd", "syscon";
428 reg = <0x59810000 0x400>;
429
430 sd_clk: clock {
431 compatible = "socionext,uniphier-pxs2-sd-clock";
432 #clock-cells = <1>;
433 };
434
435 sd_rst: reset {
436 compatible = "socionext,uniphier-pxs2-sd-reset";
437 #reset-cells = <1>;
438 };
439 };
440
441 perictrl@59820000 {
442 compatible = "socionext,uniphier-pxs2-perictrl",
443 "simple-mfd", "syscon";
444 reg = <0x59820000 0x200>;
445
446 peri_clk: clock {
447 compatible = "socionext,uniphier-pxs2-peri-clock";
448 #clock-cells = <1>;
449 };
450
451 peri_rst: reset {
452 compatible = "socionext,uniphier-pxs2-peri-reset";
453 #reset-cells = <1>;
454 };
455 };
456
457 emmc: mmc@5a000000 {
458 compatible = "socionext,uniphier-sd-v3.1.1";
459 status = "disabled";
460 reg = <0x5a000000 0x800>;
461 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
462 pinctrl-names = "default";
463 pinctrl-0 = <&pinctrl_emmc>;
464 clocks = <&sd_clk 1>;
465 reset-names = "host", "hw";
466 resets = <&sd_rst 1>, <&sd_rst 6>;
467 bus-width = <8>;
468 cap-mmc-highspeed;
469 cap-mmc-hw-reset;
470 non-removable;
471 };
472
473 sd: mmc@5a400000 {
474 compatible = "socionext,uniphier-sd-v3.1.1";
475 status = "disabled";
476 reg = <0x5a400000 0x800>;
477 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
478 pinctrl-names = "default", "uhs";
479 pinctrl-0 = <&pinctrl_sd>;
480 pinctrl-1 = <&pinctrl_sd_uhs>;
481 clocks = <&sd_clk 0>;
482 reset-names = "host";
483 resets = <&sd_rst 0>;
484 bus-width = <4>;
485 cap-sd-highspeed;
486 sd-uhs-sdr12;
487 sd-uhs-sdr25;
488 sd-uhs-sdr50;
489 };
490
491 soc_glue: soc-glue@5f800000 {
492 compatible = "socionext,uniphier-pxs2-soc-glue",
493 "simple-mfd", "syscon";
494 reg = <0x5f800000 0x2000>;
495
496 pinctrl: pinctrl {
497 compatible = "socionext,uniphier-pxs2-pinctrl";
498 };
499 };
500
501 soc-glue@5f900000 {
502 compatible = "socionext,uniphier-pxs2-soc-glue-debug",
503 "simple-mfd";
504 #address-cells = <1>;
505 #size-cells = <1>;
506 ranges = <0 0x5f900000 0x2000>;
507
508 efuse@100 {
509 compatible = "socionext,uniphier-efuse";
510 reg = <0x100 0x28>;
511 };
512
513 efuse@200 {
514 compatible = "socionext,uniphier-efuse";
515 reg = <0x200 0x58>;
516 };
517 };
518
519 xdmac: dma-controller@5fc10000 {
520 compatible = "socionext,uniphier-xdmac";
521 reg = <0x5fc10000 0x5300>;
522 interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
523 dma-channels = <16>;
524 #dma-cells = <2>;
525 };
526
527 aidet: interrupt-controller@5fc20000 {
528 compatible = "socionext,uniphier-pxs2-aidet";
529 reg = <0x5fc20000 0x200>;
530 interrupt-controller;
531 #interrupt-cells = <2>;
532 };
533
534 timer@60000200 {
535 compatible = "arm,cortex-a9-global-timer";
536 reg = <0x60000200 0x20>;
537 interrupts = <GIC_PPI 11
538 (GIC_CPU_MASK_RAW(0xf) | IRQ_TYPE_LEVEL_HIGH)>;
539 clocks = <&arm_timer_clk>;
540 };
541
542 timer@60000600 {
543 compatible = "arm,cortex-a9-twd-timer";
544 reg = <0x60000600 0x20>;
545 interrupts = <GIC_PPI 13
546 (GIC_CPU_MASK_RAW(0xf) | IRQ_TYPE_LEVEL_HIGH)>;
547 clocks = <&arm_timer_clk>;
548 };
549
550 intc: interrupt-controller@60001000 {
551 compatible = "arm,cortex-a9-gic";
552 reg = <0x60001000 0x1000>,
553 <0x60000100 0x100>;
554 #interrupt-cells = <3>;
555 interrupt-controller;
556 };
557
558 sysctrl@61840000 {
559 compatible = "socionext,uniphier-pxs2-sysctrl",
560 "simple-mfd", "syscon";
561 reg = <0x61840000 0x10000>;
562
563 sys_clk: clock {
564 compatible = "socionext,uniphier-pxs2-clock";
565 #clock-cells = <1>;
566 };
567
568 sys_rst: reset {
569 compatible = "socionext,uniphier-pxs2-reset";
570 #reset-cells = <1>;
571 };
572
573 pvtctl: thermal-sensor {
574 compatible = "socionext,uniphier-pxs2-thermal";
575 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
576 #thermal-sensor-cells = <0>;
577 socionext,tmod-calibration = <0x0f86 0x6844>;
578 };
579 };
580
581 eth: ethernet@65000000 {
582 compatible = "socionext,uniphier-pxs2-ave4";
583 status = "disabled";
584 reg = <0x65000000 0x8500>;
585 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
586 pinctrl-names = "default";
587 pinctrl-0 = <&pinctrl_ether_rgmii>;
588 clock-names = "ether";
589 clocks = <&sys_clk 6>;
590 reset-names = "ether";
591 resets = <&sys_rst 6>;
592 phy-mode = "rgmii-id";
593 local-mac-address = [00 00 00 00 00 00];
594 socionext,syscon-phy-mode = <&soc_glue 0>;
595
596 mdio: mdio {
597 #address-cells = <1>;
598 #size-cells = <0>;
599 };
600 };
601
602 ahci: sata@65600000 {
603 compatible = "socionext,uniphier-pxs2-ahci",
604 "generic-ahci";
605 status = "disabled";
606 reg = <0x65600000 0x10000>;
607 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
608 clocks = <&sys_clk 28>;
609 resets = <&sys_rst 28>, <&ahci_rst 0>;
610 ports-implemented = <1>;
611 phys = <&ahci_phy>;
612 };
613
614 sata-controller@65700000 {
615 compatible = "socionext,uniphier-pxs2-ahci-glue",
616 "simple-mfd";
617 #address-cells = <1>;
618 #size-cells = <1>;
619 ranges = <0 0x65700000 0x100>;
620
621 ahci_rst: reset-controller@0 {
622 compatible = "socionext,uniphier-pxs2-ahci-reset";
623 reg = <0x0 0x4>;
624 clock-names = "link";
625 clocks = <&sys_clk 28>;
626 reset-names = "link";
627 resets = <&sys_rst 28>;
628 #reset-cells = <1>;
629 };
630
631 ahci_phy: sata-phy@10 {
632 compatible = "socionext,uniphier-pxs2-ahci-phy";
633 reg = <0x10 0x10>;
634 clock-names = "link";
635 clocks = <&sys_clk 28>;
636 reset-names = "link", "phy";
637 resets = <&sys_rst 28>, <&sys_rst 30>;
638 #phy-cells = <0>;
639 };
640 };
641
642 usb0: usb@65a00000 {
643 compatible = "socionext,uniphier-dwc3", "snps,dwc3";
644 status = "disabled";
645 reg = <0x65a00000 0xcd00>;
646 interrupt-names = "dwc_usb3";
647 interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
648 pinctrl-names = "default";
649 pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>;
650 clock-names = "ref", "bus_early", "suspend";
651 clocks = <&sys_clk 14>, <&sys_clk 14>, <&sys_clk 14>;
652 resets = <&usb0_rst 15>;
653 phys = <&usb0_hsphy0>, <&usb0_hsphy1>,
654 <&usb0_ssphy0>, <&usb0_ssphy1>;
655 dr_mode = "host";
656 };
657
658 usb-controller@65b00000 {
659 compatible = "socionext,uniphier-pxs2-dwc3-glue",
660 "simple-mfd";
661 #address-cells = <1>;
662 #size-cells = <1>;
663 ranges = <0 0x65b00000 0x400>;
664
665 usb0_rst: reset@0 {
666 compatible = "socionext,uniphier-pxs2-usb3-reset";
667 reg = <0x0 0x4>;
668 #reset-cells = <1>;
669 clock-names = "link";
670 clocks = <&sys_clk 14>;
671 reset-names = "link";
672 resets = <&sys_rst 14>;
673 };
674
675 usb0_vbus0: regulator@100 {
676 compatible = "socionext,uniphier-pxs2-usb3-regulator";
677 reg = <0x100 0x10>;
678 clock-names = "link";
679 clocks = <&sys_clk 14>;
680 reset-names = "link";
681 resets = <&sys_rst 14>;
682 };
683
684 usb0_vbus1: regulator@110 {
685 compatible = "socionext,uniphier-pxs2-usb3-regulator";
686 reg = <0x110 0x10>;
687 clock-names = "link";
688 clocks = <&sys_clk 14>;
689 reset-names = "link";
690 resets = <&sys_rst 14>;
691 };
692
693 usb0_hsphy0: hs-phy@200 {
694 compatible = "socionext,uniphier-pxs2-usb3-hsphy";
695 reg = <0x200 0x10>;
696 #phy-cells = <0>;
697 clock-names = "link", "phy";
698 clocks = <&sys_clk 14>, <&sys_clk 16>;
699 reset-names = "link", "phy";
700 resets = <&sys_rst 14>, <&sys_rst 16>;
701 vbus-supply = <&usb0_vbus0>;
702 };
703
704 usb0_hsphy1: hs-phy@210 {
705 compatible = "socionext,uniphier-pxs2-usb3-hsphy";
706 reg = <0x210 0x10>;
707 #phy-cells = <0>;
708 clock-names = "link", "phy";
709 clocks = <&sys_clk 14>, <&sys_clk 16>;
710 reset-names = "link", "phy";
711 resets = <&sys_rst 14>, <&sys_rst 16>;
712 vbus-supply = <&usb0_vbus1>;
713 };
714
715 usb0_ssphy0: ss-phy@300 {
716 compatible = "socionext,uniphier-pxs2-usb3-ssphy";
717 reg = <0x300 0x10>;
718 #phy-cells = <0>;
719 clock-names = "link", "phy";
720 clocks = <&sys_clk 14>, <&sys_clk 17>;
721 reset-names = "link", "phy";
722 resets = <&sys_rst 14>, <&sys_rst 17>;
723 vbus-supply = <&usb0_vbus0>;
724 };
725
726 usb0_ssphy1: ss-phy@310 {
727 compatible = "socionext,uniphier-pxs2-usb3-ssphy";
728 reg = <0x310 0x10>;
729 #phy-cells = <0>;
730 clock-names = "link", "phy";
731 clocks = <&sys_clk 14>, <&sys_clk 18>;
732 reset-names = "link", "phy";
733 resets = <&sys_rst 14>, <&sys_rst 18>;
734 vbus-supply = <&usb0_vbus1>;
735 };
736 };
737
738 usb1: usb@65c00000 {
739 compatible = "socionext,uniphier-dwc3", "snps,dwc3";
740 status = "disabled";
741 reg = <0x65c00000 0xcd00>;
742 interrupt-names = "dwc_usb3";
743 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
744 pinctrl-names = "default";
745 pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>;
746 clock-names = "ref", "bus_early", "suspend";
747 clocks = <&sys_clk 15>, <&sys_clk 15>, <&sys_clk 15>;
748 resets = <&usb1_rst 15>;
749 phys = <&usb1_hsphy0>, <&usb1_hsphy1>, <&usb1_ssphy0>;
750 dr_mode = "host";
751 };
752
753 usb-controller@65d00000 {
754 compatible = "socionext,uniphier-pxs2-dwc3-glue",
755 "simple-mfd";
756 #address-cells = <1>;
757 #size-cells = <1>;
758 ranges = <0 0x65d00000 0x400>;
759
760 usb1_rst: reset@0 {
761 compatible = "socionext,uniphier-pxs2-usb3-reset";
762 reg = <0x0 0x4>;
763 #reset-cells = <1>;
764 clock-names = "link";
765 clocks = <&sys_clk 15>;
766 reset-names = "link";
767 resets = <&sys_rst 15>;
768 };
769
770 usb1_vbus0: regulator@100 {
771 compatible = "socionext,uniphier-pxs2-usb3-regulator";
772 reg = <0x100 0x10>;
773 clock-names = "link";
774 clocks = <&sys_clk 15>;
775 reset-names = "link";
776 resets = <&sys_rst 15>;
777 };
778
779 usb1_vbus1: regulator@110 {
780 compatible = "socionext,uniphier-pxs2-usb3-regulator";
781 reg = <0x110 0x10>;
782 clock-names = "link";
783 clocks = <&sys_clk 15>;
784 reset-names = "link";
785 resets = <&sys_rst 15>;
786 };
787
788 usb1_hsphy0: hs-phy@200 {
789 compatible = "socionext,uniphier-pxs2-usb3-hsphy";
790 reg = <0x200 0x10>;
791 #phy-cells = <0>;
792 clock-names = "link", "phy";
793 clocks = <&sys_clk 15>, <&sys_clk 20>;
794 reset-names = "link", "phy";
795 resets = <&sys_rst 15>, <&sys_rst 20>;
796 vbus-supply = <&usb1_vbus0>;
797 };
798
799 usb1_hsphy1: hs-phy@210 {
800 compatible = "socionext,uniphier-pxs2-usb3-hsphy";
801 reg = <0x210 0x10>;
802 #phy-cells = <0>;
803 clock-names = "link", "phy";
804 clocks = <&sys_clk 15>, <&sys_clk 20>;
805 reset-names = "link", "phy";
806 resets = <&sys_rst 15>, <&sys_rst 20>;
807 vbus-supply = <&usb1_vbus1>;
808 };
809
810 usb1_ssphy0: ss-phy@300 {
811 compatible = "socionext,uniphier-pxs2-usb3-ssphy";
812 reg = <0x300 0x10>;
813 #phy-cells = <0>;
814 clock-names = "link", "phy";
815 clocks = <&sys_clk 15>, <&sys_clk 21>;
816 reset-names = "link", "phy";
817 resets = <&sys_rst 15>, <&sys_rst 21>;
818 vbus-supply = <&usb1_vbus0>;
819 };
820 };
821
822 nand: nand-controller@68000000 {
823 compatible = "socionext,uniphier-denali-nand-v5b";
824 status = "disabled";
825 reg-names = "nand_data", "denali_reg";
826 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
827 #address-cells = <1>;
828 #size-cells = <0>;
829 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
830 pinctrl-names = "default";
831 pinctrl-0 = <&pinctrl_nand>;
832 clock-names = "nand", "nand_x", "ecc";
833 clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>;
834 reset-names = "nand", "reg";
835 resets = <&sys_rst 2>, <&sys_rst 2>;
836 };
837 };
838};
839
840#include "uniphier-pinctrl.dtsi"
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2//
3// Device Tree Source for UniPhier PXs2 SoC
4//
5// Copyright (C) 2015-2016 Socionext Inc.
6// Author: Masahiro Yamada <yamada.masahiro@socionext.com>
7
8#include <dt-bindings/gpio/uniphier-gpio.h>
9#include <dt-bindings/thermal/thermal.h>
10
11/ {
12 compatible = "socionext,uniphier-pxs2";
13 #address-cells = <1>;
14 #size-cells = <1>;
15
16 cpus {
17 #address-cells = <1>;
18 #size-cells = <0>;
19
20 cpu0: cpu@0 {
21 device_type = "cpu";
22 compatible = "arm,cortex-a9";
23 reg = <0>;
24 clocks = <&sys_clk 32>;
25 enable-method = "psci";
26 next-level-cache = <&l2>;
27 operating-points-v2 = <&cpu_opp>;
28 #cooling-cells = <2>;
29 };
30
31 cpu1: cpu@1 {
32 device_type = "cpu";
33 compatible = "arm,cortex-a9";
34 reg = <1>;
35 clocks = <&sys_clk 32>;
36 enable-method = "psci";
37 next-level-cache = <&l2>;
38 operating-points-v2 = <&cpu_opp>;
39 #cooling-cells = <2>;
40 };
41
42 cpu2: cpu@2 {
43 device_type = "cpu";
44 compatible = "arm,cortex-a9";
45 reg = <2>;
46 clocks = <&sys_clk 32>;
47 enable-method = "psci";
48 next-level-cache = <&l2>;
49 operating-points-v2 = <&cpu_opp>;
50 #cooling-cells = <2>;
51 };
52
53 cpu3: cpu@3 {
54 device_type = "cpu";
55 compatible = "arm,cortex-a9";
56 reg = <3>;
57 clocks = <&sys_clk 32>;
58 enable-method = "psci";
59 next-level-cache = <&l2>;
60 operating-points-v2 = <&cpu_opp>;
61 #cooling-cells = <2>;
62 };
63 };
64
65 cpu_opp: opp-table {
66 compatible = "operating-points-v2";
67 opp-shared;
68
69 opp-100000000 {
70 opp-hz = /bits/ 64 <100000000>;
71 clock-latency-ns = <300>;
72 };
73 opp-150000000 {
74 opp-hz = /bits/ 64 <150000000>;
75 clock-latency-ns = <300>;
76 };
77 opp-200000000 {
78 opp-hz = /bits/ 64 <200000000>;
79 clock-latency-ns = <300>;
80 };
81 opp-300000000 {
82 opp-hz = /bits/ 64 <300000000>;
83 clock-latency-ns = <300>;
84 };
85 opp-400000000 {
86 opp-hz = /bits/ 64 <400000000>;
87 clock-latency-ns = <300>;
88 };
89 opp-600000000 {
90 opp-hz = /bits/ 64 <600000000>;
91 clock-latency-ns = <300>;
92 };
93 opp-800000000 {
94 opp-hz = /bits/ 64 <800000000>;
95 clock-latency-ns = <300>;
96 };
97 opp-1200000000 {
98 opp-hz = /bits/ 64 <1200000000>;
99 clock-latency-ns = <300>;
100 };
101 };
102
103 psci {
104 compatible = "arm,psci-0.2";
105 method = "smc";
106 };
107
108 clocks {
109 refclk: ref {
110 compatible = "fixed-clock";
111 #clock-cells = <0>;
112 clock-frequency = <25000000>;
113 };
114
115 arm_timer_clk: arm-timer {
116 #clock-cells = <0>;
117 compatible = "fixed-clock";
118 clock-frequency = <50000000>;
119 };
120 };
121
122 thermal-zones {
123 cpu-thermal {
124 polling-delay-passive = <250>; /* 250ms */
125 polling-delay = <1000>; /* 1000ms */
126 thermal-sensors = <&pvtctl>;
127
128 trips {
129 cpu_crit: cpu-crit {
130 temperature = <95000>; /* 95C */
131 hysteresis = <2000>;
132 type = "critical";
133 };
134 cpu_alert: cpu-alert {
135 temperature = <85000>; /* 85C */
136 hysteresis = <2000>;
137 type = "passive";
138 };
139 };
140
141 cooling-maps {
142 map {
143 trip = <&cpu_alert>;
144 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
145 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
146 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
147 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
148 };
149 };
150 };
151 };
152
153 soc {
154 compatible = "simple-bus";
155 #address-cells = <1>;
156 #size-cells = <1>;
157 ranges;
158 interrupt-parent = <&intc>;
159
160 l2: l2-cache@500c0000 {
161 compatible = "socionext,uniphier-system-cache";
162 reg = <0x500c0000 0x2000>, <0x503c0100 0x8>,
163 <0x506c0000 0x400>;
164 interrupts = <0 174 4>, <0 175 4>, <0 190 4>, <0 191 4>;
165 cache-unified;
166 cache-size = <(1280 * 1024)>;
167 cache-sets = <512>;
168 cache-line-size = <128>;
169 cache-level = <2>;
170 };
171
172 spi0: spi@54006000 {
173 compatible = "socionext,uniphier-scssi";
174 status = "disabled";
175 reg = <0x54006000 0x100>;
176 interrupts = <0 39 4>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&pinctrl_spi0>;
179 clocks = <&peri_clk 11>;
180 resets = <&peri_rst 11>;
181 };
182
183 spi1: spi@54006100 {
184 compatible = "socionext,uniphier-scssi";
185 status = "disabled";
186 reg = <0x54006100 0x100>;
187 interrupts = <0 216 4>;
188 pinctrl-names = "default";
189 pinctrl-0 = <&pinctrl_spi1>;
190 clocks = <&peri_clk 11>;
191 resets = <&peri_rst 11>;
192 };
193
194 serial0: serial@54006800 {
195 compatible = "socionext,uniphier-uart";
196 status = "disabled";
197 reg = <0x54006800 0x40>;
198 interrupts = <0 33 4>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&pinctrl_uart0>;
201 clocks = <&peri_clk 0>;
202 resets = <&peri_rst 0>;
203 };
204
205 serial1: serial@54006900 {
206 compatible = "socionext,uniphier-uart";
207 status = "disabled";
208 reg = <0x54006900 0x40>;
209 interrupts = <0 35 4>;
210 pinctrl-names = "default";
211 pinctrl-0 = <&pinctrl_uart1>;
212 clocks = <&peri_clk 1>;
213 resets = <&peri_rst 1>;
214 };
215
216 serial2: serial@54006a00 {
217 compatible = "socionext,uniphier-uart";
218 status = "disabled";
219 reg = <0x54006a00 0x40>;
220 interrupts = <0 37 4>;
221 pinctrl-names = "default";
222 pinctrl-0 = <&pinctrl_uart2>;
223 clocks = <&peri_clk 2>;
224 resets = <&peri_rst 2>;
225 };
226
227 serial3: serial@54006b00 {
228 compatible = "socionext,uniphier-uart";
229 status = "disabled";
230 reg = <0x54006b00 0x40>;
231 interrupts = <0 177 4>;
232 pinctrl-names = "default";
233 pinctrl-0 = <&pinctrl_uart3>;
234 clocks = <&peri_clk 3>;
235 resets = <&peri_rst 3>;
236 };
237
238 gpio: gpio@55000000 {
239 compatible = "socionext,uniphier-gpio";
240 reg = <0x55000000 0x200>;
241 interrupt-parent = <&aidet>;
242 interrupt-controller;
243 #interrupt-cells = <2>;
244 gpio-controller;
245 #gpio-cells = <2>;
246 gpio-ranges = <&pinctrl 0 0 0>,
247 <&pinctrl 96 0 0>;
248 gpio-ranges-group-names = "gpio_range0",
249 "gpio_range1";
250 ngpios = <232>;
251 socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
252 <21 217 3>;
253 };
254
255 audio@56000000 {
256 compatible = "socionext,uniphier-pxs2-aio";
257 reg = <0x56000000 0x80000>;
258 interrupts = <0 144 4>;
259 pinctrl-names = "default";
260 pinctrl-0 = <&pinctrl_ain1>,
261 <&pinctrl_ain2>,
262 <&pinctrl_ainiec1>,
263 <&pinctrl_aout2>,
264 <&pinctrl_aout3>,
265 <&pinctrl_aoutiec1>,
266 <&pinctrl_aoutiec2>;
267 clock-names = "aio";
268 clocks = <&sys_clk 40>;
269 reset-names = "aio";
270 resets = <&sys_rst 40>;
271 #sound-dai-cells = <1>;
272 socionext,syscon = <&soc_glue>;
273
274 i2s_port0: port@0 {
275 i2s_hdmi: endpoint {
276 };
277 };
278
279 i2s_port1: port@1 {
280 i2s_line: endpoint {
281 };
282 };
283
284 i2s_port2: port@2 {
285 i2s_aux: endpoint {
286 };
287 };
288
289 spdif_port0: port@3 {
290 spdif_hiecout1: endpoint {
291 };
292 };
293
294 spdif_port1: port@4 {
295 spdif_iecout1: endpoint {
296 };
297 };
298
299 comp_spdif_port0: port@5 {
300 comp_spdif_hiecout1: endpoint {
301 };
302 };
303
304 comp_spdif_port1: port@6 {
305 comp_spdif_iecout1: endpoint {
306 };
307 };
308 };
309
310 i2c0: i2c@58780000 {
311 compatible = "socionext,uniphier-fi2c";
312 status = "disabled";
313 reg = <0x58780000 0x80>;
314 #address-cells = <1>;
315 #size-cells = <0>;
316 interrupts = <0 41 4>;
317 pinctrl-names = "default";
318 pinctrl-0 = <&pinctrl_i2c0>;
319 clocks = <&peri_clk 4>;
320 resets = <&peri_rst 4>;
321 clock-frequency = <100000>;
322 };
323
324 i2c1: i2c@58781000 {
325 compatible = "socionext,uniphier-fi2c";
326 status = "disabled";
327 reg = <0x58781000 0x80>;
328 #address-cells = <1>;
329 #size-cells = <0>;
330 interrupts = <0 42 4>;
331 pinctrl-names = "default";
332 pinctrl-0 = <&pinctrl_i2c1>;
333 clocks = <&peri_clk 5>;
334 resets = <&peri_rst 5>;
335 clock-frequency = <100000>;
336 };
337
338 i2c2: i2c@58782000 {
339 compatible = "socionext,uniphier-fi2c";
340 status = "disabled";
341 reg = <0x58782000 0x80>;
342 #address-cells = <1>;
343 #size-cells = <0>;
344 interrupts = <0 43 4>;
345 pinctrl-names = "default";
346 pinctrl-0 = <&pinctrl_i2c2>;
347 clocks = <&peri_clk 6>;
348 resets = <&peri_rst 6>;
349 clock-frequency = <100000>;
350 };
351
352 i2c3: i2c@58783000 {
353 compatible = "socionext,uniphier-fi2c";
354 status = "disabled";
355 reg = <0x58783000 0x80>;
356 #address-cells = <1>;
357 #size-cells = <0>;
358 interrupts = <0 44 4>;
359 pinctrl-names = "default";
360 pinctrl-0 = <&pinctrl_i2c3>;
361 clocks = <&peri_clk 7>;
362 resets = <&peri_rst 7>;
363 clock-frequency = <100000>;
364 };
365
366 /* chip-internal connection for DMD */
367 i2c4: i2c@58784000 {
368 compatible = "socionext,uniphier-fi2c";
369 reg = <0x58784000 0x80>;
370 #address-cells = <1>;
371 #size-cells = <0>;
372 interrupts = <0 45 4>;
373 clocks = <&peri_clk 8>;
374 resets = <&peri_rst 8>;
375 clock-frequency = <400000>;
376 };
377
378 /* chip-internal connection for STM */
379 i2c5: i2c@58785000 {
380 compatible = "socionext,uniphier-fi2c";
381 reg = <0x58785000 0x80>;
382 #address-cells = <1>;
383 #size-cells = <0>;
384 interrupts = <0 25 4>;
385 clocks = <&peri_clk 9>;
386 resets = <&peri_rst 9>;
387 clock-frequency = <400000>;
388 };
389
390 /* chip-internal connection for HDMI */
391 i2c6: i2c@58786000 {
392 compatible = "socionext,uniphier-fi2c";
393 reg = <0x58786000 0x80>;
394 #address-cells = <1>;
395 #size-cells = <0>;
396 interrupts = <0 26 4>;
397 clocks = <&peri_clk 10>;
398 resets = <&peri_rst 10>;
399 clock-frequency = <400000>;
400 };
401
402 system_bus: system-bus@58c00000 {
403 compatible = "socionext,uniphier-system-bus";
404 status = "disabled";
405 reg = <0x58c00000 0x400>;
406 #address-cells = <2>;
407 #size-cells = <1>;
408 pinctrl-names = "default";
409 pinctrl-0 = <&pinctrl_system_bus>;
410 };
411
412 smpctrl@59801000 {
413 compatible = "socionext,uniphier-smpctrl";
414 reg = <0x59801000 0x400>;
415 };
416
417 sdctrl@59810000 {
418 compatible = "socionext,uniphier-pxs2-sdctrl",
419 "simple-mfd", "syscon";
420 reg = <0x59810000 0x400>;
421
422 sd_clk: clock {
423 compatible = "socionext,uniphier-pxs2-sd-clock";
424 #clock-cells = <1>;
425 };
426
427 sd_rst: reset {
428 compatible = "socionext,uniphier-pxs2-sd-reset";
429 #reset-cells = <1>;
430 };
431 };
432
433 perictrl@59820000 {
434 compatible = "socionext,uniphier-pxs2-perictrl",
435 "simple-mfd", "syscon";
436 reg = <0x59820000 0x200>;
437
438 peri_clk: clock {
439 compatible = "socionext,uniphier-pxs2-peri-clock";
440 #clock-cells = <1>;
441 };
442
443 peri_rst: reset {
444 compatible = "socionext,uniphier-pxs2-peri-reset";
445 #reset-cells = <1>;
446 };
447 };
448
449 emmc: sdhc@5a000000 {
450 compatible = "socionext,uniphier-sd-v3.1.1";
451 status = "disabled";
452 reg = <0x5a000000 0x800>;
453 interrupts = <0 78 4>;
454 pinctrl-names = "default";
455 pinctrl-0 = <&pinctrl_emmc>;
456 clocks = <&sd_clk 1>;
457 reset-names = "host", "hw";
458 resets = <&sd_rst 1>, <&sd_rst 6>;
459 bus-width = <8>;
460 cap-mmc-highspeed;
461 cap-mmc-hw-reset;
462 non-removable;
463 };
464
465 sd: sdhc@5a400000 {
466 compatible = "socionext,uniphier-sd-v3.1.1";
467 status = "disabled";
468 reg = <0x5a400000 0x800>;
469 interrupts = <0 76 4>;
470 pinctrl-names = "default", "uhs";
471 pinctrl-0 = <&pinctrl_sd>;
472 pinctrl-1 = <&pinctrl_sd_uhs>;
473 clocks = <&sd_clk 0>;
474 reset-names = "host";
475 resets = <&sd_rst 0>;
476 bus-width = <4>;
477 cap-sd-highspeed;
478 sd-uhs-sdr12;
479 sd-uhs-sdr25;
480 sd-uhs-sdr50;
481 };
482
483 soc_glue: soc-glue@5f800000 {
484 compatible = "socionext,uniphier-pxs2-soc-glue",
485 "simple-mfd", "syscon";
486 reg = <0x5f800000 0x2000>;
487
488 pinctrl: pinctrl {
489 compatible = "socionext,uniphier-pxs2-pinctrl";
490 };
491 };
492
493 soc-glue@5f900000 {
494 compatible = "socionext,uniphier-pxs2-soc-glue-debug",
495 "simple-mfd";
496 #address-cells = <1>;
497 #size-cells = <1>;
498 ranges = <0 0x5f900000 0x2000>;
499
500 efuse@100 {
501 compatible = "socionext,uniphier-efuse";
502 reg = <0x100 0x28>;
503 };
504
505 efuse@200 {
506 compatible = "socionext,uniphier-efuse";
507 reg = <0x200 0x58>;
508 };
509 };
510
511 aidet: aidet@5fc20000 {
512 compatible = "socionext,uniphier-pxs2-aidet";
513 reg = <0x5fc20000 0x200>;
514 interrupt-controller;
515 #interrupt-cells = <2>;
516 };
517
518 timer@60000200 {
519 compatible = "arm,cortex-a9-global-timer";
520 reg = <0x60000200 0x20>;
521 interrupts = <1 11 0xf04>;
522 clocks = <&arm_timer_clk>;
523 };
524
525 timer@60000600 {
526 compatible = "arm,cortex-a9-twd-timer";
527 reg = <0x60000600 0x20>;
528 interrupts = <1 13 0xf04>;
529 clocks = <&arm_timer_clk>;
530 };
531
532 intc: interrupt-controller@60001000 {
533 compatible = "arm,cortex-a9-gic";
534 reg = <0x60001000 0x1000>,
535 <0x60000100 0x100>;
536 #interrupt-cells = <3>;
537 interrupt-controller;
538 };
539
540 sysctrl@61840000 {
541 compatible = "socionext,uniphier-pxs2-sysctrl",
542 "simple-mfd", "syscon";
543 reg = <0x61840000 0x10000>;
544
545 sys_clk: clock {
546 compatible = "socionext,uniphier-pxs2-clock";
547 #clock-cells = <1>;
548 };
549
550 sys_rst: reset {
551 compatible = "socionext,uniphier-pxs2-reset";
552 #reset-cells = <1>;
553 };
554
555 pvtctl: pvtctl {
556 compatible = "socionext,uniphier-pxs2-thermal";
557 interrupts = <0 3 4>;
558 #thermal-sensor-cells = <0>;
559 socionext,tmod-calibration = <0x0f86 0x6844>;
560 };
561 };
562
563 eth: ethernet@65000000 {
564 compatible = "socionext,uniphier-pxs2-ave4";
565 status = "disabled";
566 reg = <0x65000000 0x8500>;
567 interrupts = <0 66 4>;
568 pinctrl-names = "default";
569 pinctrl-0 = <&pinctrl_ether_rgmii>;
570 clock-names = "ether";
571 clocks = <&sys_clk 6>;
572 reset-names = "ether";
573 resets = <&sys_rst 6>;
574 phy-mode = "rgmii";
575 local-mac-address = [00 00 00 00 00 00];
576 socionext,syscon-phy-mode = <&soc_glue 0>;
577
578 mdio: mdio {
579 #address-cells = <1>;
580 #size-cells = <0>;
581 };
582 };
583
584 usb0: usb@65a00000 {
585 compatible = "socionext,uniphier-dwc3", "snps,dwc3";
586 status = "disabled";
587 reg = <0x65a00000 0xcd00>;
588 interrupt-names = "host", "peripheral";
589 interrupts = <0 134 4>, <0 135 4>;
590 pinctrl-names = "default";
591 pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>;
592 clock-names = "ref", "bus_early", "suspend";
593 clocks = <&sys_clk 14>, <&sys_clk 14>, <&sys_clk 14>;
594 resets = <&usb0_rst 15>;
595 phys = <&usb0_hsphy0>, <&usb0_hsphy1>,
596 <&usb0_ssphy0>, <&usb0_ssphy1>;
597 dr_mode = "host";
598 };
599
600 usb-glue@65b00000 {
601 compatible = "socionext,uniphier-pxs2-dwc3-glue",
602 "simple-mfd";
603 #address-cells = <1>;
604 #size-cells = <1>;
605 ranges = <0 0x65b00000 0x400>;
606
607 usb0_rst: reset@0 {
608 compatible = "socionext,uniphier-pxs2-usb3-reset";
609 reg = <0x0 0x4>;
610 #reset-cells = <1>;
611 clock-names = "link";
612 clocks = <&sys_clk 14>;
613 reset-names = "link";
614 resets = <&sys_rst 14>;
615 };
616
617 usb0_vbus0: regulator@100 {
618 compatible = "socionext,uniphier-pxs2-usb3-regulator";
619 reg = <0x100 0x10>;
620 clock-names = "link";
621 clocks = <&sys_clk 14>;
622 reset-names = "link";
623 resets = <&sys_rst 14>;
624 };
625
626 usb0_vbus1: regulator@110 {
627 compatible = "socionext,uniphier-pxs2-usb3-regulator";
628 reg = <0x110 0x10>;
629 clock-names = "link";
630 clocks = <&sys_clk 14>;
631 reset-names = "link";
632 resets = <&sys_rst 14>;
633 };
634
635 usb0_hsphy0: hs-phy@200 {
636 compatible = "socionext,uniphier-pxs2-usb3-hsphy";
637 reg = <0x200 0x10>;
638 #phy-cells = <0>;
639 clock-names = "link", "phy";
640 clocks = <&sys_clk 14>, <&sys_clk 16>;
641 reset-names = "link", "phy";
642 resets = <&sys_rst 14>, <&sys_rst 16>;
643 vbus-supply = <&usb0_vbus0>;
644 };
645
646 usb0_hsphy1: hs-phy@210 {
647 compatible = "socionext,uniphier-pxs2-usb3-hsphy";
648 reg = <0x210 0x10>;
649 #phy-cells = <0>;
650 clock-names = "link", "phy";
651 clocks = <&sys_clk 14>, <&sys_clk 16>;
652 reset-names = "link", "phy";
653 resets = <&sys_rst 14>, <&sys_rst 16>;
654 vbus-supply = <&usb0_vbus1>;
655 };
656
657 usb0_ssphy0: ss-phy@300 {
658 compatible = "socionext,uniphier-pxs2-usb3-ssphy";
659 reg = <0x300 0x10>;
660 #phy-cells = <0>;
661 clock-names = "link", "phy";
662 clocks = <&sys_clk 14>, <&sys_clk 17>;
663 reset-names = "link", "phy";
664 resets = <&sys_rst 14>, <&sys_rst 17>;
665 vbus-supply = <&usb0_vbus0>;
666 };
667
668 usb0_ssphy1: ss-phy@310 {
669 compatible = "socionext,uniphier-pxs2-usb3-ssphy";
670 reg = <0x310 0x10>;
671 #phy-cells = <0>;
672 clock-names = "link", "phy";
673 clocks = <&sys_clk 14>, <&sys_clk 18>;
674 reset-names = "link", "phy";
675 resets = <&sys_rst 14>, <&sys_rst 18>;
676 vbus-supply = <&usb0_vbus1>;
677 };
678 };
679
680 usb1: usb@65c00000 {
681 compatible = "socionext,uniphier-dwc3", "snps,dwc3";
682 status = "disabled";
683 reg = <0x65c00000 0xcd00>;
684 interrupt-names = "host", "peripheral";
685 interrupts = <0 137 4>, <0 138 4>;
686 pinctrl-names = "default";
687 pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>;
688 clock-names = "ref", "bus_early", "suspend";
689 clocks = <&sys_clk 15>, <&sys_clk 15>, <&sys_clk 15>;
690 resets = <&usb1_rst 15>;
691 phys = <&usb1_hsphy0>, <&usb1_hsphy1>, <&usb1_ssphy0>;
692 dr_mode = "host";
693 };
694
695 usb-glue@65d00000 {
696 compatible = "socionext,uniphier-pxs2-dwc3-glue",
697 "simple-mfd";
698 #address-cells = <1>;
699 #size-cells = <1>;
700 ranges = <0 0x65d00000 0x400>;
701
702 usb1_rst: reset@0 {
703 compatible = "socionext,uniphier-pxs2-usb3-reset";
704 reg = <0x0 0x4>;
705 #reset-cells = <1>;
706 clock-names = "link";
707 clocks = <&sys_clk 15>;
708 reset-names = "link";
709 resets = <&sys_rst 15>;
710 };
711
712 usb1_vbus0: regulator@100 {
713 compatible = "socionext,uniphier-pxs2-usb3-regulator";
714 reg = <0x100 0x10>;
715 clock-names = "link";
716 clocks = <&sys_clk 15>;
717 reset-names = "link";
718 resets = <&sys_rst 15>;
719 };
720
721 usb1_vbus1: regulator@110 {
722 compatible = "socionext,uniphier-pxs2-usb3-regulator";
723 reg = <0x110 0x10>;
724 clock-names = "link";
725 clocks = <&sys_clk 15>;
726 reset-names = "link";
727 resets = <&sys_rst 15>;
728 };
729
730 usb1_hsphy0: hs-phy@200 {
731 compatible = "socionext,uniphier-pxs2-usb3-hsphy";
732 reg = <0x200 0x10>;
733 #phy-cells = <0>;
734 clock-names = "link", "phy";
735 clocks = <&sys_clk 15>, <&sys_clk 20>;
736 reset-names = "link", "phy";
737 resets = <&sys_rst 15>, <&sys_rst 20>;
738 vbus-supply = <&usb1_vbus0>;
739 };
740
741 usb1_hsphy1: hs-phy@210 {
742 compatible = "socionext,uniphier-pxs2-usb3-hsphy";
743 reg = <0x210 0x10>;
744 #phy-cells = <0>;
745 clock-names = "link", "phy";
746 clocks = <&sys_clk 15>, <&sys_clk 20>;
747 reset-names = "link", "phy";
748 resets = <&sys_rst 15>, <&sys_rst 20>;
749 vbus-supply = <&usb1_vbus1>;
750 };
751
752 usb1_ssphy0: ss-phy@300 {
753 compatible = "socionext,uniphier-pxs2-usb3-ssphy";
754 reg = <0x300 0x10>;
755 #phy-cells = <0>;
756 clock-names = "link", "phy";
757 clocks = <&sys_clk 15>, <&sys_clk 21>;
758 reset-names = "link", "phy";
759 resets = <&sys_rst 15>, <&sys_rst 21>;
760 vbus-supply = <&usb1_vbus0>;
761 };
762 };
763
764 nand: nand@68000000 {
765 compatible = "socionext,uniphier-denali-nand-v5b";
766 status = "disabled";
767 reg-names = "nand_data", "denali_reg";
768 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
769 #address-cells = <1>;
770 #size-cells = <0>;
771 interrupts = <0 65 4>;
772 pinctrl-names = "default";
773 pinctrl-0 = <&pinctrl_nand>;
774 clock-names = "nand", "nand_x", "ecc";
775 clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>;
776 resets = <&sys_rst 2>;
777 };
778 };
779};
780
781#include "uniphier-pinctrl.dtsi"