1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2015-2019 Vladimir Zapolskiy <vz@mleia.com>
6 * Copyright 2012 Roland Stigge <stigge@antcom.de>
9 #include <dt-bindings/clock/lpc32xx-clock.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
15 compatible = "nxp,lpc3220";
16 interrupt-parent = <&mic>;
23 compatible = "arm,arm926ej-s";
31 compatible = "fixed-clock";
33 clock-frequency = <32768>;
34 clock-output-names = "xtal_32k";
38 compatible = "fixed-clock";
40 clock-frequency = <13000000>;
41 clock-output-names = "xtal";
48 compatible = "simple-bus";
49 ranges = <0x00000000 0x00000000 0x10000000>,
50 <0x20000000 0x20000000 0x30000000>,
51 <0xe0000000 0xe0000000 0x04000000>;
54 compatible = "mmio-sram";
55 reg = <0x08000000 0x20000>;
59 ranges = <0x00000000 0x08000000 0x20000>;
63 * Enable either SLC or MLC
66 compatible = "nxp,lpc3220-slc";
67 reg = <0x20020000 0x1000>;
68 clocks = <&clk LPC32XX_CLK_SLC>;
73 compatible = "nxp,lpc3220-mlc";
74 reg = <0x200a8000 0x11000>;
75 interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
76 clocks = <&clk LPC32XX_CLK_MLC>;
81 compatible = "arm,pl080", "arm,primecell";
82 reg = <0x31000000 0x1000>;
83 interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
84 clocks = <&clk LPC32XX_CLK_DMA>;
85 clock-names = "apb_pclk";
91 compatible = "simple-bus";
92 ranges = <0x0 0x31020000 0x00001000>;
95 * Enable either ohci or usbd (gadget)!
98 compatible = "nxp,ohci-nxp", "usb-ohci";
100 interrupt-parent = <&sic1>;
101 interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
102 clocks = <&usbclk LPC32XX_USB_CLK_HOST>;
107 compatible = "nxp,lpc3220-udc";
109 interrupt-parent = <&sic1>;
110 interrupts = <29 IRQ_TYPE_LEVEL_HIGH>,
111 <30 IRQ_TYPE_LEVEL_HIGH>,
112 <28 IRQ_TYPE_LEVEL_HIGH>,
113 <26 IRQ_TYPE_LEVEL_LOW>;
114 clocks = <&usbclk LPC32XX_USB_CLK_DEVICE>;
119 compatible = "nxp,pnx-i2c";
121 interrupt-parent = <&sic1>;
122 interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
123 clocks = <&usbclk LPC32XX_USB_CLK_I2C>;
124 #address-cells = <1>;
126 pnx,timeout = <0x64>;
129 usbclk: clock-controller@f00 {
130 compatible = "nxp,lpc3220-usb-clk";
136 clcd: clcd@31040000 {
137 compatible = "arm,pl111", "arm,primecell";
138 reg = <0x31040000 0x1000>;
139 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;
140 clocks = <&clk LPC32XX_CLK_LCD>, <&clk LPC32XX_CLK_LCD>;
141 clock-names = "clcdclk", "apb_pclk";
145 mac: ethernet@31060000 {
146 compatible = "nxp,lpc-eth";
147 reg = <0x31060000 0x1000>;
148 interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
149 clocks = <&clk LPC32XX_CLK_MAC>;
153 emc: memory-controller@31080000 {
154 compatible = "arm,pl175", "arm,primecell";
155 reg = <0x31080000 0x1000>;
156 clocks = <&clk LPC32XX_CLK_DDRAM>, <&clk LPC32XX_CLK_DDRAM>;
157 clock-names = "mpmcclk", "apb_pclk";
158 #address-cells = <1>;
161 ranges = <0 0xe0000000 0x01000000>,
162 <1 0xe1000000 0x01000000>,
163 <2 0xe2000000 0x01000000>,
164 <3 0xe3000000 0x01000000>;
169 #address-cells = <1>;
171 compatible = "simple-bus";
172 ranges = <0x20000000 0x20000000 0x30000000>;
175 * ssp0 and spi1 are shared pins;
176 * enable one in your board dts, as needed.
179 compatible = "arm,pl022", "arm,primecell";
180 reg = <0x20084000 0x1000>;
181 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
182 clocks = <&clk LPC32XX_CLK_SSP0>;
183 clock-names = "apb_pclk";
184 #address-cells = <1>;
190 compatible = "nxp,lpc3220-spi";
191 reg = <0x20088000 0x1000>;
192 clocks = <&clk LPC32XX_CLK_SPI1>;
193 #address-cells = <1>;
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";
208 #address-cells = <1>;
214 compatible = "nxp,lpc3220-spi";
215 reg = <0x20090000 0x1000>;
216 clocks = <&clk LPC32XX_CLK_SPI2>;
217 #address-cells = <1>;
223 compatible = "nxp,lpc3220-i2s";
224 reg = <0x20094000 0x1000>;
229 compatible = "arm,pl18x", "arm,primecell";
230 reg = <0x20098000 0x1000>;
231 interrupts = <15 IRQ_TYPE_LEVEL_HIGH>,
232 <13 IRQ_TYPE_LEVEL_HIGH>;
233 clocks = <&clk LPC32XX_CLK_SD>;
234 clock-names = "apb_pclk";
239 compatible = "nxp,lpc3220-i2s";
240 reg = <0x2009c000 0x1000>;
244 /* UART5 first since it is the default console, ttyS0 */
245 uart5: serial@40090000 {
246 /* actually, ns16550a w/ 64 byte fifos! */
247 compatible = "nxp,lpc3220-uart";
248 reg = <0x40090000 0x1000>;
249 interrupts = <9 IRQ_TYPE_LEVEL_HIGH>;
251 clocks = <&clk LPC32XX_CLK_UART5>;
255 uart3: serial@40080000 {
256 compatible = "nxp,lpc3220-uart";
257 reg = <0x40080000 0x1000>;
258 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
260 clocks = <&clk LPC32XX_CLK_UART3>;
264 uart4: serial@40088000 {
265 compatible = "nxp,lpc3220-uart";
266 reg = <0x40088000 0x1000>;
267 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
269 clocks = <&clk LPC32XX_CLK_UART4>;
273 uart6: serial@40098000 {
274 compatible = "nxp,lpc3220-uart";
275 reg = <0x40098000 0x1000>;
276 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
278 clocks = <&clk LPC32XX_CLK_UART6>;
283 compatible = "nxp,pnx-i2c";
284 reg = <0x400a0000 0x100>;
285 interrupt-parent = <&sic1>;
286 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
287 #address-cells = <1>;
289 pnx,timeout = <0x64>;
290 clocks = <&clk LPC32XX_CLK_I2C1>;
294 compatible = "nxp,pnx-i2c";
295 reg = <0x400a8000 0x100>;
296 interrupt-parent = <&sic1>;
297 interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
298 #address-cells = <1>;
300 pnx,timeout = <0x64>;
301 clocks = <&clk LPC32XX_CLK_I2C2>;
304 mpwm: mpwm@400e8000 {
305 compatible = "nxp,lpc3220-motor-pwm";
306 reg = <0x400e8000 0x78>;
313 #address-cells = <1>;
315 compatible = "simple-bus";
316 ranges = <0x20000000 0x20000000 0x30000000>;
318 /* System Control Block */
320 compatible = "simple-bus";
321 ranges = <0x0 0x040004000 0x00001000>;
322 #address-cells = <1>;
325 clk: clock-controller@0 {
326 compatible = "nxp,lpc3220-clk";
330 clocks = <&xtal_32k>, <&xtal>;
331 clock-names = "xtal_32k", "xtal";
333 assigned-clocks = <&clk LPC32XX_CLK_HCLK_PLL>;
334 assigned-clock-rates = <208000000>;
338 mic: interrupt-controller@40008000 {
339 compatible = "nxp,lpc3220-mic";
340 reg = <0x40008000 0x4000>;
341 interrupt-controller;
342 #interrupt-cells = <2>;
345 sic1: interrupt-controller@4000c000 {
346 compatible = "nxp,lpc3220-sic";
347 reg = <0x4000c000 0x4000>;
348 interrupt-controller;
349 #interrupt-cells = <2>;
351 interrupt-parent = <&mic>;
352 interrupts = <0 IRQ_TYPE_LEVEL_LOW>,
353 <30 IRQ_TYPE_LEVEL_LOW>;
356 sic2: interrupt-controller@40010000 {
357 compatible = "nxp,lpc3220-sic";
358 reg = <0x40010000 0x4000>;
359 interrupt-controller;
360 #interrupt-cells = <2>;
362 interrupt-parent = <&mic>;
363 interrupts = <1 IRQ_TYPE_LEVEL_LOW>,
364 <31 IRQ_TYPE_LEVEL_LOW>;
367 uart1: serial@40014000 {
368 compatible = "nxp,lpc3220-hsuart";
369 reg = <0x40014000 0x1000>;
370 interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
374 uart2: serial@40018000 {
375 compatible = "nxp,lpc3220-hsuart";
376 reg = <0x40018000 0x1000>;
377 interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
381 uart7: serial@4001c000 {
382 compatible = "nxp,lpc3220-hsuart";
383 reg = <0x4001c000 0x1000>;
384 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
389 compatible = "nxp,lpc3220-rtc";
390 reg = <0x40024000 0x1000>;
391 interrupt-parent = <&sic1>;
392 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
393 clocks = <&clk LPC32XX_CLK_RTC>;
396 gpio: gpio@40028000 {
397 compatible = "nxp,lpc3220-gpio";
398 reg = <0x40028000 0x1000>;
400 #gpio-cells = <3>; /* bank, pin, flags */
403 timer4: timer@4002c000 {
404 compatible = "nxp,lpc3220-timer";
405 reg = <0x4002c000 0x1000>;
406 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
407 clocks = <&clk LPC32XX_CLK_TIMER4>;
408 clock-names = "timerclk";
412 timer5: timer@40030000 {
413 compatible = "nxp,lpc3220-timer";
414 reg = <0x40030000 0x1000>;
415 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
416 clocks = <&clk LPC32XX_CLK_TIMER5>;
417 clock-names = "timerclk";
421 watchdog: watchdog@4003c000 {
422 compatible = "nxp,pnx4008-wdt";
423 reg = <0x4003c000 0x1000>;
424 clocks = <&clk LPC32XX_CLK_WDOG>;
427 timer0: timer@40044000 {
428 compatible = "nxp,lpc3220-timer";
429 reg = <0x40044000 0x1000>;
430 clocks = <&clk LPC32XX_CLK_TIMER0>;
431 clock-names = "timerclk";
432 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
436 * TSC vs. ADC: Since those two share the same
437 * hardware, you need to choose from one of the
438 * following two and do 'status = "okay";' for one of
443 compatible = "nxp,lpc3220-adc";
444 reg = <0x40048000 0x1000>;
445 interrupt-parent = <&sic1>;
446 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
447 clocks = <&clk LPC32XX_CLK_ADC>;
452 compatible = "nxp,lpc3220-tsc";
453 reg = <0x40048000 0x1000>;
454 interrupt-parent = <&sic1>;
455 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
456 clocks = <&clk LPC32XX_CLK_ADC>;
460 timer1: timer@4004c000 {
461 compatible = "nxp,lpc3220-timer";
462 reg = <0x4004c000 0x1000>;
463 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
464 clocks = <&clk LPC32XX_CLK_TIMER1>;
465 clock-names = "timerclk";
469 compatible = "nxp,lpc3220-key";
470 reg = <0x40050000 0x1000>;
471 clocks = <&clk LPC32XX_CLK_KEY>;
472 interrupt-parent = <&sic1>;
473 interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
477 timer2: timer@40058000 {
478 compatible = "nxp,lpc3220-timer";
479 reg = <0x40058000 0x1000>;
480 interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
481 clocks = <&clk LPC32XX_CLK_TIMER2>;
482 clock-names = "timerclk";
487 compatible = "nxp,lpc3220-pwm";
488 reg = <0x4005c000 0x4>;
489 clocks = <&clk LPC32XX_CLK_PWM1>;
490 assigned-clocks = <&clk LPC32XX_CLK_PWM1>;
491 assigned-clock-parents = <&clk LPC32XX_CLK_PERIPH>;
496 compatible = "nxp,lpc3220-pwm";
497 reg = <0x4005c004 0x4>;
498 clocks = <&clk LPC32XX_CLK_PWM2>;
499 assigned-clocks = <&clk LPC32XX_CLK_PWM2>;
500 assigned-clock-parents = <&clk LPC32XX_CLK_PERIPH>;
504 timer3: timer@40060000 {
505 compatible = "nxp,lpc3220-timer";
506 reg = <0x40060000 0x1000>;
507 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
508 clocks = <&clk LPC32XX_CLK_TIMER3>;
509 clock-names = "timerclk";