ARM: dts: lpc18xx: add watchdog node
[deliverable/linux.git] / arch / arm / boot / dts / lpc18xx.dtsi
CommitLineData
804a5dd6
JE
1/*
2 * Common base for NXP LPC18xx and LPC43xx devices.
3 *
4 * Copyright 2015 Joachim Eastwood <manabian@gmail.com>
5 *
6 * This code is released using a dual license strategy: BSD/GPL
7 * You can choose the licence that better fits your requirements.
8 *
9 * Released under the terms of 3-clause BSD License
10 * Released under the terms of GNU General Public License Version 2.0
11 *
12 */
13
14#include "armv7-m.dtsi"
15
ba2db535
JE
16#include "dt-bindings/clock/lpc18xx-cgu.h"
17#include "dt-bindings/clock/lpc18xx-ccu.h"
18
7836dce4
JE
19#define LPC_PIN(port, pin) (0x##port * 32 + pin)
20#define LPC_GPIO(port, pin) (port * 32 + pin)
21
804a5dd6
JE
22/ {
23 cpus {
24 #address-cells = <1>;
25 #size-cells = <0>;
26
27 cpu@0 {
28 compatible = "arm,cortex-m3";
29 device_type = "cpu";
30 reg = <0x0>;
ba2db535 31 clocks = <&ccu1 CLK_CPU_CORE>;
804a5dd6
JE
32 };
33 };
34
35 clocks {
36 xtal: xtal {
37 compatible = "fixed-clock";
38 #clock-cells = <0>;
39 clock-frequency = <12000000>;
40 };
41
ba2db535
JE
42 xtal32: xtal32 {
43 compatible = "fixed-clock";
44 #clock-cells = <0>;
45 clock-frequency = <32768>;
46 };
47
48 enet_rx_clk: enet_rx_clk {
49 compatible = "fixed-clock";
50 #clock-cells = <0>;
51 clock-frequency = <0>;
52 clock-output-names = "enet_rx_clk";
53 };
54
55 enet_tx_clk: enet_tx_clk {
56 compatible = "fixed-clock";
57 #clock-cells = <0>;
58 clock-frequency = <0>;
59 clock-output-names = "enet_tx_clk";
60 };
61
62 gp_clkin: gp_clkin {
63 compatible = "fixed-clock";
804a5dd6 64 #clock-cells = <0>;
ba2db535
JE
65 clock-frequency = <0>;
66 clock-output-names = "gp_clkin";
804a5dd6
JE
67 };
68 };
69
70 soc {
5924007c
JE
71 dmac: dma-controller@40002000 {
72 compatible = "arm,pl080", "arm,primecell";
73 arm,primecell-periphid = <0x00041080>;
74 reg = <0x40002000 0x1000>;
75 interrupts = <2>;
76 clocks = <&ccu1 CLK_CPU_DMA>;
77 clock-names = "apb_pclk";
78 resets = <&rgu 19>;
79 #dma-cells = <2>;
80 dma-channels = <8>;
81 dma-requests = <16>;
82 lli-bus-interface-ahb1;
83 lli-bus-interface-ahb2;
84 mem-bus-interface-ahb1;
85 mem-bus-interface-ahb2;
86 memcpy-burst-size = <256>;
87 memcpy-bus-width = <32>;
88 };
89
4f85dd16
JE
90 spifi: flash-controller@40003000 {
91 compatible = "nxp,lpc1773-spifi";
92 reg = <0x40003000 0x1000>, <0x14000000 0x4000000>;
93 reg-names = "spifi", "flash";
94 interrupts = <30>;
95 clocks = <&ccu1 CLK_SPIFI>, <&ccu1 CLK_CPU_SPIFI>;
96 clock-names = "spifi", "reg";
97 resets = <&rgu 53>;
98 status = "disabled";
99 };
100
cd07154f
JE
101 mmcsd: mmcsd@40004000 {
102 compatible = "snps,dw-mshc";
103 reg = <0x40004000 0x1000>;
104 interrupts = <6>;
105 num-slots = <1>;
106 clocks = <&ccu2 CLK_SDIO>, <&ccu1 CLK_CPU_SDIO>;
107 clock-names = "ciu", "biu";
108 status = "disabled";
109 };
110
b06cdb79
JE
111 usb0: ehci@40006100 {
112 compatible = "nxp,lpc1850-ehci", "generic-ehci";
113 reg = <0x40006100 0x100>;
114 interrupts = <8>;
115 clocks = <&ccu1 CLK_CPU_USB0>;
6d6d6b55
JE
116 phys = <&usb0_otg_phy>;
117 phy-names = "usb";
b06cdb79
JE
118 has-transaction-translator;
119 status = "disabled";
120 };
121
122 usb1: ehci@40007100 {
123 compatible = "nxp,lpc1850-ehci", "generic-ehci";
124 reg = <0x40007100 0x100>;
125 interrupts = <9>;
126 clocks = <&ccu1 CLK_CPU_USB1>;
127 status = "disabled";
128 };
129
50016385
JE
130 emc: memory-controller@40005000 {
131 compatible = "arm,pl172", "arm,primecell";
132 reg = <0x40005000 0x1000>;
133 clocks = <&ccu1 CLK_CPU_EMCDIV>, <&ccu1 CLK_CPU_EMC>;
134 clock-names = "mpmcclk", "apb_pclk";
135 #address-cells = <2>;
136 #size-cells = <1>;
137 ranges = <0 0 0x1c000000 0x1000000
138 1 0 0x1d000000 0x1000000
139 2 0 0x1e000000 0x1000000
140 3 0 0x1f000000 0x1000000>;
141 status = "disabled";
142 };
143
9cf6267d
JE
144 lcdc: lcd-controller@40008000 {
145 compatible = "arm,pl111", "arm,primecell";
146 reg = <0x40008000 0x1000>;
147 interrupts = <7>;
148 interrupt-names = "combined";
149 clocks = <&cgu BASE_LCD_CLK>, <&ccu1 CLK_CPU_LCD>;
150 clock-names = "clcdclk", "apb_pclk";
151 status = "disabled";
152 };
153
fe968589
JE
154 mac: ethernet@40010000 {
155 compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
156 reg = <0x40010000 0x2000>;
157 interrupts = <5>;
158 interrupt-names = "macirq";
159 clocks = <&ccu1 CLK_CPU_ETHERNET>;
160 clock-names = "stmmaceth";
161 status = "disabled";
162 };
163
16df2b86
JE
164 creg: syscon@40043000 {
165 compatible = "nxp,lpc1850-creg", "syscon", "simple-mfd";
166 reg = <0x40043000 0x1000>;
167 clocks = <&ccu1 CLK_CPU_CREG>;
6d6d6b55
JE
168
169 usb0_otg_phy: phy@004 {
170 compatible = "nxp,lpc1850-usb-otg-phy";
171 clocks = <&ccu1 CLK_USB0>;
172 #phy-cells = <0>;
173 };
5913f559
JE
174
175 dmamux: dma-mux@11c {
176 compatible = "nxp,lpc1850-dmamux";
177 #dma-cells = <3>;
178 dma-requests = <64>;
179 dma-masters = <&dmac>;
180 };
16df2b86
JE
181 };
182
ba2db535
JE
183 cgu: clock-controller@40050000 {
184 compatible = "nxp,lpc1850-cgu";
185 reg = <0x40050000 0x1000>;
186 #clock-cells = <1>;
187 clocks = <&xtal>, <&xtal32>, <&enet_rx_clk>, <&enet_tx_clk>, <&gp_clkin>;
188 };
189
190 ccu1: clock-controller@40051000 {
191 compatible = "nxp,lpc1850-ccu";
192 reg = <0x40051000 0x1000>;
193 #clock-cells = <1>;
194 clocks = <&cgu BASE_APB3_CLK>, <&cgu BASE_APB1_CLK>,
195 <&cgu BASE_SPIFI_CLK>, <&cgu BASE_CPU_CLK>,
196 <&cgu BASE_PERIPH_CLK>, <&cgu BASE_USB0_CLK>,
197 <&cgu BASE_USB1_CLK>, <&cgu BASE_SPI_CLK>;
198 clock-names = "base_apb3_clk", "base_apb1_clk",
199 "base_spifi_clk", "base_cpu_clk",
200 "base_periph_clk", "base_usb0_clk",
201 "base_usb1_clk", "base_spi_clk";
202 };
203
204 ccu2: clock-controller@40052000 {
205 compatible = "nxp,lpc1850-ccu";
206 reg = <0x40052000 0x1000>;
207 #clock-cells = <1>;
208 clocks = <&cgu BASE_AUDIO_CLK>, <&cgu BASE_UART3_CLK>,
209 <&cgu BASE_UART2_CLK>, <&cgu BASE_UART1_CLK>,
210 <&cgu BASE_UART0_CLK>, <&cgu BASE_SSP1_CLK>,
211 <&cgu BASE_SSP0_CLK>, <&cgu BASE_SDIO_CLK>;
212 clock-names = "base_audio_clk", "base_uart3_clk",
213 "base_uart2_clk", "base_uart1_clk",
214 "base_uart0_clk", "base_ssp1_clk",
215 "base_ssp0_clk", "base_sdio_clk";
216 };
217
0745c702
JE
218 rgu: reset-controller@40053000 {
219 compatible = "nxp,lpc1850-rgu";
220 reg = <0x40053000 0x1000>;
221 clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_BUS>;
222 clock-names = "delay", "reg";
223 #reset-cells = <1>;
224 };
225
9c8a5cdc
AA
226 watchdog@40080000 {
227 compatible = "nxp,lpc1850-wwdt";
228 reg = <0x40080000 0x24>;
229 interrupts = <49>;
230 clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_WWDT>;
231 clock-names = "wdtclk", "reg";
232 };
233
804a5dd6 234 uart0: serial@40081000 {
f2b1c507 235 compatible = "nxp,lpc1850-uart", "ns16550a";
804a5dd6
JE
236 reg = <0x40081000 0x1000>;
237 reg-shift = <2>;
238 interrupts = <24>;
ba2db535 239 clocks = <&ccu2 CLK_APB0_UART0>, <&ccu1 CLK_CPU_UART0>;
f2b1c507 240 clock-names = "uartclk", "reg";
4e9c5aa8
JE
241 dmas = <&dmamux 1 1 2
242 &dmamux 2 1 2
243 &dmamux 11 2 2
244 &dmamux 12 2 2>;
245 dma-names = "tx", "rx", "tx", "rx";
804a5dd6
JE
246 status = "disabled";
247 };
248
249 uart1: serial@40082000 {
f2b1c507 250 compatible = "nxp,lpc1850-uart", "ns16550a";
804a5dd6
JE
251 reg = <0x40082000 0x1000>;
252 reg-shift = <2>;
253 interrupts = <25>;
ba2db535 254 clocks = <&ccu2 CLK_APB0_UART1>, <&ccu1 CLK_CPU_UART1>;
f2b1c507 255 clock-names = "uartclk", "reg";
4e9c5aa8
JE
256 dmas = <&dmamux 3 1 2
257 &dmamux 4 1 2>;
258 dma-names = "tx", "rx";
804a5dd6
JE
259 status = "disabled";
260 };
261
5d2ea79c
JE
262 ssp0: spi@40083000 {
263 compatible = "arm,pl022", "arm,primecell";
264 reg = <0x40083000 0x1000>;
265 interrupts = <22>;
266 clocks = <&ccu2 CLK_APB0_SSP0>, <&ccu1 CLK_CPU_SSP0>;
267 clock-names = "sspclk", "apb_pclk";
c5288091
JE
268 dmas = <&dmamux 9 0 2
269 &dmamux 10 0 2>;
270 dma-names = "rx", "tx";
5d2ea79c
JE
271 #address-cells = <1>;
272 #size-cells = <0>;
273 status = "disabled";
274 };
275
804a5dd6
JE
276 timer0: timer@40084000 {
277 compatible = "nxp,lpc3220-timer";
278 reg = <0x40084000 0x1000>;
279 interrupts = <12>;
ba2db535 280 clocks = <&ccu1 CLK_CPU_TIMER0>;
804a5dd6
JE
281 clock-names = "timerclk";
282 };
283
284 timer1: timer@40085000 {
285 compatible = "nxp,lpc3220-timer";
286 reg = <0x40085000 0x1000>;
287 interrupts = <13>;
ba2db535 288 clocks = <&ccu1 CLK_CPU_TIMER1>;
804a5dd6
JE
289 clock-names = "timerclk";
290 };
291
d881f5e2
JE
292 pinctrl: pinctrl@40086000 {
293 compatible = "nxp,lpc1850-scu";
294 reg = <0x40086000 0x1000>;
295 clocks = <&ccu1 CLK_CPU_SCU>;
296 };
297
06713a94
JE
298 i2c0: i2c@400a1000 {
299 compatible = "nxp,lpc1788-i2c";
300 reg = <0x400a1000 0x1000>;
301 interrupts = <18>;
302 clocks = <&ccu1 CLK_APB1_I2C0>;
303 resets = <&rgu 48>;
304 #address-cells = <1>;
305 #size-cells = <0>;
306 status = "disabled";
307 };
308
7e6c8376
JE
309 can1: can@400a4000 {
310 compatible = "bosch,c_can";
311 reg = <0x400a4000 0x1000>;
312 interrupts = <43>;
313 clocks = <&ccu1 CLK_APB1_CAN1>;
314 status = "disabled";
315 };
316
804a5dd6 317 uart2: serial@400c1000 {
f2b1c507 318 compatible = "nxp,lpc1850-uart", "ns16550a";
804a5dd6
JE
319 reg = <0x400c1000 0x1000>;
320 reg-shift = <2>;
321 interrupts = <26>;
ba2db535 322 clocks = <&ccu2 CLK_APB2_UART2>, <&ccu1 CLK_CPU_UART2>;
f2b1c507 323 clock-names = "uartclk", "reg";
4e9c5aa8
JE
324 dmas = <&dmamux 5 1 2
325 &dmamux 6 1 2>;
326 dma-names = "tx", "rx";
804a5dd6
JE
327 status = "disabled";
328 };
329
330 uart3: serial@400c2000 {
f2b1c507 331 compatible = "nxp,lpc1850-uart", "ns16550a";
804a5dd6
JE
332 reg = <0x400c2000 0x1000>;
333 reg-shift = <2>;
334 interrupts = <27>;
ba2db535 335 clocks = <&ccu2 CLK_APB2_UART3>, <&ccu1 CLK_CPU_UART3>;
f2b1c507 336 clock-names = "uartclk", "reg";
4e9c5aa8
JE
337 dmas = <&dmamux 7 1 2
338 &dmamux 8 1 2
339 &dmamux 13 3 2
340 &dmamux 14 3 2>;
341 dma-names = "tx", "rx", "rx", "tx";
804a5dd6
JE
342 status = "disabled";
343 };
344
345 timer2: timer@400c3000 {
346 compatible = "nxp,lpc3220-timer";
347 reg = <0x400c3000 0x1000>;
348 interrupts = <14>;
ba2db535 349 clocks = <&ccu1 CLK_CPU_TIMER2>;
804a5dd6
JE
350 clock-names = "timerclk";
351 };
352
353 timer3: timer@400c4000 {
354 compatible = "nxp,lpc3220-timer";
355 reg = <0x400c4000 0x1000>;
356 interrupts = <15>;
ba2db535 357 clocks = <&ccu1 CLK_CPU_TIMER3>;
804a5dd6
JE
358 clock-names = "timerclk";
359 };
7836dce4 360
5d2ea79c
JE
361 ssp1: spi@400c5000 {
362 compatible = "arm,pl022", "arm,primecell";
363 reg = <0x400c5000 0x1000>;
364 interrupts = <23>;
365 clocks = <&ccu2 CLK_APB2_SSP1>, <&ccu1 CLK_CPU_SSP1>;
366 clock-names = "sspclk", "apb_pclk";
c5288091
JE
367 dmas = <&dmamux 11 2 2
368 &dmamux 12 2 2
369 &dmamux 3 3 2
370 &dmamux 4 3 2
371 &dmamux 5 2 2
372 &dmamux 6 2 2
373 &dmamux 13 2 2
374 &dmamux 14 2 2>;
375 dma-names = "rx", "tx", "tx", "rx",
376 "tx", "rx", "rx", "tx";
5d2ea79c
JE
377 #address-cells = <1>;
378 #size-cells = <0>;
379 status = "disabled";
380 };
381
06713a94
JE
382 i2c1: i2c@400e0000 {
383 compatible = "nxp,lpc1788-i2c";
384 reg = <0x400e0000 0x1000>;
385 interrupts = <19>;
386 clocks = <&ccu1 CLK_APB3_I2C1>;
387 resets = <&rgu 49>;
388 #address-cells = <1>;
389 #size-cells = <0>;
390 status = "disabled";
391 };
392
7e6c8376
JE
393 can0: can@400e2000 {
394 compatible = "bosch,c_can";
395 reg = <0x400e2000 0x1000>;
396 interrupts = <51>;
397 clocks = <&ccu1 CLK_APB3_CAN0>;
398 status = "disabled";
399 };
400
7836dce4
JE
401 gpio: gpio@400f4000 {
402 compatible = "nxp,lpc1850-gpio";
403 reg = <0x400f4000 0x4000>;
404 clocks = <&ccu1 CLK_CPU_GPIO>;
405 gpio-controller;
406 #gpio-cells = <2>;
407 gpio-ranges = <&pinctrl LPC_GPIO(0,0) LPC_PIN(0,0) 2>,
408 <&pinctrl LPC_GPIO(0,4) LPC_PIN(1,0) 1>,
409 <&pinctrl LPC_GPIO(0,8) LPC_PIN(1,1) 4>,
410 <&pinctrl LPC_GPIO(1,8) LPC_PIN(1,5) 2>,
411 <&pinctrl LPC_GPIO(1,0) LPC_PIN(1,7) 8>,
412 <&pinctrl LPC_GPIO(0,2) LPC_PIN(1,15) 2>,
413 <&pinctrl LPC_GPIO(0,12) LPC_PIN(1,17) 2>,
414 <&pinctrl LPC_GPIO(0,15) LPC_PIN(1,20) 1>,
415 <&pinctrl LPC_GPIO(5,0) LPC_PIN(2,0) 7>,
416 <&pinctrl LPC_GPIO(0,7) LPC_PIN(2,7) 1>,
417 <&pinctrl LPC_GPIO(5,7) LPC_PIN(2,8) 1>,
418 <&pinctrl LPC_GPIO(1,10) LPC_PIN(2,9) 1>,
419 <&pinctrl LPC_GPIO(0,14) LPC_PIN(2,10) 1>,
420 <&pinctrl LPC_GPIO(1,11) LPC_PIN(2,11) 3>,
421 <&pinctrl LPC_GPIO(5,8) LPC_PIN(3,1) 2>,
422 <&pinctrl LPC_GPIO(1,14) LPC_PIN(3,4) 2>,
423 <&pinctrl LPC_GPIO(0,6) LPC_PIN(3,6) 1>,
424 <&pinctrl LPC_GPIO(5,10) LPC_PIN(3,7) 2>,
425 <&pinctrl LPC_GPIO(2,0) LPC_PIN(4,0) 7>,
426 <&pinctrl LPC_GPIO(5,12) LPC_PIN(4,8) 3>,
427 <&pinctrl LPC_GPIO(2,9) LPC_PIN(5,0) 7>,
428 <&pinctrl LPC_GPIO(2,7) LPC_PIN(5,7) 1>,
429 <&pinctrl LPC_GPIO(3,0) LPC_PIN(6,1) 5>,
430 <&pinctrl LPC_GPIO(0,5) LPC_PIN(6,6) 1>,
431 <&pinctrl LPC_GPIO(5,15) LPC_PIN(6,7) 2>,
432 <&pinctrl LPC_GPIO(3,5) LPC_PIN(6,9) 3>,
433 <&pinctrl LPC_GPIO(2,8) LPC_PIN(6,12) 1>,
434 <&pinctrl LPC_GPIO(3,8) LPC_PIN(7,0) 8>,
435 <&pinctrl LPC_GPIO(4,0) LPC_PIN(8,0) 8>,
436 <&pinctrl LPC_GPIO(4,12) LPC_PIN(9,0) 4>,
437 <&pinctrl LPC_GPIO(5,17) LPC_PIN(9,4) 2>,
438 <&pinctrl LPC_GPIO(4,11) LPC_PIN(9,6) 1>,
439 <&pinctrl LPC_GPIO(4,8) LPC_PIN(a,1) 3>,
440 <&pinctrl LPC_GPIO(5,19) LPC_PIN(a,4) 1>,
441 <&pinctrl LPC_GPIO(5,20) LPC_PIN(b,0) 7>,
442 <&pinctrl LPC_GPIO(6,0) LPC_PIN(c,1) 14>,
443 <&pinctrl LPC_GPIO(6,14) LPC_PIN(d,0) 17>,
444 <&pinctrl LPC_GPIO(7,0) LPC_PIN(e,0) 16>,
445 <&pinctrl LPC_GPIO(7,16) LPC_PIN(f,1) 3>,
446 <&pinctrl LPC_GPIO(7,19) LPC_PIN(f,5) 7>;
447 };
804a5dd6
JE
448 };
449};
This page took 0.095565 seconds and 5 git commands to generate.