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>;
128 usbclk: clock-controller@f00 {
129 compatible = "nxp,lpc3220-usb-clk";
135 clcd: clcd@31040000 {
136 compatible = "arm,pl111", "arm,primecell";
137 reg = <0x31040000 0x1000>;
138 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;
139 clocks = <&clk LPC32XX_CLK_LCD>, <&clk LPC32XX_CLK_LCD>;
140 clock-names = "clcdclk", "apb_pclk";
144 mac: ethernet@31060000 {
145 compatible = "nxp,lpc-eth";
146 reg = <0x31060000 0x1000>;
147 interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
148 clocks = <&clk LPC32XX_CLK_MAC>;
152 emc: memory-controller@31080000 {
153 compatible = "arm,pl175", "arm,primecell";
154 reg = <0x31080000 0x1000>;
155 clocks = <&clk LPC32XX_CLK_DDRAM>, <&clk LPC32XX_CLK_DDRAM>;
156 clock-names = "mpmcclk", "apb_pclk";
157 #address-cells = <1>;
160 ranges = <0 0xe0000000 0x01000000>,
161 <1 0xe1000000 0x01000000>,
162 <2 0xe2000000 0x01000000>,
163 <3 0xe3000000 0x01000000>;
168 #address-cells = <1>;
170 compatible = "simple-bus";
171 ranges = <0x20000000 0x20000000 0x30000000>;
174 * ssp0 and spi1 are shared pins;
175 * enable one in your board dts, as needed.
178 compatible = "arm,pl022", "arm,primecell";
179 reg = <0x20084000 0x1000>;
180 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
181 clocks = <&clk LPC32XX_CLK_SSP0>;
182 clock-names = "apb_pclk";
183 #address-cells = <1>;
189 compatible = "nxp,lpc3220-spi";
190 reg = <0x20088000 0x1000>;
191 clocks = <&clk LPC32XX_CLK_SPI1>;
192 #address-cells = <1>;
198 * ssp1 and spi2 are shared pins;
199 * enable one in your board dts, as needed.
202 compatible = "arm,pl022", "arm,primecell";
203 reg = <0x2008c000 0x1000>;
204 interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;
205 clocks = <&clk LPC32XX_CLK_SSP1>;
206 clock-names = "apb_pclk";
207 #address-cells = <1>;
213 compatible = "nxp,lpc3220-spi";
214 reg = <0x20090000 0x1000>;
215 clocks = <&clk LPC32XX_CLK_SPI2>;
216 #address-cells = <1>;
222 compatible = "nxp,lpc3220-i2s";
223 reg = <0x20094000 0x1000>;
228 compatible = "arm,pl18x", "arm,primecell";
229 reg = <0x20098000 0x1000>;
230 interrupts = <15 IRQ_TYPE_LEVEL_HIGH>,
231 <13 IRQ_TYPE_LEVEL_HIGH>;
232 clocks = <&clk LPC32XX_CLK_SD>;
233 clock-names = "apb_pclk";
238 compatible = "nxp,lpc3220-i2s";
239 reg = <0x2009c000 0x1000>;
243 /* UART5 first since it is the default console, ttyS0 */
244 uart5: serial@40090000 {
245 /* actually, ns16550a w/ 64 byte fifos! */
246 compatible = "nxp,lpc3220-uart";
247 reg = <0x40090000 0x1000>;
248 interrupts = <9 IRQ_TYPE_LEVEL_HIGH>;
250 clocks = <&clk LPC32XX_CLK_UART5>;
254 uart3: serial@40080000 {
255 compatible = "nxp,lpc3220-uart";
256 reg = <0x40080000 0x1000>;
257 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
259 clocks = <&clk LPC32XX_CLK_UART3>;
263 uart4: serial@40088000 {
264 compatible = "nxp,lpc3220-uart";
265 reg = <0x40088000 0x1000>;
266 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
268 clocks = <&clk LPC32XX_CLK_UART4>;
272 uart6: serial@40098000 {
273 compatible = "nxp,lpc3220-uart";
274 reg = <0x40098000 0x1000>;
275 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
277 clocks = <&clk LPC32XX_CLK_UART6>;
282 compatible = "nxp,pnx-i2c";
283 reg = <0x400a0000 0x100>;
284 interrupt-parent = <&sic1>;
285 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
286 #address-cells = <1>;
288 clocks = <&clk LPC32XX_CLK_I2C1>;
292 compatible = "nxp,pnx-i2c";
293 reg = <0x400a8000 0x100>;
294 interrupt-parent = <&sic1>;
295 interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
296 #address-cells = <1>;
298 clocks = <&clk LPC32XX_CLK_I2C2>;
301 mpwm: mpwm@400e8000 {
302 compatible = "nxp,lpc3220-motor-pwm";
303 reg = <0x400e8000 0x78>;
310 #address-cells = <1>;
312 compatible = "simple-bus";
313 ranges = <0x20000000 0x20000000 0x30000000>;
315 /* System Control Block */
317 compatible = "simple-bus";
318 ranges = <0x0 0x040004000 0x00001000>;
319 #address-cells = <1>;
322 clk: clock-controller@0 {
323 compatible = "nxp,lpc3220-clk";
327 clocks = <&xtal_32k>, <&xtal>;
328 clock-names = "xtal_32k", "xtal";
330 assigned-clocks = <&clk LPC32XX_CLK_HCLK_PLL>;
331 assigned-clock-rates = <208000000>;
335 mic: interrupt-controller@40008000 {
336 compatible = "nxp,lpc3220-mic";
337 reg = <0x40008000 0x4000>;
338 interrupt-controller;
339 #interrupt-cells = <2>;
342 sic1: interrupt-controller@4000c000 {
343 compatible = "nxp,lpc3220-sic";
344 reg = <0x4000c000 0x4000>;
345 interrupt-controller;
346 #interrupt-cells = <2>;
348 interrupt-parent = <&mic>;
349 interrupts = <0 IRQ_TYPE_LEVEL_LOW>,
350 <30 IRQ_TYPE_LEVEL_LOW>;
353 sic2: interrupt-controller@40010000 {
354 compatible = "nxp,lpc3220-sic";
355 reg = <0x40010000 0x4000>;
356 interrupt-controller;
357 #interrupt-cells = <2>;
359 interrupt-parent = <&mic>;
360 interrupts = <1 IRQ_TYPE_LEVEL_LOW>,
361 <31 IRQ_TYPE_LEVEL_LOW>;
364 uart1: serial@40014000 {
365 compatible = "nxp,lpc3220-hsuart";
366 reg = <0x40014000 0x1000>;
367 interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
371 uart2: serial@40018000 {
372 compatible = "nxp,lpc3220-hsuart";
373 reg = <0x40018000 0x1000>;
374 interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
378 uart7: serial@4001c000 {
379 compatible = "nxp,lpc3220-hsuart";
380 reg = <0x4001c000 0x1000>;
381 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
386 compatible = "nxp,lpc3220-rtc";
387 reg = <0x40024000 0x1000>;
388 interrupt-parent = <&sic1>;
389 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
390 clocks = <&clk LPC32XX_CLK_RTC>;
393 gpio: gpio@40028000 {
394 compatible = "nxp,lpc3220-gpio";
395 reg = <0x40028000 0x1000>;
397 #gpio-cells = <3>; /* bank, pin, flags */
400 timer4: timer@4002c000 {
401 compatible = "nxp,lpc3220-timer";
402 reg = <0x4002c000 0x1000>;
403 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
404 clocks = <&clk LPC32XX_CLK_TIMER4>;
405 clock-names = "timerclk";
409 timer5: timer@40030000 {
410 compatible = "nxp,lpc3220-timer";
411 reg = <0x40030000 0x1000>;
412 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
413 clocks = <&clk LPC32XX_CLK_TIMER5>;
414 clock-names = "timerclk";
418 watchdog: watchdog@4003c000 {
419 compatible = "nxp,pnx4008-wdt";
420 reg = <0x4003c000 0x1000>;
421 clocks = <&clk LPC32XX_CLK_WDOG>;
424 timer0: timer@40044000 {
425 compatible = "nxp,lpc3220-timer";
426 reg = <0x40044000 0x1000>;
427 clocks = <&clk LPC32XX_CLK_TIMER0>;
428 clock-names = "timerclk";
429 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
433 * TSC vs. ADC: Since those two share the same
434 * hardware, you need to choose from one of the
435 * following two and do 'status = "okay";' for one of
440 compatible = "nxp,lpc3220-adc";
441 reg = <0x40048000 0x1000>;
442 interrupt-parent = <&sic1>;
443 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
444 clocks = <&clk LPC32XX_CLK_ADC>;
449 compatible = "nxp,lpc3220-tsc";
450 reg = <0x40048000 0x1000>;
451 interrupt-parent = <&sic1>;
452 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
453 clocks = <&clk LPC32XX_CLK_ADC>;
457 timer1: timer@4004c000 {
458 compatible = "nxp,lpc3220-timer";
459 reg = <0x4004c000 0x1000>;
460 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
461 clocks = <&clk LPC32XX_CLK_TIMER1>;
462 clock-names = "timerclk";
466 compatible = "nxp,lpc3220-key";
467 reg = <0x40050000 0x1000>;
468 clocks = <&clk LPC32XX_CLK_KEY>;
469 interrupt-parent = <&sic1>;
470 interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
474 timer2: timer@40058000 {
475 compatible = "nxp,lpc3220-timer";
476 reg = <0x40058000 0x1000>;
477 interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
478 clocks = <&clk LPC32XX_CLK_TIMER2>;
479 clock-names = "timerclk";
484 compatible = "nxp,lpc3220-pwm";
485 reg = <0x4005c000 0x4>;
486 clocks = <&clk LPC32XX_CLK_PWM1>;
487 assigned-clocks = <&clk LPC32XX_CLK_PWM1>;
488 assigned-clock-parents = <&clk LPC32XX_CLK_PERIPH>;
493 compatible = "nxp,lpc3220-pwm";
494 reg = <0x4005c004 0x4>;
495 clocks = <&clk LPC32XX_CLK_PWM2>;
496 assigned-clocks = <&clk LPC32XX_CLK_PWM2>;
497 assigned-clock-parents = <&clk LPC32XX_CLK_PERIPH>;
501 timer3: timer@40060000 {
502 compatible = "nxp,lpc3220-timer";
503 reg = <0x40060000 0x1000>;
504 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
505 clocks = <&clk LPC32XX_CLK_TIMER3>;
506 clock-names = "timerclk";