2 * Common base for NXP LPC18xx and LPC43xx devices.
4 * Copyright 2015 Joachim Eastwood <manabian@gmail.com>
6 * This code is released using a dual license strategy: BSD/GPL
7 * You can choose the licence that better fits your requirements.
9 * Released under the terms of 3-clause BSD License
10 * Released under the terms of GNU General Public License Version 2.0
14 #include "armv7-m.dtsi"
16 #include "dt-bindings/clock/lpc18xx-cgu.h"
17 #include "dt-bindings/clock/lpc18xx-ccu.h"
19 #define LPC_PIN(port, pin) (0x##port * 32 + pin)
20 #define LPC_GPIO(port, pin) (port * 32 + pin)
28 compatible = "arm,cortex-m3";
31 clocks = <&ccu1 CLK_CPU_CORE>;
37 compatible = "fixed-clock";
39 clock-frequency = <12000000>;
43 compatible = "fixed-clock";
45 clock-frequency = <32768>;
48 enet_rx_clk: enet_rx_clk {
49 compatible = "fixed-clock";
51 clock-frequency = <0>;
52 clock-output-names = "enet_rx_clk";
55 enet_tx_clk: enet_tx_clk {
56 compatible = "fixed-clock";
58 clock-frequency = <0>;
59 clock-output-names = "enet_tx_clk";
63 compatible = "fixed-clock";
65 clock-frequency = <0>;
66 clock-output-names = "gp_clkin";
71 sct_pwm: pwm@40000000 {
72 compatible = "nxp,lpc1850-sct-pwm";
73 reg = <0x40000000 0x1000>;
74 clocks =<&ccu1 CLK_CPU_SCT>;
81 dmac: dma-controller@40002000 {
82 compatible = "arm,pl080", "arm,primecell";
83 arm,primecell-periphid = <0x00041080>;
84 reg = <0x40002000 0x1000>;
86 clocks = <&ccu1 CLK_CPU_DMA>;
87 clock-names = "apb_pclk";
92 lli-bus-interface-ahb1;
93 lli-bus-interface-ahb2;
94 mem-bus-interface-ahb1;
95 mem-bus-interface-ahb2;
96 memcpy-burst-size = <256>;
97 memcpy-bus-width = <32>;
100 spifi: flash-controller@40003000 {
101 compatible = "nxp,lpc1773-spifi";
102 reg = <0x40003000 0x1000>, <0x14000000 0x4000000>;
103 reg-names = "spifi", "flash";
105 clocks = <&ccu1 CLK_SPIFI>, <&ccu1 CLK_CPU_SPIFI>;
106 clock-names = "spifi", "reg";
111 mmcsd: mmcsd@40004000 {
112 compatible = "snps,dw-mshc";
113 reg = <0x40004000 0x1000>;
116 clocks = <&ccu2 CLK_SDIO>, <&ccu1 CLK_CPU_SDIO>;
117 clock-names = "ciu", "biu";
122 usb0: ehci@40006100 {
123 compatible = "nxp,lpc1850-ehci", "generic-ehci";
124 reg = <0x40006100 0x100>;
126 clocks = <&ccu1 CLK_CPU_USB0>;
128 phys = <&usb0_otg_phy>;
130 has-transaction-translator;
134 usb1: ehci@40007100 {
135 compatible = "nxp,lpc1850-ehci", "generic-ehci";
136 reg = <0x40007100 0x100>;
138 clocks = <&ccu1 CLK_CPU_USB1>;
143 emc: memory-controller@40005000 {
144 compatible = "arm,pl172", "arm,primecell";
145 reg = <0x40005000 0x1000>;
146 clocks = <&ccu1 CLK_CPU_EMCDIV>, <&ccu1 CLK_CPU_EMC>;
147 clock-names = "mpmcclk", "apb_pclk";
149 #address-cells = <2>;
151 ranges = <0 0 0x1c000000 0x1000000
152 1 0 0x1d000000 0x1000000
153 2 0 0x1e000000 0x1000000
154 3 0 0x1f000000 0x1000000>;
158 lcdc: lcd-controller@40008000 {
159 compatible = "arm,pl111", "arm,primecell";
160 reg = <0x40008000 0x1000>;
162 interrupt-names = "combined";
163 clocks = <&cgu BASE_LCD_CLK>, <&ccu1 CLK_CPU_LCD>;
164 clock-names = "clcdclk", "apb_pclk";
169 mac: ethernet@40010000 {
170 compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
171 reg = <0x40010000 0x2000>;
173 interrupt-names = "macirq";
174 clocks = <&ccu1 CLK_CPU_ETHERNET>;
175 clock-names = "stmmaceth";
177 reset-names = "stmmaceth";
181 creg: syscon@40043000 {
182 compatible = "nxp,lpc1850-creg", "syscon", "simple-mfd";
183 reg = <0x40043000 0x1000>;
184 clocks = <&ccu1 CLK_CPU_CREG>;
187 usb0_otg_phy: phy@004 {
188 compatible = "nxp,lpc1850-usb-otg-phy";
189 clocks = <&ccu1 CLK_USB0>;
193 dmamux: dma-mux@11c {
194 compatible = "nxp,lpc1850-dmamux";
197 dma-masters = <&dmac>;
201 cgu: clock-controller@40050000 {
202 compatible = "nxp,lpc1850-cgu";
203 reg = <0x40050000 0x1000>;
205 clocks = <&xtal>, <&xtal32>, <&enet_rx_clk>, <&enet_tx_clk>, <&gp_clkin>;
208 ccu1: clock-controller@40051000 {
209 compatible = "nxp,lpc1850-ccu";
210 reg = <0x40051000 0x1000>;
212 clocks = <&cgu BASE_APB3_CLK>, <&cgu BASE_APB1_CLK>,
213 <&cgu BASE_SPIFI_CLK>, <&cgu BASE_CPU_CLK>,
214 <&cgu BASE_PERIPH_CLK>, <&cgu BASE_USB0_CLK>,
215 <&cgu BASE_USB1_CLK>, <&cgu BASE_SPI_CLK>;
216 clock-names = "base_apb3_clk", "base_apb1_clk",
217 "base_spifi_clk", "base_cpu_clk",
218 "base_periph_clk", "base_usb0_clk",
219 "base_usb1_clk", "base_spi_clk";
222 ccu2: clock-controller@40052000 {
223 compatible = "nxp,lpc1850-ccu";
224 reg = <0x40052000 0x1000>;
226 clocks = <&cgu BASE_AUDIO_CLK>, <&cgu BASE_UART3_CLK>,
227 <&cgu BASE_UART2_CLK>, <&cgu BASE_UART1_CLK>,
228 <&cgu BASE_UART0_CLK>, <&cgu BASE_SSP1_CLK>,
229 <&cgu BASE_SSP0_CLK>, <&cgu BASE_SDIO_CLK>;
230 clock-names = "base_audio_clk", "base_uart3_clk",
231 "base_uart2_clk", "base_uart1_clk",
232 "base_uart0_clk", "base_ssp1_clk",
233 "base_ssp0_clk", "base_sdio_clk";
236 rgu: reset-controller@40053000 {
237 compatible = "nxp,lpc1850-rgu";
238 reg = <0x40053000 0x1000>;
239 clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_BUS>;
240 clock-names = "delay", "reg";
245 compatible = "nxp,lpc1850-wwdt";
246 reg = <0x40080000 0x24>;
248 clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_WWDT>;
249 clock-names = "wdtclk", "reg";
252 uart0: serial@40081000 {
253 compatible = "nxp,lpc1850-uart", "ns16550a";
254 reg = <0x40081000 0x1000>;
257 clocks = <&ccu2 CLK_APB0_UART0>, <&ccu1 CLK_CPU_UART0>;
258 clock-names = "uartclk", "reg";
260 dmas = <&dmamux 1 1 2
264 dma-names = "tx", "rx", "tx", "rx";
268 uart1: serial@40082000 {
269 compatible = "nxp,lpc1850-uart", "ns16550a";
270 reg = <0x40082000 0x1000>;
273 clocks = <&ccu2 CLK_APB0_UART1>, <&ccu1 CLK_CPU_UART1>;
274 clock-names = "uartclk", "reg";
276 dmas = <&dmamux 3 1 2
278 dma-names = "tx", "rx";
283 compatible = "arm,pl022", "arm,primecell";
284 reg = <0x40083000 0x1000>;
286 clocks = <&ccu2 CLK_APB0_SSP0>, <&ccu1 CLK_CPU_SSP0>;
287 clock-names = "sspclk", "apb_pclk";
289 dmas = <&dmamux 9 0 2
291 dma-names = "rx", "tx";
292 #address-cells = <1>;
297 timer0: timer@40084000 {
298 compatible = "nxp,lpc3220-timer";
299 reg = <0x40084000 0x1000>;
301 clocks = <&ccu1 CLK_CPU_TIMER0>;
302 clock-names = "timerclk";
306 timer1: timer@40085000 {
307 compatible = "nxp,lpc3220-timer";
308 reg = <0x40085000 0x1000>;
310 clocks = <&ccu1 CLK_CPU_TIMER1>;
311 clock-names = "timerclk";
315 pinctrl: pinctrl@40086000 {
316 compatible = "nxp,lpc1850-scu";
317 reg = <0x40086000 0x1000>;
318 clocks = <&ccu1 CLK_CPU_SCU>;
322 compatible = "nxp,lpc1788-i2c";
323 reg = <0x400a1000 0x1000>;
325 clocks = <&ccu1 CLK_APB1_I2C0>;
327 #address-cells = <1>;
333 compatible = "bosch,c_can";
334 reg = <0x400a4000 0x1000>;
336 clocks = <&ccu1 CLK_APB1_CAN1>;
341 uart2: serial@400c1000 {
342 compatible = "nxp,lpc1850-uart", "ns16550a";
343 reg = <0x400c1000 0x1000>;
346 clocks = <&ccu2 CLK_APB2_UART2>, <&ccu1 CLK_CPU_UART2>;
347 clock-names = "uartclk", "reg";
349 dmas = <&dmamux 5 1 2
351 dma-names = "tx", "rx";
355 uart3: serial@400c2000 {
356 compatible = "nxp,lpc1850-uart", "ns16550a";
357 reg = <0x400c2000 0x1000>;
360 clocks = <&ccu2 CLK_APB2_UART3>, <&ccu1 CLK_CPU_UART3>;
361 clock-names = "uartclk", "reg";
363 dmas = <&dmamux 7 1 2
367 dma-names = "tx", "rx", "rx", "tx";
371 timer2: timer@400c3000 {
372 compatible = "nxp,lpc3220-timer";
373 reg = <0x400c3000 0x1000>;
375 clocks = <&ccu1 CLK_CPU_TIMER2>;
376 clock-names = "timerclk";
380 timer3: timer@400c4000 {
381 compatible = "nxp,lpc3220-timer";
382 reg = <0x400c4000 0x1000>;
384 clocks = <&ccu1 CLK_CPU_TIMER3>;
385 clock-names = "timerclk";
390 compatible = "arm,pl022", "arm,primecell";
391 reg = <0x400c5000 0x1000>;
393 clocks = <&ccu2 CLK_APB2_SSP1>, <&ccu1 CLK_CPU_SSP1>;
394 clock-names = "sspclk", "apb_pclk";
396 dmas = <&dmamux 11 2 2
404 dma-names = "rx", "tx", "tx", "rx",
405 "tx", "rx", "rx", "tx";
406 #address-cells = <1>;
412 compatible = "nxp,lpc1788-i2c";
413 reg = <0x400e0000 0x1000>;
415 clocks = <&ccu1 CLK_APB3_I2C1>;
417 #address-cells = <1>;
423 compatible = "bosch,c_can";
424 reg = <0x400e2000 0x1000>;
426 clocks = <&ccu1 CLK_APB3_CAN0>;
431 gpio: gpio@400f4000 {
432 compatible = "nxp,lpc1850-gpio";
433 reg = <0x400f4000 0x4000>;
434 clocks = <&ccu1 CLK_CPU_GPIO>;
437 gpio-ranges = <&pinctrl LPC_GPIO(0,0) LPC_PIN(0,0) 2>,
438 <&pinctrl LPC_GPIO(0,4) LPC_PIN(1,0) 1>,
439 <&pinctrl LPC_GPIO(0,8) LPC_PIN(1,1) 4>,
440 <&pinctrl LPC_GPIO(1,8) LPC_PIN(1,5) 2>,
441 <&pinctrl LPC_GPIO(1,0) LPC_PIN(1,7) 8>,
442 <&pinctrl LPC_GPIO(0,2) LPC_PIN(1,15) 2>,
443 <&pinctrl LPC_GPIO(0,12) LPC_PIN(1,17) 2>,
444 <&pinctrl LPC_GPIO(0,15) LPC_PIN(1,20) 1>,
445 <&pinctrl LPC_GPIO(5,0) LPC_PIN(2,0) 7>,
446 <&pinctrl LPC_GPIO(0,7) LPC_PIN(2,7) 1>,
447 <&pinctrl LPC_GPIO(5,7) LPC_PIN(2,8) 1>,
448 <&pinctrl LPC_GPIO(1,10) LPC_PIN(2,9) 1>,
449 <&pinctrl LPC_GPIO(0,14) LPC_PIN(2,10) 1>,
450 <&pinctrl LPC_GPIO(1,11) LPC_PIN(2,11) 3>,
451 <&pinctrl LPC_GPIO(5,8) LPC_PIN(3,1) 2>,
452 <&pinctrl LPC_GPIO(1,14) LPC_PIN(3,4) 2>,
453 <&pinctrl LPC_GPIO(0,6) LPC_PIN(3,6) 1>,
454 <&pinctrl LPC_GPIO(5,10) LPC_PIN(3,7) 2>,
455 <&pinctrl LPC_GPIO(2,0) LPC_PIN(4,0) 7>,
456 <&pinctrl LPC_GPIO(5,12) LPC_PIN(4,8) 3>,
457 <&pinctrl LPC_GPIO(2,9) LPC_PIN(5,0) 7>,
458 <&pinctrl LPC_GPIO(2,7) LPC_PIN(5,7) 1>,
459 <&pinctrl LPC_GPIO(3,0) LPC_PIN(6,1) 5>,
460 <&pinctrl LPC_GPIO(0,5) LPC_PIN(6,6) 1>,
461 <&pinctrl LPC_GPIO(5,15) LPC_PIN(6,7) 2>,
462 <&pinctrl LPC_GPIO(3,5) LPC_PIN(6,9) 3>,
463 <&pinctrl LPC_GPIO(2,8) LPC_PIN(6,12) 1>,
464 <&pinctrl LPC_GPIO(3,8) LPC_PIN(7,0) 8>,
465 <&pinctrl LPC_GPIO(4,0) LPC_PIN(8,0) 8>,
466 <&pinctrl LPC_GPIO(4,12) LPC_PIN(9,0) 4>,
467 <&pinctrl LPC_GPIO(5,17) LPC_PIN(9,4) 2>,
468 <&pinctrl LPC_GPIO(4,11) LPC_PIN(9,6) 1>,
469 <&pinctrl LPC_GPIO(4,8) LPC_PIN(a,1) 3>,
470 <&pinctrl LPC_GPIO(5,19) LPC_PIN(a,4) 1>,
471 <&pinctrl LPC_GPIO(5,20) LPC_PIN(b,0) 7>,
472 <&pinctrl LPC_GPIO(6,0) LPC_PIN(c,1) 14>,
473 <&pinctrl LPC_GPIO(6,14) LPC_PIN(d,0) 17>,
474 <&pinctrl LPC_GPIO(7,0) LPC_PIN(e,0) 16>,
475 <&pinctrl LPC_GPIO(7,16) LPC_PIN(f,1) 3>,
476 <&pinctrl LPC_GPIO(7,19) LPC_PIN(f,5) 7>;