blob: 2fde534db6c65ed9e84200510c26849f79e53fd7 [file] [log] [blame]
Tony Lindgren78000642015-01-19 11:47:35 -08001/*
2 * This file is licensed under the terms of the GNU General Public License
3 * version 2. This program is licensed "as is" without any warranty of any
4 * kind, whether express or implied.
5 */
6
7#include <dt-bindings/gpio/gpio.h>
8#include <dt-bindings/pinctrl/omap.h>
9
10#include "skeleton.dtsi"
11
12/ {
13 compatible = "ti,dm816";
14 interrupt-parent = <&intc>;
15
16 aliases {
17 i2c0 = &i2c1;
18 i2c1 = &i2c2;
19 serial0 = &uart1;
20 serial1 = &uart2;
21 serial2 = &uart3;
22 ethernet0 = &eth0;
23 ethernet1 = &eth1;
24 };
25
26 cpus {
27 #address-cells = <1>;
28 #size-cells = <0>;
29 cpu@0 {
30 compatible = "arm,cortex-a8";
31 device_type = "cpu";
32 reg = <0>;
33 };
34 };
35
36 pmu {
37 compatible = "arm,cortex-a8-pmu";
38 interrupts = <3>;
39 };
40
41 /*
42 * The soc node represents the soc top level view. It is used for IPs
43 * that are not memory mapped in the MPU view or for the MPU itself.
44 */
45 soc {
46 compatible = "ti,omap-infra";
47 mpu {
48 compatible = "ti,omap3-mpu";
49 ti,hwmods = "mpu";
50 };
51 };
52
Tony Lindgren78000642015-01-19 11:47:35 -080053 /*
54 * XXX: Use a flat representation of the dm816x interconnect.
55 * The real dm816x interconnect network is quite complex. Since
56 * it will not bring real advantage to represent that in DT
57 * for the moment, just use a fake OCP bus entry to represent
58 * the whole bus hierarchy.
59 */
60 ocp {
Tony Lindgren71bed412015-05-29 10:21:52 -070061 compatible = "simple-bus";
Tony Lindgren78000642015-01-19 11:47:35 -080062 reg = <0x44000000 0x10000>;
63 interrupts = <9 10>;
64 #address-cells = <1>;
65 #size-cells = <1>;
66 ranges;
Tony Lindgren78000642015-01-19 11:47:35 -080067
68 prcm: prcm@48180000 {
69 compatible = "ti,dm816-prcm";
70 reg = <0x48180000 0x4000>;
71
72 prcm_clocks: clocks {
73 #address-cells = <1>;
74 #size-cells = <0>;
75 };
76
77 prcm_clockdomains: clockdomains {
78 };
79 };
80
81 scrm: scrm@48140000 {
Tony Lindgren72d03222015-01-21 16:21:52 -080082 compatible = "ti,dm816-scrm", "simple-bus";
Tony Lindgren78000642015-01-19 11:47:35 -080083 reg = <0x48140000 0x21000>;
84 #address-cells = <1>;
85 #size-cells = <1>;
86 ranges = <0 0x48140000 0x21000>;
87
Tony Lindgren72d03222015-01-21 16:21:52 -080088 dm816x_pinmux: pinmux@800 {
89 compatible = "pinctrl-single";
90 reg = <0x800 0x50a>;
91 #address-cells = <1>;
92 #size-cells = <0>;
93 pinctrl-single,register-width = <16>;
94 pinctrl-single,function-mask = <0xf>;
95 };
96
97 /* Device Configuration Registers */
98 scm_conf: syscon@600 {
Tony Lindgrena54879a2015-02-24 08:48:52 -080099 compatible = "syscon", "simple-bus";
Tony Lindgren72d03222015-01-21 16:21:52 -0800100 reg = <0x600 0x110>;
101 #address-cells = <1>;
102 #size-cells = <1>;
Tony Lindgrena54879a2015-02-24 08:48:52 -0800103 ranges = <0 0x600 0x110>;
104
105 usb_phy0: usb-phy@20 {
106 compatible = "ti,dm8168-usb-phy";
107 reg = <0x20 0x8>;
108 reg-names = "phy";
109 clocks = <&main_fapll 6>;
110 clock-names = "refclk";
111 #phy-cells = <0>;
112 syscon = <&scm_conf>;
113 };
114
115 usb_phy1: usb-phy@28 {
116 compatible = "ti,dm8168-usb-phy";
117 reg = <0x28 0x8>;
118 reg-names = "phy";
119 clocks = <&main_fapll 6>;
120 clock-names = "refclk";
121 #phy-cells = <0>;
122 syscon = <&scm_conf>;
123 };
Tony Lindgren72d03222015-01-21 16:21:52 -0800124 };
125
Tony Lindgren78000642015-01-19 11:47:35 -0800126 scrm_clocks: clocks {
127 #address-cells = <1>;
128 #size-cells = <0>;
129 };
130
131 scrm_clockdomains: clockdomains {
132 };
133 };
134
Tony Lindgren78000642015-01-19 11:47:35 -0800135 edma: edma@49000000 {
136 compatible = "ti,edma3";
137 ti,hwmods = "tpcc", "tptc0", "tptc1", "tptc2", "tptc3";
138 reg = <0x49000000 0x10000>,
139 <0x44e10f90 0x40>;
140 interrupts = <12 13 14>;
141 #dma-cells = <1>;
142 };
143
144 elm: elm@48080000 {
145 compatible = "ti,816-elm";
146 ti,hwmods = "elm";
147 reg = <0x48080000 0x2000>;
148 interrupts = <4>;
149 };
150
151 gpio1: gpio@48032000 {
Tony Lindgren599c3762015-03-18 13:41:34 -0700152 compatible = "ti,omap4-gpio";
Tony Lindgren78000642015-01-19 11:47:35 -0800153 ti,hwmods = "gpio1";
Tony Lindgren599c3762015-03-18 13:41:34 -0700154 ti,gpio-always-on;
Tony Lindgren78000642015-01-19 11:47:35 -0800155 reg = <0x48032000 0x1000>;
Tony Lindgren599c3762015-03-18 13:41:34 -0700156 interrupts = <96>;
157 gpio-controller;
158 #gpio-cells = <2>;
159 interrupt-controller;
160 #interrupt-cells = <2>;
Tony Lindgren78000642015-01-19 11:47:35 -0800161 };
162
163 gpio2: gpio@4804c000 {
Tony Lindgren599c3762015-03-18 13:41:34 -0700164 compatible = "ti,omap4-gpio";
Tony Lindgren78000642015-01-19 11:47:35 -0800165 ti,hwmods = "gpio2";
Tony Lindgren599c3762015-03-18 13:41:34 -0700166 ti,gpio-always-on;
Tony Lindgren78000642015-01-19 11:47:35 -0800167 reg = <0x4804c000 0x1000>;
Tony Lindgren599c3762015-03-18 13:41:34 -0700168 interrupts = <98>;
169 gpio-controller;
170 #gpio-cells = <2>;
171 interrupt-controller;
172 #interrupt-cells = <2>;
Tony Lindgren78000642015-01-19 11:47:35 -0800173 };
174
175 gpmc: gpmc@50000000 {
176 compatible = "ti,am3352-gpmc";
177 ti,hwmods = "gpmc";
178 reg = <0x50000000 0x2000>;
179 #address-cells = <2>;
180 #size-cells = <1>;
181 interrupts = <100>;
182 gpmc,num-cs = <6>;
183 gpmc,num-waitpins = <2>;
184 };
185
186 i2c1: i2c@48028000 {
187 compatible = "ti,omap4-i2c";
188 ti,hwmods = "i2c1";
189 reg = <0x48028000 0x1000>;
190 #address-cells = <1>;
191 #size-cells = <0>;
192 interrupts = <70>;
193 dmas = <&edma 58 &edma 59>;
194 dma-names = "tx", "rx";
195 };
196
197 i2c2: i2c@4802a000 {
198 compatible = "ti,omap4-i2c";
199 ti,hwmods = "i2c2";
200 reg = <0x4802a000 0x1000>;
201 #address-cells = <1>;
202 #size-cells = <0>;
203 interrupts = <71>;
204 dmas = <&edma 60 &edma 61>;
205 dma-names = "tx", "rx";
206 };
207
208 intc: interrupt-controller@48200000 {
209 compatible = "ti,dm816-intc";
210 interrupt-controller;
211 #interrupt-cells = <1>;
212 reg = <0x48200000 0x1000>;
213 };
214
215 mailbox: mailbox@480c8000 {
216 compatible = "ti,omap4-mailbox";
217 reg = <0x480c8000 0x2000>;
218 interrupts = <77>;
219 ti,hwmods = "mailbox";
220 ti,mbox-num-users = <4>;
221 ti,mbox-num-fifos = <12>;
222 mbox_dsp: mbox_dsp {
223 ti,mbox-tx = <3 0 0>;
224 ti,mbox-rx = <0 0 0>;
225 };
226 };
227
228 mdio: mdio@4a100800 {
229 compatible = "ti,davinci_mdio";
230 #address-cells = <1>;
231 #size-cells = <0>;
232 reg = <0x4a100800 0x100>;
233 ti,hwmods = "davinci_mdio";
234 bus_freq = <1000000>;
235 phy0: ethernet-phy@0 {
236 reg = <1>;
237 };
238 phy1: ethernet-phy@1 {
239 reg = <2>;
240 };
241 };
242
243 eth0: ethernet@4a100000 {
244 compatible = "ti,dm816-emac";
245 ti,hwmods = "emac0";
246 reg = <0x4a100000 0x800
247 0x4a100900 0x3700>;
248 clocks = <&sysclk24_ck>;
Tony Lindgren72d03222015-01-21 16:21:52 -0800249 syscon = <&scm_conf>;
Tony Lindgren78000642015-01-19 11:47:35 -0800250 ti,davinci-ctrl-reg-offset = <0>;
251 ti,davinci-ctrl-mod-reg-offset = <0x900>;
252 ti,davinci-ctrl-ram-offset = <0x2000>;
253 ti,davinci-ctrl-ram-size = <0x2000>;
254 interrupts = <40 41 42 43>;
255 phy-handle = <&phy0>;
256 };
257
258 eth1: ethernet@4a120000 {
259 compatible = "ti,dm816-emac";
260 ti,hwmods = "emac1";
261 reg = <0x4a120000 0x4000>;
262 clocks = <&sysclk24_ck>;
Tony Lindgren72d03222015-01-21 16:21:52 -0800263 syscon = <&scm_conf>;
Tony Lindgren78000642015-01-19 11:47:35 -0800264 ti,davinci-ctrl-reg-offset = <0>;
265 ti,davinci-ctrl-mod-reg-offset = <0x900>;
266 ti,davinci-ctrl-ram-offset = <0x2000>;
267 ti,davinci-ctrl-ram-size = <0x2000>;
268 interrupts = <44 45 46 47>;
269 phy-handle = <&phy1>;
270 };
271
272 mcspi1: spi@48030000 {
273 compatible = "ti,omap4-mcspi";
274 reg = <0x48030000 0x1000>;
275 #address-cells = <1>;
276 #size-cells = <0>;
277 interrupts = <65>;
278 ti,spi-num-cs = <4>;
279 ti,hwmods = "mcspi1";
280 dmas = <&edma 16 &edma 17
281 &edma 18 &edma 19>;
282 dma-names = "tx0", "rx0", "tx1", "rx1";
283 };
284
285 mmc1: mmc@48060000 {
286 compatible = "ti,omap4-hsmmc";
287 reg = <0x48060000 0x11000>;
288 ti,hwmods = "mmc1";
289 interrupts = <64>;
290 dmas = <&edma 24 &edma 25>;
291 dma-names = "tx", "rx";
292 };
293
294 timer1: timer@4802e000 {
295 compatible = "ti,dm816-timer";
296 reg = <0x4802e000 0x2000>;
297 interrupts = <67>;
298 ti,hwmods = "timer1";
299 ti,timer-alwon;
300 };
301
302 timer2: timer@48040000 {
303 compatible = "ti,dm816-timer";
304 reg = <0x48040000 0x2000>;
305 interrupts = <68>;
306 ti,hwmods = "timer2";
307 };
308
309 timer3: timer@48042000 {
310 compatible = "ti,dm816-timer";
311 reg = <0x48042000 0x2000>;
312 interrupts = <69>;
313 ti,hwmods = "timer3";
314 };
315
316 timer4: timer@48044000 {
317 compatible = "ti,dm816-timer";
318 reg = <0x48044000 0x2000>;
319 interrupts = <92>;
320 ti,hwmods = "timer4";
Neil Armstrong8ca31db2015-11-12 15:07:40 +0100321 ti,timer-pwm;
Tony Lindgren78000642015-01-19 11:47:35 -0800322 };
323
324 timer5: timer@48046000 {
325 compatible = "ti,dm816-timer";
326 reg = <0x48046000 0x2000>;
327 interrupts = <93>;
328 ti,hwmods = "timer5";
Neil Armstrong8ca31db2015-11-12 15:07:40 +0100329 ti,timer-pwm;
Tony Lindgren78000642015-01-19 11:47:35 -0800330 };
331
332 timer6: timer@48048000 {
333 compatible = "ti,dm816-timer";
334 reg = <0x48048000 0x2000>;
335 interrupts = <94>;
336 ti,hwmods = "timer6";
Neil Armstrong8ca31db2015-11-12 15:07:40 +0100337 ti,timer-pwm;
Tony Lindgren78000642015-01-19 11:47:35 -0800338 };
339
340 timer7: timer@4804a000 {
341 compatible = "ti,dm816-timer";
342 reg = <0x4804a000 0x2000>;
343 interrupts = <95>;
344 ti,hwmods = "timer7";
Neil Armstrong8ca31db2015-11-12 15:07:40 +0100345 ti,timer-pwm;
Tony Lindgren78000642015-01-19 11:47:35 -0800346 };
347
348 uart1: uart@48020000 {
349 compatible = "ti,omap3-uart";
350 ti,hwmods = "uart1";
351 reg = <0x48020000 0x2000>;
352 clock-frequency = <48000000>;
353 interrupts = <72>;
354 dmas = <&edma 26 &edma 27>;
355 dma-names = "tx", "rx";
356 };
357
358 uart2: uart@48022000 {
359 compatible = "ti,omap3-uart";
360 ti,hwmods = "uart2";
361 reg = <0x48022000 0x2000>;
362 clock-frequency = <48000000>;
363 interrupts = <73>;
364 dmas = <&edma 28 &edma 29>;
365 dma-names = "tx", "rx";
366 };
367
368 uart3: uart@48024000 {
369 compatible = "ti,omap3-uart";
370 ti,hwmods = "uart3";
371 reg = <0x48024000 0x2000>;
372 clock-frequency = <48000000>;
373 interrupts = <74>;
374 dmas = <&edma 30 &edma 31>;
375 dma-names = "tx", "rx";
376 };
377
378 /* NOTE: USB needs a transceiver driver for phys to work */
379 usb: usb_otg_hs@47401000 {
380 compatible = "ti,am33xx-usb";
381 reg = <0x47401000 0x400000>;
382 ranges;
383 #address-cells = <1>;
384 #size-cells = <1>;
385 ti,hwmods = "usb_otg_hs";
386
387 usb0: usb@47401000 {
Tony Lindgren1b205c52015-05-29 09:59:42 -0700388 compatible = "ti,musb-dm816";
Tony Lindgren78000642015-01-19 11:47:35 -0800389 reg = <0x47401400 0x400
390 0x47401000 0x200>;
391 reg-names = "mc", "control";
392 interrupts = <18>;
393 interrupt-names = "mc";
Tony Lindgrena54879a2015-02-24 08:48:52 -0800394 dr_mode = "host";
395 interface-type = <0>;
396 phys = <&usb_phy0>;
397 phy-names = "usb2-phy";
Tony Lindgren78000642015-01-19 11:47:35 -0800398 mentor,multipoint = <1>;
399 mentor,num-eps = <16>;
400 mentor,ram-bits = <12>;
401 mentor,power = <500>;
Tony Lindgrende1a1222015-03-19 09:14:36 -0700402
403 dmas = <&cppi41dma 0 0 &cppi41dma 1 0
404 &cppi41dma 2 0 &cppi41dma 3 0
405 &cppi41dma 4 0 &cppi41dma 5 0
406 &cppi41dma 6 0 &cppi41dma 7 0
407 &cppi41dma 8 0 &cppi41dma 9 0
408 &cppi41dma 10 0 &cppi41dma 11 0
409 &cppi41dma 12 0 &cppi41dma 13 0
410 &cppi41dma 14 0 &cppi41dma 0 1
411 &cppi41dma 1 1 &cppi41dma 2 1
412 &cppi41dma 3 1 &cppi41dma 4 1
413 &cppi41dma 5 1 &cppi41dma 6 1
414 &cppi41dma 7 1 &cppi41dma 8 1
415 &cppi41dma 9 1 &cppi41dma 10 1
416 &cppi41dma 11 1 &cppi41dma 12 1
417 &cppi41dma 13 1 &cppi41dma 14 1>;
418 dma-names =
419 "rx1", "rx2", "rx3", "rx4", "rx5", "rx6", "rx7",
420 "rx8", "rx9", "rx10", "rx11", "rx12", "rx13",
421 "rx14", "rx15",
422 "tx1", "tx2", "tx3", "tx4", "tx5", "tx6", "tx7",
423 "tx8", "tx9", "tx10", "tx11", "tx12", "tx13",
424 "tx14", "tx15";
Tony Lindgren78000642015-01-19 11:47:35 -0800425 };
426
427 usb1: usb@47401800 {
Tony Lindgren1b205c52015-05-29 09:59:42 -0700428 compatible = "ti,musb-dm816";
Tony Lindgren78000642015-01-19 11:47:35 -0800429 reg = <0x47401c00 0x400
430 0x47401800 0x200>;
431 reg-names = "mc", "control";
432 interrupts = <19>;
433 interrupt-names = "mc";
Tony Lindgrena54879a2015-02-24 08:48:52 -0800434 dr_mode = "host";
435 interface-type = <0>;
436 phys = <&usb_phy1>;
437 phy-names = "usb2-phy";
Tony Lindgren78000642015-01-19 11:47:35 -0800438 mentor,multipoint = <1>;
439 mentor,num-eps = <16>;
440 mentor,ram-bits = <12>;
441 mentor,power = <500>;
Tony Lindgrende1a1222015-03-19 09:14:36 -0700442
443 dmas = <&cppi41dma 15 0 &cppi41dma 16 0
444 &cppi41dma 17 0 &cppi41dma 18 0
445 &cppi41dma 19 0 &cppi41dma 20 0
446 &cppi41dma 21 0 &cppi41dma 22 0
447 &cppi41dma 23 0 &cppi41dma 24 0
448 &cppi41dma 25 0 &cppi41dma 26 0
449 &cppi41dma 27 0 &cppi41dma 28 0
450 &cppi41dma 29 0 &cppi41dma 15 1
451 &cppi41dma 16 1 &cppi41dma 17 1
452 &cppi41dma 18 1 &cppi41dma 19 1
453 &cppi41dma 20 1 &cppi41dma 21 1
454 &cppi41dma 22 1 &cppi41dma 23 1
455 &cppi41dma 24 1 &cppi41dma 25 1
456 &cppi41dma 26 1 &cppi41dma 27 1
457 &cppi41dma 28 1 &cppi41dma 29 1>;
458 dma-names =
459 "rx1", "rx2", "rx3", "rx4", "rx5", "rx6", "rx7",
460 "rx8", "rx9", "rx10", "rx11", "rx12", "rx13",
461 "rx14", "rx15",
462 "tx1", "tx2", "tx3", "tx4", "tx5", "tx6", "tx7",
463 "tx8", "tx9", "tx10", "tx11", "tx12", "tx13",
464 "tx14", "tx15";
465 };
466
467 cppi41dma: dma-controller@47402000 {
468 compatible = "ti,am3359-cppi41";
469 reg = <0x47400000 0x1000
470 0x47402000 0x1000
471 0x47403000 0x1000
472 0x47404000 0x4000>;
473 reg-names = "glue", "controller", "scheduler", "queuemgr";
474 interrupts = <17>;
475 interrupt-names = "glue";
476 #dma-cells = <2>;
477 #dma-channels = <30>;
478 #dma-requests = <256>;
Tony Lindgren78000642015-01-19 11:47:35 -0800479 };
480 };
481
482 wd_timer2: wd_timer@480c2000 {
483 compatible = "ti,omap3-wdt";
484 ti,hwmods = "wd_timer";
485 reg = <0x480c2000 0x1000>;
486 interrupts = <0>;
487 };
488 };
489};
490
Tony Lindgren7383ca92015-01-19 11:47:35 -0800491#include "dm816x-clocks.dtsi"