2012-04-22 18:01:19 +08:00
|
|
|
/*
|
|
|
|
* NXP LPC32xx SoC
|
|
|
|
*
|
|
|
|
* Copyright 2012 Roland Stigge <stigge@antcom.de>
|
|
|
|
*
|
|
|
|
* The code contained herein is licensed under the GNU General Public
|
|
|
|
* License. You may obtain a copy of the GNU General Public License
|
|
|
|
* Version 2 or later at the following locations:
|
|
|
|
*
|
|
|
|
* http://www.opensource.org/licenses/gpl-license.html
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*/
|
|
|
|
|
|
|
|
/include/ "skeleton.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "nxp,lpc3220";
|
|
|
|
interrupt-parent = <&mic>;
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
cpu@0 {
|
|
|
|
compatible = "arm,arm926ejs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ahb {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "simple-bus";
|
|
|
|
ranges = <0x20000000 0x20000000 0x30000000>;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Enable either SLC or MLC
|
|
|
|
*/
|
|
|
|
slc: flash@20020000 {
|
|
|
|
compatible = "nxp,lpc3220-slc";
|
|
|
|
reg = <0x20020000 0x1000>;
|
2012-06-14 22:16:18 +08:00
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
2012-06-14 22:16:17 +08:00
|
|
|
mlc: flash@200a8000 {
|
2012-04-22 18:01:19 +08:00
|
|
|
compatible = "nxp,lpc3220-mlc";
|
2012-06-14 22:16:17 +08:00
|
|
|
reg = <0x200a8000 0x11000>;
|
|
|
|
interrupts = <11 0>;
|
2012-06-14 22:16:18 +08:00
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
dma@31000000 {
|
|
|
|
compatible = "arm,pl080", "arm,primecell";
|
|
|
|
reg = <0x31000000 0x1000>;
|
|
|
|
interrupts = <0x1c 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Enable either ohci or usbd (gadget)!
|
|
|
|
*/
|
|
|
|
ohci@31020000 {
|
|
|
|
compatible = "nxp,ohci-nxp", "usb-ohci";
|
|
|
|
reg = <0x31020000 0x300>;
|
|
|
|
interrupts = <0x3b 0>;
|
2012-06-14 22:16:18 +08:00
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
usbd@31020000 {
|
|
|
|
compatible = "nxp,lpc3220-udc";
|
|
|
|
reg = <0x31020000 0x300>;
|
|
|
|
interrupts = <0x3d 0>, <0x3e 0>, <0x3c 0>, <0x3a 0>;
|
2012-06-14 22:16:18 +08:00
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
clcd@31040000 {
|
|
|
|
compatible = "arm,pl110", "arm,primecell";
|
|
|
|
reg = <0x31040000 0x1000>;
|
|
|
|
interrupts = <0x0e 0>;
|
2012-06-14 22:16:18 +08:00
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
mac: ethernet@31060000 {
|
|
|
|
compatible = "nxp,lpc-eth";
|
|
|
|
reg = <0x31060000 0x1000>;
|
|
|
|
interrupts = <0x1d 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
apb {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "simple-bus";
|
|
|
|
ranges = <0x20000000 0x20000000 0x30000000>;
|
|
|
|
|
|
|
|
ssp0: ssp@20084000 {
|
|
|
|
compatible = "arm,pl022", "arm,primecell";
|
|
|
|
reg = <0x20084000 0x1000>;
|
|
|
|
interrupts = <0x14 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
spi1: spi@20088000 {
|
|
|
|
compatible = "nxp,lpc3220-spi";
|
|
|
|
reg = <0x20088000 0x1000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
ssp1: ssp@2008c000 {
|
|
|
|
compatible = "arm,pl022", "arm,primecell";
|
|
|
|
reg = <0x2008c000 0x1000>;
|
|
|
|
interrupts = <0x15 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
spi2: spi@20090000 {
|
|
|
|
compatible = "nxp,lpc3220-spi";
|
|
|
|
reg = <0x20090000 0x1000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2s0: i2s@20094000 {
|
|
|
|
compatible = "nxp,lpc3220-i2s";
|
|
|
|
reg = <0x20094000 0x1000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sd@20098000 {
|
2012-06-14 22:16:18 +08:00
|
|
|
compatible = "arm,pl18x", "arm,primecell";
|
2012-04-22 18:01:19 +08:00
|
|
|
reg = <0x20098000 0x1000>;
|
|
|
|
interrupts = <0x0f 0>, <0x0d 0>;
|
2012-06-14 22:16:18 +08:00
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
i2s1: i2s@2009C000 {
|
|
|
|
compatible = "nxp,lpc3220-i2s";
|
|
|
|
reg = <0x2009C000 0x1000>;
|
|
|
|
};
|
|
|
|
|
2012-06-14 22:16:18 +08:00
|
|
|
/* UART5 first since it is the default console, ttyS0 */
|
|
|
|
uart5: serial@40090000 {
|
|
|
|
/* actually, ns16550a w/ 64 byte fifos! */
|
|
|
|
compatible = "nxp,lpc3220-uart";
|
|
|
|
reg = <0x40090000 0x1000>;
|
|
|
|
interrupts = <9 0>;
|
|
|
|
clock-frequency = <13000000>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2012-04-22 18:01:19 +08:00
|
|
|
uart3: serial@40080000 {
|
2012-06-14 22:16:18 +08:00
|
|
|
compatible = "nxp,lpc3220-uart";
|
2012-04-22 18:01:19 +08:00
|
|
|
reg = <0x40080000 0x1000>;
|
2012-06-14 22:16:18 +08:00
|
|
|
interrupts = <7 0>;
|
|
|
|
clock-frequency = <13000000>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
uart4: serial@40088000 {
|
2012-06-14 22:16:18 +08:00
|
|
|
compatible = "nxp,lpc3220-uart";
|
2012-04-22 18:01:19 +08:00
|
|
|
reg = <0x40088000 0x1000>;
|
2012-06-14 22:16:18 +08:00
|
|
|
interrupts = <8 0>;
|
|
|
|
clock-frequency = <13000000>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
uart6: serial@40098000 {
|
2012-06-14 22:16:18 +08:00
|
|
|
compatible = "nxp,lpc3220-uart";
|
2012-04-22 18:01:19 +08:00
|
|
|
reg = <0x40098000 0x1000>;
|
2012-06-14 22:16:18 +08:00
|
|
|
interrupts = <10 0>;
|
|
|
|
clock-frequency = <13000000>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
i2c1: i2c@400A0000 {
|
|
|
|
compatible = "nxp,pnx-i2c";
|
|
|
|
reg = <0x400A0000 0x100>;
|
|
|
|
interrupts = <0x33 0>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
pnx,timeout = <0x64>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c2: i2c@400A8000 {
|
|
|
|
compatible = "nxp,pnx-i2c";
|
|
|
|
reg = <0x400A8000 0x100>;
|
|
|
|
interrupts = <0x32 0>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
pnx,timeout = <0x64>;
|
|
|
|
};
|
|
|
|
|
2012-11-14 20:59:45 +08:00
|
|
|
mpwm: mpwm@400E8000 {
|
|
|
|
compatible = "nxp,lpc3220-motor-pwm";
|
|
|
|
reg = <0x400E8000 0x78>;
|
|
|
|
status = "disabled";
|
|
|
|
#pwm-cells = <2>;
|
|
|
|
};
|
|
|
|
|
2012-04-22 18:01:19 +08:00
|
|
|
i2cusb: i2c@31020300 {
|
|
|
|
compatible = "nxp,pnx-i2c";
|
|
|
|
reg = <0x31020300 0x100>;
|
|
|
|
interrupts = <0x3f 0>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
pnx,timeout = <0x64>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fab {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "simple-bus";
|
|
|
|
ranges = <0x20000000 0x20000000 0x30000000>;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MIC Interrupt controller includes:
|
|
|
|
* MIC @40008000
|
|
|
|
* SIC1 @4000C000
|
|
|
|
* SIC2 @40010000
|
|
|
|
*/
|
|
|
|
mic: interrupt-controller@40008000 {
|
|
|
|
compatible = "nxp,lpc3220-mic";
|
|
|
|
interrupt-controller;
|
|
|
|
reg = <0x40008000 0xC000>;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart1: serial@40014000 {
|
2012-06-14 22:16:18 +08:00
|
|
|
compatible = "nxp,lpc3220-hsuart";
|
2012-04-22 18:01:19 +08:00
|
|
|
reg = <0x40014000 0x1000>;
|
2012-06-14 22:16:18 +08:00
|
|
|
interrupts = <26 0>;
|
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
uart2: serial@40018000 {
|
2012-06-14 22:16:18 +08:00
|
|
|
compatible = "nxp,lpc3220-hsuart";
|
2012-04-22 18:01:19 +08:00
|
|
|
reg = <0x40018000 0x1000>;
|
2012-06-14 22:16:18 +08:00
|
|
|
interrupts = <25 0>;
|
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
2012-06-14 22:16:18 +08:00
|
|
|
uart7: serial@4001c000 {
|
|
|
|
compatible = "nxp,lpc3220-hsuart";
|
|
|
|
reg = <0x4001c000 0x1000>;
|
|
|
|
interrupts = <24 0>;
|
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
rtc@40024000 {
|
|
|
|
compatible = "nxp,lpc3220-rtc";
|
|
|
|
reg = <0x40024000 0x1000>;
|
|
|
|
interrupts = <0x34 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio: gpio@40028000 {
|
|
|
|
compatible = "nxp,lpc3220-gpio";
|
|
|
|
reg = <0x40028000 0x1000>;
|
2012-05-19 18:28:53 +08:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <3>; /* bank, pin, flags */
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
watchdog@4003C000 {
|
|
|
|
compatible = "nxp,pnx4008-wdt";
|
|
|
|
reg = <0x4003C000 0x1000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* TSC vs. ADC: Since those two share the same
|
|
|
|
* hardware, you need to choose from one of the
|
|
|
|
* following two and do 'status = "okay";' for one of
|
|
|
|
* them
|
|
|
|
*/
|
|
|
|
|
|
|
|
adc@40048000 {
|
|
|
|
compatible = "nxp,lpc3220-adc";
|
|
|
|
reg = <0x40048000 0x1000>;
|
|
|
|
interrupts = <0x27 0>;
|
2012-06-14 22:16:18 +08:00
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
tsc@40048000 {
|
|
|
|
compatible = "nxp,lpc3220-tsc";
|
|
|
|
reg = <0x40048000 0x1000>;
|
|
|
|
interrupts = <0x27 0>;
|
2012-06-14 22:16:18 +08:00
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
key@40050000 {
|
|
|
|
compatible = "nxp,lpc3220-key";
|
|
|
|
reg = <0x40050000 0x1000>;
|
2012-06-14 22:16:17 +08:00
|
|
|
interrupts = <54 0>;
|
|
|
|
status = "disabled";
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
|
2012-07-20 19:33:09 +08:00
|
|
|
pwm: pwm@4005C000 {
|
|
|
|
compatible = "nxp,lpc3220-pwm";
|
|
|
|
reg = <0x4005C000 0x8>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2012-04-22 18:01:19 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|