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 | |
| 16 | / { |
| 17 | compatible = "nxp,lpc3220"; |
| 18 | interrupt-parent = <&mic>; |
| 19 | |
| 20 | cpus { |
Vladimir Zapolskiy | 246d8fc | 2015-10-18 00:35:52 +0300 | [diff] [blame] | 21 | #address-cells = <1>; |
Lorenzo Pieralisi | 73158b7 | 2013-04-18 18:34:51 +0100 | [diff] [blame] | 22 | #size-cells = <0>; |
| 23 | |
Vladimir Zapolskiy | 246d8fc | 2015-10-18 00:35:52 +0300 | [diff] [blame] | 24 | cpu@0 { |
Lorenzo Pieralisi | 73158b7 | 2013-04-18 18:34:51 +0100 | [diff] [blame] | 25 | compatible = "arm,arm926ej-s"; |
| 26 | device_type = "cpu"; |
Vladimir Zapolskiy | 246d8fc | 2015-10-18 00:35:52 +0300 | [diff] [blame] | 27 | reg = <0x0>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 28 | }; |
| 29 | }; |
| 30 | |
| 31 | ahb { |
| 32 | #address-cells = <1>; |
| 33 | #size-cells = <1>; |
| 34 | compatible = "simple-bus"; |
| 35 | ranges = <0x20000000 0x20000000 0x30000000>; |
| 36 | |
| 37 | /* |
| 38 | * Enable either SLC or MLC |
| 39 | */ |
| 40 | slc: flash@20020000 { |
| 41 | compatible = "nxp,lpc3220-slc"; |
| 42 | reg = <0x20020000 0x1000>; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 43 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 44 | }; |
| 45 | |
Roland Stigge | 6d1c3e9 | 2012-06-14 16:16:17 +0200 | [diff] [blame] | 46 | mlc: flash@200a8000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 47 | compatible = "nxp,lpc3220-mlc"; |
Roland Stigge | 6d1c3e9 | 2012-06-14 16:16:17 +0200 | [diff] [blame] | 48 | reg = <0x200a8000 0x11000>; |
| 49 | interrupts = <11 0>; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 50 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 51 | }; |
| 52 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 53 | dma: dma@31000000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 54 | compatible = "arm,pl080", "arm,primecell"; |
| 55 | reg = <0x31000000 0x1000>; |
| 56 | interrupts = <0x1c 0>; |
| 57 | }; |
| 58 | |
| 59 | /* |
| 60 | * Enable either ohci or usbd (gadget)! |
| 61 | */ |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 62 | ohci: ohci@31020000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 63 | compatible = "nxp,ohci-nxp", "usb-ohci"; |
| 64 | reg = <0x31020000 0x300>; |
| 65 | interrupts = <0x3b 0>; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 66 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 67 | }; |
| 68 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 69 | usbd: usbd@31020000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 70 | compatible = "nxp,lpc3220-udc"; |
| 71 | reg = <0x31020000 0x300>; |
| 72 | interrupts = <0x3d 0>, <0x3e 0>, <0x3c 0>, <0x3a 0>; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 73 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 74 | }; |
| 75 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 76 | clcd: clcd@31040000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 77 | compatible = "arm,pl110", "arm,primecell"; |
| 78 | reg = <0x31040000 0x1000>; |
| 79 | interrupts = <0x0e 0>; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 80 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 81 | }; |
| 82 | |
| 83 | mac: ethernet@31060000 { |
| 84 | compatible = "nxp,lpc-eth"; |
| 85 | reg = <0x31060000 0x1000>; |
| 86 | interrupts = <0x1d 0>; |
| 87 | }; |
| 88 | |
| 89 | apb { |
| 90 | #address-cells = <1>; |
| 91 | #size-cells = <1>; |
| 92 | compatible = "simple-bus"; |
| 93 | ranges = <0x20000000 0x20000000 0x30000000>; |
| 94 | |
| 95 | ssp0: ssp@20084000 { |
| 96 | compatible = "arm,pl022", "arm,primecell"; |
| 97 | reg = <0x20084000 0x1000>; |
| 98 | interrupts = <0x14 0>; |
| 99 | }; |
| 100 | |
| 101 | spi1: spi@20088000 { |
| 102 | compatible = "nxp,lpc3220-spi"; |
| 103 | reg = <0x20088000 0x1000>; |
| 104 | }; |
| 105 | |
| 106 | ssp1: ssp@2008c000 { |
| 107 | compatible = "arm,pl022", "arm,primecell"; |
| 108 | reg = <0x2008c000 0x1000>; |
| 109 | interrupts = <0x15 0>; |
| 110 | }; |
| 111 | |
| 112 | spi2: spi@20090000 { |
| 113 | compatible = "nxp,lpc3220-spi"; |
| 114 | reg = <0x20090000 0x1000>; |
| 115 | }; |
| 116 | |
| 117 | i2s0: i2s@20094000 { |
| 118 | compatible = "nxp,lpc3220-i2s"; |
| 119 | reg = <0x20094000 0x1000>; |
| 120 | }; |
| 121 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 122 | sd: sd@20098000 { |
Roland Stigge | 2c7fa28 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 123 | compatible = "arm,pl18x", "arm,primecell"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 124 | reg = <0x20098000 0x1000>; |
| 125 | interrupts = <0x0f 0>, <0x0d 0>; |
Roland Stigge | 2c7fa28 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 126 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 127 | }; |
| 128 | |
| 129 | i2s1: i2s@2009C000 { |
| 130 | compatible = "nxp,lpc3220-i2s"; |
| 131 | reg = <0x2009C000 0x1000>; |
| 132 | }; |
| 133 | |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 134 | /* UART5 first since it is the default console, ttyS0 */ |
| 135 | uart5: serial@40090000 { |
| 136 | /* actually, ns16550a w/ 64 byte fifos! */ |
| 137 | compatible = "nxp,lpc3220-uart"; |
| 138 | reg = <0x40090000 0x1000>; |
| 139 | interrupts = <9 0>; |
| 140 | clock-frequency = <13000000>; |
| 141 | reg-shift = <2>; |
| 142 | status = "disabled"; |
| 143 | }; |
| 144 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 145 | uart3: serial@40080000 { |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 146 | compatible = "nxp,lpc3220-uart"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 147 | reg = <0x40080000 0x1000>; |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 148 | interrupts = <7 0>; |
| 149 | clock-frequency = <13000000>; |
| 150 | reg-shift = <2>; |
| 151 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 152 | }; |
| 153 | |
| 154 | uart4: serial@40088000 { |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 155 | compatible = "nxp,lpc3220-uart"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 156 | reg = <0x40088000 0x1000>; |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 157 | interrupts = <8 0>; |
| 158 | clock-frequency = <13000000>; |
| 159 | reg-shift = <2>; |
| 160 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 161 | }; |
| 162 | |
| 163 | uart6: serial@40098000 { |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 164 | compatible = "nxp,lpc3220-uart"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 165 | reg = <0x40098000 0x1000>; |
Roland Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 166 | interrupts = <10 0>; |
| 167 | clock-frequency = <13000000>; |
| 168 | reg-shift = <2>; |
| 169 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 170 | }; |
| 171 | |
| 172 | i2c1: i2c@400A0000 { |
| 173 | compatible = "nxp,pnx-i2c"; |
| 174 | reg = <0x400A0000 0x100>; |
| 175 | interrupts = <0x33 0>; |
| 176 | #address-cells = <1>; |
| 177 | #size-cells = <0>; |
| 178 | pnx,timeout = <0x64>; |
| 179 | }; |
| 180 | |
| 181 | i2c2: i2c@400A8000 { |
| 182 | compatible = "nxp,pnx-i2c"; |
| 183 | reg = <0x400A8000 0x100>; |
| 184 | interrupts = <0x32 0>; |
| 185 | #address-cells = <1>; |
| 186 | #size-cells = <0>; |
| 187 | pnx,timeout = <0x64>; |
| 188 | }; |
| 189 | |
Alban Bedel | b7d41c9 | 2012-11-14 13:59:45 +0100 | [diff] [blame] | 190 | mpwm: mpwm@400E8000 { |
| 191 | compatible = "nxp,lpc3220-motor-pwm"; |
| 192 | reg = <0x400E8000 0x78>; |
| 193 | status = "disabled"; |
| 194 | #pwm-cells = <2>; |
| 195 | }; |
| 196 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 197 | i2cusb: i2c@31020300 { |
| 198 | compatible = "nxp,pnx-i2c"; |
| 199 | reg = <0x31020300 0x100>; |
| 200 | interrupts = <0x3f 0>; |
| 201 | #address-cells = <1>; |
| 202 | #size-cells = <0>; |
| 203 | pnx,timeout = <0x64>; |
| 204 | }; |
| 205 | }; |
| 206 | |
| 207 | fab { |
| 208 | #address-cells = <1>; |
| 209 | #size-cells = <1>; |
| 210 | compatible = "simple-bus"; |
| 211 | ranges = <0x20000000 0x20000000 0x30000000>; |
| 212 | |
| 213 | /* |
| 214 | * MIC Interrupt controller includes: |
| 215 | * MIC @40008000 |
| 216 | * SIC1 @4000C000 |
| 217 | * SIC2 @40010000 |
| 218 | */ |
| 219 | mic: interrupt-controller@40008000 { |
| 220 | compatible = "nxp,lpc3220-mic"; |
| 221 | interrupt-controller; |
| 222 | reg = <0x40008000 0xC000>; |
| 223 | #interrupt-cells = <2>; |
| 224 | }; |
| 225 | |
| 226 | uart1: serial@40014000 { |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 227 | compatible = "nxp,lpc3220-hsuart"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 228 | reg = <0x40014000 0x1000>; |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 229 | interrupts = <26 0>; |
| 230 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 231 | }; |
| 232 | |
| 233 | uart2: serial@40018000 { |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 234 | compatible = "nxp,lpc3220-hsuart"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 235 | reg = <0x40018000 0x1000>; |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 236 | interrupts = <25 0>; |
| 237 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 238 | }; |
| 239 | |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 240 | uart7: serial@4001c000 { |
| 241 | compatible = "nxp,lpc3220-hsuart"; |
| 242 | reg = <0x4001c000 0x1000>; |
| 243 | interrupts = <24 0>; |
| 244 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 245 | }; |
| 246 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 247 | rtc: rtc@40024000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 248 | compatible = "nxp,lpc3220-rtc"; |
| 249 | reg = <0x40024000 0x1000>; |
| 250 | interrupts = <0x34 0>; |
| 251 | }; |
| 252 | |
| 253 | gpio: gpio@40028000 { |
| 254 | compatible = "nxp,lpc3220-gpio"; |
| 255 | reg = <0x40028000 0x1000>; |
Roland Stigge | a035254 | 2012-05-19 12:28:53 +0200 | [diff] [blame] | 256 | gpio-controller; |
| 257 | #gpio-cells = <3>; /* bank, pin, flags */ |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 258 | }; |
| 259 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 260 | watchdog: watchdog@4003C000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 261 | compatible = "nxp,pnx4008-wdt"; |
| 262 | reg = <0x4003C000 0x1000>; |
| 263 | }; |
| 264 | |
| 265 | /* |
| 266 | * TSC vs. ADC: Since those two share the same |
| 267 | * hardware, you need to choose from one of the |
| 268 | * following two and do 'status = "okay";' for one of |
| 269 | * them |
| 270 | */ |
| 271 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 272 | adc: adc@40048000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 273 | compatible = "nxp,lpc3220-adc"; |
| 274 | reg = <0x40048000 0x1000>; |
| 275 | interrupts = <0x27 0>; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 276 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 277 | }; |
| 278 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 279 | tsc: tsc@40048000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 280 | compatible = "nxp,lpc3220-tsc"; |
| 281 | reg = <0x40048000 0x1000>; |
| 282 | interrupts = <0x27 0>; |
Roland Stigge | cb85a9e | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 283 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 284 | }; |
| 285 | |
Vladimir Zapolskiy | 25de7c9 | 2015-10-18 00:35:51 +0300 | [diff] [blame] | 286 | key: key@40050000 { |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 287 | compatible = "nxp,lpc3220-key"; |
| 288 | reg = <0x40050000 0x1000>; |
Roland Stigge | a6d1be0 | 2012-06-14 16:16:17 +0200 | [diff] [blame] | 289 | interrupts = <54 0>; |
| 290 | status = "disabled"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 291 | }; |
| 292 | |
Vladimir Zapolskiy | 2a6c656 | 2015-10-18 00:35:53 +0300 | [diff] [blame^] | 293 | pwm1: pwm@4005C000 { |
Alexandre Pereira da Silva | de63985 | 2012-07-20 13:33:09 +0200 | [diff] [blame] | 294 | compatible = "nxp,lpc3220-pwm"; |
Vladimir Zapolskiy | 2a6c656 | 2015-10-18 00:35:53 +0300 | [diff] [blame^] | 295 | reg = <0x4005C000 0x4>; |
| 296 | status = "disabled"; |
| 297 | }; |
| 298 | |
| 299 | pwm2: pwm@4005C004 { |
| 300 | compatible = "nxp,lpc3220-pwm"; |
| 301 | reg = <0x4005C004 0x4>; |
Alexandre Pereira da Silva | de63985 | 2012-07-20 13:33:09 +0200 | [diff] [blame] | 302 | status = "disabled"; |
| 303 | }; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 304 | }; |
| 305 | }; |
| 306 | }; |