4 * Copyright 2012 Roland Stigge <stigge@antcom.de>
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:
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
14 #include "skeleton.dtsi"
16 #include <dt-bindings/clock/lpc32xx-clock.h>
17 #include <dt-bindings/interrupt-controller/irq.h>
20 compatible = "nxp,lpc3220";
21 interrupt-parent = <&mic>;
28 compatible = "arm,arm926ej-s";
36 compatible = "fixed-clock";
38 clock-frequency = <32768>;
39 clock-output-names = "xtal_32k";
43 compatible = "fixed-clock";
45 clock-frequency = <13000000>;
46 clock-output-names = "xtal";
53 compatible = "simple-bus";
54 ranges = <0x20000000 0x20000000 0x30000000>,
55 <0xe0000000 0xe0000000 0x04000000>;
58 * Enable either SLC or MLC
61 compatible = "nxp,lpc3220-slc";
62 reg = <0x20020000 0x1000>;
63 clocks = <&clk LPC32XX_CLK_SLC>;
68 compatible = "nxp,lpc3220-mlc";
69 reg = <0x200a8000 0x11000>;
70 interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
71 clocks = <&clk LPC32XX_CLK_MLC>;
76 compatible = "arm,pl080", "arm,primecell";
77 reg = <0x31000000 0x1000>;
78 interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
79 clocks = <&clk LPC32XX_CLK_DMA>;
80 clock-names = "apb_pclk";
86 compatible = "simple-bus";
87 ranges = <0x0 0x31020000 0x00001000>;
90 * Enable either ohci or usbd (gadget)!
93 compatible = "nxp,ohci-nxp", "usb-ohci";
95 interrupt-parent = <&sic1>;
96 interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
97 clocks = <&usbclk LPC32XX_USB_CLK_HOST>;
102 compatible = "nxp,lpc3220-udc";
104 interrupt-parent = <&sic1>;
105 interrupts = <29 IRQ_TYPE_LEVEL_HIGH>,
106 <30 IRQ_TYPE_LEVEL_HIGH>,
107 <28 IRQ_TYPE_LEVEL_HIGH>,
108 <26 IRQ_TYPE_LEVEL_LOW>;
109 clocks = <&usbclk LPC32XX_USB_CLK_DEVICE>;
114 compatible = "nxp,pnx-i2c";
116 interrupt-parent = <&sic1>;
117 interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
118 clocks = <&usbclk LPC32XX_USB_CLK_I2C>;
119 #address-cells = <1>;
121 pnx,timeout = <0x64>;
124 usbclk: clock-controller@f00 {
125 compatible = "nxp,lpc3220-usb-clk";
131 clcd: clcd@31040000 {
132 compatible = "arm,pl110", "arm,primecell";
133 reg = <0x31040000 0x1000>;
134 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;
135 clocks = <&clk LPC32XX_CLK_LCD>;
136 clock-names = "apb_pclk";
140 mac: ethernet@31060000 {
141 compatible = "nxp,lpc-eth";
142 reg = <0x31060000 0x1000>;
143 interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
144 clocks = <&clk LPC32XX_CLK_MAC>;
147 emc: memory-controller@31080000 {
148 compatible = "arm,pl175", "arm,primecell";
149 reg = <0x31080000 0x1000>;
150 clocks = <&clk LPC32XX_CLK_DDRAM>, <&clk LPC32XX_CLK_DDRAM>;
151 clock-names = "mpmcclk", "apb_pclk";
152 #address-cells = <1>;
155 ranges = <0 0xe0000000 0x01000000>,
156 <1 0xe1000000 0x01000000>,
157 <2 0xe2000000 0x01000000>,
158 <3 0xe3000000 0x01000000>;
163 #address-cells = <1>;
165 compatible = "simple-bus";
166 ranges = <0x20000000 0x20000000 0x30000000>;
169 * ssp0 and spi1 are shared pins;
170 * enable one in your board dts, as needed.
173 compatible = "arm,pl022", "arm,primecell";
174 reg = <0x20084000 0x1000>;
175 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
176 clocks = <&clk LPC32XX_CLK_SSP0>;
177 clock-names = "apb_pclk";
182 compatible = "nxp,lpc3220-spi";
183 reg = <0x20088000 0x1000>;
184 clocks = <&clk LPC32XX_CLK_SPI1>;
189 * ssp1 and spi2 are shared pins;
190 * enable one in your board dts, as needed.
193 compatible = "arm,pl022", "arm,primecell";
194 reg = <0x2008c000 0x1000>;
195 interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;
196 clocks = <&clk LPC32XX_CLK_SSP1>;
197 clock-names = "apb_pclk";
202 compatible = "nxp,lpc3220-spi";
203 reg = <0x20090000 0x1000>;
204 clocks = <&clk LPC32XX_CLK_SPI2>;
209 compatible = "nxp,lpc3220-i2s";
210 reg = <0x20094000 0x1000>;
214 compatible = "arm,pl18x", "arm,primecell";
215 reg = <0x20098000 0x1000>;
216 interrupts = <15 IRQ_TYPE_LEVEL_HIGH>,
217 <13 IRQ_TYPE_LEVEL_HIGH>;
218 clocks = <&clk LPC32XX_CLK_SD>;
219 clock-names = "apb_pclk";
224 compatible = "nxp,lpc3220-i2s";
225 reg = <0x2009C000 0x1000>;
228 /* UART5 first since it is the default console, ttyS0 */
229 uart5: serial@40090000 {
230 /* actually, ns16550a w/ 64 byte fifos! */
231 compatible = "nxp,lpc3220-uart";
232 reg = <0x40090000 0x1000>;
233 interrupts = <9 IRQ_TYPE_LEVEL_HIGH>;
235 clocks = <&clk LPC32XX_CLK_UART5>;
239 uart3: serial@40080000 {
240 compatible = "nxp,lpc3220-uart";
241 reg = <0x40080000 0x1000>;
242 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
244 clocks = <&clk LPC32XX_CLK_UART3>;
248 uart4: serial@40088000 {
249 compatible = "nxp,lpc3220-uart";
250 reg = <0x40088000 0x1000>;
251 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
253 clocks = <&clk LPC32XX_CLK_UART4>;
257 uart6: serial@40098000 {
258 compatible = "nxp,lpc3220-uart";
259 reg = <0x40098000 0x1000>;
260 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
262 clocks = <&clk LPC32XX_CLK_UART6>;
267 compatible = "nxp,pnx-i2c";
268 reg = <0x400A0000 0x100>;
269 interrupt-parent = <&sic1>;
270 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
271 #address-cells = <1>;
273 pnx,timeout = <0x64>;
274 clocks = <&clk LPC32XX_CLK_I2C1>;
278 compatible = "nxp,pnx-i2c";
279 reg = <0x400A8000 0x100>;
280 interrupt-parent = <&sic1>;
281 interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
282 #address-cells = <1>;
284 pnx,timeout = <0x64>;
285 clocks = <&clk LPC32XX_CLK_I2C2>;
288 mpwm: mpwm@400E8000 {
289 compatible = "nxp,lpc3220-motor-pwm";
290 reg = <0x400E8000 0x78>;
297 #address-cells = <1>;
299 compatible = "simple-bus";
300 ranges = <0x20000000 0x20000000 0x30000000>;
302 /* System Control Block */
304 compatible = "simple-bus";
305 ranges = <0x0 0x040004000 0x00001000>;
306 #address-cells = <1>;
309 clk: clock-controller@0 {
310 compatible = "nxp,lpc3220-clk";
314 clocks = <&xtal_32k>, <&xtal>;
315 clock-names = "xtal_32k", "xtal";
317 assigned-clocks = <&clk LPC32XX_CLK_HCLK_PLL>;
318 assigned-clock-rates = <208000000>;
322 mic: interrupt-controller@40008000 {
323 compatible = "nxp,lpc3220-mic";
324 reg = <0x40008000 0x4000>;
325 interrupt-controller;
326 #interrupt-cells = <2>;
329 sic1: interrupt-controller@4000c000 {
330 compatible = "nxp,lpc3220-sic";
331 reg = <0x4000c000 0x4000>;
332 interrupt-controller;
333 #interrupt-cells = <2>;
335 interrupt-parent = <&mic>;
336 interrupts = <0 IRQ_TYPE_LEVEL_LOW>,
337 <30 IRQ_TYPE_LEVEL_LOW>;
340 sic2: interrupt-controller@40010000 {
341 compatible = "nxp,lpc3220-sic";
342 reg = <0x40010000 0x4000>;
343 interrupt-controller;
344 #interrupt-cells = <2>;
346 interrupt-parent = <&mic>;
347 interrupts = <1 IRQ_TYPE_LEVEL_LOW>,
348 <31 IRQ_TYPE_LEVEL_LOW>;
351 uart1: serial@40014000 {
352 compatible = "nxp,lpc3220-hsuart";
353 reg = <0x40014000 0x1000>;
354 interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
358 uart2: serial@40018000 {
359 compatible = "nxp,lpc3220-hsuart";
360 reg = <0x40018000 0x1000>;
361 interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
365 uart7: serial@4001c000 {
366 compatible = "nxp,lpc3220-hsuart";
367 reg = <0x4001c000 0x1000>;
368 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
373 compatible = "nxp,lpc3220-rtc";
374 reg = <0x40024000 0x1000>;
375 interrupt-parent = <&sic1>;
376 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
377 clocks = <&clk LPC32XX_CLK_RTC>;
380 gpio: gpio@40028000 {
381 compatible = "nxp,lpc3220-gpio";
382 reg = <0x40028000 0x1000>;
384 #gpio-cells = <3>; /* bank, pin, flags */
387 timer4: timer@4002C000 {
388 compatible = "nxp,lpc3220-timer";
389 reg = <0x4002C000 0x1000>;
390 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
391 clocks = <&clk LPC32XX_CLK_TIMER4>;
392 clock-names = "timerclk";
396 timer5: timer@40030000 {
397 compatible = "nxp,lpc3220-timer";
398 reg = <0x40030000 0x1000>;
399 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
400 clocks = <&clk LPC32XX_CLK_TIMER5>;
401 clock-names = "timerclk";
405 watchdog: watchdog@4003C000 {
406 compatible = "nxp,pnx4008-wdt";
407 reg = <0x4003C000 0x1000>;
408 clocks = <&clk LPC32XX_CLK_WDOG>;
411 timer0: timer@40044000 {
412 compatible = "nxp,lpc3220-timer";
413 reg = <0x40044000 0x1000>;
414 clocks = <&clk LPC32XX_CLK_TIMER0>;
415 clock-names = "timerclk";
416 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
420 * TSC vs. ADC: Since those two share the same
421 * hardware, you need to choose from one of the
422 * following two and do 'status = "okay";' for one of
427 compatible = "nxp,lpc3220-adc";
428 reg = <0x40048000 0x1000>;
429 interrupt-parent = <&sic1>;
430 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
431 clocks = <&clk LPC32XX_CLK_ADC>;
436 compatible = "nxp,lpc3220-tsc";
437 reg = <0x40048000 0x1000>;
438 interrupt-parent = <&sic1>;
439 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
440 clocks = <&clk LPC32XX_CLK_ADC>;
444 timer1: timer@4004C000 {
445 compatible = "nxp,lpc3220-timer";
446 reg = <0x4004C000 0x1000>;
447 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
448 clocks = <&clk LPC32XX_CLK_TIMER1>;
449 clock-names = "timerclk";
453 compatible = "nxp,lpc3220-key";
454 reg = <0x40050000 0x1000>;
455 interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
459 timer2: timer@40058000 {
460 compatible = "nxp,lpc3220-timer";
461 reg = <0x40058000 0x1000>;
462 interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
463 clocks = <&clk LPC32XX_CLK_TIMER2>;
464 clock-names = "timerclk";
469 compatible = "nxp,lpc3220-pwm";
470 reg = <0x4005C000 0x4>;
471 clocks = <&clk LPC32XX_CLK_PWM1>;
476 compatible = "nxp,lpc3220-pwm";
477 reg = <0x4005C004 0x4>;
478 clocks = <&clk LPC32XX_CLK_PWM2>;
482 timer3: timer@40060000 {
483 compatible = "nxp,lpc3220-timer";
484 reg = <0x40060000 0x1000>;
485 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
486 clocks = <&clk LPC32XX_CLK_TIMER3>;
487 clock-names = "timerclk";