Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 1 | /* |
| 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 Zapolskiy | 1a24edd | 2015-10-18 00:35:50 +0300 | [diff] [blame] | 14 | #include "skeleton.dtsi" |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 15 | |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 16 | #include <dt-bindings/clock/lpc32xx-clock.h> |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 17 | #include <dt-bindings/interrupt-controller/irq.h> |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 18 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 19 | / { |
| 20 | compatible = "nxp,lpc3220"; |
| 21 | interrupt-parent = <&mic>; |
| 22 | |
| 23 | cpus { |
Vladimir Zapolskiy | 246d8fc | 2015-10-18 00:35:52 +0300 | [diff] [blame] | 24 | #address-cells = <1>; |
Lorenzo Pieralisi | 73158b7 | 2013-04-18 18:34:51 +0100 | [diff] [blame] | 25 | #size-cells = <0>; |
| 26 | |
Vladimir Zapolskiy | 246d8fc | 2015-10-18 00:35:52 +0300 | [diff] [blame] | 27 | cpu@0 { |
Lorenzo Pieralisi | 73158b7 | 2013-04-18 18:34:51 +0100 | [diff] [blame] | 28 | compatible = "arm,arm926ej-s"; |
| 29 | device_type = "cpu"; |
Vladimir Zapolskiy | 246d8fc | 2015-10-18 00:35:52 +0300 | [diff] [blame] | 30 | reg = <0x0>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 31 | }; |
| 32 | }; |
| 33 | |
Vladimir Zapolskiy | ef5f885 | 2015-11-20 03:05:04 +0200 | [diff] [blame] | 34 | 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 Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 50 | ahb { |
| 51 | #address-cells = <1>; |
| 52 | #size-cells = <1>; |
| 53 | compatible = "simple-bus"; |
Vladimir Zapolskiy | f83ee67 | 2015-10-18 00:35:55 +0300 | [diff] [blame] | 54 | ranges = <0x20000000 0x20000000 0x30000000>, |
| 55 | <0xe0000000 0xe0000000 0x04000000>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 56 | |
| 57 | /* |
| 58 | * Enable either SLC or MLC |
| 59 | */ |
| 60 | slc: flash@20020000 { |
| 61 | compatible = "nxp,lpc3220-slc"; |
| 62 | reg = <0x20020000 0x1000>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 63 | clocks = <&clk LPC32XX_CLK_SLC>; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 64 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 65 | }; |
| 66 | |
Roland Stigge | 6d1c3e9 | 2012-06-14 16:16:17 +0200 | [diff] [blame] | 67 | mlc: flash@200a8000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 68 | compatible = "nxp,lpc3220-mlc"; |
Roland Stigge | 6d1c3e9 | 2012-06-14 16:16:17 +0200 | [diff] [blame] | 69 | reg = <0x200a8000 0x11000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 70 | interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 71 | clocks = <&clk LPC32XX_CLK_MLC>; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 72 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 73 | }; |
| 74 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 75 | dma: dma@31000000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 76 | compatible = "arm,pl080", "arm,primecell"; |
| 77 | reg = <0x31000000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 78 | interrupts = <28 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 79 | clocks = <&clk LPC32XX_CLK_DMA>; |
| 80 | clock-names = "apb_pclk"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 81 | }; |
| 82 | |
Vladimir Zapolskiy | aa29efb | 2015-10-18 00:35:57 +0300 | [diff] [blame] | 83 | usb { |
| 84 | #address-cells = <1>; |
| 85 | #size-cells = <1>; |
| 86 | compatible = "simple-bus"; |
| 87 | ranges = <0x0 0x31020000 0x00001000>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 88 | |
Vladimir Zapolskiy | aa29efb | 2015-10-18 00:35:57 +0300 | [diff] [blame] | 89 | /* |
| 90 | * Enable either ohci or usbd (gadget)! |
| 91 | */ |
| 92 | ohci: ohci@0 { |
| 93 | compatible = "nxp,ohci-nxp", "usb-ohci"; |
| 94 | reg = <0x0 0x300>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 95 | interrupts = <59 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 865e900 | 2015-11-20 03:05:07 +0200 | [diff] [blame] | 96 | clocks = <&usbclk LPC32XX_USB_CLK_HOST>; |
Vladimir Zapolskiy | aa29efb | 2015-10-18 00:35:57 +0300 | [diff] [blame] | 97 | status = "disabled"; |
| 98 | }; |
| 99 | |
| 100 | usbd: usbd@0 { |
| 101 | compatible = "nxp,lpc3220-udc"; |
| 102 | reg = <0x0 0x300>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 103 | interrupts = <61 IRQ_TYPE_LEVEL_HIGH>, |
| 104 | <62 IRQ_TYPE_LEVEL_HIGH>, |
| 105 | <60 IRQ_TYPE_LEVEL_HIGH>, |
| 106 | <58 IRQ_TYPE_LEVEL_LOW>; |
Vladimir Zapolskiy | 865e900 | 2015-11-20 03:05:07 +0200 | [diff] [blame] | 107 | clocks = <&usbclk LPC32XX_USB_CLK_DEVICE>; |
Vladimir Zapolskiy | aa29efb | 2015-10-18 00:35:57 +0300 | [diff] [blame] | 108 | status = "disabled"; |
| 109 | }; |
| 110 | |
| 111 | i2cusb: i2c@300 { |
| 112 | compatible = "nxp,pnx-i2c"; |
| 113 | reg = <0x300 0x100>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 114 | interrupts = <63 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 865e900 | 2015-11-20 03:05:07 +0200 | [diff] [blame] | 115 | clocks = <&usbclk LPC32XX_USB_CLK_I2C>; |
Vladimir Zapolskiy | aa29efb | 2015-10-18 00:35:57 +0300 | [diff] [blame] | 116 | #address-cells = <1>; |
| 117 | #size-cells = <0>; |
| 118 | pnx,timeout = <0x64>; |
| 119 | }; |
Vladimir Zapolskiy | 865e900 | 2015-11-20 03:05:07 +0200 | [diff] [blame] | 120 | |
| 121 | usbclk: clock-controller@f00 { |
| 122 | compatible = "nxp,lpc3220-usb-clk"; |
| 123 | reg = <0xf00 0x100>; |
| 124 | #clock-cells = <1>; |
| 125 | }; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 126 | }; |
| 127 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 128 | clcd: clcd@31040000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 129 | compatible = "arm,pl110", "arm,primecell"; |
| 130 | reg = <0x31040000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 131 | interrupts = <14 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 132 | clocks = <&clk LPC32XX_CLK_LCD>; |
| 133 | clock-names = "apb_pclk"; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 134 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 135 | }; |
| 136 | |
| 137 | mac: ethernet@31060000 { |
| 138 | compatible = "nxp,lpc-eth"; |
| 139 | reg = <0x31060000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 140 | interrupts = <29 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 141 | clocks = <&clk LPC32XX_CLK_MAC>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 142 | }; |
| 143 | |
Vladimir Zapolskiy | f83ee67 | 2015-10-18 00:35:55 +0300 | [diff] [blame] | 144 | emc: memory-controller@31080000 { |
| 145 | compatible = "arm,pl175", "arm,primecell"; |
| 146 | reg = <0x31080000 0x1000>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 147 | clocks = <&clk LPC32XX_CLK_DDRAM>, <&clk LPC32XX_CLK_DDRAM>; |
| 148 | clock-names = "mpmcclk", "apb_pclk"; |
Vladimir Zapolskiy | f83ee67 | 2015-10-18 00:35:55 +0300 | [diff] [blame] | 149 | #address-cells = <1>; |
| 150 | #size-cells = <1>; |
| 151 | |
| 152 | ranges = <0 0xe0000000 0x01000000>, |
| 153 | <1 0xe1000000 0x01000000>, |
| 154 | <2 0xe2000000 0x01000000>, |
| 155 | <3 0xe3000000 0x01000000>; |
| 156 | status = "disabled"; |
| 157 | }; |
| 158 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 159 | apb { |
| 160 | #address-cells = <1>; |
| 161 | #size-cells = <1>; |
| 162 | compatible = "simple-bus"; |
| 163 | ranges = <0x20000000 0x20000000 0x30000000>; |
| 164 | |
| 165 | ssp0: ssp@20084000 { |
| 166 | compatible = "arm,pl022", "arm,primecell"; |
| 167 | reg = <0x20084000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 168 | interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 169 | clocks = <&clk LPC32XX_CLK_SSP0>; |
| 170 | clock-names = "apb_pclk"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 171 | }; |
| 172 | |
| 173 | spi1: spi@20088000 { |
| 174 | compatible = "nxp,lpc3220-spi"; |
| 175 | reg = <0x20088000 0x1000>; |
| 176 | }; |
| 177 | |
| 178 | ssp1: ssp@2008c000 { |
| 179 | compatible = "arm,pl022", "arm,primecell"; |
| 180 | reg = <0x2008c000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 181 | interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 182 | clocks = <&clk LPC32XX_CLK_SSP1>; |
| 183 | clock-names = "apb_pclk"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 184 | }; |
| 185 | |
| 186 | spi2: spi@20090000 { |
| 187 | compatible = "nxp,lpc3220-spi"; |
| 188 | reg = <0x20090000 0x1000>; |
| 189 | }; |
| 190 | |
| 191 | i2s0: i2s@20094000 { |
| 192 | compatible = "nxp,lpc3220-i2s"; |
| 193 | reg = <0x20094000 0x1000>; |
| 194 | }; |
| 195 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 196 | sd: sd@20098000 { |
Roland Stigge | 2c7fa28 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 197 | compatible = "arm,pl18x", "arm,primecell"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 198 | reg = <0x20098000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 199 | interrupts = <15 IRQ_TYPE_LEVEL_HIGH>, |
| 200 | <13 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 201 | clocks = <&clk LPC32XX_CLK_SD>; |
| 202 | clock-names = "apb_pclk"; |
Roland Stigge | 2c7fa28 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 203 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 204 | }; |
| 205 | |
| 206 | i2s1: i2s@2009C000 { |
| 207 | compatible = "nxp,lpc3220-i2s"; |
| 208 | reg = <0x2009C000 0x1000>; |
| 209 | }; |
| 210 | |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 211 | /* UART5 first since it is the default console, ttyS0 */ |
| 212 | uart5: serial@40090000 { |
| 213 | /* actually, ns16550a w/ 64 byte fifos! */ |
| 214 | compatible = "nxp,lpc3220-uart"; |
| 215 | reg = <0x40090000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 216 | interrupts = <9 IRQ_TYPE_LEVEL_HIGH>; |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 217 | reg-shift = <2>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 218 | clocks = <&clk LPC32XX_CLK_UART5>; |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 219 | status = "disabled"; |
| 220 | }; |
| 221 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 222 | uart3: serial@40080000 { |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 223 | compatible = "nxp,lpc3220-uart"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 224 | reg = <0x40080000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 225 | interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 226 | reg-shift = <2>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 227 | clocks = <&clk LPC32XX_CLK_UART3>; |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 228 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 229 | }; |
| 230 | |
| 231 | uart4: serial@40088000 { |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 232 | compatible = "nxp,lpc3220-uart"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 233 | reg = <0x40088000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 234 | interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 235 | reg-shift = <2>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 236 | clocks = <&clk LPC32XX_CLK_UART4>; |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 237 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 238 | }; |
| 239 | |
| 240 | uart6: serial@40098000 { |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 241 | compatible = "nxp,lpc3220-uart"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 242 | reg = <0x40098000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 243 | interrupts = <10 IRQ_TYPE_LEVEL_HIGH>; |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 244 | reg-shift = <2>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 245 | clocks = <&clk LPC32XX_CLK_UART6>; |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 246 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 247 | }; |
| 248 | |
| 249 | i2c1: i2c@400A0000 { |
| 250 | compatible = "nxp,pnx-i2c"; |
| 251 | reg = <0x400A0000 0x100>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 252 | interrupts = <51 IRQ_TYPE_LEVEL_LOW>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 253 | #address-cells = <1>; |
| 254 | #size-cells = <0>; |
| 255 | pnx,timeout = <0x64>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 256 | clocks = <&clk LPC32XX_CLK_I2C1>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 257 | }; |
| 258 | |
| 259 | i2c2: i2c@400A8000 { |
| 260 | compatible = "nxp,pnx-i2c"; |
| 261 | reg = <0x400A8000 0x100>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 262 | interrupts = <50 IRQ_TYPE_LEVEL_LOW>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 263 | #address-cells = <1>; |
| 264 | #size-cells = <0>; |
| 265 | pnx,timeout = <0x64>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 266 | clocks = <&clk LPC32XX_CLK_I2C2>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 267 | }; |
| 268 | |
Alban Bedel | b7d41c9 | 2012-11-14 13:59:45 +0100 | [diff] [blame] | 269 | mpwm: mpwm@400E8000 { |
| 270 | compatible = "nxp,lpc3220-motor-pwm"; |
| 271 | reg = <0x400E8000 0x78>; |
| 272 | status = "disabled"; |
| 273 | #pwm-cells = <2>; |
| 274 | }; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 275 | }; |
| 276 | |
| 277 | fab { |
| 278 | #address-cells = <1>; |
| 279 | #size-cells = <1>; |
| 280 | compatible = "simple-bus"; |
| 281 | ranges = <0x20000000 0x20000000 0x30000000>; |
| 282 | |
Vladimir Zapolskiy | fe86131 | 2015-11-20 03:05:05 +0200 | [diff] [blame] | 283 | /* System Control Block */ |
| 284 | scb { |
| 285 | compatible = "simple-bus"; |
| 286 | ranges = <0x0 0x040004000 0x00001000>; |
| 287 | #address-cells = <1>; |
| 288 | #size-cells = <1>; |
| 289 | |
| 290 | clk: clock-controller@0 { |
| 291 | compatible = "nxp,lpc3220-clk"; |
| 292 | reg = <0x00 0x114>; |
| 293 | #clock-cells = <1>; |
| 294 | |
| 295 | clocks = <&xtal_32k>, <&xtal>; |
| 296 | clock-names = "xtal_32k", "xtal"; |
| 297 | }; |
| 298 | }; |
| 299 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 300 | /* |
| 301 | * MIC Interrupt controller includes: |
| 302 | * MIC @40008000 |
| 303 | * SIC1 @4000C000 |
| 304 | * SIC2 @40010000 |
| 305 | */ |
| 306 | mic: interrupt-controller@40008000 { |
| 307 | compatible = "nxp,lpc3220-mic"; |
| 308 | interrupt-controller; |
| 309 | reg = <0x40008000 0xC000>; |
| 310 | #interrupt-cells = <2>; |
| 311 | }; |
| 312 | |
| 313 | uart1: serial@40014000 { |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 314 | compatible = "nxp,lpc3220-hsuart"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 315 | reg = <0x40014000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 316 | interrupts = <26 IRQ_TYPE_LEVEL_HIGH>; |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 317 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 318 | }; |
| 319 | |
| 320 | uart2: serial@40018000 { |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 321 | compatible = "nxp,lpc3220-hsuart"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 322 | reg = <0x40018000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 323 | interrupts = <25 IRQ_TYPE_LEVEL_HIGH>; |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 324 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 325 | }; |
| 326 | |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 327 | uart7: serial@4001c000 { |
| 328 | compatible = "nxp,lpc3220-hsuart"; |
| 329 | reg = <0x4001c000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 330 | interrupts = <24 IRQ_TYPE_LEVEL_HIGH>; |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 331 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 332 | }; |
| 333 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 334 | rtc: rtc@40024000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 335 | compatible = "nxp,lpc3220-rtc"; |
| 336 | reg = <0x40024000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 337 | interrupts = <52 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 338 | clocks = <&clk LPC32XX_CLK_RTC>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 339 | }; |
| 340 | |
| 341 | gpio: gpio@40028000 { |
| 342 | compatible = "nxp,lpc3220-gpio"; |
| 343 | reg = <0x40028000 0x1000>; |
Roland Stigge | a035254 | 2012-05-19 12:28:53 +0200 | [diff] [blame] | 344 | gpio-controller; |
| 345 | #gpio-cells = <3>; /* bank, pin, flags */ |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 346 | }; |
| 347 | |
Vladimir Zapolskiy | c1aa700 | 2015-10-18 00:41:06 +0300 | [diff] [blame] | 348 | timer4: timer@4002C000 { |
| 349 | compatible = "nxp,lpc3220-timer"; |
| 350 | reg = <0x4002C000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 351 | interrupts = <3 IRQ_TYPE_LEVEL_LOW>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 352 | clocks = <&clk LPC32XX_CLK_TIMER4>; |
| 353 | clock-names = "timerclk"; |
Vladimir Zapolskiy | c1aa700 | 2015-10-18 00:41:06 +0300 | [diff] [blame] | 354 | status = "disabled"; |
| 355 | }; |
| 356 | |
| 357 | timer5: timer@40030000 { |
| 358 | compatible = "nxp,lpc3220-timer"; |
| 359 | reg = <0x40030000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 360 | interrupts = <4 IRQ_TYPE_LEVEL_LOW>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 361 | clocks = <&clk LPC32XX_CLK_TIMER5>; |
| 362 | clock-names = "timerclk"; |
Vladimir Zapolskiy | c1aa700 | 2015-10-18 00:41:06 +0300 | [diff] [blame] | 363 | status = "disabled"; |
| 364 | }; |
| 365 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 366 | watchdog: watchdog@4003C000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 367 | compatible = "nxp,pnx4008-wdt"; |
| 368 | reg = <0x4003C000 0x1000>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 369 | clocks = <&clk LPC32XX_CLK_WDOG>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 370 | }; |
| 371 | |
Vladimir Zapolskiy | c1aa700 | 2015-10-18 00:41:06 +0300 | [diff] [blame] | 372 | timer0: timer@40044000 { |
| 373 | compatible = "nxp,lpc3220-timer"; |
| 374 | reg = <0x40044000 0x1000>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 375 | clocks = <&clk LPC32XX_CLK_TIMER0>; |
| 376 | clock-names = "timerclk"; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 377 | interrupts = <16 IRQ_TYPE_LEVEL_LOW>; |
Vladimir Zapolskiy | c1aa700 | 2015-10-18 00:41:06 +0300 | [diff] [blame] | 378 | }; |
| 379 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 380 | /* |
| 381 | * TSC vs. ADC: Since those two share the same |
| 382 | * hardware, you need to choose from one of the |
| 383 | * following two and do 'status = "okay";' for one of |
| 384 | * them |
| 385 | */ |
| 386 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 387 | adc: adc@40048000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 388 | compatible = "nxp,lpc3220-adc"; |
| 389 | reg = <0x40048000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 390 | interrupts = <39 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 391 | clocks = <&clk LPC32XX_CLK_ADC>; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 392 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 393 | }; |
| 394 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 395 | tsc: tsc@40048000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 396 | compatible = "nxp,lpc3220-tsc"; |
| 397 | reg = <0x40048000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 398 | interrupts = <39 IRQ_TYPE_LEVEL_HIGH>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 399 | clocks = <&clk LPC32XX_CLK_ADC>; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 400 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 401 | }; |
| 402 | |
Vladimir Zapolskiy | c1aa700 | 2015-10-18 00:41:06 +0300 | [diff] [blame] | 403 | timer1: timer@4004C000 { |
| 404 | compatible = "nxp,lpc3220-timer"; |
| 405 | reg = <0x4004C000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 406 | interrupts = <17 IRQ_TYPE_LEVEL_LOW>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 407 | clocks = <&clk LPC32XX_CLK_TIMER1>; |
| 408 | clock-names = "timerclk"; |
Vladimir Zapolskiy | c1aa700 | 2015-10-18 00:41:06 +0300 | [diff] [blame] | 409 | }; |
| 410 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 411 | key: key@40050000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 412 | compatible = "nxp,lpc3220-key"; |
| 413 | reg = <0x40050000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 414 | interrupts = <54 IRQ_TYPE_LEVEL_HIGH>; |
Roland Stigge | a6d1be0 | 2012-06-14 16:16:17 +0200 | [diff] [blame] | 415 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 416 | }; |
| 417 | |
Vladimir Zapolskiy | c1aa700 | 2015-10-18 00:41:06 +0300 | [diff] [blame] | 418 | timer2: timer@40058000 { |
| 419 | compatible = "nxp,lpc3220-timer"; |
| 420 | reg = <0x40058000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 421 | interrupts = <18 IRQ_TYPE_LEVEL_LOW>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 422 | clocks = <&clk LPC32XX_CLK_TIMER2>; |
| 423 | clock-names = "timerclk"; |
Vladimir Zapolskiy | c1aa700 | 2015-10-18 00:41:06 +0300 | [diff] [blame] | 424 | status = "disabled"; |
| 425 | }; |
| 426 | |
Vladimir Zapolskiy | 2a6c656 | 2015-10-18 00:35:53 +0300 | [diff] [blame] | 427 | pwm1: pwm@4005C000 { |
Alexandre Pereira da Silva | de63985 | 2012-07-20 13:33:09 +0200 | [diff] [blame] | 428 | compatible = "nxp,lpc3220-pwm"; |
Vladimir Zapolskiy | 2a6c656 | 2015-10-18 00:35:53 +0300 | [diff] [blame] | 429 | reg = <0x4005C000 0x4>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 430 | clocks = <&clk LPC32XX_CLK_PWM1>; |
Vladimir Zapolskiy | 2a6c656 | 2015-10-18 00:35:53 +0300 | [diff] [blame] | 431 | status = "disabled"; |
| 432 | }; |
| 433 | |
| 434 | pwm2: pwm@4005C004 { |
| 435 | compatible = "nxp,lpc3220-pwm"; |
| 436 | reg = <0x4005C004 0x4>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 437 | clocks = <&clk LPC32XX_CLK_PWM2>; |
Alexandre Pereira da Silva | de63985 | 2012-07-20 13:33:09 +0200 | [diff] [blame] | 438 | status = "disabled"; |
| 439 | }; |
Vladimir Zapolskiy | c1aa700 | 2015-10-18 00:41:06 +0300 | [diff] [blame] | 440 | |
| 441 | timer3: timer@40060000 { |
| 442 | compatible = "nxp,lpc3220-timer"; |
| 443 | reg = <0x40060000 0x1000>; |
Vladimir Zapolskiy | b715802 | 2015-11-20 03:28:40 +0200 | [diff] [blame] | 444 | interrupts = <19 IRQ_TYPE_LEVEL_LOW>; |
Vladimir Zapolskiy | 93898eb | 2015-11-20 03:05:06 +0200 | [diff] [blame] | 445 | clocks = <&clk LPC32XX_CLK_TIMER3>; |
| 446 | clock-names = "timerclk"; |
Vladimir Zapolskiy | c1aa700 | 2015-10-18 00:41:06 +0300 | [diff] [blame] | 447 | status = "disabled"; |
| 448 | }; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 449 | }; |
| 450 | }; |
| 451 | }; |