blob: e295e1ec82a581b633a20e144a3fb7a63b7deb30 [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
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +020016#include <dt-bindings/clock/lpc32xx-clock.h>
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +020017#include <dt-bindings/interrupt-controller/irq.h>
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +020018
Roland Stiggee04920d2012-04-22 12:01:19 +020019/ {
20 compatible = "nxp,lpc3220";
21 interrupt-parent = <&mic>;
22
23 cpus {
Vladimir Zapolskiy246d8fc2015-10-18 00:35:52 +030024 #address-cells = <1>;
Lorenzo Pieralisi73158b72013-04-18 18:34:51 +010025 #size-cells = <0>;
26
Vladimir Zapolskiy246d8fc2015-10-18 00:35:52 +030027 cpu@0 {
Lorenzo Pieralisi73158b72013-04-18 18:34:51 +010028 compatible = "arm,arm926ej-s";
29 device_type = "cpu";
Vladimir Zapolskiy246d8fc2015-10-18 00:35:52 +030030 reg = <0x0>;
Roland Stiggee04920d2012-04-22 12:01:19 +020031 };
32 };
33
Vladimir Zapolskiyef5f8852015-11-20 03:05:04 +020034 clocks {
35 xtal_32k: xtal_32k {
36 compatible = "fixed-clock";
37 #clock-cells = <0>;
38 clock-frequency = <32768>;
39 clock-output-names = "xtal_32k";
40 };
41
42 xtal: xtal {
43 compatible = "fixed-clock";
44 #clock-cells = <0>;
45 clock-frequency = <13000000>;
46 clock-output-names = "xtal";
47 };
48 };
49
Roland Stiggee04920d2012-04-22 12:01:19 +020050 ahb {
51 #address-cells = <1>;
52 #size-cells = <1>;
53 compatible = "simple-bus";
Vladimir Zapolskiyf83ee672015-10-18 00:35:55 +030054 ranges = <0x20000000 0x20000000 0x30000000>,
55 <0xe0000000 0xe0000000 0x04000000>;
Roland Stiggee04920d2012-04-22 12:01:19 +020056
57 /*
58 * Enable either SLC or MLC
59 */
60 slc: flash@20020000 {
61 compatible = "nxp,lpc3220-slc";
62 reg = <0x20020000 0x1000>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +020063 clocks = <&clk LPC32XX_CLK_SLC>;
Roland Stiggecb85a9e2012-06-14 16:16:18 +020064 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +020065 };
66
Roland Stigge6d1c3e92012-06-14 16:16:17 +020067 mlc: flash@200a8000 {
Roland Stiggee04920d2012-04-22 12:01:19 +020068 compatible = "nxp,lpc3220-mlc";
Roland Stigge6d1c3e92012-06-14 16:16:17 +020069 reg = <0x200a8000 0x11000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +020070 interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +020071 clocks = <&clk LPC32XX_CLK_MLC>;
Roland Stiggecb85a9e2012-06-14 16:16:18 +020072 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +020073 };
74
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +030075 dma: dma@31000000 {
Roland Stiggee04920d2012-04-22 12:01:19 +020076 compatible = "arm,pl080", "arm,primecell";
77 reg = <0x31000000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +020078 interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +020079 clocks = <&clk LPC32XX_CLK_DMA>;
80 clock-names = "apb_pclk";
Roland Stiggee04920d2012-04-22 12:01:19 +020081 };
82
Vladimir Zapolskiyaa29efb2015-10-18 00:35:57 +030083 usb {
84 #address-cells = <1>;
85 #size-cells = <1>;
86 compatible = "simple-bus";
87 ranges = <0x0 0x31020000 0x00001000>;
Roland Stiggee04920d2012-04-22 12:01:19 +020088
Vladimir Zapolskiyaa29efb2015-10-18 00:35:57 +030089 /*
90 * Enable either ohci or usbd (gadget)!
91 */
92 ohci: ohci@0 {
93 compatible = "nxp,ohci-nxp", "usb-ohci";
94 reg = <0x0 0x300>;
Vladimir Zapolskiy9b8ad3fb2016-04-26 00:02:23 +030095 interrupt-parent = <&sic1>;
96 interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy865e9002015-11-20 03:05:07 +020097 clocks = <&usbclk LPC32XX_USB_CLK_HOST>;
Vladimir Zapolskiyaa29efb2015-10-18 00:35:57 +030098 status = "disabled";
99 };
100
101 usbd: usbd@0 {
102 compatible = "nxp,lpc3220-udc";
103 reg = <0x0 0x300>;
Vladimir Zapolskiy9b8ad3fb2016-04-26 00:02:23 +0300104 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>;
Vladimir Zapolskiy865e9002015-11-20 03:05:07 +0200109 clocks = <&usbclk LPC32XX_USB_CLK_DEVICE>;
Vladimir Zapolskiyaa29efb2015-10-18 00:35:57 +0300110 status = "disabled";
111 };
112
113 i2cusb: i2c@300 {
114 compatible = "nxp,pnx-i2c";
115 reg = <0x300 0x100>;
Vladimir Zapolskiy9b8ad3fb2016-04-26 00:02:23 +0300116 interrupt-parent = <&sic1>;
117 interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy865e9002015-11-20 03:05:07 +0200118 clocks = <&usbclk LPC32XX_USB_CLK_I2C>;
Vladimir Zapolskiyaa29efb2015-10-18 00:35:57 +0300119 #address-cells = <1>;
120 #size-cells = <0>;
121 pnx,timeout = <0x64>;
122 };
Vladimir Zapolskiy865e9002015-11-20 03:05:07 +0200123
124 usbclk: clock-controller@f00 {
125 compatible = "nxp,lpc3220-usb-clk";
126 reg = <0xf00 0x100>;
127 #clock-cells = <1>;
128 };
Roland Stiggee04920d2012-04-22 12:01:19 +0200129 };
130
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300131 clcd: clcd@31040000 {
Roland Stiggee04920d2012-04-22 12:01:19 +0200132 compatible = "arm,pl110", "arm,primecell";
133 reg = <0x31040000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200134 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200135 clocks = <&clk LPC32XX_CLK_LCD>;
136 clock-names = "apb_pclk";
Roland Stiggecb85a9e2012-06-14 16:16:18 +0200137 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200138 };
139
140 mac: ethernet@31060000 {
141 compatible = "nxp,lpc-eth";
142 reg = <0x31060000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200143 interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200144 clocks = <&clk LPC32XX_CLK_MAC>;
Roland Stiggee04920d2012-04-22 12:01:19 +0200145 };
146
Vladimir Zapolskiyf83ee672015-10-18 00:35:55 +0300147 emc: memory-controller@31080000 {
148 compatible = "arm,pl175", "arm,primecell";
149 reg = <0x31080000 0x1000>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200150 clocks = <&clk LPC32XX_CLK_DDRAM>, <&clk LPC32XX_CLK_DDRAM>;
151 clock-names = "mpmcclk", "apb_pclk";
Vladimir Zapolskiyf83ee672015-10-18 00:35:55 +0300152 #address-cells = <1>;
153 #size-cells = <1>;
154
155 ranges = <0 0xe0000000 0x01000000>,
156 <1 0xe1000000 0x01000000>,
157 <2 0xe2000000 0x01000000>,
158 <3 0xe3000000 0x01000000>;
159 status = "disabled";
160 };
161
Roland Stiggee04920d2012-04-22 12:01:19 +0200162 apb {
163 #address-cells = <1>;
164 #size-cells = <1>;
165 compatible = "simple-bus";
166 ranges = <0x20000000 0x20000000 0x30000000>;
167
Sylvain Lemieux961212e2016-04-20 09:21:00 -0400168 /*
169 * ssp0 and spi1 are shared pins;
170 * enable one in your board dts, as needed.
171 */
Roland Stiggee04920d2012-04-22 12:01:19 +0200172 ssp0: ssp@20084000 {
173 compatible = "arm,pl022", "arm,primecell";
174 reg = <0x20084000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200175 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200176 clocks = <&clk LPC32XX_CLK_SSP0>;
177 clock-names = "apb_pclk";
Sylvain Lemieux961212e2016-04-20 09:21:00 -0400178 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200179 };
180
181 spi1: spi@20088000 {
182 compatible = "nxp,lpc3220-spi";
183 reg = <0x20088000 0x1000>;
Sylvain Lemieux73fdaa02016-04-20 09:20:58 -0400184 clocks = <&clk LPC32XX_CLK_SPI1>;
Sylvain Lemieux961212e2016-04-20 09:21:00 -0400185 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200186 };
187
Sylvain Lemieux961212e2016-04-20 09:21:00 -0400188 /*
189 * ssp1 and spi2 are shared pins;
190 * enable one in your board dts, as needed.
191 */
Roland Stiggee04920d2012-04-22 12:01:19 +0200192 ssp1: ssp@2008c000 {
193 compatible = "arm,pl022", "arm,primecell";
194 reg = <0x2008c000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200195 interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200196 clocks = <&clk LPC32XX_CLK_SSP1>;
197 clock-names = "apb_pclk";
Sylvain Lemieux961212e2016-04-20 09:21:00 -0400198 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200199 };
200
201 spi2: spi@20090000 {
202 compatible = "nxp,lpc3220-spi";
203 reg = <0x20090000 0x1000>;
Sylvain Lemieux73fdaa02016-04-20 09:20:58 -0400204 clocks = <&clk LPC32XX_CLK_SPI2>;
Sylvain Lemieux961212e2016-04-20 09:21:00 -0400205 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200206 };
207
208 i2s0: i2s@20094000 {
209 compatible = "nxp,lpc3220-i2s";
210 reg = <0x20094000 0x1000>;
211 };
212
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300213 sd: sd@20098000 {
Roland Stigge2c7fa282012-06-14 16:16:18 +0200214 compatible = "arm,pl18x", "arm,primecell";
Roland Stiggee04920d2012-04-22 12:01:19 +0200215 reg = <0x20098000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200216 interrupts = <15 IRQ_TYPE_LEVEL_HIGH>,
217 <13 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200218 clocks = <&clk LPC32XX_CLK_SD>;
219 clock-names = "apb_pclk";
Roland Stigge2c7fa282012-06-14 16:16:18 +0200220 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200221 };
222
223 i2s1: i2s@2009C000 {
224 compatible = "nxp,lpc3220-i2s";
225 reg = <0x2009C000 0x1000>;
226 };
227
Roland Stiggec70426f2012-06-14 16:16:18 +0200228 /* 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>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200233 interrupts = <9 IRQ_TYPE_LEVEL_HIGH>;
Roland Stiggec70426f2012-06-14 16:16:18 +0200234 reg-shift = <2>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200235 clocks = <&clk LPC32XX_CLK_UART5>;
Roland Stiggec70426f2012-06-14 16:16:18 +0200236 status = "disabled";
237 };
238
Roland Stiggee04920d2012-04-22 12:01:19 +0200239 uart3: serial@40080000 {
Roland Stiggec70426f2012-06-14 16:16:18 +0200240 compatible = "nxp,lpc3220-uart";
Roland Stiggee04920d2012-04-22 12:01:19 +0200241 reg = <0x40080000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200242 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
Roland Stiggec70426f2012-06-14 16:16:18 +0200243 reg-shift = <2>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200244 clocks = <&clk LPC32XX_CLK_UART3>;
Roland Stiggec70426f2012-06-14 16:16:18 +0200245 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200246 };
247
248 uart4: serial@40088000 {
Roland Stiggec70426f2012-06-14 16:16:18 +0200249 compatible = "nxp,lpc3220-uart";
Roland Stiggee04920d2012-04-22 12:01:19 +0200250 reg = <0x40088000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200251 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
Roland Stiggec70426f2012-06-14 16:16:18 +0200252 reg-shift = <2>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200253 clocks = <&clk LPC32XX_CLK_UART4>;
Roland Stiggec70426f2012-06-14 16:16:18 +0200254 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200255 };
256
257 uart6: serial@40098000 {
Roland Stiggec70426f2012-06-14 16:16:18 +0200258 compatible = "nxp,lpc3220-uart";
Roland Stiggee04920d2012-04-22 12:01:19 +0200259 reg = <0x40098000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200260 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
Roland Stiggec70426f2012-06-14 16:16:18 +0200261 reg-shift = <2>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200262 clocks = <&clk LPC32XX_CLK_UART6>;
Roland Stiggec70426f2012-06-14 16:16:18 +0200263 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200264 };
265
266 i2c1: i2c@400A0000 {
267 compatible = "nxp,pnx-i2c";
268 reg = <0x400A0000 0x100>;
Vladimir Zapolskiy9b8ad3fb2016-04-26 00:02:23 +0300269 interrupt-parent = <&sic1>;
270 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
Roland Stiggee04920d2012-04-22 12:01:19 +0200271 #address-cells = <1>;
272 #size-cells = <0>;
273 pnx,timeout = <0x64>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200274 clocks = <&clk LPC32XX_CLK_I2C1>;
Roland Stiggee04920d2012-04-22 12:01:19 +0200275 };
276
277 i2c2: i2c@400A8000 {
278 compatible = "nxp,pnx-i2c";
279 reg = <0x400A8000 0x100>;
Vladimir Zapolskiy9b8ad3fb2016-04-26 00:02:23 +0300280 interrupt-parent = <&sic1>;
281 interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
Roland Stiggee04920d2012-04-22 12:01:19 +0200282 #address-cells = <1>;
283 #size-cells = <0>;
284 pnx,timeout = <0x64>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200285 clocks = <&clk LPC32XX_CLK_I2C2>;
Roland Stiggee04920d2012-04-22 12:01:19 +0200286 };
287
Alban Bedelb7d41c92012-11-14 13:59:45 +0100288 mpwm: mpwm@400E8000 {
289 compatible = "nxp,lpc3220-motor-pwm";
290 reg = <0x400E8000 0x78>;
291 status = "disabled";
292 #pwm-cells = <2>;
293 };
Roland Stiggee04920d2012-04-22 12:01:19 +0200294 };
295
296 fab {
297 #address-cells = <1>;
298 #size-cells = <1>;
299 compatible = "simple-bus";
300 ranges = <0x20000000 0x20000000 0x30000000>;
301
Vladimir Zapolskiyfe861312015-11-20 03:05:05 +0200302 /* System Control Block */
303 scb {
304 compatible = "simple-bus";
305 ranges = <0x0 0x040004000 0x00001000>;
306 #address-cells = <1>;
307 #size-cells = <1>;
308
309 clk: clock-controller@0 {
310 compatible = "nxp,lpc3220-clk";
311 reg = <0x00 0x114>;
312 #clock-cells = <1>;
313
314 clocks = <&xtal_32k>, <&xtal>;
315 clock-names = "xtal_32k", "xtal";
Vladimir Zapolskiyc17e9372016-04-18 07:12:00 +0300316
317 assigned-clocks = <&clk LPC32XX_CLK_HCLK_PLL>;
318 assigned-clock-rates = <208000000>;
Vladimir Zapolskiyfe861312015-11-20 03:05:05 +0200319 };
320 };
321
Roland Stiggee04920d2012-04-22 12:01:19 +0200322 mic: interrupt-controller@40008000 {
323 compatible = "nxp,lpc3220-mic";
Vladimir Zapolskiy9b8ad3fb2016-04-26 00:02:23 +0300324 reg = <0x40008000 0x4000>;
Roland Stiggee04920d2012-04-22 12:01:19 +0200325 interrupt-controller;
Roland Stiggee04920d2012-04-22 12:01:19 +0200326 #interrupt-cells = <2>;
327 };
328
Vladimir Zapolskiy9b8ad3fb2016-04-26 00:02:23 +0300329 sic1: interrupt-controller@4000c000 {
330 compatible = "nxp,lpc3220-sic";
331 reg = <0x4000c000 0x4000>;
332 interrupt-controller;
333 #interrupt-cells = <2>;
334
335 interrupt-parent = <&mic>;
336 interrupts = <0 IRQ_TYPE_LEVEL_LOW>,
337 <30 IRQ_TYPE_LEVEL_LOW>;
338 };
339
340 sic2: interrupt-controller@40010000 {
341 compatible = "nxp,lpc3220-sic";
342 reg = <0x40010000 0x4000>;
343 interrupt-controller;
344 #interrupt-cells = <2>;
345
346 interrupt-parent = <&mic>;
347 interrupts = <1 IRQ_TYPE_LEVEL_LOW>,
348 <31 IRQ_TYPE_LEVEL_LOW>;
349 };
350
Roland Stiggee04920d2012-04-22 12:01:19 +0200351 uart1: serial@40014000 {
Roland Stiggeac5ced92012-06-14 16:16:18 +0200352 compatible = "nxp,lpc3220-hsuart";
Roland Stiggee04920d2012-04-22 12:01:19 +0200353 reg = <0x40014000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200354 interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
Roland Stiggeac5ced92012-06-14 16:16:18 +0200355 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200356 };
357
358 uart2: serial@40018000 {
Roland Stiggeac5ced92012-06-14 16:16:18 +0200359 compatible = "nxp,lpc3220-hsuart";
Roland Stiggee04920d2012-04-22 12:01:19 +0200360 reg = <0x40018000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200361 interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
Roland Stiggeac5ced92012-06-14 16:16:18 +0200362 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200363 };
364
Roland Stiggeac5ced92012-06-14 16:16:18 +0200365 uart7: serial@4001c000 {
366 compatible = "nxp,lpc3220-hsuart";
367 reg = <0x4001c000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200368 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
Roland Stiggeac5ced92012-06-14 16:16:18 +0200369 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200370 };
371
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300372 rtc: rtc@40024000 {
Roland Stiggee04920d2012-04-22 12:01:19 +0200373 compatible = "nxp,lpc3220-rtc";
374 reg = <0x40024000 0x1000>;
Vladimir Zapolskiy9b8ad3fb2016-04-26 00:02:23 +0300375 interrupt-parent = <&sic1>;
376 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200377 clocks = <&clk LPC32XX_CLK_RTC>;
Roland Stiggee04920d2012-04-22 12:01:19 +0200378 };
379
380 gpio: gpio@40028000 {
381 compatible = "nxp,lpc3220-gpio";
382 reg = <0x40028000 0x1000>;
Roland Stiggea0352542012-05-19 12:28:53 +0200383 gpio-controller;
384 #gpio-cells = <3>; /* bank, pin, flags */
Roland Stiggee04920d2012-04-22 12:01:19 +0200385 };
386
Vladimir Zapolskiyc1aa7002015-10-18 00:41:06 +0300387 timer4: timer@4002C000 {
388 compatible = "nxp,lpc3220-timer";
389 reg = <0x4002C000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200390 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200391 clocks = <&clk LPC32XX_CLK_TIMER4>;
392 clock-names = "timerclk";
Vladimir Zapolskiyc1aa7002015-10-18 00:41:06 +0300393 status = "disabled";
394 };
395
396 timer5: timer@40030000 {
397 compatible = "nxp,lpc3220-timer";
398 reg = <0x40030000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200399 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200400 clocks = <&clk LPC32XX_CLK_TIMER5>;
401 clock-names = "timerclk";
Vladimir Zapolskiyc1aa7002015-10-18 00:41:06 +0300402 status = "disabled";
403 };
404
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300405 watchdog: watchdog@4003C000 {
Roland Stiggee04920d2012-04-22 12:01:19 +0200406 compatible = "nxp,pnx4008-wdt";
407 reg = <0x4003C000 0x1000>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200408 clocks = <&clk LPC32XX_CLK_WDOG>;
Roland Stiggee04920d2012-04-22 12:01:19 +0200409 };
410
Vladimir Zapolskiyc1aa7002015-10-18 00:41:06 +0300411 timer0: timer@40044000 {
412 compatible = "nxp,lpc3220-timer";
413 reg = <0x40044000 0x1000>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200414 clocks = <&clk LPC32XX_CLK_TIMER0>;
415 clock-names = "timerclk";
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200416 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
Vladimir Zapolskiyc1aa7002015-10-18 00:41:06 +0300417 };
418
Roland Stiggee04920d2012-04-22 12:01:19 +0200419 /*
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
423 * them
424 */
425
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300426 adc: adc@40048000 {
Roland Stiggee04920d2012-04-22 12:01:19 +0200427 compatible = "nxp,lpc3220-adc";
428 reg = <0x40048000 0x1000>;
Vladimir Zapolskiy9b8ad3fb2016-04-26 00:02:23 +0300429 interrupt-parent = <&sic1>;
430 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200431 clocks = <&clk LPC32XX_CLK_ADC>;
Roland Stiggecb85a9e2012-06-14 16:16:18 +0200432 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200433 };
434
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300435 tsc: tsc@40048000 {
Roland Stiggee04920d2012-04-22 12:01:19 +0200436 compatible = "nxp,lpc3220-tsc";
437 reg = <0x40048000 0x1000>;
Vladimir Zapolskiy9b8ad3fb2016-04-26 00:02:23 +0300438 interrupt-parent = <&sic1>;
439 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200440 clocks = <&clk LPC32XX_CLK_ADC>;
Roland Stiggecb85a9e2012-06-14 16:16:18 +0200441 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200442 };
443
Vladimir Zapolskiyc1aa7002015-10-18 00:41:06 +0300444 timer1: timer@4004C000 {
445 compatible = "nxp,lpc3220-timer";
446 reg = <0x4004C000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200447 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200448 clocks = <&clk LPC32XX_CLK_TIMER1>;
449 clock-names = "timerclk";
Vladimir Zapolskiyc1aa7002015-10-18 00:41:06 +0300450 };
451
Vladimir Zapolskiy25de7c92015-10-18 00:35:51 +0300452 key: key@40050000 {
Roland Stiggee04920d2012-04-22 12:01:19 +0200453 compatible = "nxp,lpc3220-key";
454 reg = <0x40050000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200455 interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
Roland Stiggea6d1be02012-06-14 16:16:17 +0200456 status = "disabled";
Roland Stiggee04920d2012-04-22 12:01:19 +0200457 };
458
Vladimir Zapolskiyc1aa7002015-10-18 00:41:06 +0300459 timer2: timer@40058000 {
460 compatible = "nxp,lpc3220-timer";
461 reg = <0x40058000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200462 interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200463 clocks = <&clk LPC32XX_CLK_TIMER2>;
464 clock-names = "timerclk";
Vladimir Zapolskiyc1aa7002015-10-18 00:41:06 +0300465 status = "disabled";
466 };
467
Vladimir Zapolskiy2a6c6562015-10-18 00:35:53 +0300468 pwm1: pwm@4005C000 {
Alexandre Pereira da Silvade639852012-07-20 13:33:09 +0200469 compatible = "nxp,lpc3220-pwm";
Vladimir Zapolskiy2a6c6562015-10-18 00:35:53 +0300470 reg = <0x4005C000 0x4>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200471 clocks = <&clk LPC32XX_CLK_PWM1>;
Vladimir Zapolskiy2a6c6562015-10-18 00:35:53 +0300472 status = "disabled";
473 };
474
475 pwm2: pwm@4005C004 {
476 compatible = "nxp,lpc3220-pwm";
477 reg = <0x4005C004 0x4>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200478 clocks = <&clk LPC32XX_CLK_PWM2>;
Alexandre Pereira da Silvade639852012-07-20 13:33:09 +0200479 status = "disabled";
480 };
Vladimir Zapolskiyc1aa7002015-10-18 00:41:06 +0300481
482 timer3: timer@40060000 {
483 compatible = "nxp,lpc3220-timer";
484 reg = <0x40060000 0x1000>;
Vladimir Zapolskiyb7158022015-11-20 03:28:40 +0200485 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
Vladimir Zapolskiy93898eb2015-11-20 03:05:06 +0200486 clocks = <&clk LPC32XX_CLK_TIMER3>;
487 clock-names = "timerclk";
Vladimir Zapolskiyc1aa7002015-10-18 00:41:06 +0300488 status = "disabled";
489 };
Roland Stiggee04920d2012-04-22 12:01:19 +0200490 };
491 };
492};