blob: be829926f860aa0f5afd351abc59d9411e9f24d9 [file] [log] [blame]
Roland Stiggee04920d2012-04-22 12:01:19 +02001/*
2 * NXP LPC32xx SoC
3 *
4 * Copyright 2012 Roland Stigge <stigge@antcom.de>
5 *
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
Vladimir Zapolskiy1a24edd2015-10-18 00:35:50 +030014#include "skeleton.dtsi"
Roland Stiggee04920d2012-04-22 12:01:19 +020015
16/ {
17 compatible = "nxp,lpc3220";
18 interrupt-parent = <&mic>;
19
20 cpus {
Vladimir Zapolskiy246d8fc2015-10-18 00:35:52 +030021 #address-cells = <1>;
Lorenzo Pieralisi73158b72013-04-18 18:34:51 +010022 #size-cells = <0>;
23
Vladimir Zapolskiy246d8fc2015-10-18 00:35:52 +030024 cpu@0 {
Lorenzo Pieralisi73158b72013-04-18 18:34:51 +010025 compatible = "arm,arm926ej-s";
26 device_type = "cpu";
Vladimir Zapolskiy246d8fc2015-10-18 00:35:52 +030027 reg = <0x0>;
Roland Stiggee04920d2012-04-22 12:01:19 +020028 };
29 };
30
31 ahb {
32 #address-cells = <1>;
33 #size-cells = <1>;
34 compatible = "simple-bus";
35 ranges = <0x20000000 0x20000000 0x30000000>;
36
37 /*
38 * Enable either SLC or MLC
39 */
40 slc: flash@20020000 {
41 compatible = "nxp,lpc3220-slc";
42 reg = <0x20020000 0x1000>;
Roland Stiggecb85a9e2012-06-14 16:16:18 +020043 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +020044 };
45
Roland Stigge6d1c3e92012-06-14 16:16:17 +020046 mlc: flash@200a8000 {
Roland Stiggee04920d2012-04-22 12:01:19 +020047 compatible = "nxp,lpc3220-mlc";
Roland Stigge6d1c3e92012-06-14 16:16:17 +020048 reg = <0x200a8000 0x11000>;
49 interrupts = <11 0>;
Roland Stiggecb85a9e2012-06-14 16:16:18 +020050 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +020051 };
52
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +030053 dma: dma@31000000 {
Roland Stiggee04920d2012-04-22 12:01:19 +020054 compatible = "arm,pl080", "arm,primecell";
55 reg = <0x31000000 0x1000>;
56 interrupts = <0x1c 0>;
57 };
58
59 /*
60 * Enable either ohci or usbd (gadget)!
61 */
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +030062 ohci: ohci@31020000 {
Roland Stiggee04920d2012-04-22 12:01:19 +020063 compatible = "nxp,ohci-nxp", "usb-ohci";
64 reg = <0x31020000 0x300>;
65 interrupts = <0x3b 0>;
Roland Stiggecb85a9e2012-06-14 16:16:18 +020066 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +020067 };
68
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +030069 usbd: usbd@31020000 {
Roland Stiggee04920d2012-04-22 12:01:19 +020070 compatible = "nxp,lpc3220-udc";
71 reg = <0x31020000 0x300>;
72 interrupts = <0x3d 0>, <0x3e 0>, <0x3c 0>, <0x3a 0>;
Roland Stiggecb85a9e2012-06-14 16:16:18 +020073 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +020074 };
75
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +030076 clcd: clcd@31040000 {
Roland Stiggee04920d2012-04-22 12:01:19 +020077 compatible = "arm,pl110", "arm,primecell";
78 reg = <0x31040000 0x1000>;
79 interrupts = <0x0e 0>;
Roland Stiggecb85a9e2012-06-14 16:16:18 +020080 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +020081 };
82
83 mac: ethernet@31060000 {
84 compatible = "nxp,lpc-eth";
85 reg = <0x31060000 0x1000>;
86 interrupts = <0x1d 0>;
87 };
88
89 apb {
90 #address-cells = <1>;
91 #size-cells = <1>;
92 compatible = "simple-bus";
93 ranges = <0x20000000 0x20000000 0x30000000>;
94
95 ssp0: ssp@20084000 {
96 compatible = "arm,pl022", "arm,primecell";
97 reg = <0x20084000 0x1000>;
98 interrupts = <0x14 0>;
99 };
100
101 spi1: spi@20088000 {
102 compatible = "nxp,lpc3220-spi";
103 reg = <0x20088000 0x1000>;
104 };
105
106 ssp1: ssp@2008c000 {
107 compatible = "arm,pl022", "arm,primecell";
108 reg = <0x2008c000 0x1000>;
109 interrupts = <0x15 0>;
110 };
111
112 spi2: spi@20090000 {
113 compatible = "nxp,lpc3220-spi";
114 reg = <0x20090000 0x1000>;
115 };
116
117 i2s0: i2s@20094000 {
118 compatible = "nxp,lpc3220-i2s";
119 reg = <0x20094000 0x1000>;
120 };
121
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300122 sd: sd@20098000 {
Roland Stigge2c7fa282012-06-14 16:16:18 +0200123 compatible = "arm,pl18x", "arm,primecell";
Roland Stiggee04920d2012-04-22 12:01:19 +0200124 reg = <0x20098000 0x1000>;
125 interrupts = <0x0f 0>, <0x0d 0>;
Roland Stigge2c7fa282012-06-14 16:16:18 +0200126 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200127 };
128
129 i2s1: i2s@2009C000 {
130 compatible = "nxp,lpc3220-i2s";
131 reg = <0x2009C000 0x1000>;
132 };
133
Roland Stiggec70426f2012-06-14 16:16:18 +0200134 /* UART5 first since it is the default console, ttyS0 */
135 uart5: serial@40090000 {
136 /* actually, ns16550a w/ 64 byte fifos! */
137 compatible = "nxp,lpc3220-uart";
138 reg = <0x40090000 0x1000>;
139 interrupts = <9 0>;
140 clock-frequency = <13000000>;
141 reg-shift = <2>;
142 status = "disabled";
143 };
144
Roland Stiggee04920d2012-04-22 12:01:19 +0200145 uart3: serial@40080000 {
Roland Stiggec70426f2012-06-14 16:16:18 +0200146 compatible = "nxp,lpc3220-uart";
Roland Stiggee04920d2012-04-22 12:01:19 +0200147 reg = <0x40080000 0x1000>;
Roland Stiggec70426f2012-06-14 16:16:18 +0200148 interrupts = <7 0>;
149 clock-frequency = <13000000>;
150 reg-shift = <2>;
151 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200152 };
153
154 uart4: serial@40088000 {
Roland Stiggec70426f2012-06-14 16:16:18 +0200155 compatible = "nxp,lpc3220-uart";
Roland Stiggee04920d2012-04-22 12:01:19 +0200156 reg = <0x40088000 0x1000>;
Roland Stiggec70426f2012-06-14 16:16:18 +0200157 interrupts = <8 0>;
158 clock-frequency = <13000000>;
159 reg-shift = <2>;
160 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200161 };
162
163 uart6: serial@40098000 {
Roland Stiggec70426f2012-06-14 16:16:18 +0200164 compatible = "nxp,lpc3220-uart";
Roland Stiggee04920d2012-04-22 12:01:19 +0200165 reg = <0x40098000 0x1000>;
Roland Stiggec70426f2012-06-14 16:16:18 +0200166 interrupts = <10 0>;
167 clock-frequency = <13000000>;
168 reg-shift = <2>;
169 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200170 };
171
172 i2c1: i2c@400A0000 {
173 compatible = "nxp,pnx-i2c";
174 reg = <0x400A0000 0x100>;
175 interrupts = <0x33 0>;
176 #address-cells = <1>;
177 #size-cells = <0>;
178 pnx,timeout = <0x64>;
179 };
180
181 i2c2: i2c@400A8000 {
182 compatible = "nxp,pnx-i2c";
183 reg = <0x400A8000 0x100>;
184 interrupts = <0x32 0>;
185 #address-cells = <1>;
186 #size-cells = <0>;
187 pnx,timeout = <0x64>;
188 };
189
Alban Bedelb7d41c92012-11-14 13:59:45 +0100190 mpwm: mpwm@400E8000 {
191 compatible = "nxp,lpc3220-motor-pwm";
192 reg = <0x400E8000 0x78>;
193 status = "disabled";
194 #pwm-cells = <2>;
195 };
196
Roland Stiggee04920d2012-04-22 12:01:19 +0200197 i2cusb: i2c@31020300 {
198 compatible = "nxp,pnx-i2c";
199 reg = <0x31020300 0x100>;
200 interrupts = <0x3f 0>;
201 #address-cells = <1>;
202 #size-cells = <0>;
203 pnx,timeout = <0x64>;
204 };
205 };
206
207 fab {
208 #address-cells = <1>;
209 #size-cells = <1>;
210 compatible = "simple-bus";
211 ranges = <0x20000000 0x20000000 0x30000000>;
212
213 /*
214 * MIC Interrupt controller includes:
215 * MIC @40008000
216 * SIC1 @4000C000
217 * SIC2 @40010000
218 */
219 mic: interrupt-controller@40008000 {
220 compatible = "nxp,lpc3220-mic";
221 interrupt-controller;
222 reg = <0x40008000 0xC000>;
223 #interrupt-cells = <2>;
224 };
225
226 uart1: serial@40014000 {
Roland Stiggeac5ced92012-06-14 16:16:18 +0200227 compatible = "nxp,lpc3220-hsuart";
Roland Stiggee04920d2012-04-22 12:01:19 +0200228 reg = <0x40014000 0x1000>;
Roland Stiggeac5ced92012-06-14 16:16:18 +0200229 interrupts = <26 0>;
230 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200231 };
232
233 uart2: serial@40018000 {
Roland Stiggeac5ced92012-06-14 16:16:18 +0200234 compatible = "nxp,lpc3220-hsuart";
Roland Stiggee04920d2012-04-22 12:01:19 +0200235 reg = <0x40018000 0x1000>;
Roland Stiggeac5ced92012-06-14 16:16:18 +0200236 interrupts = <25 0>;
237 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200238 };
239
Roland Stiggeac5ced92012-06-14 16:16:18 +0200240 uart7: serial@4001c000 {
241 compatible = "nxp,lpc3220-hsuart";
242 reg = <0x4001c000 0x1000>;
243 interrupts = <24 0>;
244 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200245 };
246
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300247 rtc: rtc@40024000 {
Roland Stiggee04920d2012-04-22 12:01:19 +0200248 compatible = "nxp,lpc3220-rtc";
249 reg = <0x40024000 0x1000>;
250 interrupts = <0x34 0>;
251 };
252
253 gpio: gpio@40028000 {
254 compatible = "nxp,lpc3220-gpio";
255 reg = <0x40028000 0x1000>;
Roland Stiggea0352542012-05-19 12:28:53 +0200256 gpio-controller;
257 #gpio-cells = <3>; /* bank, pin, flags */
Roland Stiggee04920d2012-04-22 12:01:19 +0200258 };
259
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300260 watchdog: watchdog@4003C000 {
Roland Stiggee04920d2012-04-22 12:01:19 +0200261 compatible = "nxp,pnx4008-wdt";
262 reg = <0x4003C000 0x1000>;
263 };
264
265 /*
266 * TSC vs. ADC: Since those two share the same
267 * hardware, you need to choose from one of the
268 * following two and do 'status = "okay";' for one of
269 * them
270 */
271
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300272 adc: adc@40048000 {
Roland Stiggee04920d2012-04-22 12:01:19 +0200273 compatible = "nxp,lpc3220-adc";
274 reg = <0x40048000 0x1000>;
275 interrupts = <0x27 0>;
Roland Stiggecb85a9e2012-06-14 16:16:18 +0200276 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200277 };
278
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300279 tsc: tsc@40048000 {
Roland Stiggee04920d2012-04-22 12:01:19 +0200280 compatible = "nxp,lpc3220-tsc";
281 reg = <0x40048000 0x1000>;
282 interrupts = <0x27 0>;
Roland Stiggecb85a9e2012-06-14 16:16:18 +0200283 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200284 };
285
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300286 key: key@40050000 {
Roland Stiggee04920d2012-04-22 12:01:19 +0200287 compatible = "nxp,lpc3220-key";
288 reg = <0x40050000 0x1000>;
Roland Stiggea6d1be02012-06-14 16:16:17 +0200289 interrupts = <54 0>;
290 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200291 };
292
Vladimir Zapolskiy2a6c6562015-10-18 00:35:53 +0300293 pwm1: pwm@4005C000 {
Alexandre Pereira da Silvade639852012-07-20 13:33:09 +0200294 compatible = "nxp,lpc3220-pwm";
Vladimir Zapolskiy2a6c6562015-10-18 00:35:53 +0300295 reg = <0x4005C000 0x4>;
296 status = "disabled";
297 };
298
299 pwm2: pwm@4005C004 {
300 compatible = "nxp,lpc3220-pwm";
301 reg = <0x4005C004 0x4>;
Alexandre Pereira da Silvade639852012-07-20 13:33:09 +0200302 status = "disabled";
303 };
Roland Stiggee04920d2012-04-22 12:01:19 +0200304 };
305 };
306};