1*724ba675SRob Herring/* 2*724ba675SRob Herring * Common base for NXP LPC18xx and LPC43xx devices. 3*724ba675SRob Herring * 4*724ba675SRob Herring * Copyright 2015 Joachim Eastwood <manabian@gmail.com> 5*724ba675SRob Herring * 6*724ba675SRob Herring * This code is released using a dual license strategy: BSD/GPL 7*724ba675SRob Herring * You can choose the licence that better fits your requirements. 8*724ba675SRob Herring * 9*724ba675SRob Herring * Released under the terms of 3-clause BSD License 10*724ba675SRob Herring * Released under the terms of GNU General Public License Version 2.0 11*724ba675SRob Herring * 12*724ba675SRob Herring */ 13*724ba675SRob Herring 14*724ba675SRob Herring#include "../../armv7-m.dtsi" 15*724ba675SRob Herring 16*724ba675SRob Herring#include "dt-bindings/clock/lpc18xx-cgu.h" 17*724ba675SRob Herring#include "dt-bindings/clock/lpc18xx-ccu.h" 18*724ba675SRob Herring 19*724ba675SRob Herring#define LPC_PIN(port, pin) (0x##port * 32 + pin) 20*724ba675SRob Herring#define LPC_GPIO(port, pin) (port * 32 + pin) 21*724ba675SRob Herring 22*724ba675SRob Herring/ { 23*724ba675SRob Herring #address-cells = <1>; 24*724ba675SRob Herring #size-cells = <1>; 25*724ba675SRob Herring 26*724ba675SRob Herring cpus { 27*724ba675SRob Herring #address-cells = <1>; 28*724ba675SRob Herring #size-cells = <0>; 29*724ba675SRob Herring 30*724ba675SRob Herring cpu@0 { 31*724ba675SRob Herring compatible = "arm,cortex-m3"; 32*724ba675SRob Herring device_type = "cpu"; 33*724ba675SRob Herring reg = <0x0>; 34*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_CORE>; 35*724ba675SRob Herring }; 36*724ba675SRob Herring }; 37*724ba675SRob Herring 38*724ba675SRob Herring clocks { 39*724ba675SRob Herring xtal: xtal { 40*724ba675SRob Herring compatible = "fixed-clock"; 41*724ba675SRob Herring #clock-cells = <0>; 42*724ba675SRob Herring clock-frequency = <12000000>; 43*724ba675SRob Herring }; 44*724ba675SRob Herring 45*724ba675SRob Herring xtal32: xtal32 { 46*724ba675SRob Herring compatible = "fixed-clock"; 47*724ba675SRob Herring #clock-cells = <0>; 48*724ba675SRob Herring clock-frequency = <32768>; 49*724ba675SRob Herring }; 50*724ba675SRob Herring 51*724ba675SRob Herring enet_rx_clk: enet_rx_clk { 52*724ba675SRob Herring compatible = "fixed-clock"; 53*724ba675SRob Herring #clock-cells = <0>; 54*724ba675SRob Herring clock-frequency = <0>; 55*724ba675SRob Herring clock-output-names = "enet_rx_clk"; 56*724ba675SRob Herring }; 57*724ba675SRob Herring 58*724ba675SRob Herring enet_tx_clk: enet_tx_clk { 59*724ba675SRob Herring compatible = "fixed-clock"; 60*724ba675SRob Herring #clock-cells = <0>; 61*724ba675SRob Herring clock-frequency = <0>; 62*724ba675SRob Herring clock-output-names = "enet_tx_clk"; 63*724ba675SRob Herring }; 64*724ba675SRob Herring 65*724ba675SRob Herring gp_clkin: gp_clkin { 66*724ba675SRob Herring compatible = "fixed-clock"; 67*724ba675SRob Herring #clock-cells = <0>; 68*724ba675SRob Herring clock-frequency = <0>; 69*724ba675SRob Herring clock-output-names = "gp_clkin"; 70*724ba675SRob Herring }; 71*724ba675SRob Herring }; 72*724ba675SRob Herring 73*724ba675SRob Herring soc { 74*724ba675SRob Herring sct_pwm: pwm@40000000 { 75*724ba675SRob Herring compatible = "nxp,lpc1850-sct-pwm"; 76*724ba675SRob Herring reg = <0x40000000 0x1000>; 77*724ba675SRob Herring clocks =<&ccu1 CLK_CPU_SCT>; 78*724ba675SRob Herring clock-names = "pwm"; 79*724ba675SRob Herring resets = <&rgu 37>; 80*724ba675SRob Herring #pwm-cells = <3>; 81*724ba675SRob Herring status = "disabled"; 82*724ba675SRob Herring }; 83*724ba675SRob Herring 84*724ba675SRob Herring dmac: dma-controller@40002000 { 85*724ba675SRob Herring compatible = "arm,pl080", "arm,primecell"; 86*724ba675SRob Herring arm,primecell-periphid = <0x00041080>; 87*724ba675SRob Herring reg = <0x40002000 0x1000>; 88*724ba675SRob Herring interrupts = <2>; 89*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_DMA>; 90*724ba675SRob Herring clock-names = "apb_pclk"; 91*724ba675SRob Herring resets = <&rgu 19>; 92*724ba675SRob Herring #dma-cells = <2>; 93*724ba675SRob Herring dma-channels = <8>; 94*724ba675SRob Herring dma-requests = <16>; 95*724ba675SRob Herring lli-bus-interface-ahb1; 96*724ba675SRob Herring lli-bus-interface-ahb2; 97*724ba675SRob Herring mem-bus-interface-ahb1; 98*724ba675SRob Herring mem-bus-interface-ahb2; 99*724ba675SRob Herring memcpy-burst-size = <256>; 100*724ba675SRob Herring memcpy-bus-width = <32>; 101*724ba675SRob Herring }; 102*724ba675SRob Herring 103*724ba675SRob Herring spifi: flash-controller@40003000 { 104*724ba675SRob Herring compatible = "nxp,lpc1773-spifi"; 105*724ba675SRob Herring reg = <0x40003000 0x1000>, <0x14000000 0x4000000>; 106*724ba675SRob Herring reg-names = "spifi", "flash"; 107*724ba675SRob Herring interrupts = <30>; 108*724ba675SRob Herring clocks = <&ccu1 CLK_SPIFI>, <&ccu1 CLK_CPU_SPIFI>; 109*724ba675SRob Herring clock-names = "spifi", "reg"; 110*724ba675SRob Herring resets = <&rgu 53>; 111*724ba675SRob Herring status = "disabled"; 112*724ba675SRob Herring }; 113*724ba675SRob Herring 114*724ba675SRob Herring mmcsd: mmcsd@40004000 { 115*724ba675SRob Herring compatible = "snps,dw-mshc"; 116*724ba675SRob Herring reg = <0x40004000 0x1000>; 117*724ba675SRob Herring interrupts = <6>; 118*724ba675SRob Herring clocks = <&ccu2 CLK_SDIO>, <&ccu1 CLK_CPU_SDIO>; 119*724ba675SRob Herring clock-names = "ciu", "biu"; 120*724ba675SRob Herring resets = <&rgu 20>; 121*724ba675SRob Herring status = "disabled"; 122*724ba675SRob Herring }; 123*724ba675SRob Herring 124*724ba675SRob Herring usb0: usb@40006100 { 125*724ba675SRob Herring compatible = "nxp,lpc1850-ehci", "generic-ehci"; 126*724ba675SRob Herring reg = <0x40006100 0x100>; 127*724ba675SRob Herring interrupts = <8>; 128*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_USB0>; 129*724ba675SRob Herring resets = <&rgu 17>; 130*724ba675SRob Herring phys = <&usb0_otg_phy>; 131*724ba675SRob Herring phy-names = "usb"; 132*724ba675SRob Herring has-transaction-translator; 133*724ba675SRob Herring status = "disabled"; 134*724ba675SRob Herring }; 135*724ba675SRob Herring 136*724ba675SRob Herring usb1: usb@40007100 { 137*724ba675SRob Herring compatible = "nxp,lpc1850-ehci", "generic-ehci"; 138*724ba675SRob Herring reg = <0x40007100 0x100>; 139*724ba675SRob Herring interrupts = <9>; 140*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_USB1>; 141*724ba675SRob Herring resets = <&rgu 18>; 142*724ba675SRob Herring status = "disabled"; 143*724ba675SRob Herring }; 144*724ba675SRob Herring 145*724ba675SRob Herring emc: memory-controller@40005000 { 146*724ba675SRob Herring compatible = "arm,pl172", "arm,primecell"; 147*724ba675SRob Herring reg = <0x40005000 0x1000>; 148*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_EMCDIV>, <&ccu1 CLK_CPU_EMC>; 149*724ba675SRob Herring clock-names = "mpmcclk", "apb_pclk"; 150*724ba675SRob Herring resets = <&rgu 21>; 151*724ba675SRob Herring #address-cells = <2>; 152*724ba675SRob Herring #size-cells = <1>; 153*724ba675SRob Herring ranges = <0 0 0x1c000000 0x1000000 154*724ba675SRob Herring 1 0 0x1d000000 0x1000000 155*724ba675SRob Herring 2 0 0x1e000000 0x1000000 156*724ba675SRob Herring 3 0 0x1f000000 0x1000000>; 157*724ba675SRob Herring status = "disabled"; 158*724ba675SRob Herring }; 159*724ba675SRob Herring 160*724ba675SRob Herring lcdc: lcd-controller@40008000 { 161*724ba675SRob Herring compatible = "arm,pl111", "arm,primecell"; 162*724ba675SRob Herring reg = <0x40008000 0x1000>; 163*724ba675SRob Herring interrupts = <7>; 164*724ba675SRob Herring interrupt-names = "combined"; 165*724ba675SRob Herring clocks = <&cgu BASE_LCD_CLK>, <&ccu1 CLK_CPU_LCD>; 166*724ba675SRob Herring clock-names = "clcdclk", "apb_pclk"; 167*724ba675SRob Herring resets = <&rgu 16>; 168*724ba675SRob Herring status = "disabled"; 169*724ba675SRob Herring }; 170*724ba675SRob Herring 171*724ba675SRob Herring eeprom: eeprom@4000e000 { 172*724ba675SRob Herring compatible = "nxp,lpc1857-eeprom"; 173*724ba675SRob Herring reg = <0x4000e000 0x1000>, <0x20040000 0x4000>; 174*724ba675SRob Herring reg-names = "reg", "mem"; 175*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_EEPROM>; 176*724ba675SRob Herring clock-names = "eeprom"; 177*724ba675SRob Herring resets = <&rgu 27>; 178*724ba675SRob Herring interrupts = <4>; 179*724ba675SRob Herring status = "disabled"; 180*724ba675SRob Herring }; 181*724ba675SRob Herring 182*724ba675SRob Herring mac: ethernet@40010000 { 183*724ba675SRob Herring compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac"; 184*724ba675SRob Herring reg = <0x40010000 0x2000>; 185*724ba675SRob Herring interrupts = <5>; 186*724ba675SRob Herring interrupt-names = "macirq"; 187*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_ETHERNET>; 188*724ba675SRob Herring clock-names = "stmmaceth"; 189*724ba675SRob Herring resets = <&rgu 22>; 190*724ba675SRob Herring reset-names = "stmmaceth"; 191*724ba675SRob Herring rx-fifo-depth = <256>; 192*724ba675SRob Herring tx-fifo-depth = <256>; 193*724ba675SRob Herring snps,pbl = <4>; /* 32 (8x mode) */ 194*724ba675SRob Herring snps,force_thresh_dma_mode; 195*724ba675SRob Herring status = "disabled"; 196*724ba675SRob Herring }; 197*724ba675SRob Herring 198*724ba675SRob Herring creg: syscon@40043000 { 199*724ba675SRob Herring compatible = "nxp,lpc1850-creg", "syscon", "simple-mfd"; 200*724ba675SRob Herring reg = <0x40043000 0x1000>; 201*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_CREG>; 202*724ba675SRob Herring resets = <&rgu 5>; 203*724ba675SRob Herring 204*724ba675SRob Herring creg_clk: clock-controller { 205*724ba675SRob Herring compatible = "nxp,lpc1850-creg-clk"; 206*724ba675SRob Herring clocks = <&xtal32>; 207*724ba675SRob Herring #clock-cells = <1>; 208*724ba675SRob Herring }; 209*724ba675SRob Herring 210*724ba675SRob Herring usb0_otg_phy: phy { 211*724ba675SRob Herring compatible = "nxp,lpc1850-usb-otg-phy"; 212*724ba675SRob Herring clocks = <&ccu1 CLK_USB0>; 213*724ba675SRob Herring #phy-cells = <0>; 214*724ba675SRob Herring }; 215*724ba675SRob Herring 216*724ba675SRob Herring dmamux: dma-mux { 217*724ba675SRob Herring compatible = "nxp,lpc1850-dmamux"; 218*724ba675SRob Herring #dma-cells = <3>; 219*724ba675SRob Herring dma-requests = <64>; 220*724ba675SRob Herring dma-masters = <&dmac>; 221*724ba675SRob Herring }; 222*724ba675SRob Herring }; 223*724ba675SRob Herring 224*724ba675SRob Herring rtc: rtc@40046000 { 225*724ba675SRob Herring compatible = "nxp,lpc1850-rtc", "nxp,lpc1788-rtc"; 226*724ba675SRob Herring reg = <0x40046000 0x1000>; 227*724ba675SRob Herring interrupts = <47>; 228*724ba675SRob Herring clocks = <&creg_clk 0>, <&ccu1 CLK_CPU_BUS>; 229*724ba675SRob Herring clock-names = "rtc", "reg"; 230*724ba675SRob Herring }; 231*724ba675SRob Herring 232*724ba675SRob Herring cgu: clock-controller@40050000 { 233*724ba675SRob Herring compatible = "nxp,lpc1850-cgu"; 234*724ba675SRob Herring reg = <0x40050000 0x1000>; 235*724ba675SRob Herring #clock-cells = <1>; 236*724ba675SRob Herring clocks = <&xtal>, <&creg_clk 1>, <&enet_rx_clk>, <&enet_tx_clk>, <&gp_clkin>; 237*724ba675SRob Herring }; 238*724ba675SRob Herring 239*724ba675SRob Herring ccu1: clock-controller@40051000 { 240*724ba675SRob Herring compatible = "nxp,lpc1850-ccu"; 241*724ba675SRob Herring reg = <0x40051000 0x1000>; 242*724ba675SRob Herring #clock-cells = <1>; 243*724ba675SRob Herring clocks = <&cgu BASE_APB3_CLK>, <&cgu BASE_APB1_CLK>, 244*724ba675SRob Herring <&cgu BASE_SPIFI_CLK>, <&cgu BASE_CPU_CLK>, 245*724ba675SRob Herring <&cgu BASE_PERIPH_CLK>, <&cgu BASE_USB0_CLK>, 246*724ba675SRob Herring <&cgu BASE_USB1_CLK>, <&cgu BASE_SPI_CLK>; 247*724ba675SRob Herring clock-names = "base_apb3_clk", "base_apb1_clk", 248*724ba675SRob Herring "base_spifi_clk", "base_cpu_clk", 249*724ba675SRob Herring "base_periph_clk", "base_usb0_clk", 250*724ba675SRob Herring "base_usb1_clk", "base_spi_clk"; 251*724ba675SRob Herring }; 252*724ba675SRob Herring 253*724ba675SRob Herring ccu2: clock-controller@40052000 { 254*724ba675SRob Herring compatible = "nxp,lpc1850-ccu"; 255*724ba675SRob Herring reg = <0x40052000 0x1000>; 256*724ba675SRob Herring #clock-cells = <1>; 257*724ba675SRob Herring clocks = <&cgu BASE_AUDIO_CLK>, <&cgu BASE_UART3_CLK>, 258*724ba675SRob Herring <&cgu BASE_UART2_CLK>, <&cgu BASE_UART1_CLK>, 259*724ba675SRob Herring <&cgu BASE_UART0_CLK>, <&cgu BASE_SSP1_CLK>, 260*724ba675SRob Herring <&cgu BASE_SSP0_CLK>, <&cgu BASE_SDIO_CLK>; 261*724ba675SRob Herring clock-names = "base_audio_clk", "base_uart3_clk", 262*724ba675SRob Herring "base_uart2_clk", "base_uart1_clk", 263*724ba675SRob Herring "base_uart0_clk", "base_ssp1_clk", 264*724ba675SRob Herring "base_ssp0_clk", "base_sdio_clk"; 265*724ba675SRob Herring }; 266*724ba675SRob Herring 267*724ba675SRob Herring rgu: reset-controller@40053000 { 268*724ba675SRob Herring compatible = "nxp,lpc1850-rgu"; 269*724ba675SRob Herring reg = <0x40053000 0x1000>; 270*724ba675SRob Herring clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_BUS>; 271*724ba675SRob Herring clock-names = "delay", "reg"; 272*724ba675SRob Herring #reset-cells = <1>; 273*724ba675SRob Herring }; 274*724ba675SRob Herring 275*724ba675SRob Herring watchdog@40080000 { 276*724ba675SRob Herring compatible = "nxp,lpc1850-wwdt"; 277*724ba675SRob Herring reg = <0x40080000 0x24>; 278*724ba675SRob Herring interrupts = <49>; 279*724ba675SRob Herring clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_WWDT>; 280*724ba675SRob Herring clock-names = "wdtclk", "reg"; 281*724ba675SRob Herring }; 282*724ba675SRob Herring 283*724ba675SRob Herring uart0: serial@40081000 { 284*724ba675SRob Herring compatible = "nxp,lpc1850-uart", "ns16550a"; 285*724ba675SRob Herring reg = <0x40081000 0x1000>; 286*724ba675SRob Herring reg-shift = <2>; 287*724ba675SRob Herring interrupts = <24>; 288*724ba675SRob Herring clocks = <&ccu2 CLK_APB0_UART0>, <&ccu1 CLK_CPU_UART0>; 289*724ba675SRob Herring clock-names = "uartclk", "reg"; 290*724ba675SRob Herring resets = <&rgu 44>; 291*724ba675SRob Herring dmas = <&dmamux 1 1 2 292*724ba675SRob Herring &dmamux 2 1 2 293*724ba675SRob Herring &dmamux 11 2 2 294*724ba675SRob Herring &dmamux 12 2 2>; 295*724ba675SRob Herring dma-names = "tx", "rx", "tx", "rx"; 296*724ba675SRob Herring status = "disabled"; 297*724ba675SRob Herring }; 298*724ba675SRob Herring 299*724ba675SRob Herring uart1: serial@40082000 { 300*724ba675SRob Herring compatible = "nxp,lpc1850-uart", "ns16550a"; 301*724ba675SRob Herring reg = <0x40082000 0x1000>; 302*724ba675SRob Herring reg-shift = <2>; 303*724ba675SRob Herring interrupts = <25>; 304*724ba675SRob Herring clocks = <&ccu2 CLK_APB0_UART1>, <&ccu1 CLK_CPU_UART1>; 305*724ba675SRob Herring clock-names = "uartclk", "reg"; 306*724ba675SRob Herring resets = <&rgu 45>; 307*724ba675SRob Herring dmas = <&dmamux 3 1 2 308*724ba675SRob Herring &dmamux 4 1 2>; 309*724ba675SRob Herring dma-names = "tx", "rx"; 310*724ba675SRob Herring status = "disabled"; 311*724ba675SRob Herring }; 312*724ba675SRob Herring 313*724ba675SRob Herring ssp0: spi@40083000 { 314*724ba675SRob Herring compatible = "arm,pl022", "arm,primecell"; 315*724ba675SRob Herring reg = <0x40083000 0x1000>; 316*724ba675SRob Herring interrupts = <22>; 317*724ba675SRob Herring clocks = <&ccu2 CLK_APB0_SSP0>, <&ccu1 CLK_CPU_SSP0>; 318*724ba675SRob Herring clock-names = "sspclk", "apb_pclk"; 319*724ba675SRob Herring resets = <&rgu 50>; 320*724ba675SRob Herring dmas = <&dmamux 9 0 2 321*724ba675SRob Herring &dmamux 10 0 2>; 322*724ba675SRob Herring dma-names = "rx", "tx"; 323*724ba675SRob Herring #address-cells = <1>; 324*724ba675SRob Herring #size-cells = <0>; 325*724ba675SRob Herring status = "disabled"; 326*724ba675SRob Herring }; 327*724ba675SRob Herring 328*724ba675SRob Herring timer0: timer@40084000 { 329*724ba675SRob Herring compatible = "nxp,lpc3220-timer"; 330*724ba675SRob Herring reg = <0x40084000 0x1000>; 331*724ba675SRob Herring interrupts = <12>; 332*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_TIMER0>; 333*724ba675SRob Herring clock-names = "timerclk"; 334*724ba675SRob Herring resets = <&rgu 32>; 335*724ba675SRob Herring }; 336*724ba675SRob Herring 337*724ba675SRob Herring timer1: timer@40085000 { 338*724ba675SRob Herring compatible = "nxp,lpc3220-timer"; 339*724ba675SRob Herring reg = <0x40085000 0x1000>; 340*724ba675SRob Herring interrupts = <13>; 341*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_TIMER1>; 342*724ba675SRob Herring clock-names = "timerclk"; 343*724ba675SRob Herring resets = <&rgu 33>; 344*724ba675SRob Herring }; 345*724ba675SRob Herring 346*724ba675SRob Herring pinctrl: pinctrl@40086000 { 347*724ba675SRob Herring compatible = "nxp,lpc1850-scu"; 348*724ba675SRob Herring reg = <0x40086000 0x1000>; 349*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_SCU>; 350*724ba675SRob Herring }; 351*724ba675SRob Herring 352*724ba675SRob Herring i2c0: i2c@400a1000 { 353*724ba675SRob Herring compatible = "nxp,lpc1788-i2c"; 354*724ba675SRob Herring reg = <0x400a1000 0x1000>; 355*724ba675SRob Herring interrupts = <18>; 356*724ba675SRob Herring clocks = <&ccu1 CLK_APB1_I2C0>; 357*724ba675SRob Herring resets = <&rgu 48>; 358*724ba675SRob Herring #address-cells = <1>; 359*724ba675SRob Herring #size-cells = <0>; 360*724ba675SRob Herring status = "disabled"; 361*724ba675SRob Herring }; 362*724ba675SRob Herring 363*724ba675SRob Herring can1: can@400a4000 { 364*724ba675SRob Herring compatible = "bosch,c_can"; 365*724ba675SRob Herring reg = <0x400a4000 0x1000>; 366*724ba675SRob Herring interrupts = <43>; 367*724ba675SRob Herring clocks = <&ccu1 CLK_APB1_CAN1>; 368*724ba675SRob Herring resets = <&rgu 54>; 369*724ba675SRob Herring status = "disabled"; 370*724ba675SRob Herring }; 371*724ba675SRob Herring 372*724ba675SRob Herring uart2: serial@400c1000 { 373*724ba675SRob Herring compatible = "nxp,lpc1850-uart", "ns16550a"; 374*724ba675SRob Herring reg = <0x400c1000 0x1000>; 375*724ba675SRob Herring reg-shift = <2>; 376*724ba675SRob Herring interrupts = <26>; 377*724ba675SRob Herring clocks = <&ccu2 CLK_APB2_UART2>, <&ccu1 CLK_CPU_UART2>; 378*724ba675SRob Herring clock-names = "uartclk", "reg"; 379*724ba675SRob Herring resets = <&rgu 46>; 380*724ba675SRob Herring dmas = <&dmamux 5 1 2 381*724ba675SRob Herring &dmamux 6 1 2>; 382*724ba675SRob Herring dma-names = "tx", "rx"; 383*724ba675SRob Herring status = "disabled"; 384*724ba675SRob Herring }; 385*724ba675SRob Herring 386*724ba675SRob Herring uart3: serial@400c2000 { 387*724ba675SRob Herring compatible = "nxp,lpc1850-uart", "ns16550a"; 388*724ba675SRob Herring reg = <0x400c2000 0x1000>; 389*724ba675SRob Herring reg-shift = <2>; 390*724ba675SRob Herring interrupts = <27>; 391*724ba675SRob Herring clocks = <&ccu2 CLK_APB2_UART3>, <&ccu1 CLK_CPU_UART3>; 392*724ba675SRob Herring clock-names = "uartclk", "reg"; 393*724ba675SRob Herring resets = <&rgu 47>; 394*724ba675SRob Herring dmas = <&dmamux 7 1 2 395*724ba675SRob Herring &dmamux 8 1 2 396*724ba675SRob Herring &dmamux 13 3 2 397*724ba675SRob Herring &dmamux 14 3 2>; 398*724ba675SRob Herring dma-names = "tx", "rx", "rx", "tx"; 399*724ba675SRob Herring status = "disabled"; 400*724ba675SRob Herring }; 401*724ba675SRob Herring 402*724ba675SRob Herring timer2: timer@400c3000 { 403*724ba675SRob Herring compatible = "nxp,lpc3220-timer"; 404*724ba675SRob Herring reg = <0x400c3000 0x1000>; 405*724ba675SRob Herring interrupts = <14>; 406*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_TIMER2>; 407*724ba675SRob Herring clock-names = "timerclk"; 408*724ba675SRob Herring resets = <&rgu 34>; 409*724ba675SRob Herring }; 410*724ba675SRob Herring 411*724ba675SRob Herring timer3: timer@400c4000 { 412*724ba675SRob Herring compatible = "nxp,lpc3220-timer"; 413*724ba675SRob Herring reg = <0x400c4000 0x1000>; 414*724ba675SRob Herring interrupts = <15>; 415*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_TIMER3>; 416*724ba675SRob Herring clock-names = "timerclk"; 417*724ba675SRob Herring resets = <&rgu 35>; 418*724ba675SRob Herring }; 419*724ba675SRob Herring 420*724ba675SRob Herring ssp1: spi@400c5000 { 421*724ba675SRob Herring compatible = "arm,pl022", "arm,primecell"; 422*724ba675SRob Herring reg = <0x400c5000 0x1000>; 423*724ba675SRob Herring interrupts = <23>; 424*724ba675SRob Herring clocks = <&ccu2 CLK_APB2_SSP1>, <&ccu1 CLK_CPU_SSP1>; 425*724ba675SRob Herring clock-names = "sspclk", "apb_pclk"; 426*724ba675SRob Herring resets = <&rgu 51>; 427*724ba675SRob Herring dmas = <&dmamux 11 2 2 428*724ba675SRob Herring &dmamux 12 2 2 429*724ba675SRob Herring &dmamux 3 3 2 430*724ba675SRob Herring &dmamux 4 3 2 431*724ba675SRob Herring &dmamux 5 2 2 432*724ba675SRob Herring &dmamux 6 2 2 433*724ba675SRob Herring &dmamux 13 2 2 434*724ba675SRob Herring &dmamux 14 2 2>; 435*724ba675SRob Herring dma-names = "rx", "tx", "tx", "rx", 436*724ba675SRob Herring "tx", "rx", "rx", "tx"; 437*724ba675SRob Herring #address-cells = <1>; 438*724ba675SRob Herring #size-cells = <0>; 439*724ba675SRob Herring status = "disabled"; 440*724ba675SRob Herring }; 441*724ba675SRob Herring 442*724ba675SRob Herring i2c1: i2c@400e0000 { 443*724ba675SRob Herring compatible = "nxp,lpc1788-i2c"; 444*724ba675SRob Herring reg = <0x400e0000 0x1000>; 445*724ba675SRob Herring interrupts = <19>; 446*724ba675SRob Herring clocks = <&ccu1 CLK_APB3_I2C1>; 447*724ba675SRob Herring resets = <&rgu 49>; 448*724ba675SRob Herring #address-cells = <1>; 449*724ba675SRob Herring #size-cells = <0>; 450*724ba675SRob Herring status = "disabled"; 451*724ba675SRob Herring }; 452*724ba675SRob Herring 453*724ba675SRob Herring dac: dac@400e1000 { 454*724ba675SRob Herring compatible = "nxp,lpc1850-dac"; 455*724ba675SRob Herring reg = <0x400e1000 0x1000>; 456*724ba675SRob Herring interrupts = <0>; 457*724ba675SRob Herring clocks = <&ccu1 CLK_APB3_DAC>; 458*724ba675SRob Herring resets = <&rgu 42>; 459*724ba675SRob Herring status = "disabled"; 460*724ba675SRob Herring }; 461*724ba675SRob Herring 462*724ba675SRob Herring can0: can@400e2000 { 463*724ba675SRob Herring compatible = "bosch,c_can"; 464*724ba675SRob Herring reg = <0x400e2000 0x1000>; 465*724ba675SRob Herring interrupts = <51>; 466*724ba675SRob Herring clocks = <&ccu1 CLK_APB3_CAN0>; 467*724ba675SRob Herring resets = <&rgu 55>; 468*724ba675SRob Herring status = "disabled"; 469*724ba675SRob Herring }; 470*724ba675SRob Herring 471*724ba675SRob Herring adc0: adc@400e3000 { 472*724ba675SRob Herring compatible = "nxp,lpc1850-adc"; 473*724ba675SRob Herring reg = <0x400e3000 0x1000>; 474*724ba675SRob Herring interrupts = <17>; 475*724ba675SRob Herring clocks = <&ccu1 CLK_APB3_ADC0>; 476*724ba675SRob Herring resets = <&rgu 40>; 477*724ba675SRob Herring status = "disabled"; 478*724ba675SRob Herring }; 479*724ba675SRob Herring 480*724ba675SRob Herring adc1: adc@400e4000 { 481*724ba675SRob Herring compatible = "nxp,lpc1850-adc"; 482*724ba675SRob Herring reg = <0x400e4000 0x1000>; 483*724ba675SRob Herring interrupts = <21>; 484*724ba675SRob Herring clocks = <&ccu1 CLK_APB3_ADC1>; 485*724ba675SRob Herring resets = <&rgu 41>; 486*724ba675SRob Herring status = "disabled"; 487*724ba675SRob Herring }; 488*724ba675SRob Herring 489*724ba675SRob Herring gpio: gpio@400f4000 { 490*724ba675SRob Herring compatible = "nxp,lpc1850-gpio"; 491*724ba675SRob Herring reg = <0x400f4000 0x4000>; 492*724ba675SRob Herring clocks = <&ccu1 CLK_CPU_GPIO>; 493*724ba675SRob Herring gpio-controller; 494*724ba675SRob Herring #gpio-cells = <2>; 495*724ba675SRob Herring gpio-ranges = <&pinctrl LPC_GPIO(0,0) LPC_PIN(0,0) 2>, 496*724ba675SRob Herring <&pinctrl LPC_GPIO(0,4) LPC_PIN(1,0) 1>, 497*724ba675SRob Herring <&pinctrl LPC_GPIO(0,8) LPC_PIN(1,1) 4>, 498*724ba675SRob Herring <&pinctrl LPC_GPIO(1,8) LPC_PIN(1,5) 2>, 499*724ba675SRob Herring <&pinctrl LPC_GPIO(1,0) LPC_PIN(1,7) 8>, 500*724ba675SRob Herring <&pinctrl LPC_GPIO(0,2) LPC_PIN(1,15) 2>, 501*724ba675SRob Herring <&pinctrl LPC_GPIO(0,12) LPC_PIN(1,17) 2>, 502*724ba675SRob Herring <&pinctrl LPC_GPIO(0,15) LPC_PIN(1,20) 1>, 503*724ba675SRob Herring <&pinctrl LPC_GPIO(5,0) LPC_PIN(2,0) 7>, 504*724ba675SRob Herring <&pinctrl LPC_GPIO(0,7) LPC_PIN(2,7) 1>, 505*724ba675SRob Herring <&pinctrl LPC_GPIO(5,7) LPC_PIN(2,8) 1>, 506*724ba675SRob Herring <&pinctrl LPC_GPIO(1,10) LPC_PIN(2,9) 1>, 507*724ba675SRob Herring <&pinctrl LPC_GPIO(0,14) LPC_PIN(2,10) 1>, 508*724ba675SRob Herring <&pinctrl LPC_GPIO(1,11) LPC_PIN(2,11) 3>, 509*724ba675SRob Herring <&pinctrl LPC_GPIO(5,8) LPC_PIN(3,1) 2>, 510*724ba675SRob Herring <&pinctrl LPC_GPIO(1,14) LPC_PIN(3,4) 2>, 511*724ba675SRob Herring <&pinctrl LPC_GPIO(0,6) LPC_PIN(3,6) 1>, 512*724ba675SRob Herring <&pinctrl LPC_GPIO(5,10) LPC_PIN(3,7) 2>, 513*724ba675SRob Herring <&pinctrl LPC_GPIO(2,0) LPC_PIN(4,0) 7>, 514*724ba675SRob Herring <&pinctrl LPC_GPIO(5,12) LPC_PIN(4,8) 3>, 515*724ba675SRob Herring <&pinctrl LPC_GPIO(2,9) LPC_PIN(5,0) 7>, 516*724ba675SRob Herring <&pinctrl LPC_GPIO(2,7) LPC_PIN(5,7) 1>, 517*724ba675SRob Herring <&pinctrl LPC_GPIO(3,0) LPC_PIN(6,1) 5>, 518*724ba675SRob Herring <&pinctrl LPC_GPIO(0,5) LPC_PIN(6,6) 1>, 519*724ba675SRob Herring <&pinctrl LPC_GPIO(5,15) LPC_PIN(6,7) 2>, 520*724ba675SRob Herring <&pinctrl LPC_GPIO(3,5) LPC_PIN(6,9) 3>, 521*724ba675SRob Herring <&pinctrl LPC_GPIO(2,8) LPC_PIN(6,12) 1>, 522*724ba675SRob Herring <&pinctrl LPC_GPIO(3,8) LPC_PIN(7,0) 8>, 523*724ba675SRob Herring <&pinctrl LPC_GPIO(4,0) LPC_PIN(8,0) 8>, 524*724ba675SRob Herring <&pinctrl LPC_GPIO(4,12) LPC_PIN(9,0) 4>, 525*724ba675SRob Herring <&pinctrl LPC_GPIO(5,17) LPC_PIN(9,4) 2>, 526*724ba675SRob Herring <&pinctrl LPC_GPIO(4,11) LPC_PIN(9,6) 1>, 527*724ba675SRob Herring <&pinctrl LPC_GPIO(4,8) LPC_PIN(a,1) 3>, 528*724ba675SRob Herring <&pinctrl LPC_GPIO(5,19) LPC_PIN(a,4) 1>, 529*724ba675SRob Herring <&pinctrl LPC_GPIO(5,20) LPC_PIN(b,0) 7>, 530*724ba675SRob Herring <&pinctrl LPC_GPIO(6,0) LPC_PIN(c,1) 14>, 531*724ba675SRob Herring <&pinctrl LPC_GPIO(6,14) LPC_PIN(d,0) 17>, 532*724ba675SRob Herring <&pinctrl LPC_GPIO(7,0) LPC_PIN(e,0) 16>, 533*724ba675SRob Herring <&pinctrl LPC_GPIO(7,16) LPC_PIN(f,1) 3>, 534*724ba675SRob Herring <&pinctrl LPC_GPIO(7,19) LPC_PIN(f,5) 7>; 535*724ba675SRob Herring }; 536*724ba675SRob Herring }; 537*724ba675SRob Herring}; 538