blob: f79e1b91c68013cc2f5533a8e3894d746ced5691 [file] [log] [blame]
Heiko Schocher33085b32012-08-30 14:21:04 +05301/*
2 * Copyright 2012 DENX Software Engineering GmbH
3 * Heiko Schocher <hs@denx.de>
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
9 */
Philip Avinasha2bcd772013-06-14 15:15:53 +053010#include "skeleton.dtsi"
KV Sujith2e38b942013-11-21 23:45:30 +053011#include <dt-bindings/interrupt-controller/irq.h>
Heiko Schocher33085b32012-08-30 14:21:04 +053012
13/ {
14 arm {
15 #address-cells = <1>;
16 #size-cells = <1>;
17 ranges;
David Lechnerc2a3b4b2016-04-01 17:42:03 +020018 intc: interrupt-controller@fffee000 {
Heiko Schocher33085b32012-08-30 14:21:04 +053019 compatible = "ti,cp-intc";
20 interrupt-controller;
21 #interrupt-cells = <1>;
David Lechnerc6d3b5d2016-04-16 12:00:20 -050022 ti,intc-size = <101>;
Heiko Schocher33085b32012-08-30 14:21:04 +053023 reg = <0xfffee000 0x2000>;
24 };
25 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +020026 soc@1c00000 {
Heiko Schocher33085b32012-08-30 14:21:04 +053027 compatible = "simple-bus";
28 model = "da850";
29 #address-cells = <1>;
30 #size-cells = <1>;
31 ranges = <0x0 0x01c00000 0x400000>;
Lad, Prabhakarc57ff582013-01-25 16:48:44 +053032 interrupt-parent = <&intc>;
Heiko Schocher33085b32012-08-30 14:21:04 +053033
David Lechnerc2a3b4b2016-04-01 17:42:03 +020034 pmx_core: pinmux@14120 {
Kumar, Anil1faaba32013-01-16 14:37:39 +053035 compatible = "pinctrl-single";
36 reg = <0x14120 0x50>;
37 #address-cells = <1>;
38 #size-cells = <0>;
39 pinctrl-single,bit-per-mux;
40 pinctrl-single,register-width = <32>;
Manjunathappa, Prakash055cb2a92013-05-21 19:38:02 +053041 pinctrl-single,function-mask = <0xf>;
Kumar, Anil1faaba32013-01-16 14:37:39 +053042 status = "disabled";
Kumar, Anil99b88002013-01-16 14:37:41 +053043
Karl Beldan10ead752016-08-04 11:06:56 +000044 serial0_rtscts_pins: pinmux_serial0_rtscts_pins {
45 pinctrl-single,bits = <
46 /* UART0_RTS UART0_CTS */
47 0x0c 0x22000000 0xff000000
48 >;
49 };
50 serial0_rxtx_pins: pinmux_serial0_rxtx_pins {
51 pinctrl-single,bits = <
52 /* UART0_TXD UART0_RXD */
53 0x0c 0x00220000 0x00ff0000
54 >;
55 };
56 serial1_rtscts_pins: pinmux_serial1_rtscts_pins {
57 pinctrl-single,bits = <
58 /* UART1_CTS UART1_RTS */
59 0x00 0x00440000 0x00ff0000
60 >;
61 };
62 serial1_rxtx_pins: pinmux_serial1_rxtx_pins {
63 pinctrl-single,bits = <
64 /* UART1_TXD UART1_RXD */
65 0x10 0x22000000 0xff000000
66 >;
67 };
68 serial2_rtscts_pins: pinmux_serial2_rtscts_pins {
69 pinctrl-single,bits = <
70 /* UART2_CTS UART2_RTS */
71 0x00 0x44000000 0xff000000
72 >;
73 };
74 serial2_rxtx_pins: pinmux_serial2_rxtx_pins {
75 pinctrl-single,bits = <
76 /* UART2_TXD UART2_RXD */
77 0x10 0x00220000 0x00ff0000
78 >;
79 };
Vishwanathrao Badarkhe, Manish01729cc2013-02-06 15:06:22 +053080 i2c0_pins: pinmux_i2c0_pins {
81 pinctrl-single,bits = <
82 /* I2C0_SDA,I2C0_SCL */
83 0x10 0x00002200 0x0000ff00
84 >;
85 };
Petr Kulhavy92d64642016-04-01 17:42:04 +020086 i2c1_pins: pinmux_i2c1_pins {
87 pinctrl-single,bits = <
88 /* I2C1_SDA, I2C1_SCL */
89 0x10 0x00440000 0x00ff0000
90 >;
91 };
Manjunathappa, Prakash88df4122013-03-28 18:42:01 +053092 mmc0_pins: pinmux_mmc_pins {
93 pinctrl-single,bits = <
94 /* MMCSD0_DAT[3] MMCSD0_DAT[2]
95 * MMCSD0_DAT[1] MMCSD0_DAT[0]
96 * MMCSD0_CMD MMCSD0_CLK
97 */
98 0x28 0x00222222 0x00ffffff
99 >;
100 };
Philip Avinash64fa59c2013-04-10 17:42:41 +0530101 ehrpwm0a_pins: pinmux_ehrpwm0a_pins {
102 pinctrl-single,bits = <
103 /* EPWM0A */
104 0xc 0x00000002 0x0000000f
105 >;
106 };
107 ehrpwm0b_pins: pinmux_ehrpwm0b_pins {
108 pinctrl-single,bits = <
109 /* EPWM0B */
110 0xc 0x00000020 0x000000f0
111 >;
112 };
113 ehrpwm1a_pins: pinmux_ehrpwm1a_pins {
114 pinctrl-single,bits = <
115 /* EPWM1A */
116 0x14 0x00000002 0x0000000f
117 >;
118 };
119 ehrpwm1b_pins: pinmux_ehrpwm1b_pins {
120 pinctrl-single,bits = <
121 /* EPWM1B */
122 0x14 0x00000020 0x000000f0
123 >;
124 };
125 ecap0_pins: pinmux_ecap0_pins {
126 pinctrl-single,bits = <
127 /* ECAP0_APWM0 */
128 0x8 0x20000000 0xf0000000
129 >;
130 };
131 ecap1_pins: pinmux_ecap1_pins {
132 pinctrl-single,bits = <
133 /* ECAP1_APWM1 */
134 0x4 0x40000000 0xf0000000
135 >;
136 };
137 ecap2_pins: pinmux_ecap2_pins {
138 pinctrl-single,bits = <
139 /* ECAP2_APWM2 */
140 0x4 0x00000004 0x0000000f
141 >;
142 };
David Lechner4be4b282016-04-16 12:00:17 -0500143 spi0_pins: pinmux_spi0_pins {
144 pinctrl-single,bits = <
145 /* SIMO, SOMI, CLK */
146 0xc 0x00001101 0x0000ff0f
147 >;
148 };
149 spi0_cs0_pin: pinmux_spi0_cs0 {
150 pinctrl-single,bits = <
151 /* CS0 */
152 0x10 0x00000010 0x000000f0
153 >;
154 };
155 spi1_pins: pinmux_spi1_pins {
Manjunathappa, Prakashc6347e42013-04-03 19:39:08 +0530156 pinctrl-single,bits = <
157 /* SIMO, SOMI, CLK */
158 0x14 0x00110100 0x00ff0f00
159 >;
160 };
161 spi1_cs0_pin: pinmux_spi1_cs0 {
162 pinctrl-single,bits = <
163 /* CS0 */
164 0x14 0x00000010 0x000000f0
165 >;
166 };
Lad, Prabhakar609f4bc2013-08-15 11:31:34 +0530167 mdio_pins: pinmux_mdio_pins {
168 pinctrl-single,bits = <
169 /* MDIO_CLK, MDIO_D */
170 0x10 0x00000088 0x000000ff
171 >;
172 };
Lad, Prabhakardd7deaf2013-08-16 22:37:09 +0530173 mii_pins: pinmux_mii_pins {
174 pinctrl-single,bits = <
175 /*
176 * MII_TXEN, MII_TXCLK, MII_COL
177 * MII_TXD_3, MII_TXD_2, MII_TXD_1
178 * MII_TXD_0
179 */
180 0x8 0x88888880 0xfffffff0
181 /*
182 * MII_RXER, MII_CRS, MII_RXCLK
183 * MII_RXDV, MII_RXD_3, MII_RXD_2
184 * MII_RXD_1, MII_RXD_0
185 */
186 0xc 0x88888888 0xffffffff
187 >;
188 };
Lad, Prabhakar609f4bc2013-08-15 11:31:34 +0530189
Kumar, Anil1faaba32013-01-16 14:37:39 +0530190 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200191 edma0: edma@0 {
Peter Ujfalusi7a7faed2015-12-17 15:27:48 +0200192 compatible = "ti,edma3-tpcc";
Peter Ujfalusidfaebb52015-12-17 15:27:47 +0200193 /* eDMA3 CC0: 0x01c0 0000 - 0x01c0 7fff */
194 reg = <0x0 0x8000>;
Peter Ujfalusi7a7faed2015-12-17 15:27:48 +0200195 reg-names = "edma3_cc";
196 interrupts = <11 12>;
197 interrupt-names = "edma3_ccint", "edma3_ccerrint";
198 #dma-cells = <2>;
199
200 ti,tptcs = <&edma0_tptc0 7>, <&edma0_tptc1 0>;
201 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200202 edma0_tptc0: tptc@8000 {
Peter Ujfalusi7a7faed2015-12-17 15:27:48 +0200203 compatible = "ti,edma3-tptc";
204 reg = <0x8000 0x400>;
205 interrupts = <13>;
206 interrupt-names = "edm3_tcerrint";
207 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200208 edma0_tptc1: tptc@8400 {
Peter Ujfalusi7a7faed2015-12-17 15:27:48 +0200209 compatible = "ti,edma3-tptc";
210 reg = <0x8400 0x400>;
211 interrupts = <32>;
212 interrupt-names = "edm3_tcerrint";
Peter Ujfalusiee766e42014-08-01 09:13:26 +0300213 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200214 edma1: edma@230000 {
Peter Ujfalusib47a8562015-12-17 15:27:49 +0200215 compatible = "ti,edma3-tpcc";
216 /* eDMA3 CC1: 0x01e3 0000 - 0x01e3 7fff */
217 reg = <0x230000 0x8000>;
218 reg-names = "edma3_cc";
219 interrupts = <93 94>;
220 interrupt-names = "edma3_ccint", "edma3_ccerrint";
221 #dma-cells = <2>;
222
223 ti,tptcs = <&edma1_tptc0 7>;
224 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200225 edma1_tptc0: tptc@238000 {
Peter Ujfalusib47a8562015-12-17 15:27:49 +0200226 compatible = "ti,edma3-tptc";
227 reg = <0x238000 0x400>;
228 interrupts = <95>;
229 interrupt-names = "edm3_tcerrint";
230 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200231 serial0: serial@42000 {
Heiko Schocher33085b32012-08-30 14:21:04 +0530232 compatible = "ns16550a";
233 reg = <0x42000 0x100>;
Heiko Schocher33085b32012-08-30 14:21:04 +0530234 reg-shift = <2>;
235 interrupts = <25>;
Heiko Schocher33085b32012-08-30 14:21:04 +0530236 status = "disabled";
237 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200238 serial1: serial@10c000 {
Heiko Schocher33085b32012-08-30 14:21:04 +0530239 compatible = "ns16550a";
240 reg = <0x10c000 0x100>;
Heiko Schocher33085b32012-08-30 14:21:04 +0530241 reg-shift = <2>;
242 interrupts = <53>;
Heiko Schocher33085b32012-08-30 14:21:04 +0530243 status = "disabled";
244 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200245 serial2: serial@10d000 {
Heiko Schocher33085b32012-08-30 14:21:04 +0530246 compatible = "ns16550a";
247 reg = <0x10d000 0x100>;
Heiko Schocher33085b32012-08-30 14:21:04 +0530248 reg-shift = <2>;
249 interrupts = <61>;
Heiko Schocher33085b32012-08-30 14:21:04 +0530250 status = "disabled";
251 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200252 rtc0: rtc@23000 {
Mrugesh Katepallewar16616362013-01-28 13:17:48 +0530253 compatible = "ti,da830-rtc";
254 reg = <0x23000 0x1000>;
255 interrupts = <19
256 19>;
257 status = "disabled";
258 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200259 i2c0: i2c@22000 {
Vishwanathrao Badarkhe, Manish01729cc2013-02-06 15:06:22 +0530260 compatible = "ti,davinci-i2c";
261 reg = <0x22000 0x1000>;
262 interrupts = <15>;
263 #address-cells = <1>;
264 #size-cells = <0>;
265 status = "disabled";
266 };
Petr Kulhavy92d64642016-04-01 17:42:04 +0200267 i2c1: i2c@228000 {
268 compatible = "ti,davinci-i2c";
269 reg = <0x228000 0x1000>;
270 interrupts = <51>;
271 #address-cells = <1>;
272 #size-cells = <0>;
273 status = "disabled";
274 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200275 wdt: wdt@21000 {
Kumar, Anil518f97d2013-02-06 09:30:03 +0530276 compatible = "ti,davinci-wdt";
277 reg = <0x21000 0x1000>;
278 status = "disabled";
279 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200280 mmc0: mmc@40000 {
Manjunathappa, Prakash88df4122013-03-28 18:42:01 +0530281 compatible = "ti,da830-mmc";
282 reg = <0x40000 0x1000>;
283 interrupts = <16>;
Peter Ujfalusi684892a2015-12-17 15:27:50 +0200284 dmas = <&edma0 16 0>, <&edma0 17 0>;
285 dma-names = "rx", "tx";
Manjunathappa, Prakash88df4122013-03-28 18:42:01 +0530286 status = "disabled";
287 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200288 mmc1: mmc@21b000 {
Peter Ujfalusi3c497582015-12-17 15:27:51 +0200289 compatible = "ti,da830-mmc";
290 reg = <0x21b000 0x1000>;
291 interrupts = <72>;
292 dmas = <&edma1 28 0>, <&edma1 29 0>;
293 dma-names = "rx", "tx";
294 status = "disabled";
295 };
Arnd Bergmann1ea7c8b2016-04-24 23:43:56 +0200296 ehrpwm0: pwm@300000 {
Cooper Jr., Franklin38b8da72016-07-11 14:11:46 -0500297 compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm",
298 "ti,am33xx-ehrpwm";
Philip Avinash64fa59c2013-04-10 17:42:41 +0530299 #pwm-cells = <3>;
300 reg = <0x300000 0x2000>;
301 status = "disabled";
302 };
Arnd Bergmann1ea7c8b2016-04-24 23:43:56 +0200303 ehrpwm1: pwm@302000 {
Cooper Jr., Franklin38b8da72016-07-11 14:11:46 -0500304 compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm",
305 "ti,am33xx-ehrpwm";
Philip Avinash64fa59c2013-04-10 17:42:41 +0530306 #pwm-cells = <3>;
307 reg = <0x302000 0x2000>;
308 status = "disabled";
309 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200310 ecap0: ecap@306000 {
Cooper Jr., Franklin38b8da72016-07-11 14:11:46 -0500311 compatible = "ti,da850-ecap", "ti,am3352-ecap",
312 "ti,am33xx-ecap";
Philip Avinash64fa59c2013-04-10 17:42:41 +0530313 #pwm-cells = <3>;
314 reg = <0x306000 0x80>;
315 status = "disabled";
316 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200317 ecap1: ecap@307000 {
Cooper Jr., Franklin38b8da72016-07-11 14:11:46 -0500318 compatible = "ti,da850-ecap", "ti,am3352-ecap",
319 "ti,am33xx-ecap";
Philip Avinash64fa59c2013-04-10 17:42:41 +0530320 #pwm-cells = <3>;
321 reg = <0x307000 0x80>;
322 status = "disabled";
323 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200324 ecap2: ecap@308000 {
Cooper Jr., Franklin38b8da72016-07-11 14:11:46 -0500325 compatible = "ti,da850-ecap", "ti,am3352-ecap",
326 "ti,am33xx-ecap";
Philip Avinash64fa59c2013-04-10 17:42:41 +0530327 #pwm-cells = <3>;
328 reg = <0x308000 0x80>;
329 status = "disabled";
330 };
David Lechner4be4b282016-04-16 12:00:17 -0500331 spi0: spi@41000 {
332 #address-cells = <1>;
333 #size-cells = <0>;
334 compatible = "ti,da830-spi";
335 reg = <0x41000 0x1000>;
336 num-cs = <6>;
337 ti,davinci-spi-intr-line = <1>;
338 interrupts = <20>;
339 status = "disabled";
340 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200341 spi1: spi@30e000 {
Manjunathappa, Prakashc6347e42013-04-03 19:39:08 +0530342 #address-cells = <1>;
343 #size-cells = <0>;
344 compatible = "ti,da830-spi";
345 reg = <0x30e000 0x1000>;
346 num-cs = <4>;
347 ti,davinci-spi-intr-line = <1>;
348 interrupts = <56>;
Peter Ujfalusif0ad4352015-12-17 15:27:52 +0200349 dmas = <&edma0 18 0>, <&edma0 19 0>;
350 dma-names = "rx", "tx";
Manjunathappa, Prakashc6347e42013-04-03 19:39:08 +0530351 status = "disabled";
352 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200353 mdio: mdio@224000 {
Lad, Prabhakar609f4bc2013-08-15 11:31:34 +0530354 compatible = "ti,davinci_mdio";
355 #address-cells = <1>;
356 #size-cells = <0>;
357 reg = <0x224000 0x1000>;
David Lechner5209a8f2016-04-16 12:00:19 -0500358 status = "disabled";
Lad, Prabhakar609f4bc2013-08-15 11:31:34 +0530359 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200360 eth0: ethernet@220000 {
Lad, Prabhakardd7deaf2013-08-16 22:37:09 +0530361 compatible = "ti,davinci-dm6467-emac";
362 reg = <0x220000 0x4000>;
363 ti,davinci-ctrl-reg-offset = <0x3000>;
364 ti,davinci-ctrl-mod-reg-offset = <0x2000>;
365 ti,davinci-ctrl-ram-offset = <0>;
366 ti,davinci-ctrl-ram-size = <0x2000>;
367 local-mac-address = [ 00 00 00 00 00 00 ];
368 interrupts = <33
369 34
370 35
371 36
372 >;
David Lechner5209a8f2016-04-16 12:00:19 -0500373 status = "disabled";
Lad, Prabhakardd7deaf2013-08-16 22:37:09 +0530374 };
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200375 gpio: gpio@226000 {
KV Sujith2e38b942013-11-21 23:45:30 +0530376 compatible = "ti,dm6441-gpio";
377 gpio-controller;
Petr Kulhavy497762b2016-04-05 11:31:37 +0200378 #gpio-cells = <2>;
KV Sujith2e38b942013-11-21 23:45:30 +0530379 reg = <0x226000 0x1000>;
380 interrupts = <42 IRQ_TYPE_EDGE_BOTH
381 43 IRQ_TYPE_EDGE_BOTH 44 IRQ_TYPE_EDGE_BOTH
382 45 IRQ_TYPE_EDGE_BOTH 46 IRQ_TYPE_EDGE_BOTH
383 47 IRQ_TYPE_EDGE_BOTH 48 IRQ_TYPE_EDGE_BOTH
384 49 IRQ_TYPE_EDGE_BOTH 50 IRQ_TYPE_EDGE_BOTH>;
385 ti,ngpio = <144>;
386 ti,davinci-gpio-unbanked = <0>;
387 status = "disabled";
388 };
Peter Ujfalusidb749042014-08-01 09:13:27 +0300389
David Lechnerc2a3b4b2016-04-01 17:42:03 +0200390 mcasp0: mcasp@100000 {
Peter Ujfalusidb749042014-08-01 09:13:27 +0300391 compatible = "ti,da830-mcasp-audio";
392 reg = <0x100000 0x2000>,
393 <0x102000 0x400000>;
394 reg-names = "mpu", "dat";
395 interrupts = <54>;
396 interrupt-names = "common";
397 status = "disabled";
Peter Ujfalusi7a7faed2015-12-17 15:27:48 +0200398 dmas = <&edma0 1 1>,
399 <&edma0 0 1>;
Peter Ujfalusidb749042014-08-01 09:13:27 +0300400 dma-names = "tx", "rx";
401 };
Heiko Schocher33085b32012-08-30 14:21:04 +0530402 };
Karl Beldan31e3a882016-08-16 22:33:37 +0000403 aemif: aemif@68000000 {
404 compatible = "ti,da850-aemif";
405 #address-cells = <2>;
406 #size-cells = <1>;
407
408 reg = <0x68000000 0x00008000>;
409 ranges = <0 0 0x60000000 0x08000000
410 1 0 0x68000000 0x00008000>;
Kumar, Anil99b88002013-01-16 14:37:41 +0530411 status = "disabled";
412 };
Heiko Schocher33085b32012-08-30 14:21:04 +0530413};