1 // SPDX-License-Identifier: GPL-2.0-only
3 * Device Tree Source for AM4372 SoC
5 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
8 #include <dt-bindings/bus/ti-sysc.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/clock/am4.h>
14 compatible = "ti,am4372", "ti,am43";
15 interrupt-parent = <&wakeupgen>;
21 device_type = "memory";
35 ethernet0 = &cpsw_port1;
36 ethernet1 = &cpsw_port2;
44 compatible = "arm,cortex-a9";
45 enable-method = "ti,am4372";
49 clocks = <&dpll_mpu_ck>;
52 operating-points-v2 = <&cpu0_opp_table>;
54 clock-latency = <300000>; /* From omap-cpufreq driver */
55 cpu-idle-states = <&mpu_gate>;
60 compatible = "arm,idle-state";
61 entry-latency-us = <40>;
62 exit-latency-us = <100>;
63 min-residency-us = <300>;
69 cpu0_opp_table: opp-table {
70 compatible = "operating-points-v2-ti-cpu";
74 opp-hz = /bits/ 64 <300000000>;
75 opp-microvolt = <950000 931000 969000>;
76 opp-supported-hw = <0xFF 0x01>;
81 opp-hz = /bits/ 64 <600000000>;
82 opp-microvolt = <1100000 1078000 1122000>;
83 opp-supported-hw = <0xFF 0x04>;
87 opp-hz = /bits/ 64 <720000000>;
88 opp-microvolt = <1200000 1176000 1224000>;
89 opp-supported-hw = <0xFF 0x08>;
93 opp-hz = /bits/ 64 <800000000>;
94 opp-microvolt = <1260000 1234800 1285200>;
95 opp-supported-hw = <0xFF 0x10>;
99 opp-hz = /bits/ 64 <1000000000>;
100 opp-microvolt = <1325000 1298500 1351500>;
101 opp-supported-hw = <0xFF 0x20>;
106 compatible = "ti,omap-infra";
109 gic: interrupt-controller@48241000 {
110 compatible = "arm,cortex-a9-gic";
111 interrupt-controller;
112 #interrupt-cells = <3>;
113 reg = <0x48241000 0x1000>,
115 interrupt-parent = <&gic>;
118 wakeupgen: interrupt-controller@48281000 {
119 compatible = "ti,omap4-wugen-mpu";
120 interrupt-controller;
121 #interrupt-cells = <3>;
122 reg = <0x48281000 0x1000>;
123 interrupt-parent = <&gic>;
127 compatible = "arm,cortex-a9-scu";
128 reg = <0x48240000 0x100>;
131 global_timer: timer@48240200 {
132 compatible = "arm,cortex-a9-global-timer";
133 reg = <0x48240200 0x100>;
134 interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
135 interrupt-parent = <&gic>;
136 clocks = <&mpu_periphclk>;
139 local_timer: timer@48240600 {
140 compatible = "arm,cortex-a9-twd-timer";
141 reg = <0x48240600 0x100>;
142 interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE_RISING>;
143 interrupt-parent = <&gic>;
144 clocks = <&mpu_periphclk>;
147 cache-controller@48242000 {
148 compatible = "arm,pl310-cache";
149 reg = <0x48242000 0x1000>;
155 compatible = "simple-pm-bus";
156 power-domains = <&prm_per>;
157 clocks = <&l3_clkctrl AM4_L3_L3_MAIN_CLKCTRL 0>;
159 #address-cells = <1>;
165 compatible = "ti,am4372-l3-noc";
166 reg = <0x44000000 0x400000>,
167 <0x44800000 0x400000>;
168 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
169 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
172 l4_wkup: interconnect@44c00000 {
174 l4_per: interconnect@48000000 {
176 l4_fast: interconnect@4a000000 {
179 target-module@4c000000 {
180 compatible = "ti,sysc-omap4-simple", "ti,sysc";
181 reg = <0x4c000000 0x4>;
183 clocks = <&emif_clkctrl AM4_EMIF_EMIF_CLKCTRL 0>;
186 #address-cells = <1>;
188 ranges = <0x0 0x4c000000 0x1000000>;
191 compatible = "ti,emif-am4372";
193 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
194 sram = <&pm_sram_code
199 target-module@49000000 {
200 compatible = "ti,sysc-omap4", "ti,sysc";
201 reg = <0x49000000 0x4>;
203 clocks = <&l3_clkctrl AM4_L3_TPCC_CLKCTRL 0>;
205 #address-cells = <1>;
207 ranges = <0x0 0x49000000 0x10000>;
210 compatible = "ti,edma3-tpcc";
212 reg-names = "edma3_cc";
213 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
214 <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
215 <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
216 interrupt-names = "edma3_ccint", "edma3_mperr",
221 ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 5>,
224 ti,edma-memcpy-channels = <58 59>;
228 target-module@49800000 {
229 compatible = "ti,sysc-omap4", "ti,sysc";
230 reg = <0x49800000 0x4>,
232 reg-names = "rev", "sysc";
233 ti,sysc-mask = <SYSC_OMAP4_SOFTRESET>;
234 ti,sysc-midle = <SYSC_IDLE_FORCE>;
235 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
237 clocks = <&l3_clkctrl AM4_L3_TPTC0_CLKCTRL 0>;
239 #address-cells = <1>;
241 ranges = <0x0 0x49800000 0x100000>;
244 compatible = "ti,edma3-tptc";
246 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
247 interrupt-names = "edma3_tcerrint";
251 target-module@49900000 {
252 compatible = "ti,sysc-omap4", "ti,sysc";
253 reg = <0x49900000 0x4>,
255 reg-names = "rev", "sysc";
256 ti,sysc-mask = <SYSC_OMAP4_SOFTRESET>;
257 ti,sysc-midle = <SYSC_IDLE_FORCE>;
258 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
260 clocks = <&l3_clkctrl AM4_L3_TPTC1_CLKCTRL 0>;
262 #address-cells = <1>;
264 ranges = <0x0 0x49900000 0x100000>;
267 compatible = "ti,edma3-tptc";
269 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
270 interrupt-names = "edma3_tcerrint";
274 target-module@49a00000 {
275 compatible = "ti,sysc-omap4", "ti,sysc";
276 reg = <0x49a00000 0x4>,
278 reg-names = "rev", "sysc";
279 ti,sysc-mask = <SYSC_OMAP4_SOFTRESET>;
280 ti,sysc-midle = <SYSC_IDLE_FORCE>;
281 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
283 clocks = <&l3_clkctrl AM4_L3_TPTC2_CLKCTRL 0>;
285 #address-cells = <1>;
287 ranges = <0x0 0x49a00000 0x100000>;
290 compatible = "ti,edma3-tptc";
292 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
293 interrupt-names = "edma3_tcerrint";
297 target-module@47810000 {
298 compatible = "ti,sysc-omap2", "ti,sysc";
299 reg = <0x478102fc 0x4>,
302 reg-names = "rev", "sysc", "syss";
303 ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY |
304 SYSC_OMAP2_ENAWAKEUP |
305 SYSC_OMAP2_SOFTRESET |
306 SYSC_OMAP2_AUTOIDLE)>;
307 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
311 clocks = <&l3s_clkctrl AM4_L3S_MMC3_CLKCTRL 0>;
313 #address-cells = <1>;
315 ranges = <0x0 0x47810000 0x1000>;
318 compatible = "ti,am437-sdhci";
319 ti,needs-special-reset;
320 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
326 sham_target: target-module@53100000 {
327 compatible = "ti,sysc-omap3-sham", "ti,sysc";
328 reg = <0x53100100 0x4>,
331 reg-names = "rev", "sysc", "syss";
332 ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
333 SYSC_OMAP2_AUTOIDLE)>;
334 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
338 /* Domains (P, C): per_pwrdm, l3_clkdm */
339 clocks = <&l3_clkctrl AM4_L3_SHAM_CLKCTRL 0>;
341 #address-cells = <1>;
343 ranges = <0x0 0x53100000 0x1000>;
346 compatible = "ti,omap5-sham";
350 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
354 aes_target: target-module@53501000 {
355 compatible = "ti,sysc-omap2", "ti,sysc";
356 reg = <0x53501080 0x4>,
359 reg-names = "rev", "sysc", "syss";
360 ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
361 SYSC_OMAP2_AUTOIDLE)>;
362 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
365 <SYSC_IDLE_SMART_WKUP>;
367 /* Domains (P, C): per_pwrdm, l3_clkdm */
368 clocks = <&l3_clkctrl AM4_L3_AES_CLKCTRL 0>;
370 #address-cells = <1>;
372 ranges = <0x0 0x53501000 0x1000>;
375 compatible = "ti,omap4-aes";
377 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
380 dma-names = "tx", "rx";
384 des_target: target-module@53701000 {
385 compatible = "ti,sysc-omap2", "ti,sysc";
386 reg = <0x53701030 0x4>,
389 reg-names = "rev", "sysc", "syss";
390 ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
391 SYSC_OMAP2_AUTOIDLE)>;
392 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
395 <SYSC_IDLE_SMART_WKUP>;
397 /* Domains (P, C): per_pwrdm, l3_clkdm */
398 clocks = <&l3_clkctrl AM4_L3_DES_CLKCTRL 0>;
400 #address-cells = <1>;
402 ranges = <0 0x53701000 0x1000>;
405 compatible = "ti,omap4-des";
407 interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
410 dma-names = "tx", "rx";
414 pruss_tm: target-module@54400000 {
415 compatible = "ti,sysc-pruss", "ti,sysc";
416 reg = <0x54426000 0x4>,
418 reg-names = "rev", "sysc";
419 ti,sysc-mask = <(SYSC_PRUSS_STANDBY_INIT |
420 SYSC_PRUSS_SUB_MWAIT)>;
421 ti,sysc-midle = <SYSC_IDLE_FORCE>,
424 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
427 clocks = <&pruss_ocp_clkctrl AM4_PRUSS_OCP_PRUSS_CLKCTRL 0>;
429 resets = <&prm_per 1>;
430 reset-names = "rstctrl";
431 #address-cells = <1>;
433 ranges = <0x0 0x54400000 0x80000>;
436 compatible = "ti,am4376-pruss1";
438 #address-cells = <1>;
442 pruss1_mem: memories@0 {
446 reg-names = "dram0", "dram1",
450 pruss1_cfg: cfg@26000 {
451 compatible = "ti,pruss-cfg", "syscon";
452 reg = <0x26000 0x2000>;
453 #address-cells = <1>;
455 ranges = <0x0 0x26000 0x2000>;
458 #address-cells = <1>;
461 pruss1_iepclk_mux: iepclk-mux@30 {
464 clocks = <&sysclk_div>, /* icss_iep_gclk */
465 <&pruss_ocp_gclk>; /* icss_ocp_gclk */
470 pruss1_mii_rt: mii-rt@32000 {
471 compatible = "ti,pruss-mii", "syscon";
472 reg = <0x32000 0x58>;
475 pruss1_intc: interrupt-controller@20000 {
476 compatible = "ti,pruss-intc";
477 reg = <0x20000 0x2000>;
478 interrupt-controller;
479 #interrupt-cells = <3>;
480 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
481 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
482 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
483 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
484 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
485 <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
486 <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
487 interrupt-names = "host_intr0", "host_intr1",
488 "host_intr2", "host_intr3",
490 "host_intr6", "host_intr7";
491 ti,irqs-reserved = /bits/ 8 <0x20>; /* BIT(5) */
495 compatible = "ti,am4376-pru";
496 reg = <0x34000 0x3000>,
499 reg-names = "iram", "control", "debug";
500 firmware-name = "am437x-pru1_0-fw";
504 compatible = "ti,am4376-pru";
505 reg = <0x38000 0x3000>,
508 reg-names = "iram", "control", "debug";
509 firmware-name = "am437x-pru1_1-fw";
512 pruss1_mdio: mdio@32400 {
513 compatible = "ti,davinci_mdio";
514 reg = <0x32400 0x90>;
515 clocks = <&dpll_core_m4_ck>;
517 bus_freq = <1000000>;
518 #address-cells = <1>;
523 pruss0: pruss@40000 {
524 compatible = "ti,am4376-pruss0";
525 reg = <0x40000 0x40000>;
526 #address-cells = <1>;
530 pruss0_mem: memories@40000 {
531 reg = <0x40000 0x1000>,
533 reg-names = "dram0", "dram1";
536 pruss0_cfg: cfg@66000 {
537 compatible = "ti,pruss-cfg", "syscon";
538 reg = <0x66000 0x2000>;
539 #address-cells = <1>;
541 ranges = <0x0 0x66000 0x2000>;
544 #address-cells = <1>;
547 pruss0_iepclk_mux: iepclk-mux@30 {
550 clocks = <&sysclk_div>, /* icss_iep_gclk */
551 <&pruss_ocp_gclk>; /* icss_ocp_gclk */
556 pruss0_mii_rt: mii-rt@72000 {
557 compatible = "ti,pruss-mii", "syscon";
558 reg = <0x72000 0x58>;
562 pruss0_intc: interrupt-controller@60000 {
563 compatible = "ti,pruss-intc";
564 reg = <0x60000 0x2000>;
565 interrupt-controller;
566 #interrupt-cells = <3>;
567 interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>,
568 <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
569 <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
570 <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
571 <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
572 <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
573 <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
574 interrupt-names = "host_intr0", "host_intr1",
575 "host_intr2", "host_intr3",
577 "host_intr6", "host_intr7";
578 ti,irqs-reserved = /bits/ 8 <0x20>; /* BIT(5) */
582 compatible = "ti,am4376-pru";
583 reg = <0x74000 0x1000>,
586 reg-names = "iram", "control", "debug";
587 firmware-name = "am437x-pru0_0-fw";
591 compatible = "ti,am4376-pru";
592 reg = <0x78000 0x1000>,
595 reg-names = "iram", "control", "debug";
596 firmware-name = "am437x-pru0_1-fw";
601 target-module@50000000 {
602 compatible = "ti,sysc-omap2", "ti,sysc";
603 reg = <0x50000000 4>,
606 reg-names = "rev", "sysc", "syss";
607 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
611 clocks = <&l3s_clkctrl AM4_L3S_GPMC_CLKCTRL 0>;
613 #address-cells = <1>;
615 ranges = <0x50000000 0x50000000 0x00001000>, /* regs */
616 <0x00000000 0x00000000 0x40000000>; /* data */
618 gpmc: gpmc@50000000 {
619 compatible = "ti,am3352-gpmc";
622 clocks = <&l3s_gclk>;
624 reg = <0x50000000 0x2000>;
625 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
627 gpmc,num-waitpins = <2>;
628 #address-cells = <2>;
630 interrupt-controller;
631 #interrupt-cells = <2>;
638 target-module@47900000 {
639 compatible = "ti,sysc-omap4", "ti,sysc";
640 reg = <0x47900000 0x4>,
642 reg-names = "rev", "sysc";
643 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
646 <SYSC_IDLE_SMART_WKUP>;
647 clocks = <&l3s_clkctrl AM4_L3S_QSPI_CLKCTRL 0>;
649 #address-cells = <1>;
651 ranges = <0x0 0x47900000 0x1000>,
652 <0x30000000 0x30000000 0x4000000>;
655 compatible = "ti,am4372-qspi";
657 <0x30000000 0x4000000>;
658 reg-names = "qspi_base", "qspi_mmap";
659 clocks = <&dpll_per_m2_div4_ck>;
661 #address-cells = <1>;
663 interrupts = <0 138 0x4>;
668 target-module@40300000 {
669 compatible = "ti,sysc-omap4-simple", "ti,sysc";
670 clocks = <&l3_clkctrl AM4_L3_OCMCRAM_CLKCTRL 0>;
673 #address-cells = <1>;
675 ranges = <0 0x40300000 0x40000>;
678 compatible = "mmio-sram";
679 reg = <0 0x40000>; /* 256k */
680 ranges = <0 0 0x40000>;
681 #address-cells = <1>;
684 pm_sram_code: pm-code-sram@0 {
685 compatible = "ti,sram";
690 pm_sram_data: pm-data-sram@1000 {
691 compatible = "ti,sram";
692 reg = <0x1000 0x1000>;
698 target-module@56000000 {
699 compatible = "ti,sysc-omap4", "ti,sysc";
700 reg = <0x5600fe00 0x4>,
702 reg-names = "rev", "sysc";
703 ti,sysc-midle = <SYSC_IDLE_FORCE>,
706 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
709 clocks = <&gfx_l3_clkctrl AM4_GFX_L3_GFX_CLKCTRL 0>;
711 power-domains = <&prm_gfx>;
712 resets = <&prm_gfx 0>;
713 reset-names = "rstctrl";
714 #address-cells = <1>;
716 ranges = <0 0x56000000 0x1000000>;
721 #include "am437x-l4.dtsi"
722 #include "am43xx-clocks.dtsi"
726 compatible = "ti,am4-prm-inst", "ti,omap-prm-inst";
728 #power-domain-cells = <0>;
732 compatible = "ti,am4-prm-inst", "ti,omap-prm-inst";
734 #power-domain-cells = <0>;
739 compatible = "ti,am4-prm-inst", "ti,omap-prm-inst";
741 #power-domain-cells = <0>;
744 prm_tamper: prm@600 {
745 compatible = "ti,am4-prm-inst", "ti,omap-prm-inst";
747 #power-domain-cells = <0>;
750 prm_cefuse: prm@700 {
751 compatible = "ti,am4-prm-inst", "ti,omap-prm-inst";
753 #power-domain-cells = <0>;
757 compatible = "ti,am4-prm-inst", "ti,omap-prm-inst";
760 #power-domain-cells = <0>;
764 compatible = "ti,am4-prm-inst", "ti,omap-prm-inst";
765 reg = <0x2000 0x100>;
767 #power-domain-cells = <0>;
770 prm_device: prm@4000 {
771 compatible = "ti,am4-prm-inst", "ti,omap-prm-inst";
772 reg = <0x4000 0x100>;
777 /* Preferred always-on timer for clocksource */
781 clocks = <&l4_wkup_clkctrl AM4_L4_WKUP_TIMER1_CLKCTRL 0>,
782 <&l4_wkup_clkctrl AM4_L4_WKUP_L4_WKUP_CLKCTRL 0>;
783 clock-names = "fck", "ick";
785 assigned-clocks = <&timer1_fck>;
786 assigned-clock-parents = <&sys_clkin_ck>;
790 /* Preferred timer for clockevent */
794 clocks = <&l4ls_clkctrl AM4_L4LS_TIMER2_CLKCTRL 0>,
795 <&l4ls_clkctrl AM4_L4LS_L4_LS_CLKCTRL 0>;
796 clock-names = "fck", "ick";
798 assigned-clocks = <&timer2_fck>;
799 assigned-clock-parents = <&sys_clkin_ck>;