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 = <0x00000000 0x00000000 0x10000000>,
55 <0x20000000 0x20000000 0x30000000>,
56 <0xe0000000 0xe0000000 0x04000000>;
59 compatible = "mmio-sram";
60 reg = <0x08000000 0x20000>;
64 ranges = <0x00000000 0x08000000 0x20000>;
68 * Enable either SLC or MLC
71 compatible = "nxp,lpc3220-slc";
72 reg = <0x20020000 0x1000>;
73 clocks = <&clk LPC32XX_CLK_SLC>;
78 compatible = "nxp,lpc3220-mlc";
79 reg = <0x200a8000 0x11000>;
80 interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
81 clocks = <&clk LPC32XX_CLK_MLC>;
86 compatible = "arm,pl080", "arm,primecell";
87 reg = <0x31000000 0x1000>;
88 interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
89 clocks = <&clk LPC32XX_CLK_DMA>;
90 clock-names = "apb_pclk";
96 compatible = "simple-bus";
97 ranges = <0x0 0x31020000 0x00001000>;
100 * Enable either ohci or usbd (gadget)!
103 compatible = "nxp,ohci-nxp", "usb-ohci";
105 interrupt-parent = <&sic1>;
106 interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
107 clocks = <&usbclk LPC32XX_USB_CLK_HOST>;
112 compatible = "nxp,lpc3220-udc";
114 interrupt-parent = <&sic1>;
115 interrupts = <29 IRQ_TYPE_LEVEL_HIGH>,
116 <30 IRQ_TYPE_LEVEL_HIGH>,
117 <28 IRQ_TYPE_LEVEL_HIGH>,
118 <26 IRQ_TYPE_LEVEL_LOW>;
119 clocks = <&usbclk LPC32XX_USB_CLK_DEVICE>;
124 compatible = "nxp,pnx-i2c";
126 interrupt-parent = <&sic1>;
127 interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
128 clocks = <&usbclk LPC32XX_USB_CLK_I2C>;
129 #address-cells = <1>;
131 pnx,timeout = <0x64>;
134 usbclk: clock-controller@f00 {
135 compatible = "nxp,lpc3220-usb-clk";
141 clcd: clcd@31040000 {
142 compatible = "arm,pl110", "arm,primecell";
143 reg = <0x31040000 0x1000>;
144 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;
145 clocks = <&clk LPC32XX_CLK_LCD>;
146 clock-names = "apb_pclk";
150 mac: ethernet@31060000 {
151 compatible = "nxp,lpc-eth";
152 reg = <0x31060000 0x1000>;
153 interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
154 clocks = <&clk LPC32XX_CLK_MAC>;
157 emc: memory-controller@31080000 {
158 compatible = "arm,pl175", "arm,primecell";
159 reg = <0x31080000 0x1000>;
160 clocks = <&clk LPC32XX_CLK_DDRAM>, <&clk LPC32XX_CLK_DDRAM>;
161 clock-names = "mpmcclk", "apb_pclk";
162 #address-cells = <1>;
165 ranges = <0 0xe0000000 0x01000000>,
166 <1 0xe1000000 0x01000000>,
167 <2 0xe2000000 0x01000000>,
168 <3 0xe3000000 0x01000000>;
173 #address-cells = <1>;
175 compatible = "simple-bus";
176 ranges = <0x20000000 0x20000000 0x30000000>;
179 * ssp0 and spi1 are shared pins;
180 * enable one in your board dts, as needed.
183 compatible = "arm,pl022", "arm,primecell";
184 reg = <0x20084000 0x1000>;
185 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
186 clocks = <&clk LPC32XX_CLK_SSP0>;
187 clock-names = "apb_pclk";
192 compatible = "nxp,lpc3220-spi";
193 reg = <0x20088000 0x1000>;
194 clocks = <&clk LPC32XX_CLK_SPI1>;
199 * ssp1 and spi2 are shared pins;
200 * enable one in your board dts, as needed.
203 compatible = "arm,pl022", "arm,primecell";
204 reg = <0x2008c000 0x1000>;
205 interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;
206 clocks = <&clk LPC32XX_CLK_SSP1>;
207 clock-names = "apb_pclk";
212 compatible = "nxp,lpc3220-spi";
213 reg = <0x20090000 0x1000>;
214 clocks = <&clk LPC32XX_CLK_SPI2>;
219 compatible = "nxp,lpc3220-i2s";
220 reg = <0x20094000 0x1000>;
224 compatible = "arm,pl18x", "arm,primecell";
225 reg = <0x20098000 0x1000>;
226 interrupts = <15 IRQ_TYPE_LEVEL_HIGH>,
227 <13 IRQ_TYPE_LEVEL_HIGH>;
228 clocks = <&clk LPC32XX_CLK_SD>;
229 clock-names = "apb_pclk";
234 compatible = "nxp,lpc3220-i2s";
235 reg = <0x2009C000 0x1000>;
238 /* UART5 first since it is the default console, ttyS0 */
239 uart5: serial@40090000 {
240 /* actually, ns16550a w/ 64 byte fifos! */
241 compatible = "nxp,lpc3220-uart";
242 reg = <0x40090000 0x1000>;
243 interrupts = <9 IRQ_TYPE_LEVEL_HIGH>;
245 clocks = <&clk LPC32XX_CLK_UART5>;
249 uart3: serial@40080000 {
250 compatible = "nxp,lpc3220-uart";
251 reg = <0x40080000 0x1000>;
252 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
254 clocks = <&clk LPC32XX_CLK_UART3>;
258 uart4: serial@40088000 {
259 compatible = "nxp,lpc3220-uart";
260 reg = <0x40088000 0x1000>;
261 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
263 clocks = <&clk LPC32XX_CLK_UART4>;
267 uart6: serial@40098000 {
268 compatible = "nxp,lpc3220-uart";
269 reg = <0x40098000 0x1000>;
270 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
272 clocks = <&clk LPC32XX_CLK_UART6>;
277 compatible = "nxp,pnx-i2c";
278 reg = <0x400A0000 0x100>;
279 interrupt-parent = <&sic1>;
280 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
281 #address-cells = <1>;
283 pnx,timeout = <0x64>;
284 clocks = <&clk LPC32XX_CLK_I2C1>;
288 compatible = "nxp,pnx-i2c";
289 reg = <0x400A8000 0x100>;
290 interrupt-parent = <&sic1>;
291 interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
292 #address-cells = <1>;
294 pnx,timeout = <0x64>;
295 clocks = <&clk LPC32XX_CLK_I2C2>;
298 mpwm: mpwm@400E8000 {
299 compatible = "nxp,lpc3220-motor-pwm";
300 reg = <0x400E8000 0x78>;
307 #address-cells = <1>;
309 compatible = "simple-bus";
310 ranges = <0x20000000 0x20000000 0x30000000>;
312 /* System Control Block */
314 compatible = "simple-bus";
315 ranges = <0x0 0x040004000 0x00001000>;
316 #address-cells = <1>;
319 clk: clock-controller@0 {
320 compatible = "nxp,lpc3220-clk";
324 clocks = <&xtal_32k>, <&xtal>;
325 clock-names = "xtal_32k", "xtal";
327 assigned-clocks = <&clk LPC32XX_CLK_HCLK_PLL>;
328 assigned-clock-rates = <208000000>;
332 mic: interrupt-controller@40008000 {
333 compatible = "nxp,lpc3220-mic";
334 reg = <0x40008000 0x4000>;
335 interrupt-controller;
336 #interrupt-cells = <2>;
339 sic1: interrupt-controller@4000c000 {
340 compatible = "nxp,lpc3220-sic";
341 reg = <0x4000c000 0x4000>;
342 interrupt-controller;
343 #interrupt-cells = <2>;
345 interrupt-parent = <&mic>;
346 interrupts = <0 IRQ_TYPE_LEVEL_LOW>,
347 <30 IRQ_TYPE_LEVEL_LOW>;
350 sic2: interrupt-controller@40010000 {
351 compatible = "nxp,lpc3220-sic";
352 reg = <0x40010000 0x4000>;
353 interrupt-controller;
354 #interrupt-cells = <2>;
356 interrupt-parent = <&mic>;
357 interrupts = <1 IRQ_TYPE_LEVEL_LOW>,
358 <31 IRQ_TYPE_LEVEL_LOW>;
361 uart1: serial@40014000 {
362 compatible = "nxp,lpc3220-hsuart";
363 reg = <0x40014000 0x1000>;
364 interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
368 uart2: serial@40018000 {
369 compatible = "nxp,lpc3220-hsuart";
370 reg = <0x40018000 0x1000>;
371 interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
375 uart7: serial@4001c000 {
376 compatible = "nxp,lpc3220-hsuart";
377 reg = <0x4001c000 0x1000>;
378 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
383 compatible = "nxp,lpc3220-rtc";
384 reg = <0x40024000 0x1000>;
385 interrupt-parent = <&sic1>;
386 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
387 clocks = <&clk LPC32XX_CLK_RTC>;
390 gpio: gpio@40028000 {
391 compatible = "nxp,lpc3220-gpio";
392 reg = <0x40028000 0x1000>;
394 #gpio-cells = <3>; /* bank, pin, flags */
397 timer4: timer@4002C000 {
398 compatible = "nxp,lpc3220-timer";
399 reg = <0x4002C000 0x1000>;
400 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
401 clocks = <&clk LPC32XX_CLK_TIMER4>;
402 clock-names = "timerclk";
406 timer5: timer@40030000 {
407 compatible = "nxp,lpc3220-timer";
408 reg = <0x40030000 0x1000>;
409 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
410 clocks = <&clk LPC32XX_CLK_TIMER5>;
411 clock-names = "timerclk";
415 watchdog: watchdog@4003C000 {
416 compatible = "nxp,pnx4008-wdt";
417 reg = <0x4003C000 0x1000>;
418 clocks = <&clk LPC32XX_CLK_WDOG>;
421 timer0: timer@40044000 {
422 compatible = "nxp,lpc3220-timer";
423 reg = <0x40044000 0x1000>;
424 clocks = <&clk LPC32XX_CLK_TIMER0>;
425 clock-names = "timerclk";
426 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
430 * TSC vs. ADC: Since those two share the same
431 * hardware, you need to choose from one of the
432 * following two and do 'status = "okay";' for one of
437 compatible = "nxp,lpc3220-adc";
438 reg = <0x40048000 0x1000>;
439 interrupt-parent = <&sic1>;
440 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
441 clocks = <&clk LPC32XX_CLK_ADC>;
446 compatible = "nxp,lpc3220-tsc";
447 reg = <0x40048000 0x1000>;
448 interrupt-parent = <&sic1>;
449 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
450 clocks = <&clk LPC32XX_CLK_ADC>;
454 timer1: timer@4004C000 {
455 compatible = "nxp,lpc3220-timer";
456 reg = <0x4004C000 0x1000>;
457 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
458 clocks = <&clk LPC32XX_CLK_TIMER1>;
459 clock-names = "timerclk";
463 compatible = "nxp,lpc3220-key";
464 reg = <0x40050000 0x1000>;
465 interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
469 timer2: timer@40058000 {
470 compatible = "nxp,lpc3220-timer";
471 reg = <0x40058000 0x1000>;
472 interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
473 clocks = <&clk LPC32XX_CLK_TIMER2>;
474 clock-names = "timerclk";
479 compatible = "nxp,lpc3220-pwm";
480 reg = <0x4005C000 0x4>;
481 clocks = <&clk LPC32XX_CLK_PWM1>;
482 assigned-clocks = <&clk LPC32XX_CLK_PWM1>;
483 assigned-clock-parents = <&clk LPC32XX_CLK_PERIPH>;
488 compatible = "nxp,lpc3220-pwm";
489 reg = <0x4005C004 0x4>;
490 clocks = <&clk LPC32XX_CLK_PWM2>;
491 assigned-clocks = <&clk LPC32XX_CLK_PWM2>;
492 assigned-clock-parents = <&clk LPC32XX_CLK_PERIPH>;
496 timer3: timer@40060000 {
497 compatible = "nxp,lpc3220-timer";
498 reg = <0x40060000 0x1000>;
499 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
500 clocks = <&clk LPC32XX_CLK_TIMER3>;
501 clock-names = "timerclk";