blob: 55aff4db9c7c29625e8ef26fc30642f6995fcfb9 [file] [log] [blame]
Afzal Mohammed6cfd8112013-06-03 18:49:54 +05301/*
2 * Device Tree Source for AM4372 SoC
3 *
4 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
9 */
10
Tony Lindgrend95adfd2018-09-24 16:22:37 -070011#include <dt-bindings/bus/ti-sysc.h>
Balaji T Kd2885db2014-03-03 20:20:20 +053012#include <dt-bindings/gpio/gpio.h>
Afzal Mohammed6cfd8112013-06-03 18:49:54 +053013#include <dt-bindings/interrupt-controller/arm-gic.h>
Tero Kristo664ae1a2017-12-08 17:17:31 +020014#include <dt-bindings/clock/am4.h>
Afzal Mohammed6cfd8112013-06-03 18:49:54 +053015
Afzal Mohammed6cfd8112013-06-03 18:49:54 +053016/ {
17 compatible = "ti,am4372", "ti,am43";
Marc Zyngier7136d452015-03-11 15:43:49 +000018 interrupt-parent = <&wakeupgen>;
Javier Martinez Canillas75813022016-08-31 12:35:25 +020019 #address-cells = <1>;
20 #size-cells = <1>;
Javier Martinez Canillasce950772016-12-19 11:44:38 -030021 chosen { };
Afzal Mohammed6cfd8112013-06-03 18:49:54 +053022
Javier Martinez Canillas9194cf42016-08-31 12:35:32 +020023 memory@0 {
Javier Martinez Canillas75813022016-08-31 12:35:25 +020024 device_type = "memory";
25 reg = <0 0>;
26 };
Afzal Mohammed6cfd8112013-06-03 18:49:54 +053027
28 aliases {
Nishanth Menon6a968672013-10-16 15:21:04 -050029 i2c0 = &i2c0;
30 i2c1 = &i2c1;
31 i2c2 = &i2c2;
Afzal Mohammed6cfd8112013-06-03 18:49:54 +053032 serial0 = &uart0;
Sekhar Nori71256d92015-07-20 16:42:20 +053033 serial1 = &uart1;
34 serial2 = &uart2;
35 serial3 = &uart3;
36 serial4 = &uart4;
37 serial5 = &uart5;
Lokesh Vutla9e3269b2013-10-11 00:44:53 +053038 ethernet0 = &cpsw_emac0;
39 ethernet1 = &cpsw_emac1;
Mugunthan V Ne05edea2015-11-19 12:31:02 +053040 spi0 = &qspi;
Afzal Mohammed6cfd8112013-06-03 18:49:54 +053041 };
42
43 cpus {
Afzal Mohammed738c7402013-08-02 19:16:13 +053044 #address-cells = <1>;
45 #size-cells = <0>;
Felipe Balbi08ecb282014-06-23 13:20:58 -050046 cpu: cpu@0 {
Afzal Mohammed6cfd8112013-06-03 18:49:54 +053047 compatible = "arm,cortex-a9";
Afzal Mohammed738c7402013-08-02 19:16:13 +053048 device_type = "cpu";
49 reg = <0>;
Nishanth Menon8d766fa2014-01-29 12:19:17 -060050
51 clocks = <&dpll_mpu_ck>;
52 clock-names = "cpu";
53
Dave Gerlach6da9c792016-05-18 18:36:29 -050054 operating-points-v2 = <&cpu0_opp_table>;
Dave Gerlach6da9c792016-05-18 18:36:29 -050055
Nishanth Menon8d766fa2014-01-29 12:19:17 -060056 clock-latency = <300000>; /* From omap-cpufreq driver */
Afzal Mohammed6cfd8112013-06-03 18:49:54 +053057 };
58 };
59
Dave Gerlachca167c82017-03-06 09:23:40 -060060 cpu0_opp_table: opp-table {
61 compatible = "operating-points-v2-ti-cpu";
62 syscon = <&scm_conf>;
Dave Gerlach6da9c792016-05-18 18:36:29 -050063
Viresh Kumarb9cb2ba2017-04-20 16:25:06 +053064 opp50-300000000 {
Dave Gerlach6da9c792016-05-18 18:36:29 -050065 opp-hz = /bits/ 64 <300000000>;
66 opp-microvolt = <950000 931000 969000>;
67 opp-supported-hw = <0xFF 0x01>;
68 opp-suspend;
69 };
70
Viresh Kumarb9cb2ba2017-04-20 16:25:06 +053071 opp100-600000000 {
Dave Gerlach6da9c792016-05-18 18:36:29 -050072 opp-hz = /bits/ 64 <600000000>;
73 opp-microvolt = <1100000 1078000 1122000>;
74 opp-supported-hw = <0xFF 0x04>;
75 };
76
Viresh Kumarb9cb2ba2017-04-20 16:25:06 +053077 opp120-720000000 {
Dave Gerlach6da9c792016-05-18 18:36:29 -050078 opp-hz = /bits/ 64 <720000000>;
79 opp-microvolt = <1200000 1176000 1224000>;
80 opp-supported-hw = <0xFF 0x08>;
81 };
82
Viresh Kumarb9cb2ba2017-04-20 16:25:06 +053083 oppturbo-800000000 {
Dave Gerlach6da9c792016-05-18 18:36:29 -050084 opp-hz = /bits/ 64 <800000000>;
85 opp-microvolt = <1260000 1234800 1285200>;
86 opp-supported-hw = <0xFF 0x10>;
87 };
88
Viresh Kumarb9cb2ba2017-04-20 16:25:06 +053089 oppnitro-1000000000 {
Dave Gerlach6da9c792016-05-18 18:36:29 -050090 opp-hz = /bits/ 64 <1000000000>;
91 opp-microvolt = <1325000 1298500 1351500>;
92 opp-supported-hw = <0xFF 0x20>;
93 };
94 };
95
Dave Gerlach39dd21a2018-02-18 21:35:02 -060096 soc {
97 compatible = "ti,omap-infra";
98 mpu {
99 compatible = "ti,omap4-mpu";
100 ti,hwmods = "mpu";
101 pm-sram = <&pm_sram_code
102 &pm_sram_data>;
103 };
104 };
105
Afzal Mohammed6cfd8112013-06-03 18:49:54 +0530106 gic: interrupt-controller@48241000 {
107 compatible = "arm,cortex-a9-gic";
108 interrupt-controller;
109 #interrupt-cells = <3>;
110 reg = <0x48241000 0x1000>,
111 <0x48240100 0x0100>;
Marc Zyngier7136d452015-03-11 15:43:49 +0000112 interrupt-parent = <&gic>;
113 };
114
115 wakeupgen: interrupt-controller@48281000 {
116 compatible = "ti,omap4-wugen-mpu";
117 interrupt-controller;
118 #interrupt-cells = <3>;
119 reg = <0x48281000 0x1000>;
120 interrupt-parent = <&gic>;
Afzal Mohammed6cfd8112013-06-03 18:49:54 +0530121 };
122
Felipe Balbi8cbd4c2f2015-08-12 14:56:54 -0500123 scu: scu@48240000 {
124 compatible = "arm,cortex-a9-scu";
125 reg = <0x48240000 0x100>;
126 };
127
128 global_timer: timer@48240200 {
129 compatible = "arm,cortex-a9-global-timer";
130 reg = <0x48240200 0x100>;
Grygorii Strashko84fb2252015-12-28 15:52:04 +0200131 interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
Felipe Balbi8cbd4c2f2015-08-12 14:56:54 -0500132 interrupt-parent = <&gic>;
Grygorii Strashko14054fb2015-11-30 17:56:38 +0200133 clocks = <&mpu_periphclk>;
Felipe Balbi8cbd4c2f2015-08-12 14:56:54 -0500134 };
135
136 local_timer: timer@48240600 {
137 compatible = "arm,cortex-a9-twd-timer";
138 reg = <0x48240600 0x100>;
Grygorii Strashko84fb2252015-12-28 15:52:04 +0200139 interrupts = <GIC_PPI 13 IRQ_TYPE_EDGE_RISING>;
Felipe Balbi8cbd4c2f2015-08-12 14:56:54 -0500140 interrupt-parent = <&gic>;
Grygorii Strashko14054fb2015-11-30 17:56:38 +0200141 clocks = <&mpu_periphclk>;
Felipe Balbi8cbd4c2f2015-08-12 14:56:54 -0500142 };
143
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530144 l2-cache-controller@48242000 {
145 compatible = "arm,pl310-cache";
146 reg = <0x48242000 0x1000>;
147 cache-unified;
148 cache-level = <2>;
149 };
150
Javier Martinez Canillasf515f812016-08-01 12:46:55 -0400151 ocp@44000000 {
Afzal Mohammed2eeddb82013-12-02 17:48:57 +0530152 compatible = "ti,am4372-l3-noc", "simple-bus";
Afzal Mohammed6cfd8112013-06-03 18:49:54 +0530153 #address-cells = <1>;
154 #size-cells = <1>;
155 ranges;
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530156 ti,hwmods = "l3_main";
Dave Gerlach2ac54192018-02-18 21:35:05 -0600157 ti,no-idle;
Afzal Mohammed2eeddb82013-12-02 17:48:57 +0530158 reg = <0x44000000 0x400000
159 0x44800000 0x400000>;
160 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
161 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530162
Tony Lindgrend95adfd2018-09-24 16:22:37 -0700163 l4_wkup: interconnect@44c00000 {
Suman Anna340204222015-07-13 12:34:55 -0500164 wkup_m3: wkup_m3@100000 {
165 compatible = "ti,am4372-wkup-m3";
166 reg = <0x100000 0x4000>,
167 <0x180000 0x2000>;
168 reg-names = "umem", "dmem";
169 ti,hwmods = "wkup_m3";
170 ti,pm-firmware = "am335x-pm-firmware.elf";
171 };
Tony Lindgrend95adfd2018-09-24 16:22:37 -0700172 };
173 l4_per: interconnect@48000000 {
174 };
175 l4_fast: interconnect@4a000000 {
Tero Kristo6a679202013-08-02 19:12:04 +0300176 };
177
Dave Gerlachfff75ee2015-05-06 12:25:33 -0500178 emif: emif@4c000000 {
179 compatible = "ti,emif-am4372";
180 reg = <0x4c000000 0x1000000>;
181 ti,hwmods = "emif";
Tero Kristof270bf92018-02-26 17:05:00 +0200182 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
Dave Gerlachf3ca5df2018-02-18 21:35:04 -0600183 ti,no-idle;
Dave Gerlach16df2212018-02-18 21:35:00 -0600184 sram = <&pm_sram_code
185 &pm_sram_data>;
Dave Gerlachfff75ee2015-05-06 12:25:33 -0500186 };
187
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530188 edma: edma@49000000 {
Peter Ujfalusicce1ee02015-12-17 15:33:37 +0200189 compatible = "ti,edma3-tpcc";
190 ti,hwmods = "tpcc";
191 reg = <0x49000000 0x10000>;
192 reg-names = "edma3_cc";
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530193 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
Peter Ujfalusicce1ee02015-12-17 15:33:37 +0200194 <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
195 <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
Robert P. J. Daya5206552016-05-24 17:20:28 -0400196 interrupt-names = "edma3_ccint", "edma3_mperr",
Peter Ujfalusicce1ee02015-12-17 15:33:37 +0200197 "edma3_ccerrint";
198 dma-requests = <64>;
199 #dma-cells = <2>;
200
201 ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 5>,
202 <&edma_tptc2 0>;
203
Tero Kristod41676d2016-03-14 11:01:50 +0200204 ti,edma-memcpy-channels = <58 59>;
Peter Ujfalusicce1ee02015-12-17 15:33:37 +0200205 };
206
207 edma_tptc0: tptc@49800000 {
208 compatible = "ti,edma3-tptc";
209 ti,hwmods = "tptc0";
210 reg = <0x49800000 0x100000>;
211 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
212 interrupt-names = "edma3_tcerrint";
213 };
214
215 edma_tptc1: tptc@49900000 {
216 compatible = "ti,edma3-tptc";
217 ti,hwmods = "tptc1";
218 reg = <0x49900000 0x100000>;
219 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
220 interrupt-names = "edma3_tcerrint";
221 };
222
223 edma_tptc2: tptc@49a00000 {
224 compatible = "ti,edma3-tptc";
225 ti,hwmods = "tptc2";
226 reg = <0x49a00000 0x100000>;
227 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
228 interrupt-names = "edma3_tcerrint";
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530229 };
Afzal Mohammed6cfd8112013-06-03 18:49:54 +0530230
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530231 mmc3: mmc@47810000 {
232 compatible = "ti,omap4-hsmmc";
233 reg = <0x47810000 0x1000>;
234 ti,hwmods = "mmc3";
235 ti,needs-special-reset;
236 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
237 status = "disabled";
238 };
239
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530240 sham: sham@53100000 {
241 compatible = "ti,omap5-sham";
242 ti,hwmods = "sham";
243 reg = <0x53100000 0x300>;
Peter Ujfalusicce1ee02015-12-17 15:33:37 +0200244 dmas = <&edma 36 0>;
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530245 dma-names = "rx";
246 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
Afzal Mohammed6cfd8112013-06-03 18:49:54 +0530247 };
Joel Fernandes6e70a512013-09-24 14:35:09 -0500248
249 aes: aes@53501000 {
250 compatible = "ti,omap4-aes";
251 ti,hwmods = "aes";
252 reg = <0x53501000 0xa0>;
253 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
Peter Ujfalusicce1ee02015-12-17 15:33:37 +0200254 dmas = <&edma 6 0>,
255 <&edma 5 0>;
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530256 dma-names = "tx", "rx";
Joel Fernandes6e70a512013-09-24 14:35:09 -0500257 };
Joel Fernandes099f3a852013-09-24 14:37:33 -0500258
259 des: des@53701000 {
260 compatible = "ti,omap4-des";
261 ti,hwmods = "des";
262 reg = <0x53701000 0xa0>;
263 interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
Peter Ujfalusicce1ee02015-12-17 15:33:37 +0200264 dmas = <&edma 34 0>,
265 <&edma 33 0>;
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530266 dma-names = "tx", "rx";
Joel Fernandes099f3a852013-09-24 14:37:33 -0500267 };
Lokesh Vutla9e3269b2013-10-11 00:44:53 +0530268
Pekon Guptaf68e3552014-02-05 18:58:34 +0530269 gpmc: gpmc@50000000 {
270 compatible = "ti,am3352-gpmc";
271 ti,hwmods = "gpmc";
Franklin S Cooper Jr883cbc92016-03-10 17:56:39 -0600272 dmas = <&edma 52 0>;
Franklin S Cooper Jr201c7e32015-10-15 12:37:27 -0500273 dma-names = "rxtx";
Pekon Guptaf68e3552014-02-05 18:58:34 +0530274 clocks = <&l3s_gclk>;
275 clock-names = "fck";
276 reg = <0x50000000 0x2000>;
277 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
278 gpmc,num-cs = <7>;
279 gpmc,num-waitpins = <2>;
280 #address-cells = <2>;
281 #size-cells = <1>;
Roger Quadrosbe3f39c2016-02-23 18:37:19 +0200282 interrupt-controller;
283 #interrupt-cells = <2>;
Roger Quadros9e08c2d2016-04-07 13:25:33 +0300284 gpio-controller;
285 #gpio-cells = <2>;
Pekon Guptaf68e3552014-02-05 18:58:34 +0530286 status = "disabled";
287 };
George Cheriana0ae47e2014-03-19 15:40:01 +0530288
Rob Herringcc893872018-09-13 13:12:25 -0500289 qspi: spi@47900000 {
Sourav Poddar2a1a5042014-04-28 19:12:30 +0530290 compatible = "ti,am4372-qspi";
Vignesh R2acb6c32015-12-11 09:40:00 +0530291 reg = <0x47900000 0x100>,
292 <0x30000000 0x4000000>;
293 reg-names = "qspi_base", "qspi_mmap";
Sourav Poddar2a1a5042014-04-28 19:12:30 +0530294 #address-cells = <1>;
295 #size-cells = <0>;
296 ti,hwmods = "qspi";
297 interrupts = <0 138 0x4>;
298 num-cs = <4>;
299 status = "disabled";
300 };
Sourav Poddar741cac52014-05-08 11:30:07 +0530301
Sathya Prakash M R8c793362014-03-24 16:31:55 +0530302 dss: dss@4832a000 {
303 compatible = "ti,omap3-dss";
304 reg = <0x4832a000 0x200>;
305 status = "disabled";
306 ti,hwmods = "dss_core";
307 clocks = <&disp_clk>;
308 clock-names = "fck";
309 #address-cells = <1>;
310 #size-cells = <1>;
311 ranges;
312
Felipe Balbi08ecb282014-06-23 13:20:58 -0500313 dispc: dispc@4832a400 {
Sathya Prakash M R8c793362014-03-24 16:31:55 +0530314 compatible = "ti,omap3-dispc";
315 reg = <0x4832a400 0x400>;
316 interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
317 ti,hwmods = "dss_dispc";
318 clocks = <&disp_clk>;
319 clock-names = "fck";
320 };
321
322 rfbi: rfbi@4832a800 {
323 compatible = "ti,omap3-rfbi";
324 reg = <0x4832a800 0x100>;
325 ti,hwmods = "dss_rfbi";
326 clocks = <&disp_clk>;
327 clock-names = "fck";
Tomi Valkeinen22a5dc12015-06-30 15:04:54 +0300328 status = "disabled";
Sathya Prakash M R8c793362014-03-24 16:31:55 +0530329 };
330 };
Rajendra Nayak8b9a2812014-09-10 11:04:03 -0500331
332 ocmcram: ocmcram@40300000 {
333 compatible = "mmio-sram";
334 reg = <0x40300000 0x40000>; /* 256k */
Dave Gerlach590e1d52018-02-18 21:34:58 -0600335 ranges = <0x0 0x40300000 0x40000>;
336 #address-cells = <1>;
337 #size-cells = <1>;
338
339 pm_sram_code: pm-sram-code@0 {
340 compatible = "ti,sram";
341 reg = <0x0 0x1000>;
342 protect-exec;
343 };
344
345 pm_sram_data: pm-sram-data@1000 {
346 compatible = "ti,sram";
347 reg = <0x1000 0x1000>;
348 pool;
349 };
Rajendra Nayak8b9a2812014-09-10 11:04:03 -0500350 };
Afzal Mohammed6cfd8112013-06-03 18:49:54 +0530351 };
352};
Tero Kristo6a679202013-08-02 19:12:04 +0300353
Tony Lindgrend95adfd2018-09-24 16:22:37 -0700354#include "am437x-l4.dtsi"
Tero Kristo664ae1a2017-12-08 17:17:31 +0200355#include "am43xx-clocks.dtsi"