1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2013 MundoReader S.L. 4 * Author: Heiko Stuebner <heiko@sntech.de> 5 */ 6 7#include <dt-bindings/interrupt-controller/irq.h> 8#include <dt-bindings/interrupt-controller/arm-gic.h> 9#include <dt-bindings/soc/rockchip,boot-mode.h> 10 11/ { 12 #address-cells = <1>; 13 #size-cells = <1>; 14 15 interrupt-parent = <&gic>; 16 17 aliases { 18 ethernet0 = &emac; 19 i2c0 = &i2c0; 20 i2c1 = &i2c1; 21 i2c2 = &i2c2; 22 i2c3 = &i2c3; 23 i2c4 = &i2c4; 24 mshc0 = &emmc; 25 mshc1 = &mmc0; 26 mshc2 = &mmc1; 27 serial0 = &uart0; 28 serial1 = &uart1; 29 serial2 = &uart2; 30 serial3 = &uart3; 31 spi0 = &spi0; 32 spi1 = &spi1; 33 }; 34 35 amba: bus { 36 compatible = "simple-bus"; 37 #address-cells = <1>; 38 #size-cells = <1>; 39 ranges; 40 41 dmac1_s: dma-controller@20018000 { 42 compatible = "arm,pl330", "arm,primecell"; 43 reg = <0x20018000 0x4000>; 44 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, 45 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 46 #dma-cells = <1>; 47 arm,pl330-broken-no-flushp; 48 arm,pl330-periph-burst; 49 clocks = <&cru ACLK_DMA1>; 50 clock-names = "apb_pclk"; 51 }; 52 53 dmac1_ns: dma-controller@2001c000 { 54 compatible = "arm,pl330", "arm,primecell"; 55 reg = <0x2001c000 0x4000>; 56 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, 57 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 58 #dma-cells = <1>; 59 arm,pl330-broken-no-flushp; 60 arm,pl330-periph-burst; 61 clocks = <&cru ACLK_DMA1>; 62 clock-names = "apb_pclk"; 63 status = "disabled"; 64 }; 65 66 dmac2: dma-controller@20078000 { 67 compatible = "arm,pl330", "arm,primecell"; 68 reg = <0x20078000 0x4000>; 69 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>, 70 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; 71 #dma-cells = <1>; 72 arm,pl330-broken-no-flushp; 73 arm,pl330-periph-burst; 74 clocks = <&cru ACLK_DMA2>; 75 clock-names = "apb_pclk"; 76 }; 77 }; 78 79 xin24m: oscillator { 80 compatible = "fixed-clock"; 81 clock-frequency = <24000000>; 82 #clock-cells = <0>; 83 clock-output-names = "xin24m"; 84 }; 85 86 gpu: gpu@10090000 { 87 compatible = "arm,mali-400"; 88 reg = <0x10090000 0x10000>; 89 clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>; 90 clock-names = "bus", "core"; 91 assigned-clocks = <&cru ACLK_GPU>; 92 assigned-clock-rates = <100000000>; 93 resets = <&cru SRST_GPU>; 94 status = "disabled"; 95 }; 96 97 L2: cache-controller@10138000 { 98 compatible = "arm,pl310-cache"; 99 reg = <0x10138000 0x1000>; 100 cache-unified; 101 cache-level = <2>; 102 }; 103 104 scu@1013c000 { 105 compatible = "arm,cortex-a9-scu"; 106 reg = <0x1013c000 0x100>; 107 }; 108 109 global_timer: global-timer@1013c200 { 110 compatible = "arm,cortex-a9-global-timer"; 111 reg = <0x1013c200 0x20>; 112 interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; 113 clocks = <&cru CORE_PERI>; 114 status = "disabled"; 115 /* The clock source and the sched_clock provided by the arm_global_timer 116 * on Rockchip rk3066a/rk3188 are quite unstable because their rates 117 * depend on the CPU frequency. 118 * Keep the arm_global_timer disabled in order to have the 119 * DW_APB_TIMER (rk3066a) or ROCKCHIP_TIMER (rk3188) selected by default. 120 */ 121 }; 122 123 local_timer: local-timer@1013c600 { 124 compatible = "arm,cortex-a9-twd-timer"; 125 reg = <0x1013c600 0x20>; 126 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; 127 clocks = <&cru CORE_PERI>; 128 }; 129 130 gic: interrupt-controller@1013d000 { 131 compatible = "arm,cortex-a9-gic"; 132 interrupt-controller; 133 #interrupt-cells = <3>; 134 reg = <0x1013d000 0x1000>, 135 <0x1013c100 0x0100>; 136 }; 137 138 uart0: serial@10124000 { 139 compatible = "snps,dw-apb-uart"; 140 reg = <0x10124000 0x400>; 141 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; 142 reg-shift = <2>; 143 reg-io-width = <1>; 144 clock-names = "baudclk", "apb_pclk"; 145 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; 146 status = "disabled"; 147 }; 148 149 uart1: serial@10126000 { 150 compatible = "snps,dw-apb-uart"; 151 reg = <0x10126000 0x400>; 152 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; 153 reg-shift = <2>; 154 reg-io-width = <1>; 155 clock-names = "baudclk", "apb_pclk"; 156 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; 157 status = "disabled"; 158 }; 159 160 qos_gpu: qos@1012d000 { 161 compatible = "syscon"; 162 reg = <0x1012d000 0x20>; 163 }; 164 165 qos_vpu: qos@1012e000 { 166 compatible = "syscon"; 167 reg = <0x1012e000 0x20>; 168 }; 169 170 qos_lcdc0: qos@1012f000 { 171 compatible = "syscon"; 172 reg = <0x1012f000 0x20>; 173 }; 174 175 qos_cif0: qos@1012f080 { 176 compatible = "syscon"; 177 reg = <0x1012f080 0x20>; 178 }; 179 180 qos_ipp: qos@1012f100 { 181 compatible = "syscon"; 182 reg = <0x1012f100 0x20>; 183 }; 184 185 qos_lcdc1: qos@1012f180 { 186 compatible = "syscon"; 187 reg = <0x1012f180 0x20>; 188 }; 189 190 qos_cif1: qos@1012f200 { 191 compatible = "syscon"; 192 reg = <0x1012f200 0x20>; 193 }; 194 195 qos_rga: qos@1012f280 { 196 compatible = "syscon"; 197 reg = <0x1012f280 0x20>; 198 }; 199 200 usb_otg: usb@10180000 { 201 compatible = "rockchip,rk3066-usb", "snps,dwc2"; 202 reg = <0x10180000 0x40000>; 203 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; 204 clocks = <&cru HCLK_OTG0>; 205 clock-names = "otg"; 206 dr_mode = "otg"; 207 g-np-tx-fifo-size = <16>; 208 g-rx-fifo-size = <280>; 209 g-tx-fifo-size = <256 128 128 64 32 16>; 210 phys = <&usbphy0>; 211 phy-names = "usb2-phy"; 212 status = "disabled"; 213 }; 214 215 usb_host: usb@101c0000 { 216 compatible = "snps,dwc2"; 217 reg = <0x101c0000 0x40000>; 218 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; 219 clocks = <&cru HCLK_OTG1>; 220 clock-names = "otg"; 221 dr_mode = "host"; 222 phys = <&usbphy1>; 223 phy-names = "usb2-phy"; 224 status = "disabled"; 225 }; 226 227 emac: ethernet@10204000 { 228 compatible = "snps,arc-emac"; 229 reg = <0x10204000 0x3c>; 230 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; 231 #address-cells = <1>; 232 #size-cells = <0>; 233 234 rockchip,grf = <&grf>; 235 236 clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>; 237 clock-names = "hclk", "macref"; 238 max-speed = <100>; 239 phy-mode = "rmii"; 240 241 status = "disabled"; 242 }; 243 244 mmc0: mmc@10214000 { 245 compatible = "rockchip,rk2928-dw-mshc"; 246 reg = <0x10214000 0x1000>; 247 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; 248 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>; 249 clock-names = "biu", "ciu"; 250 dmas = <&dmac2 1>; 251 dma-names = "rx-tx"; 252 fifo-depth = <256>; 253 resets = <&cru SRST_SDMMC>; 254 reset-names = "reset"; 255 status = "disabled"; 256 }; 257 258 mmc1: mmc@10218000 { 259 compatible = "rockchip,rk2928-dw-mshc"; 260 reg = <0x10218000 0x1000>; 261 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; 262 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>; 263 clock-names = "biu", "ciu"; 264 dmas = <&dmac2 3>; 265 dma-names = "rx-tx"; 266 fifo-depth = <256>; 267 resets = <&cru SRST_SDIO>; 268 reset-names = "reset"; 269 status = "disabled"; 270 }; 271 272 emmc: mmc@1021c000 { 273 compatible = "rockchip,rk2928-dw-mshc"; 274 reg = <0x1021c000 0x1000>; 275 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; 276 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>; 277 clock-names = "biu", "ciu"; 278 dmas = <&dmac2 4>; 279 dma-names = "rx-tx"; 280 fifo-depth = <256>; 281 resets = <&cru SRST_EMMC>; 282 reset-names = "reset"; 283 status = "disabled"; 284 }; 285 286 nandc: nandc@10500000 { 287 compatible = "rockchip,rk-nandc"; 288 reg = <0x10500000 0x4000>; 289 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; 290 nandc_id = <0>; 291 clocks = <&cru HCLK_NANDC0>; 292 clock-names = "hclk_nandc"; 293 status = "disabled"; 294 }; 295 296 pmu: pmu@20004000 { 297 compatible = "rockchip,rk3066-pmu", "syscon", "simple-mfd"; 298 reg = <0x20004000 0x100>; 299 300 reboot-mode { 301 compatible = "syscon-reboot-mode"; 302 offset = <0x40>; 303 mode-normal = <BOOT_NORMAL>; 304 mode-recovery = <BOOT_RECOVERY>; 305 mode-bootloader = <BOOT_FASTBOOT>; 306 mode-loader = <BOOT_BL_DOWNLOAD>; 307 mode-ums = <BOOT_UMS>; 308 }; 309 }; 310 311 grf: grf@20008000 { 312 compatible = "syscon"; 313 reg = <0x20008000 0x200>; 314 }; 315 316 i2c0: i2c@2002d000 { 317 compatible = "rockchip,rk3066-i2c"; 318 reg = <0x2002d000 0x1000>; 319 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; 320 #address-cells = <1>; 321 #size-cells = <0>; 322 323 rockchip,grf = <&grf>; 324 325 clock-names = "i2c"; 326 clocks = <&cru PCLK_I2C0>; 327 328 status = "disabled"; 329 }; 330 331 i2c1: i2c@2002f000 { 332 compatible = "rockchip,rk3066-i2c"; 333 reg = <0x2002f000 0x1000>; 334 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; 335 #address-cells = <1>; 336 #size-cells = <0>; 337 338 rockchip,grf = <&grf>; 339 340 clocks = <&cru PCLK_I2C1>; 341 clock-names = "i2c"; 342 343 status = "disabled"; 344 }; 345 346 pwm0: pwm@20030000 { 347 compatible = "rockchip,rk2928-pwm"; 348 reg = <0x20030000 0x10>; 349 #pwm-cells = <2>; 350 clocks = <&cru PCLK_PWM01>; 351 status = "disabled"; 352 }; 353 354 pwm1: pwm@20030010 { 355 compatible = "rockchip,rk2928-pwm"; 356 reg = <0x20030010 0x10>; 357 #pwm-cells = <2>; 358 clocks = <&cru PCLK_PWM01>; 359 status = "disabled"; 360 }; 361 362 wdt: watchdog@2004c000 { 363 compatible = "snps,dw-wdt"; 364 reg = <0x2004c000 0x100>; 365 clocks = <&cru PCLK_WDT>; 366 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>; 367 status = "disabled"; 368 }; 369 370 pwm2: pwm@20050020 { 371 compatible = "rockchip,rk2928-pwm"; 372 reg = <0x20050020 0x10>; 373 #pwm-cells = <2>; 374 clocks = <&cru PCLK_PWM23>; 375 status = "disabled"; 376 }; 377 378 pwm3: pwm@20050030 { 379 compatible = "rockchip,rk2928-pwm"; 380 reg = <0x20050030 0x10>; 381 #pwm-cells = <2>; 382 clocks = <&cru PCLK_PWM23>; 383 status = "disabled"; 384 }; 385 386 i2c2: i2c@20056000 { 387 compatible = "rockchip,rk3066-i2c"; 388 reg = <0x20056000 0x1000>; 389 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; 390 #address-cells = <1>; 391 #size-cells = <0>; 392 393 rockchip,grf = <&grf>; 394 395 clocks = <&cru PCLK_I2C2>; 396 clock-names = "i2c"; 397 398 status = "disabled"; 399 }; 400 401 i2c3: i2c@2005a000 { 402 compatible = "rockchip,rk3066-i2c"; 403 reg = <0x2005a000 0x1000>; 404 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; 405 #address-cells = <1>; 406 #size-cells = <0>; 407 408 rockchip,grf = <&grf>; 409 410 clocks = <&cru PCLK_I2C3>; 411 clock-names = "i2c"; 412 413 status = "disabled"; 414 }; 415 416 i2c4: i2c@2005e000 { 417 compatible = "rockchip,rk3066-i2c"; 418 reg = <0x2005e000 0x1000>; 419 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; 420 #address-cells = <1>; 421 #size-cells = <0>; 422 423 rockchip,grf = <&grf>; 424 425 clocks = <&cru PCLK_I2C4>; 426 clock-names = "i2c"; 427 428 status = "disabled"; 429 }; 430 431 uart2: serial@20064000 { 432 compatible = "snps,dw-apb-uart"; 433 reg = <0x20064000 0x400>; 434 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; 435 reg-shift = <2>; 436 reg-io-width = <1>; 437 clock-names = "baudclk", "apb_pclk"; 438 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; 439 status = "disabled"; 440 }; 441 442 uart3: serial@20068000 { 443 compatible = "snps,dw-apb-uart"; 444 reg = <0x20068000 0x400>; 445 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 446 reg-shift = <2>; 447 reg-io-width = <1>; 448 clock-names = "baudclk", "apb_pclk"; 449 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>; 450 status = "disabled"; 451 }; 452 453 saradc: saradc@2006c000 { 454 compatible = "rockchip,saradc"; 455 reg = <0x2006c000 0x100>; 456 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; 457 #io-channel-cells = <1>; 458 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>; 459 clock-names = "saradc", "apb_pclk"; 460 resets = <&cru SRST_SARADC>; 461 reset-names = "saradc-apb"; 462 status = "disabled"; 463 }; 464 465 spi0: spi@20070000 { 466 compatible = "rockchip,rk3066-spi"; 467 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>; 468 clock-names = "spiclk", "apb_pclk"; 469 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; 470 reg = <0x20070000 0x1000>; 471 #address-cells = <1>; 472 #size-cells = <0>; 473 dmas = <&dmac2 10>, <&dmac2 11>; 474 dma-names = "tx", "rx"; 475 status = "disabled"; 476 }; 477 478 spi1: spi@20074000 { 479 compatible = "rockchip,rk3066-spi"; 480 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>; 481 clock-names = "spiclk", "apb_pclk"; 482 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; 483 reg = <0x20074000 0x1000>; 484 #address-cells = <1>; 485 #size-cells = <0>; 486 dmas = <&dmac2 12>, <&dmac2 13>; 487 dma-names = "tx", "rx"; 488 status = "disabled"; 489 }; 490}; 491