| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * NXP LPC32xx SoC |
|---|
| 3 | 4 | * |
|---|
| 5 | + * Copyright (C) 2015-2019 Vladimir Zapolskiy <vz@mleia.com> |
|---|
| 4 | 6 | * 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 | 7 | */ |
|---|
| 13 | | - |
|---|
| 14 | | -#include "skeleton.dtsi" |
|---|
| 15 | 8 | |
|---|
| 16 | 9 | #include <dt-bindings/clock/lpc32xx-clock.h> |
|---|
| 17 | 10 | #include <dt-bindings/interrupt-controller/irq.h> |
|---|
| 18 | 11 | |
|---|
| 19 | 12 | / { |
|---|
| 13 | + #address-cells = <1>; |
|---|
| 14 | + #size-cells = <1>; |
|---|
| 20 | 15 | compatible = "nxp,lpc3220"; |
|---|
| 21 | 16 | interrupt-parent = <&mic>; |
|---|
| 22 | 17 | |
|---|
| .. | .. |
|---|
| 152 | 147 | reg = <0x31060000 0x1000>; |
|---|
| 153 | 148 | interrupts = <29 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 154 | 149 | clocks = <&clk LPC32XX_CLK_MAC>; |
|---|
| 150 | + status = "disabled"; |
|---|
| 155 | 151 | }; |
|---|
| 156 | 152 | |
|---|
| 157 | 153 | emc: memory-controller@31080000 { |
|---|
| .. | .. |
|---|
| 185 | 181 | interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 186 | 182 | clocks = <&clk LPC32XX_CLK_SSP0>; |
|---|
| 187 | 183 | clock-names = "apb_pclk"; |
|---|
| 184 | + #address-cells = <1>; |
|---|
| 185 | + #size-cells = <0>; |
|---|
| 188 | 186 | status = "disabled"; |
|---|
| 189 | 187 | }; |
|---|
| 190 | 188 | |
|---|
| .. | .. |
|---|
| 192 | 190 | compatible = "nxp,lpc3220-spi"; |
|---|
| 193 | 191 | reg = <0x20088000 0x1000>; |
|---|
| 194 | 192 | clocks = <&clk LPC32XX_CLK_SPI1>; |
|---|
| 193 | + #address-cells = <1>; |
|---|
| 194 | + #size-cells = <0>; |
|---|
| 195 | 195 | status = "disabled"; |
|---|
| 196 | 196 | }; |
|---|
| 197 | 197 | |
|---|
| .. | .. |
|---|
| 205 | 205 | interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 206 | 206 | clocks = <&clk LPC32XX_CLK_SSP1>; |
|---|
| 207 | 207 | clock-names = "apb_pclk"; |
|---|
| 208 | + #address-cells = <1>; |
|---|
| 209 | + #size-cells = <0>; |
|---|
| 208 | 210 | status = "disabled"; |
|---|
| 209 | 211 | }; |
|---|
| 210 | 212 | |
|---|
| .. | .. |
|---|
| 212 | 214 | compatible = "nxp,lpc3220-spi"; |
|---|
| 213 | 215 | reg = <0x20090000 0x1000>; |
|---|
| 214 | 216 | clocks = <&clk LPC32XX_CLK_SPI2>; |
|---|
| 217 | + #address-cells = <1>; |
|---|
| 218 | + #size-cells = <0>; |
|---|
| 215 | 219 | status = "disabled"; |
|---|
| 216 | 220 | }; |
|---|
| 217 | 221 | |
|---|
| 218 | 222 | i2s0: i2s@20094000 { |
|---|
| 219 | 223 | compatible = "nxp,lpc3220-i2s"; |
|---|
| 220 | 224 | reg = <0x20094000 0x1000>; |
|---|
| 225 | + status = "disabled"; |
|---|
| 221 | 226 | }; |
|---|
| 222 | 227 | |
|---|
| 223 | 228 | sd: sd@20098000 { |
|---|
| .. | .. |
|---|
| 232 | 237 | |
|---|
| 233 | 238 | i2s1: i2s@2009c000 { |
|---|
| 234 | 239 | compatible = "nxp,lpc3220-i2s"; |
|---|
| 235 | | - reg = <0x2009C000 0x1000>; |
|---|
| 240 | + reg = <0x2009c000 0x1000>; |
|---|
| 241 | + status = "disabled"; |
|---|
| 236 | 242 | }; |
|---|
| 237 | 243 | |
|---|
| 238 | 244 | /* UART5 first since it is the default console, ttyS0 */ |
|---|
| .. | .. |
|---|
| 275 | 281 | |
|---|
| 276 | 282 | i2c1: i2c@400a0000 { |
|---|
| 277 | 283 | compatible = "nxp,pnx-i2c"; |
|---|
| 278 | | - reg = <0x400A0000 0x100>; |
|---|
| 284 | + reg = <0x400a0000 0x100>; |
|---|
| 279 | 285 | interrupt-parent = <&sic1>; |
|---|
| 280 | 286 | interrupts = <19 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 281 | 287 | #address-cells = <1>; |
|---|
| .. | .. |
|---|
| 286 | 292 | |
|---|
| 287 | 293 | i2c2: i2c@400a8000 { |
|---|
| 288 | 294 | compatible = "nxp,pnx-i2c"; |
|---|
| 289 | | - reg = <0x400A8000 0x100>; |
|---|
| 295 | + reg = <0x400a8000 0x100>; |
|---|
| 290 | 296 | interrupt-parent = <&sic1>; |
|---|
| 291 | 297 | interrupts = <18 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 292 | 298 | #address-cells = <1>; |
|---|
| .. | .. |
|---|
| 297 | 303 | |
|---|
| 298 | 304 | mpwm: mpwm@400e8000 { |
|---|
| 299 | 305 | compatible = "nxp,lpc3220-motor-pwm"; |
|---|
| 300 | | - reg = <0x400E8000 0x78>; |
|---|
| 306 | + reg = <0x400e8000 0x78>; |
|---|
| 301 | 307 | status = "disabled"; |
|---|
| 302 | 308 | #pwm-cells = <2>; |
|---|
| 303 | 309 | }; |
|---|
| .. | .. |
|---|
| 393 | 399 | |
|---|
| 394 | 400 | timer4: timer@4002c000 { |
|---|
| 395 | 401 | compatible = "nxp,lpc3220-timer"; |
|---|
| 396 | | - reg = <0x4002C000 0x1000>; |
|---|
| 402 | + reg = <0x4002c000 0x1000>; |
|---|
| 397 | 403 | interrupts = <3 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 398 | 404 | clocks = <&clk LPC32XX_CLK_TIMER4>; |
|---|
| 399 | 405 | clock-names = "timerclk"; |
|---|
| .. | .. |
|---|
| 411 | 417 | |
|---|
| 412 | 418 | watchdog: watchdog@4003c000 { |
|---|
| 413 | 419 | compatible = "nxp,pnx4008-wdt"; |
|---|
| 414 | | - reg = <0x4003C000 0x1000>; |
|---|
| 420 | + reg = <0x4003c000 0x1000>; |
|---|
| 415 | 421 | clocks = <&clk LPC32XX_CLK_WDOG>; |
|---|
| 416 | 422 | }; |
|---|
| 417 | 423 | |
|---|
| .. | .. |
|---|
| 450 | 456 | |
|---|
| 451 | 457 | timer1: timer@4004c000 { |
|---|
| 452 | 458 | compatible = "nxp,lpc3220-timer"; |
|---|
| 453 | | - reg = <0x4004C000 0x1000>; |
|---|
| 459 | + reg = <0x4004c000 0x1000>; |
|---|
| 454 | 460 | interrupts = <17 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 455 | 461 | clocks = <&clk LPC32XX_CLK_TIMER1>; |
|---|
| 456 | 462 | clock-names = "timerclk"; |
|---|
| .. | .. |
|---|
| 476 | 482 | |
|---|
| 477 | 483 | pwm1: pwm@4005c000 { |
|---|
| 478 | 484 | compatible = "nxp,lpc3220-pwm"; |
|---|
| 479 | | - reg = <0x4005C000 0x4>; |
|---|
| 485 | + reg = <0x4005c000 0x4>; |
|---|
| 480 | 486 | clocks = <&clk LPC32XX_CLK_PWM1>; |
|---|
| 481 | 487 | assigned-clocks = <&clk LPC32XX_CLK_PWM1>; |
|---|
| 482 | 488 | assigned-clock-parents = <&clk LPC32XX_CLK_PERIPH>; |
|---|
| .. | .. |
|---|
| 485 | 491 | |
|---|
| 486 | 492 | pwm2: pwm@4005c004 { |
|---|
| 487 | 493 | compatible = "nxp,lpc3220-pwm"; |
|---|
| 488 | | - reg = <0x4005C004 0x4>; |
|---|
| 494 | + reg = <0x4005c004 0x4>; |
|---|
| 489 | 495 | clocks = <&clk LPC32XX_CLK_PWM2>; |
|---|
| 490 | 496 | assigned-clocks = <&clk LPC32XX_CLK_PWM2>; |
|---|
| 491 | 497 | assigned-clock-parents = <&clk LPC32XX_CLK_PERIPH>; |
|---|