Stefan Roese | 51c580c | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Altera <www.altera.com> |
| 3 | * |
Stefan Roese | 5bf1f1e | 2014-11-14 08:10:44 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | 51c580c | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include "skeleton.dtsi" |
| 8 | #include <dt-bindings/reset/altr,rst-mgr.h> |
| 9 | |
| 10 | / { |
| 11 | #address-cells = <1>; |
| 12 | #size-cells = <1>; |
| 13 | |
| 14 | aliases { |
| 15 | ethernet0 = &gmac0; |
| 16 | ethernet1 = &gmac1; |
| 17 | serial0 = &uart0; |
| 18 | serial1 = &uart1; |
| 19 | timer0 = &timer0; |
| 20 | timer1 = &timer1; |
| 21 | timer2 = &timer2; |
| 22 | timer3 = &timer3; |
Marek Vasut | b09b72d | 2015-07-21 11:25:14 +0200 | [diff] [blame] | 23 | spi0 = &qspi; |
| 24 | spi1 = &spi0; |
| 25 | spi2 = &spi1; |
Stefan Roese | 51c580c | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | cpus { |
| 29 | #address-cells = <1>; |
| 30 | #size-cells = <0>; |
| 31 | |
| 32 | cpu@0 { |
| 33 | compatible = "arm,cortex-a9"; |
| 34 | device_type = "cpu"; |
| 35 | reg = <0>; |
| 36 | next-level-cache = <&L2>; |
| 37 | }; |
| 38 | cpu@1 { |
| 39 | compatible = "arm,cortex-a9"; |
| 40 | device_type = "cpu"; |
| 41 | reg = <1>; |
| 42 | next-level-cache = <&L2>; |
| 43 | }; |
| 44 | }; |
| 45 | |
| 46 | intc: intc@fffed000 { |
| 47 | compatible = "arm,cortex-a9-gic"; |
| 48 | #interrupt-cells = <3>; |
| 49 | interrupt-controller; |
| 50 | reg = <0xfffed000 0x1000>, |
| 51 | <0xfffec100 0x100>; |
| 52 | }; |
| 53 | |
| 54 | soc { |
| 55 | #address-cells = <1>; |
| 56 | #size-cells = <1>; |
| 57 | compatible = "simple-bus"; |
| 58 | device_type = "soc"; |
| 59 | interrupt-parent = <&intc>; |
| 60 | ranges; |
| 61 | |
| 62 | amba { |
| 63 | compatible = "arm,amba-bus"; |
| 64 | #address-cells = <1>; |
| 65 | #size-cells = <1>; |
| 66 | ranges; |
| 67 | |
| 68 | pdma: pdma@ffe01000 { |
| 69 | compatible = "arm,pl330", "arm,primecell"; |
| 70 | reg = <0xffe01000 0x1000>; |
| 71 | interrupts = <0 104 4>, |
| 72 | <0 105 4>, |
| 73 | <0 106 4>, |
| 74 | <0 107 4>, |
| 75 | <0 108 4>, |
| 76 | <0 109 4>, |
| 77 | <0 110 4>, |
| 78 | <0 111 4>; |
| 79 | #dma-cells = <1>; |
| 80 | #dma-channels = <8>; |
| 81 | #dma-requests = <32>; |
| 82 | clocks = <&l4_main_clk>; |
| 83 | clock-names = "apb_pclk"; |
| 84 | }; |
| 85 | }; |
| 86 | |
| 87 | can0: can@ffc00000 { |
| 88 | compatible = "bosch,d_can"; |
| 89 | reg = <0xffc00000 0x1000>; |
| 90 | interrupts = <0 131 4>, <0 132 4>, <0 133 4>, <0 134 4>; |
| 91 | clocks = <&can0_clk>; |
| 92 | status = "disabled"; |
| 93 | }; |
| 94 | |
| 95 | can1: can@ffc01000 { |
| 96 | compatible = "bosch,d_can"; |
| 97 | reg = <0xffc01000 0x1000>; |
| 98 | interrupts = <0 135 4>, <0 136 4>, <0 137 4>, <0 138 4>; |
| 99 | clocks = <&can1_clk>; |
| 100 | status = "disabled"; |
| 101 | }; |
| 102 | |
| 103 | clkmgr@ffd04000 { |
| 104 | compatible = "altr,clk-mgr"; |
| 105 | reg = <0xffd04000 0x1000>; |
| 106 | |
| 107 | clocks { |
| 108 | #address-cells = <1>; |
| 109 | #size-cells = <0>; |
| 110 | |
| 111 | osc1: osc1 { |
| 112 | #clock-cells = <0>; |
| 113 | compatible = "fixed-clock"; |
| 114 | }; |
| 115 | |
| 116 | osc2: osc2 { |
| 117 | #clock-cells = <0>; |
| 118 | compatible = "fixed-clock"; |
| 119 | }; |
| 120 | |
| 121 | f2s_periph_ref_clk: f2s_periph_ref_clk { |
| 122 | #clock-cells = <0>; |
| 123 | compatible = "fixed-clock"; |
| 124 | }; |
| 125 | |
| 126 | f2s_sdram_ref_clk: f2s_sdram_ref_clk { |
| 127 | #clock-cells = <0>; |
| 128 | compatible = "fixed-clock"; |
| 129 | }; |
| 130 | |
| 131 | main_pll: main_pll { |
| 132 | #address-cells = <1>; |
| 133 | #size-cells = <0>; |
| 134 | #clock-cells = <0>; |
| 135 | compatible = "altr,socfpga-pll-clock"; |
| 136 | clocks = <&osc1>; |
| 137 | reg = <0x40>; |
| 138 | |
| 139 | mpuclk: mpuclk { |
| 140 | #clock-cells = <0>; |
| 141 | compatible = "altr,socfpga-perip-clk"; |
| 142 | clocks = <&main_pll>; |
| 143 | div-reg = <0xe0 0 9>; |
| 144 | reg = <0x48>; |
| 145 | }; |
| 146 | |
| 147 | mainclk: mainclk { |
| 148 | #clock-cells = <0>; |
| 149 | compatible = "altr,socfpga-perip-clk"; |
| 150 | clocks = <&main_pll>; |
| 151 | div-reg = <0xe4 0 9>; |
| 152 | reg = <0x4C>; |
| 153 | }; |
| 154 | |
| 155 | dbg_base_clk: dbg_base_clk { |
| 156 | #clock-cells = <0>; |
| 157 | compatible = "altr,socfpga-perip-clk"; |
| 158 | clocks = <&main_pll>; |
| 159 | div-reg = <0xe8 0 9>; |
| 160 | reg = <0x50>; |
| 161 | }; |
| 162 | |
| 163 | main_qspi_clk: main_qspi_clk { |
| 164 | #clock-cells = <0>; |
| 165 | compatible = "altr,socfpga-perip-clk"; |
| 166 | clocks = <&main_pll>; |
| 167 | reg = <0x54>; |
| 168 | }; |
| 169 | |
| 170 | main_nand_sdmmc_clk: main_nand_sdmmc_clk { |
| 171 | #clock-cells = <0>; |
| 172 | compatible = "altr,socfpga-perip-clk"; |
| 173 | clocks = <&main_pll>; |
| 174 | reg = <0x58>; |
| 175 | }; |
| 176 | |
| 177 | cfg_h2f_usr0_clk: cfg_h2f_usr0_clk { |
| 178 | #clock-cells = <0>; |
| 179 | compatible = "altr,socfpga-perip-clk"; |
| 180 | clocks = <&main_pll>; |
| 181 | reg = <0x5C>; |
| 182 | }; |
| 183 | }; |
| 184 | |
| 185 | periph_pll: periph_pll { |
| 186 | #address-cells = <1>; |
| 187 | #size-cells = <0>; |
| 188 | #clock-cells = <0>; |
| 189 | compatible = "altr,socfpga-pll-clock"; |
| 190 | clocks = <&osc1>, <&osc2>, <&f2s_periph_ref_clk>; |
| 191 | reg = <0x80>; |
| 192 | |
| 193 | emac0_clk: emac0_clk { |
| 194 | #clock-cells = <0>; |
| 195 | compatible = "altr,socfpga-perip-clk"; |
| 196 | clocks = <&periph_pll>; |
| 197 | reg = <0x88>; |
| 198 | }; |
| 199 | |
| 200 | emac1_clk: emac1_clk { |
| 201 | #clock-cells = <0>; |
| 202 | compatible = "altr,socfpga-perip-clk"; |
| 203 | clocks = <&periph_pll>; |
| 204 | reg = <0x8C>; |
| 205 | }; |
| 206 | |
| 207 | per_qspi_clk: per_qsi_clk { |
| 208 | #clock-cells = <0>; |
| 209 | compatible = "altr,socfpga-perip-clk"; |
| 210 | clocks = <&periph_pll>; |
| 211 | reg = <0x90>; |
| 212 | }; |
| 213 | |
| 214 | per_nand_mmc_clk: per_nand_mmc_clk { |
| 215 | #clock-cells = <0>; |
| 216 | compatible = "altr,socfpga-perip-clk"; |
| 217 | clocks = <&periph_pll>; |
| 218 | reg = <0x94>; |
| 219 | }; |
| 220 | |
| 221 | per_base_clk: per_base_clk { |
| 222 | #clock-cells = <0>; |
| 223 | compatible = "altr,socfpga-perip-clk"; |
| 224 | clocks = <&periph_pll>; |
| 225 | reg = <0x98>; |
| 226 | }; |
| 227 | |
| 228 | h2f_usr1_clk: h2f_usr1_clk { |
| 229 | #clock-cells = <0>; |
| 230 | compatible = "altr,socfpga-perip-clk"; |
| 231 | clocks = <&periph_pll>; |
| 232 | reg = <0x9C>; |
| 233 | }; |
| 234 | }; |
| 235 | |
| 236 | sdram_pll: sdram_pll { |
| 237 | #address-cells = <1>; |
| 238 | #size-cells = <0>; |
| 239 | #clock-cells = <0>; |
| 240 | compatible = "altr,socfpga-pll-clock"; |
| 241 | clocks = <&osc1>, <&osc2>, <&f2s_sdram_ref_clk>; |
| 242 | reg = <0xC0>; |
| 243 | |
| 244 | ddr_dqs_clk: ddr_dqs_clk { |
| 245 | #clock-cells = <0>; |
| 246 | compatible = "altr,socfpga-perip-clk"; |
| 247 | clocks = <&sdram_pll>; |
| 248 | reg = <0xC8>; |
| 249 | }; |
| 250 | |
| 251 | ddr_2x_dqs_clk: ddr_2x_dqs_clk { |
| 252 | #clock-cells = <0>; |
| 253 | compatible = "altr,socfpga-perip-clk"; |
| 254 | clocks = <&sdram_pll>; |
| 255 | reg = <0xCC>; |
| 256 | }; |
| 257 | |
| 258 | ddr_dq_clk: ddr_dq_clk { |
| 259 | #clock-cells = <0>; |
| 260 | compatible = "altr,socfpga-perip-clk"; |
| 261 | clocks = <&sdram_pll>; |
| 262 | reg = <0xD0>; |
| 263 | }; |
| 264 | |
| 265 | h2f_usr2_clk: h2f_usr2_clk { |
| 266 | #clock-cells = <0>; |
| 267 | compatible = "altr,socfpga-perip-clk"; |
| 268 | clocks = <&sdram_pll>; |
| 269 | reg = <0xD4>; |
| 270 | }; |
| 271 | }; |
| 272 | |
| 273 | mpu_periph_clk: mpu_periph_clk { |
| 274 | #clock-cells = <0>; |
| 275 | compatible = "altr,socfpga-perip-clk"; |
| 276 | clocks = <&mpuclk>; |
| 277 | fixed-divider = <4>; |
| 278 | }; |
| 279 | |
| 280 | mpu_l2_ram_clk: mpu_l2_ram_clk { |
| 281 | #clock-cells = <0>; |
| 282 | compatible = "altr,socfpga-perip-clk"; |
| 283 | clocks = <&mpuclk>; |
| 284 | fixed-divider = <2>; |
| 285 | }; |
| 286 | |
| 287 | l4_main_clk: l4_main_clk { |
| 288 | #clock-cells = <0>; |
| 289 | compatible = "altr,socfpga-gate-clk"; |
| 290 | clocks = <&mainclk>; |
| 291 | clk-gate = <0x60 0>; |
| 292 | }; |
| 293 | |
| 294 | l3_main_clk: l3_main_clk { |
| 295 | #clock-cells = <0>; |
| 296 | compatible = "altr,socfpga-perip-clk"; |
| 297 | clocks = <&mainclk>; |
| 298 | fixed-divider = <1>; |
| 299 | }; |
| 300 | |
| 301 | l3_mp_clk: l3_mp_clk { |
| 302 | #clock-cells = <0>; |
| 303 | compatible = "altr,socfpga-gate-clk"; |
| 304 | clocks = <&mainclk>; |
| 305 | div-reg = <0x64 0 2>; |
| 306 | clk-gate = <0x60 1>; |
| 307 | }; |
| 308 | |
| 309 | l3_sp_clk: l3_sp_clk { |
| 310 | #clock-cells = <0>; |
| 311 | compatible = "altr,socfpga-gate-clk"; |
| 312 | clocks = <&mainclk>; |
| 313 | div-reg = <0x64 2 2>; |
| 314 | }; |
| 315 | |
| 316 | l4_mp_clk: l4_mp_clk { |
| 317 | #clock-cells = <0>; |
| 318 | compatible = "altr,socfpga-gate-clk"; |
| 319 | clocks = <&mainclk>, <&per_base_clk>; |
| 320 | div-reg = <0x64 4 3>; |
| 321 | clk-gate = <0x60 2>; |
| 322 | }; |
| 323 | |
| 324 | l4_sp_clk: l4_sp_clk { |
| 325 | #clock-cells = <0>; |
| 326 | compatible = "altr,socfpga-gate-clk"; |
| 327 | clocks = <&mainclk>, <&per_base_clk>; |
| 328 | div-reg = <0x64 7 3>; |
| 329 | clk-gate = <0x60 3>; |
| 330 | }; |
| 331 | |
| 332 | dbg_at_clk: dbg_at_clk { |
| 333 | #clock-cells = <0>; |
| 334 | compatible = "altr,socfpga-gate-clk"; |
| 335 | clocks = <&dbg_base_clk>; |
| 336 | div-reg = <0x68 0 2>; |
| 337 | clk-gate = <0x60 4>; |
| 338 | }; |
| 339 | |
| 340 | dbg_clk: dbg_clk { |
| 341 | #clock-cells = <0>; |
| 342 | compatible = "altr,socfpga-gate-clk"; |
| 343 | clocks = <&dbg_base_clk>; |
| 344 | div-reg = <0x68 2 2>; |
| 345 | clk-gate = <0x60 5>; |
| 346 | }; |
| 347 | |
| 348 | dbg_trace_clk: dbg_trace_clk { |
| 349 | #clock-cells = <0>; |
| 350 | compatible = "altr,socfpga-gate-clk"; |
| 351 | clocks = <&dbg_base_clk>; |
| 352 | div-reg = <0x6C 0 3>; |
| 353 | clk-gate = <0x60 6>; |
| 354 | }; |
| 355 | |
| 356 | dbg_timer_clk: dbg_timer_clk { |
| 357 | #clock-cells = <0>; |
| 358 | compatible = "altr,socfpga-gate-clk"; |
| 359 | clocks = <&dbg_base_clk>; |
| 360 | clk-gate = <0x60 7>; |
| 361 | }; |
| 362 | |
| 363 | cfg_clk: cfg_clk { |
| 364 | #clock-cells = <0>; |
| 365 | compatible = "altr,socfpga-gate-clk"; |
| 366 | clocks = <&cfg_h2f_usr0_clk>; |
| 367 | clk-gate = <0x60 8>; |
| 368 | }; |
| 369 | |
| 370 | h2f_user0_clk: h2f_user0_clk { |
| 371 | #clock-cells = <0>; |
| 372 | compatible = "altr,socfpga-gate-clk"; |
| 373 | clocks = <&cfg_h2f_usr0_clk>; |
| 374 | clk-gate = <0x60 9>; |
| 375 | }; |
| 376 | |
| 377 | emac_0_clk: emac_0_clk { |
| 378 | #clock-cells = <0>; |
| 379 | compatible = "altr,socfpga-gate-clk"; |
| 380 | clocks = <&emac0_clk>; |
| 381 | clk-gate = <0xa0 0>; |
| 382 | }; |
| 383 | |
| 384 | emac_1_clk: emac_1_clk { |
| 385 | #clock-cells = <0>; |
| 386 | compatible = "altr,socfpga-gate-clk"; |
| 387 | clocks = <&emac1_clk>; |
| 388 | clk-gate = <0xa0 1>; |
| 389 | }; |
| 390 | |
| 391 | usb_mp_clk: usb_mp_clk { |
| 392 | #clock-cells = <0>; |
| 393 | compatible = "altr,socfpga-gate-clk"; |
| 394 | clocks = <&per_base_clk>; |
| 395 | clk-gate = <0xa0 2>; |
| 396 | div-reg = <0xa4 0 3>; |
| 397 | }; |
| 398 | |
| 399 | spi_m_clk: spi_m_clk { |
| 400 | #clock-cells = <0>; |
| 401 | compatible = "altr,socfpga-gate-clk"; |
| 402 | clocks = <&per_base_clk>; |
| 403 | clk-gate = <0xa0 3>; |
| 404 | div-reg = <0xa4 3 3>; |
| 405 | }; |
| 406 | |
| 407 | can0_clk: can0_clk { |
| 408 | #clock-cells = <0>; |
| 409 | compatible = "altr,socfpga-gate-clk"; |
| 410 | clocks = <&per_base_clk>; |
| 411 | clk-gate = <0xa0 4>; |
| 412 | div-reg = <0xa4 6 3>; |
| 413 | }; |
| 414 | |
| 415 | can1_clk: can1_clk { |
| 416 | #clock-cells = <0>; |
| 417 | compatible = "altr,socfpga-gate-clk"; |
| 418 | clocks = <&per_base_clk>; |
| 419 | clk-gate = <0xa0 5>; |
| 420 | div-reg = <0xa4 9 3>; |
| 421 | }; |
| 422 | |
| 423 | gpio_db_clk: gpio_db_clk { |
| 424 | #clock-cells = <0>; |
| 425 | compatible = "altr,socfpga-gate-clk"; |
| 426 | clocks = <&per_base_clk>; |
| 427 | clk-gate = <0xa0 6>; |
| 428 | div-reg = <0xa8 0 24>; |
| 429 | }; |
| 430 | |
| 431 | h2f_user1_clk: h2f_user1_clk { |
| 432 | #clock-cells = <0>; |
| 433 | compatible = "altr,socfpga-gate-clk"; |
| 434 | clocks = <&h2f_usr1_clk>; |
| 435 | clk-gate = <0xa0 7>; |
| 436 | }; |
| 437 | |
| 438 | sdmmc_clk: sdmmc_clk { |
| 439 | #clock-cells = <0>; |
| 440 | compatible = "altr,socfpga-gate-clk"; |
| 441 | clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>; |
| 442 | clk-gate = <0xa0 8>; |
| 443 | clk-phase = <0 135>; |
| 444 | }; |
| 445 | |
| 446 | nand_x_clk: nand_x_clk { |
| 447 | #clock-cells = <0>; |
| 448 | compatible = "altr,socfpga-gate-clk"; |
| 449 | clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>; |
| 450 | clk-gate = <0xa0 9>; |
| 451 | }; |
| 452 | |
| 453 | nand_clk: nand_clk { |
| 454 | #clock-cells = <0>; |
| 455 | compatible = "altr,socfpga-gate-clk"; |
| 456 | clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>; |
| 457 | clk-gate = <0xa0 10>; |
| 458 | fixed-divider = <4>; |
| 459 | }; |
| 460 | |
| 461 | qspi_clk: qspi_clk { |
| 462 | #clock-cells = <0>; |
| 463 | compatible = "altr,socfpga-gate-clk"; |
| 464 | clocks = <&f2s_periph_ref_clk>, <&main_qspi_clk>, <&per_qspi_clk>; |
| 465 | clk-gate = <0xa0 11>; |
| 466 | }; |
| 467 | }; |
| 468 | }; |
| 469 | |
| 470 | gmac0: ethernet@ff700000 { |
| 471 | compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac"; |
| 472 | altr,sysmgr-syscon = <&sysmgr 0x60 0>; |
| 473 | reg = <0xff700000 0x2000>; |
| 474 | interrupts = <0 115 4>; |
| 475 | interrupt-names = "macirq"; |
| 476 | mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */ |
| 477 | clocks = <&emac0_clk>; |
| 478 | clock-names = "stmmaceth"; |
| 479 | resets = <&rst EMAC0_RESET>; |
| 480 | reset-names = "stmmaceth"; |
| 481 | snps,multicast-filter-bins = <256>; |
| 482 | snps,perfect-filter-entries = <128>; |
| 483 | status = "disabled"; |
| 484 | }; |
| 485 | |
| 486 | gmac1: ethernet@ff702000 { |
| 487 | compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac"; |
| 488 | altr,sysmgr-syscon = <&sysmgr 0x60 2>; |
| 489 | reg = <0xff702000 0x2000>; |
| 490 | interrupts = <0 120 4>; |
| 491 | interrupt-names = "macirq"; |
| 492 | mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */ |
| 493 | clocks = <&emac1_clk>; |
| 494 | clock-names = "stmmaceth"; |
| 495 | resets = <&rst EMAC1_RESET>; |
| 496 | reset-names = "stmmaceth"; |
| 497 | snps,multicast-filter-bins = <256>; |
| 498 | snps,perfect-filter-entries = <128>; |
| 499 | status = "disabled"; |
| 500 | }; |
| 501 | |
| 502 | i2c0: i2c@ffc04000 { |
| 503 | #address-cells = <1>; |
| 504 | #size-cells = <0>; |
| 505 | compatible = "snps,designware-i2c"; |
| 506 | reg = <0xffc04000 0x1000>; |
| 507 | clocks = <&l4_sp_clk>; |
| 508 | interrupts = <0 158 0x4>; |
| 509 | status = "disabled"; |
| 510 | }; |
| 511 | |
| 512 | i2c1: i2c@ffc05000 { |
| 513 | #address-cells = <1>; |
| 514 | #size-cells = <0>; |
| 515 | compatible = "snps,designware-i2c"; |
| 516 | reg = <0xffc05000 0x1000>; |
| 517 | clocks = <&l4_sp_clk>; |
| 518 | interrupts = <0 159 0x4>; |
| 519 | status = "disabled"; |
| 520 | }; |
| 521 | |
| 522 | i2c2: i2c@ffc06000 { |
| 523 | #address-cells = <1>; |
| 524 | #size-cells = <0>; |
| 525 | compatible = "snps,designware-i2c"; |
| 526 | reg = <0xffc06000 0x1000>; |
| 527 | clocks = <&l4_sp_clk>; |
| 528 | interrupts = <0 160 0x4>; |
| 529 | status = "disabled"; |
| 530 | }; |
| 531 | |
| 532 | i2c3: i2c@ffc07000 { |
| 533 | #address-cells = <1>; |
| 534 | #size-cells = <0>; |
| 535 | compatible = "snps,designware-i2c"; |
| 536 | reg = <0xffc07000 0x1000>; |
| 537 | clocks = <&l4_sp_clk>; |
| 538 | interrupts = <0 161 0x4>; |
| 539 | status = "disabled"; |
| 540 | }; |
| 541 | |
| 542 | gpio0: gpio@ff708000 { |
| 543 | #address-cells = <1>; |
| 544 | #size-cells = <0>; |
| 545 | compatible = "snps,dw-apb-gpio"; |
| 546 | reg = <0xff708000 0x1000>; |
| 547 | clocks = <&per_base_clk>; |
| 548 | status = "disabled"; |
| 549 | |
| 550 | porta: gpio-controller@0 { |
| 551 | compatible = "snps,dw-apb-gpio-port"; |
Marek Vasut | 660f53b | 2015-08-10 17:20:23 +0200 | [diff] [blame] | 552 | bank-name = "porta"; |
Stefan Roese | 51c580c | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 553 | gpio-controller; |
| 554 | #gpio-cells = <2>; |
| 555 | snps,nr-gpios = <29>; |
| 556 | reg = <0>; |
| 557 | interrupt-controller; |
| 558 | #interrupt-cells = <2>; |
| 559 | interrupts = <0 164 4>; |
| 560 | }; |
| 561 | }; |
| 562 | |
| 563 | gpio1: gpio@ff709000 { |
| 564 | #address-cells = <1>; |
| 565 | #size-cells = <0>; |
| 566 | compatible = "snps,dw-apb-gpio"; |
| 567 | reg = <0xff709000 0x1000>; |
| 568 | clocks = <&per_base_clk>; |
| 569 | status = "disabled"; |
| 570 | |
| 571 | portb: gpio-controller@0 { |
| 572 | compatible = "snps,dw-apb-gpio-port"; |
Marek Vasut | 660f53b | 2015-08-10 17:20:23 +0200 | [diff] [blame] | 573 | bank-name = "portb"; |
Stefan Roese | 51c580c | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 574 | gpio-controller; |
| 575 | #gpio-cells = <2>; |
| 576 | snps,nr-gpios = <29>; |
| 577 | reg = <0>; |
| 578 | interrupt-controller; |
| 579 | #interrupt-cells = <2>; |
| 580 | interrupts = <0 165 4>; |
| 581 | }; |
| 582 | }; |
| 583 | |
| 584 | gpio2: gpio@ff70a000 { |
| 585 | #address-cells = <1>; |
| 586 | #size-cells = <0>; |
| 587 | compatible = "snps,dw-apb-gpio"; |
| 588 | reg = <0xff70a000 0x1000>; |
| 589 | clocks = <&per_base_clk>; |
| 590 | status = "disabled"; |
| 591 | |
| 592 | portc: gpio-controller@0 { |
| 593 | compatible = "snps,dw-apb-gpio-port"; |
Marek Vasut | 660f53b | 2015-08-10 17:20:23 +0200 | [diff] [blame] | 594 | bank-name = "portc"; |
Stefan Roese | 51c580c | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 595 | gpio-controller; |
| 596 | #gpio-cells = <2>; |
| 597 | snps,nr-gpios = <27>; |
| 598 | reg = <0>; |
| 599 | interrupt-controller; |
| 600 | #interrupt-cells = <2>; |
| 601 | interrupts = <0 166 4>; |
| 602 | }; |
| 603 | }; |
| 604 | |
| 605 | sdr: sdr@ffc25000 { |
| 606 | compatible = "syscon"; |
| 607 | reg = <0xffc25000 0x1000>; |
| 608 | }; |
| 609 | |
| 610 | sdramedac { |
| 611 | compatible = "altr,sdram-edac"; |
| 612 | altr,sdr-syscon = <&sdr>; |
| 613 | interrupts = <0 39 4>; |
| 614 | }; |
| 615 | |
| 616 | L2: l2-cache@fffef000 { |
| 617 | compatible = "arm,pl310-cache"; |
| 618 | reg = <0xfffef000 0x1000>; |
| 619 | interrupts = <0 38 0x04>; |
| 620 | cache-unified; |
| 621 | cache-level = <2>; |
| 622 | arm,tag-latency = <1 1 1>; |
| 623 | arm,data-latency = <2 1 1>; |
| 624 | }; |
| 625 | |
Marek Vasut | afe1399 | 2015-08-02 22:55:24 +0200 | [diff] [blame] | 626 | mmc0: dwmmc0@ff704000 { |
Stefan Roese | 51c580c | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 627 | compatible = "altr,socfpga-dw-mshc"; |
| 628 | reg = <0xff704000 0x1000>; |
| 629 | interrupts = <0 139 4>; |
| 630 | fifo-depth = <0x400>; |
| 631 | #address-cells = <1>; |
| 632 | #size-cells = <0>; |
| 633 | clocks = <&l4_mp_clk>, <&sdmmc_clk>; |
| 634 | clock-names = "biu", "ciu"; |
| 635 | }; |
| 636 | |
Stefan Roese | 881f6a4 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 637 | qspi: spi@ff705000 { |
| 638 | compatible = "cadence,qspi"; |
| 639 | #address-cells = <1>; |
| 640 | #size-cells = <0>; |
| 641 | reg = <0xff705000 0x1000>, |
| 642 | <0xffa00000 0x1000>; |
| 643 | interrupts = <0 151 4>; |
| 644 | clocks = <&qspi_clk>; |
| 645 | ext-decoder = <0>; /* external decoder */ |
Marek Vasut | 653cda8 | 2014-12-31 20:14:56 +0100 | [diff] [blame] | 646 | num-cs = <4>; |
Stefan Roese | 881f6a4 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 647 | fifo-depth = <128>; |
Vikas Manocha | 90a2f71 | 2015-07-02 18:29:44 -0700 | [diff] [blame] | 648 | sram-size = <128>; |
Stefan Roese | 881f6a4 | 2014-11-07 12:37:50 +0100 | [diff] [blame] | 649 | bus-num = <2>; |
| 650 | status = "disabled"; |
| 651 | }; |
| 652 | |
Stefan Roese | ae79e2d | 2014-11-07 13:50:32 +0100 | [diff] [blame] | 653 | spi0: spi@fff00000 { |
Marek Vasut | 7411486 | 2014-12-31 20:14:55 +0100 | [diff] [blame] | 654 | compatible = "snps,dw-apb-ssi"; |
Stefan Roese | ae79e2d | 2014-11-07 13:50:32 +0100 | [diff] [blame] | 655 | #address-cells = <1>; |
| 656 | #size-cells = <0>; |
| 657 | reg = <0xfff00000 0x1000>; |
| 658 | interrupts = <0 154 4>; |
Marek Vasut | 653cda8 | 2014-12-31 20:14:56 +0100 | [diff] [blame] | 659 | num-cs = <4>; |
Stefan Roese | ae79e2d | 2014-11-07 13:50:32 +0100 | [diff] [blame] | 660 | bus-num = <0>; |
| 661 | tx-dma-channel = <&pdma 16>; |
| 662 | rx-dma-channel = <&pdma 17>; |
| 663 | clocks = <&per_base_clk>; |
| 664 | status = "disabled"; |
| 665 | }; |
| 666 | |
| 667 | spi1: spi@fff01000 { |
Marek Vasut | 7411486 | 2014-12-31 20:14:55 +0100 | [diff] [blame] | 668 | compatible = "snps,dw-apb-ssi"; |
Stefan Roese | ae79e2d | 2014-11-07 13:50:32 +0100 | [diff] [blame] | 669 | #address-cells = <1>; |
| 670 | #size-cells = <0>; |
| 671 | reg = <0xfff01000 0x1000>; |
| 672 | interrupts = <0 156 4>; |
Marek Vasut | 653cda8 | 2014-12-31 20:14:56 +0100 | [diff] [blame] | 673 | num-cs = <4>; |
Stefan Roese | ae79e2d | 2014-11-07 13:50:32 +0100 | [diff] [blame] | 674 | bus-num = <1>; |
| 675 | tx-dma-channel = <&pdma 20>; |
| 676 | rx-dma-channel = <&pdma 21>; |
| 677 | clocks = <&per_base_clk>; |
| 678 | status = "disabled"; |
| 679 | }; |
| 680 | |
Stefan Roese | 51c580c | 2014-11-07 14:10:41 +0100 | [diff] [blame] | 681 | /* Local timer */ |
| 682 | timer@fffec600 { |
| 683 | compatible = "arm,cortex-a9-twd-timer"; |
| 684 | reg = <0xfffec600 0x100>; |
| 685 | interrupts = <1 13 0xf04>; |
| 686 | clocks = <&mpu_periph_clk>; |
| 687 | }; |
| 688 | |
| 689 | timer0: timer0@ffc08000 { |
| 690 | compatible = "snps,dw-apb-timer"; |
| 691 | interrupts = <0 167 4>; |
| 692 | reg = <0xffc08000 0x1000>; |
| 693 | clocks = <&l4_sp_clk>; |
| 694 | clock-names = "timer"; |
| 695 | }; |
| 696 | |
| 697 | timer1: timer1@ffc09000 { |
| 698 | compatible = "snps,dw-apb-timer"; |
| 699 | interrupts = <0 168 4>; |
| 700 | reg = <0xffc09000 0x1000>; |
| 701 | clocks = <&l4_sp_clk>; |
| 702 | clock-names = "timer"; |
| 703 | }; |
| 704 | |
| 705 | timer2: timer2@ffd00000 { |
| 706 | compatible = "snps,dw-apb-timer"; |
| 707 | interrupts = <0 169 4>; |
| 708 | reg = <0xffd00000 0x1000>; |
| 709 | clocks = <&osc1>; |
| 710 | clock-names = "timer"; |
| 711 | }; |
| 712 | |
| 713 | timer3: timer3@ffd01000 { |
| 714 | compatible = "snps,dw-apb-timer"; |
| 715 | interrupts = <0 170 4>; |
| 716 | reg = <0xffd01000 0x1000>; |
| 717 | clocks = <&osc1>; |
| 718 | clock-names = "timer"; |
| 719 | }; |
| 720 | |
| 721 | uart0: serial0@ffc02000 { |
| 722 | compatible = "snps,dw-apb-uart"; |
| 723 | reg = <0xffc02000 0x1000>; |
| 724 | interrupts = <0 162 4>; |
| 725 | reg-shift = <2>; |
| 726 | reg-io-width = <4>; |
| 727 | clocks = <&l4_sp_clk>; |
| 728 | }; |
| 729 | |
| 730 | uart1: serial1@ffc03000 { |
| 731 | compatible = "snps,dw-apb-uart"; |
| 732 | reg = <0xffc03000 0x1000>; |
| 733 | interrupts = <0 163 4>; |
| 734 | reg-shift = <2>; |
| 735 | reg-io-width = <4>; |
| 736 | clocks = <&l4_sp_clk>; |
| 737 | }; |
| 738 | |
| 739 | rst: rstmgr@ffd05000 { |
| 740 | #reset-cells = <1>; |
| 741 | compatible = "altr,rst-mgr"; |
| 742 | reg = <0xffd05000 0x1000>; |
| 743 | }; |
| 744 | |
| 745 | usbphy0: usbphy@0 { |
| 746 | #phy-cells = <0>; |
| 747 | compatible = "usb-nop-xceiv"; |
| 748 | status = "okay"; |
| 749 | }; |
| 750 | |
| 751 | usb0: usb@ffb00000 { |
| 752 | compatible = "snps,dwc2"; |
| 753 | reg = <0xffb00000 0xffff>; |
| 754 | interrupts = <0 125 4>; |
| 755 | clocks = <&usb_mp_clk>; |
| 756 | clock-names = "otg"; |
| 757 | phys = <&usbphy0>; |
| 758 | phy-names = "usb2-phy"; |
| 759 | status = "disabled"; |
| 760 | }; |
| 761 | |
| 762 | usb1: usb@ffb40000 { |
| 763 | compatible = "snps,dwc2"; |
| 764 | reg = <0xffb40000 0xffff>; |
| 765 | interrupts = <0 128 4>; |
| 766 | clocks = <&usb_mp_clk>; |
| 767 | clock-names = "otg"; |
| 768 | phys = <&usbphy0>; |
| 769 | phy-names = "usb2-phy"; |
| 770 | status = "disabled"; |
| 771 | }; |
| 772 | |
| 773 | watchdog0: watchdog@ffd02000 { |
| 774 | compatible = "snps,dw-wdt"; |
| 775 | reg = <0xffd02000 0x1000>; |
| 776 | interrupts = <0 171 4>; |
| 777 | clocks = <&osc1>; |
| 778 | status = "disabled"; |
| 779 | }; |
| 780 | |
| 781 | watchdog1: watchdog@ffd03000 { |
| 782 | compatible = "snps,dw-wdt"; |
| 783 | reg = <0xffd03000 0x1000>; |
| 784 | interrupts = <0 172 4>; |
| 785 | clocks = <&osc1>; |
| 786 | status = "disabled"; |
| 787 | }; |
| 788 | |
| 789 | sysmgr: sysmgr@ffd08000 { |
| 790 | compatible = "altr,sys-mgr", "syscon"; |
| 791 | reg = <0xffd08000 0x4000>; |
| 792 | }; |
| 793 | }; |
| 794 | }; |