1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
3 // Device Tree Source for UniPhier LD20 SoC
5 // Copyright (C) 2015-2016 Socionext Inc.
6 // Author: Masahiro Yamada <yamada.masahiro@socionext.com>
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/gpio/uniphier-gpio.h>
10 #include <dt-bindings/thermal/thermal.h>
13 compatible = "socionext,uniphier-ld20";
16 interrupt-parent = <&gic>;
44 compatible = "arm,cortex-a72";
46 clocks = <&sys_clk 32>;
47 enable-method = "psci";
48 operating-points-v2 = <&cluster0_opp>;
54 compatible = "arm,cortex-a72";
56 clocks = <&sys_clk 32>;
57 enable-method = "psci";
58 operating-points-v2 = <&cluster0_opp>;
64 compatible = "arm,cortex-a53";
66 clocks = <&sys_clk 33>;
67 enable-method = "psci";
68 operating-points-v2 = <&cluster1_opp>;
74 compatible = "arm,cortex-a53";
76 clocks = <&sys_clk 33>;
77 enable-method = "psci";
78 operating-points-v2 = <&cluster1_opp>;
83 cluster0_opp: opp-table0 {
84 compatible = "operating-points-v2";
88 opp-hz = /bits/ 64 <250000000>;
89 clock-latency-ns = <300>;
92 opp-hz = /bits/ 64 <275000000>;
93 clock-latency-ns = <300>;
96 opp-hz = /bits/ 64 <500000000>;
97 clock-latency-ns = <300>;
100 opp-hz = /bits/ 64 <550000000>;
101 clock-latency-ns = <300>;
104 opp-hz = /bits/ 64 <666667000>;
105 clock-latency-ns = <300>;
108 opp-hz = /bits/ 64 <733334000>;
109 clock-latency-ns = <300>;
112 opp-hz = /bits/ 64 <1000000000>;
113 clock-latency-ns = <300>;
116 opp-hz = /bits/ 64 <1100000000>;
117 clock-latency-ns = <300>;
121 cluster1_opp: opp-table1 {
122 compatible = "operating-points-v2";
126 opp-hz = /bits/ 64 <250000000>;
127 clock-latency-ns = <300>;
130 opp-hz = /bits/ 64 <275000000>;
131 clock-latency-ns = <300>;
134 opp-hz = /bits/ 64 <500000000>;
135 clock-latency-ns = <300>;
138 opp-hz = /bits/ 64 <550000000>;
139 clock-latency-ns = <300>;
142 opp-hz = /bits/ 64 <666667000>;
143 clock-latency-ns = <300>;
146 opp-hz = /bits/ 64 <733334000>;
147 clock-latency-ns = <300>;
150 opp-hz = /bits/ 64 <1000000000>;
151 clock-latency-ns = <300>;
154 opp-hz = /bits/ 64 <1100000000>;
155 clock-latency-ns = <300>;
160 compatible = "arm,psci-1.0";
166 compatible = "fixed-clock";
168 clock-frequency = <25000000>;
172 emmc_pwrseq: emmc-pwrseq {
173 compatible = "mmc-pwrseq-emmc";
174 reset-gpios = <&gpio UNIPHIER_GPIO_PORT(3, 2) GPIO_ACTIVE_LOW>;
178 compatible = "arm,armv8-timer";
179 interrupts = <1 13 4>,
187 polling-delay-passive = <250>; /* 250ms */
188 polling-delay = <1000>; /* 1000ms */
189 thermal-sensors = <&pvtctl>;
193 temperature = <110000>; /* 110C */
197 cpu_alert: cpu-alert {
198 temperature = <100000>; /* 100C */
207 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
208 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
209 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
210 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
217 #address-cells = <2>;
221 secure-memory@81000000 {
222 reg = <0x0 0x81000000 0x0 0x01000000>;
228 compatible = "simple-bus";
229 #address-cells = <1>;
231 ranges = <0 0 0 0xffffffff>;
234 compatible = "socionext,uniphier-scssi";
236 reg = <0x54006000 0x100>;
237 interrupts = <0 39 4>;
238 pinctrl-names = "default";
239 pinctrl-0 = <&pinctrl_spi0>;
240 clocks = <&peri_clk 11>;
241 resets = <&peri_rst 11>;
245 compatible = "socionext,uniphier-scssi";
247 reg = <0x54006100 0x100>;
248 interrupts = <0 216 4>;
249 pinctrl-names = "default";
250 pinctrl-0 = <&pinctrl_spi1>;
251 clocks = <&peri_clk 11>;
252 resets = <&peri_rst 11>;
256 compatible = "socionext,uniphier-scssi";
258 reg = <0x54006200 0x100>;
259 interrupts = <0 229 4>;
260 pinctrl-names = "default";
261 pinctrl-0 = <&pinctrl_spi2>;
262 clocks = <&peri_clk 11>;
263 resets = <&peri_rst 11>;
267 compatible = "socionext,uniphier-scssi";
269 reg = <0x54006300 0x100>;
270 interrupts = <0 230 4>;
271 pinctrl-names = "default";
272 pinctrl-0 = <&pinctrl_spi3>;
273 clocks = <&peri_clk 11>;
274 resets = <&peri_rst 11>;
277 serial0: serial@54006800 {
278 compatible = "socionext,uniphier-uart";
280 reg = <0x54006800 0x40>;
281 interrupts = <0 33 4>;
282 pinctrl-names = "default";
283 pinctrl-0 = <&pinctrl_uart0>;
284 clocks = <&peri_clk 0>;
285 resets = <&peri_rst 0>;
288 serial1: serial@54006900 {
289 compatible = "socionext,uniphier-uart";
291 reg = <0x54006900 0x40>;
292 interrupts = <0 35 4>;
293 pinctrl-names = "default";
294 pinctrl-0 = <&pinctrl_uart1>;
295 clocks = <&peri_clk 1>;
296 resets = <&peri_rst 1>;
299 serial2: serial@54006a00 {
300 compatible = "socionext,uniphier-uart";
302 reg = <0x54006a00 0x40>;
303 interrupts = <0 37 4>;
304 pinctrl-names = "default";
305 pinctrl-0 = <&pinctrl_uart2>;
306 clocks = <&peri_clk 2>;
307 resets = <&peri_rst 2>;
310 serial3: serial@54006b00 {
311 compatible = "socionext,uniphier-uart";
313 reg = <0x54006b00 0x40>;
314 interrupts = <0 177 4>;
315 pinctrl-names = "default";
316 pinctrl-0 = <&pinctrl_uart3>;
317 clocks = <&peri_clk 3>;
318 resets = <&peri_rst 3>;
321 gpio: gpio@55000000 {
322 compatible = "socionext,uniphier-gpio";
323 reg = <0x55000000 0x200>;
324 interrupt-parent = <&aidet>;
325 interrupt-controller;
326 #interrupt-cells = <2>;
329 gpio-ranges = <&pinctrl 0 0 0>,
332 gpio-ranges-group-names = "gpio_range0",
336 socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
341 compatible = "socionext,uniphier-ld20-aio";
342 reg = <0x56000000 0x80000>;
343 interrupts = <0 144 4>;
344 pinctrl-names = "default";
345 pinctrl-0 = <&pinctrl_aout1>,
348 clocks = <&sys_clk 40>;
350 resets = <&sys_rst 40>;
351 #sound-dai-cells = <1>;
352 socionext,syscon = <&soc_glue>;
360 i2s_pcmin2: endpoint {
367 remote-endpoint = <&evea_line>;
372 i2s_hpcmout1: endpoint {
379 remote-endpoint = <&evea_hp>;
383 spdif_port0: port@5 {
384 spdif_hiecout1: endpoint {
389 i2s_epcmout2: endpoint {
394 i2s_epcmout3: endpoint {
398 comp_spdif_port0: port@8 {
399 comp_spdif_hiecout1: endpoint {
405 compatible = "socionext,uniphier-evea";
406 reg = <0x57900000 0x1000>;
407 clock-names = "evea", "exiv";
408 clocks = <&sys_clk 41>, <&sys_clk 42>;
409 reset-names = "evea", "exiv", "adamv";
410 resets = <&sys_rst 41>, <&sys_rst 42>, <&adamv_rst 0>;
411 #sound-dai-cells = <1>;
414 evea_line: endpoint {
415 remote-endpoint = <&i2s_line>;
421 remote-endpoint = <&i2s_hp>;
427 compatible = "socionext,uniphier-ld20-adamv",
428 "simple-mfd", "syscon";
429 reg = <0x57920000 0x1000>;
432 compatible = "socionext,uniphier-ld20-adamv-reset";
438 compatible = "socionext,uniphier-fi2c";
440 reg = <0x58780000 0x80>;
441 #address-cells = <1>;
443 interrupts = <0 41 4>;
444 pinctrl-names = "default";
445 pinctrl-0 = <&pinctrl_i2c0>;
446 clocks = <&peri_clk 4>;
447 resets = <&peri_rst 4>;
448 clock-frequency = <100000>;
452 compatible = "socionext,uniphier-fi2c";
454 reg = <0x58781000 0x80>;
455 #address-cells = <1>;
457 interrupts = <0 42 4>;
458 pinctrl-names = "default";
459 pinctrl-0 = <&pinctrl_i2c1>;
460 clocks = <&peri_clk 5>;
461 resets = <&peri_rst 5>;
462 clock-frequency = <100000>;
466 compatible = "socionext,uniphier-fi2c";
467 reg = <0x58782000 0x80>;
468 #address-cells = <1>;
470 interrupts = <0 43 4>;
471 clocks = <&peri_clk 6>;
472 resets = <&peri_rst 6>;
473 clock-frequency = <400000>;
477 compatible = "socionext,uniphier-fi2c";
479 reg = <0x58783000 0x80>;
480 #address-cells = <1>;
482 interrupts = <0 44 4>;
483 pinctrl-names = "default";
484 pinctrl-0 = <&pinctrl_i2c3>;
485 clocks = <&peri_clk 7>;
486 resets = <&peri_rst 7>;
487 clock-frequency = <100000>;
491 compatible = "socionext,uniphier-fi2c";
493 reg = <0x58784000 0x80>;
494 #address-cells = <1>;
496 interrupts = <0 45 4>;
497 pinctrl-names = "default";
498 pinctrl-0 = <&pinctrl_i2c4>;
499 clocks = <&peri_clk 8>;
500 resets = <&peri_rst 8>;
501 clock-frequency = <100000>;
505 compatible = "socionext,uniphier-fi2c";
506 reg = <0x58785000 0x80>;
507 #address-cells = <1>;
509 interrupts = <0 25 4>;
510 clocks = <&peri_clk 9>;
511 resets = <&peri_rst 9>;
512 clock-frequency = <400000>;
515 system_bus: system-bus@58c00000 {
516 compatible = "socionext,uniphier-system-bus";
518 reg = <0x58c00000 0x400>;
519 #address-cells = <2>;
521 pinctrl-names = "default";
522 pinctrl-0 = <&pinctrl_system_bus>;
526 compatible = "socionext,uniphier-smpctrl";
527 reg = <0x59801000 0x400>;
531 compatible = "socionext,uniphier-ld20-sdctrl",
532 "simple-mfd", "syscon";
533 reg = <0x59810000 0x400>;
536 compatible = "socionext,uniphier-ld20-sd-clock";
541 compatible = "socionext,uniphier-ld20-sd-reset";
547 compatible = "socionext,uniphier-ld20-perictrl",
548 "simple-mfd", "syscon";
549 reg = <0x59820000 0x200>;
552 compatible = "socionext,uniphier-ld20-peri-clock";
557 compatible = "socionext,uniphier-ld20-peri-reset";
562 emmc: sdhc@5a000000 {
563 compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
564 reg = <0x5a000000 0x400>;
565 interrupts = <0 78 4>;
566 pinctrl-names = "default";
567 pinctrl-0 = <&pinctrl_emmc>;
568 clocks = <&sys_clk 4>;
569 resets = <&sys_rst 4>;
573 mmc-pwrseq = <&emmc_pwrseq>;
574 cdns,phy-input-delay-legacy = <9>;
575 cdns,phy-input-delay-mmc-highspeed = <2>;
576 cdns,phy-input-delay-mmc-ddr = <3>;
577 cdns,phy-dll-delay-sdclk = <21>;
578 cdns,phy-dll-delay-sdclk-hsmmc = <21>;
582 compatible = "socionext,uniphier-sd-v3.1.1";
584 reg = <0x5a400000 0x800>;
585 interrupts = <0 76 4>;
586 pinctrl-names = "default";
587 pinctrl-0 = <&pinctrl_sd>;
588 clocks = <&sd_clk 0>;
589 reset-names = "host";
590 resets = <&sd_rst 0>;
595 soc_glue: soc-glue@5f800000 {
596 compatible = "socionext,uniphier-ld20-soc-glue",
597 "simple-mfd", "syscon";
598 reg = <0x5f800000 0x2000>;
601 compatible = "socionext,uniphier-ld20-pinctrl";
606 compatible = "socionext,uniphier-ld20-soc-glue-debug",
608 #address-cells = <1>;
610 ranges = <0 0x5f900000 0x2000>;
613 compatible = "socionext,uniphier-efuse";
618 compatible = "socionext,uniphier-efuse";
620 #address-cells = <1>;
624 usb_rterm0: trim@54,4 {
628 usb_rterm1: trim@55,4 {
632 usb_rterm2: trim@58,4 {
636 usb_rterm3: trim@59,4 {
640 usb_sel_t0: trim@54,0 {
644 usb_sel_t1: trim@55,0 {
648 usb_sel_t2: trim@58,0 {
652 usb_sel_t3: trim@59,0 {
656 usb_hs_i0: trim@56,0 {
660 usb_hs_i2: trim@5a,0 {
667 aidet: aidet@5fc20000 {
668 compatible = "socionext,uniphier-ld20-aidet";
669 reg = <0x5fc20000 0x200>;
670 interrupt-controller;
671 #interrupt-cells = <2>;
674 gic: interrupt-controller@5fe00000 {
675 compatible = "arm,gic-v3";
676 reg = <0x5fe00000 0x10000>, /* GICD */
677 <0x5fe80000 0x80000>; /* GICR */
678 interrupt-controller;
679 #interrupt-cells = <3>;
680 interrupts = <1 9 4>;
684 compatible = "socionext,uniphier-ld20-sysctrl",
685 "simple-mfd", "syscon";
686 reg = <0x61840000 0x10000>;
689 compatible = "socionext,uniphier-ld20-clock";
694 compatible = "socionext,uniphier-ld20-reset";
699 compatible = "socionext,uniphier-wdt";
703 compatible = "socionext,uniphier-ld20-thermal";
704 interrupts = <0 3 4>;
705 #thermal-sensor-cells = <0>;
706 socionext,tmod-calibration = <0x0f22 0x68ee>;
710 eth: ethernet@65000000 {
711 compatible = "socionext,uniphier-ld20-ave4";
713 reg = <0x65000000 0x8500>;
714 interrupts = <0 66 4>;
715 pinctrl-names = "default";
716 pinctrl-0 = <&pinctrl_ether_rgmii>;
717 clock-names = "ether";
718 clocks = <&sys_clk 6>;
719 reset-names = "ether";
720 resets = <&sys_rst 6>;
722 local-mac-address = [00 00 00 00 00 00];
723 socionext,syscon-phy-mode = <&soc_glue 0>;
726 #address-cells = <1>;
732 compatible = "socionext,uniphier-dwc3", "snps,dwc3";
734 reg = <0x65a00000 0xcd00>;
735 interrupt-names = "host";
736 interrupts = <0 134 4>;
737 pinctrl-names = "default";
738 pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb1>,
739 <&pinctrl_usb2>, <&pinctrl_usb3>;
740 clock-names = "ref", "bus_early", "suspend";
741 clocks = <&sys_clk 14>, <&sys_clk 14>, <&sys_clk 14>;
742 resets = <&usb_rst 15>;
743 phys = <&usb_hsphy0>, <&usb_hsphy1>,
744 <&usb_hsphy2>, <&usb_hsphy3>,
745 <&usb_ssphy0>, <&usb_ssphy1>;
750 compatible = "socionext,uniphier-ld20-dwc3-glue",
752 #address-cells = <1>;
754 ranges = <0 0x65b00000 0x400>;
757 compatible = "socionext,uniphier-ld20-usb3-reset";
760 clock-names = "link";
761 clocks = <&sys_clk 14>;
762 reset-names = "link";
763 resets = <&sys_rst 14>;
766 usb_vbus0: regulator@100 {
767 compatible = "socionext,uniphier-ld20-usb3-regulator";
769 clock-names = "link";
770 clocks = <&sys_clk 14>;
771 reset-names = "link";
772 resets = <&sys_rst 14>;
775 usb_vbus1: regulator@110 {
776 compatible = "socionext,uniphier-ld20-usb3-regulator";
778 clock-names = "link";
779 clocks = <&sys_clk 14>;
780 reset-names = "link";
781 resets = <&sys_rst 14>;
784 usb_vbus2: regulator@120 {
785 compatible = "socionext,uniphier-ld20-usb3-regulator";
787 clock-names = "link";
788 clocks = <&sys_clk 14>;
789 reset-names = "link";
790 resets = <&sys_rst 14>;
793 usb_vbus3: regulator@130 {
794 compatible = "socionext,uniphier-ld20-usb3-regulator";
796 clock-names = "link";
797 clocks = <&sys_clk 14>;
798 reset-names = "link";
799 resets = <&sys_rst 14>;
802 usb_hsphy0: hs-phy@200 {
803 compatible = "socionext,uniphier-ld20-usb3-hsphy";
806 clock-names = "link", "phy";
807 clocks = <&sys_clk 14>, <&sys_clk 16>;
808 reset-names = "link", "phy";
809 resets = <&sys_rst 14>, <&sys_rst 16>;
810 vbus-supply = <&usb_vbus0>;
811 nvmem-cell-names = "rterm", "sel_t", "hs_i";
812 nvmem-cells = <&usb_rterm0>, <&usb_sel_t0>,
816 usb_hsphy1: hs-phy@210 {
817 compatible = "socionext,uniphier-ld20-usb3-hsphy";
820 clock-names = "link", "phy";
821 clocks = <&sys_clk 14>, <&sys_clk 16>;
822 reset-names = "link", "phy";
823 resets = <&sys_rst 14>, <&sys_rst 16>;
824 vbus-supply = <&usb_vbus1>;
825 nvmem-cell-names = "rterm", "sel_t", "hs_i";
826 nvmem-cells = <&usb_rterm1>, <&usb_sel_t1>,
830 usb_hsphy2: hs-phy@220 {
831 compatible = "socionext,uniphier-ld20-usb3-hsphy";
834 clock-names = "link", "phy";
835 clocks = <&sys_clk 14>, <&sys_clk 17>;
836 reset-names = "link", "phy";
837 resets = <&sys_rst 14>, <&sys_rst 17>;
838 vbus-supply = <&usb_vbus2>;
839 nvmem-cell-names = "rterm", "sel_t", "hs_i";
840 nvmem-cells = <&usb_rterm2>, <&usb_sel_t2>,
844 usb_hsphy3: hs-phy@230 {
845 compatible = "socionext,uniphier-ld20-usb3-hsphy";
848 clock-names = "link", "phy";
849 clocks = <&sys_clk 14>, <&sys_clk 17>;
850 reset-names = "link", "phy";
851 resets = <&sys_rst 14>, <&sys_rst 17>;
852 vbus-supply = <&usb_vbus3>;
853 nvmem-cell-names = "rterm", "sel_t", "hs_i";
854 nvmem-cells = <&usb_rterm3>, <&usb_sel_t3>,
858 usb_ssphy0: ss-phy@300 {
859 compatible = "socionext,uniphier-ld20-usb3-ssphy";
862 clock-names = "link", "phy";
863 clocks = <&sys_clk 14>, <&sys_clk 18>;
864 reset-names = "link", "phy";
865 resets = <&sys_rst 14>, <&sys_rst 18>;
866 vbus-supply = <&usb_vbus0>;
869 usb_ssphy1: ss-phy@310 {
870 compatible = "socionext,uniphier-ld20-usb3-ssphy";
873 clock-names = "link", "phy";
874 clocks = <&sys_clk 14>, <&sys_clk 19>;
875 reset-names = "link", "phy";
876 resets = <&sys_rst 14>, <&sys_rst 19>;
877 vbus-supply = <&usb_vbus1>;
881 pcie: pcie@66000000 {
882 compatible = "socionext,uniphier-pcie", "snps,dw-pcie";
884 reg-names = "dbi", "link", "config";
885 reg = <0x66000000 0x1000>, <0x66010000 0x10000>,
886 <0x2fff0000 0x10000>;
887 #address-cells = <3>;
889 clocks = <&sys_clk 24>;
890 resets = <&sys_rst 24>;
893 bus-range = <0x0 0xff>;
897 <0x81000000 0 0x00000000 0x2ffe0000 0 0x00010000>,
898 /* non-prefetchable memory */
899 <0x82000000 0 0x20000000 0x20000000 0 0x0ffe0000>;
900 #interrupt-cells = <1>;
901 interrupt-names = "dma", "msi";
902 interrupts = <0 224 4>, <0 225 4>;
903 interrupt-map-mask = <0 0 0 7>;
904 interrupt-map = <0 0 0 1 &pcie_intc 0>, /* INTA */
905 <0 0 0 2 &pcie_intc 1>, /* INTB */
906 <0 0 0 3 &pcie_intc 2>, /* INTC */
907 <0 0 0 4 &pcie_intc 3>; /* INTD */
908 phy-names = "pcie-phy";
911 pcie_intc: legacy-interrupt-controller {
912 interrupt-controller;
913 #interrupt-cells = <1>;
914 interrupt-parent = <&gic>;
915 interrupts = <0 226 4>;
919 pcie_phy: phy@66038000 {
920 compatible = "socionext,uniphier-ld20-pcie-phy";
921 reg = <0x66038000 0x4000>;
923 clocks = <&sys_clk 24>;
924 resets = <&sys_rst 24>;
925 socionext,syscon = <&soc_glue>;
928 nand: nand@68000000 {
929 compatible = "socionext,uniphier-denali-nand-v5b";
931 reg-names = "nand_data", "denali_reg";
932 reg = <0x68000000 0x20>, <0x68100000 0x1000>;
933 #address-cells = <1>;
935 interrupts = <0 65 4>;
936 pinctrl-names = "default";
937 pinctrl-0 = <&pinctrl_nand>;
938 clock-names = "nand", "nand_x", "ecc";
939 clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>;
940 resets = <&sys_rst 2>;
945 #include "uniphier-pinctrl.dtsi"
948 drive-strength = <4>; /* default: 3.5mA */
952 drive-strength = <5>; /* 5mA */
957 drive-strength = <4>; /* default: 3.5mA */
961 drive-strength = <11>; /* 11mA */