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