1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (C) 2016 Marvell Technology Group Ltd. 4 * 5 * Device Tree file for Marvell Armada CP110. 6 */ 7 8#include <dt-bindings/interrupt-controller/mvebu-icu.h> 9 10#include "armada-common.dtsi" 11 12#define CP110_PCIEx_IO_BASE(iface) (CP110_PCIE_IO_BASE + (iface * 0x10000)) 13#define CP110_PCIEx_MEM_BASE(iface) (CP110_PCIE_MEM_BASE + (iface * 0x1000000)) 14#define CP110_PCIEx_CONF_BASE(iface) (CP110_PCIEx_MEM_BASE(iface) + 0xf00000) 15 16/ { 17 /* 18 * The contents of the node are defined below, in order to 19 * save one indentation level 20 */ 21 CP110_NAME: CP110_NAME { }; 22}; 23 24&CP110_NAME { 25 #address-cells = <2>; 26 #size-cells = <2>; 27 compatible = "simple-bus"; 28 interrupt-parent = <&CP110_LABEL(icu)>; 29 ranges; 30 31 config-space@CP110_BASE { 32 #address-cells = <1>; 33 #size-cells = <1>; 34 compatible = "simple-bus"; 35 ranges = <0x0 0x0 ADDRESSIFY(CP110_BASE) 0x2000000>; 36 37 CP110_LABEL(ethernet): ethernet@0 { 38 compatible = "marvell,armada-7k-pp22"; 39 reg = <0x0 0x100000>, <0x129000 0xb000>; 40 clocks = <&CP110_LABEL(clk) 1 3>, <&CP110_LABEL(clk) 1 9>, 41 <&CP110_LABEL(clk) 1 5>, <&CP110_LABEL(clk) 1 18>; 42 clock-names = "pp_clk", "gop_clk", 43 "mg_clk", "axi_clk"; 44 marvell,system-controller = <&CP110_LABEL(syscon0)>; 45 status = "disabled"; 46 dma-coherent; 47 48 CP110_LABEL(eth0): eth0 { 49 interrupts = <ICU_GRP_NSR 39 IRQ_TYPE_LEVEL_HIGH>, 50 <ICU_GRP_NSR 43 IRQ_TYPE_LEVEL_HIGH>, 51 <ICU_GRP_NSR 47 IRQ_TYPE_LEVEL_HIGH>, 52 <ICU_GRP_NSR 51 IRQ_TYPE_LEVEL_HIGH>, 53 <ICU_GRP_NSR 55 IRQ_TYPE_LEVEL_HIGH>, 54 <ICU_GRP_NSR 129 IRQ_TYPE_LEVEL_HIGH>; 55 interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2", 56 "tx-cpu3", "rx-shared", "link"; 57 port-id = <0>; 58 gop-port-id = <0>; 59 status = "disabled"; 60 }; 61 62 CP110_LABEL(eth1): eth1 { 63 interrupts = <ICU_GRP_NSR 40 IRQ_TYPE_LEVEL_HIGH>, 64 <ICU_GRP_NSR 44 IRQ_TYPE_LEVEL_HIGH>, 65 <ICU_GRP_NSR 48 IRQ_TYPE_LEVEL_HIGH>, 66 <ICU_GRP_NSR 52 IRQ_TYPE_LEVEL_HIGH>, 67 <ICU_GRP_NSR 56 IRQ_TYPE_LEVEL_HIGH>, 68 <ICU_GRP_NSR 128 IRQ_TYPE_LEVEL_HIGH>; 69 interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2", 70 "tx-cpu3", "rx-shared", "link"; 71 port-id = <1>; 72 gop-port-id = <2>; 73 status = "disabled"; 74 }; 75 76 CP110_LABEL(eth2): eth2 { 77 interrupts = <ICU_GRP_NSR 41 IRQ_TYPE_LEVEL_HIGH>, 78 <ICU_GRP_NSR 45 IRQ_TYPE_LEVEL_HIGH>, 79 <ICU_GRP_NSR 49 IRQ_TYPE_LEVEL_HIGH>, 80 <ICU_GRP_NSR 53 IRQ_TYPE_LEVEL_HIGH>, 81 <ICU_GRP_NSR 57 IRQ_TYPE_LEVEL_HIGH>, 82 <ICU_GRP_NSR 127 IRQ_TYPE_LEVEL_HIGH>; 83 interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2", 84 "tx-cpu3", "rx-shared", "link"; 85 port-id = <2>; 86 gop-port-id = <3>; 87 status = "disabled"; 88 }; 89 }; 90 91 CP110_LABEL(comphy): phy@120000 { 92 compatible = "marvell,comphy-cp110"; 93 reg = <0x120000 0x6000>; 94 marvell,system-controller = <&CP110_LABEL(syscon0)>; 95 #address-cells = <1>; 96 #size-cells = <0>; 97 98 CP110_LABEL(comphy0): phy@0 { 99 reg = <0>; 100 #phy-cells = <1>; 101 }; 102 103 CP110_LABEL(comphy1): phy@1 { 104 reg = <1>; 105 #phy-cells = <1>; 106 }; 107 108 CP110_LABEL(comphy2): phy@2 { 109 reg = <2>; 110 #phy-cells = <1>; 111 }; 112 113 CP110_LABEL(comphy3): phy@3 { 114 reg = <3>; 115 #phy-cells = <1>; 116 }; 117 118 CP110_LABEL(comphy4): phy@4 { 119 reg = <4>; 120 #phy-cells = <1>; 121 }; 122 123 CP110_LABEL(comphy5): phy@5 { 124 reg = <5>; 125 #phy-cells = <1>; 126 }; 127 }; 128 129 CP110_LABEL(mdio): mdio@12a200 { 130 #address-cells = <1>; 131 #size-cells = <0>; 132 compatible = "marvell,orion-mdio"; 133 reg = <0x12a200 0x10>; 134 clocks = <&CP110_LABEL(clk) 1 9>, <&CP110_LABEL(clk) 1 5>, 135 <&CP110_LABEL(clk) 1 6>, <&CP110_LABEL(clk) 1 18>; 136 status = "disabled"; 137 }; 138 139 CP110_LABEL(xmdio): mdio@12a600 { 140 #address-cells = <1>; 141 #size-cells = <0>; 142 compatible = "marvell,xmdio"; 143 reg = <0x12a600 0x10>; 144 status = "disabled"; 145 }; 146 147 CP110_LABEL(icu): interrupt-controller@1e0000 { 148 compatible = "marvell,cp110-icu"; 149 reg = <0x1e0000 0x10>; 150 #interrupt-cells = <3>; 151 interrupt-controller; 152 msi-parent = <&gicp>; 153 }; 154 155 CP110_LABEL(rtc): rtc@284000 { 156 compatible = "marvell,armada-8k-rtc"; 157 reg = <0x284000 0x20>, <0x284080 0x24>; 158 reg-names = "rtc", "rtc-soc"; 159 interrupts = <ICU_GRP_NSR 77 IRQ_TYPE_LEVEL_HIGH>; 160 }; 161 162 CP110_LABEL(thermal): thermal@400078 { 163 compatible = "marvell,armada-cp110-thermal"; 164 reg = <0x400078 0x4>, 165 <0x400070 0x8>; 166 }; 167 168 CP110_LABEL(syscon0): system-controller@440000 { 169 compatible = "syscon", "simple-mfd"; 170 reg = <0x440000 0x2000>; 171 172 CP110_LABEL(clk): clock { 173 compatible = "marvell,cp110-clock"; 174 #clock-cells = <2>; 175 }; 176 177 CP110_LABEL(gpio1): gpio@100 { 178 compatible = "marvell,armada-8k-gpio"; 179 offset = <0x100>; 180 ngpios = <32>; 181 gpio-controller; 182 #gpio-cells = <2>; 183 gpio-ranges = <&CP110_LABEL(pinctrl) 0 0 32>; 184 interrupt-controller; 185 interrupts = <ICU_GRP_NSR 86 IRQ_TYPE_LEVEL_HIGH>, 186 <ICU_GRP_NSR 85 IRQ_TYPE_LEVEL_HIGH>, 187 <ICU_GRP_NSR 84 IRQ_TYPE_LEVEL_HIGH>, 188 <ICU_GRP_NSR 83 IRQ_TYPE_LEVEL_HIGH>; 189 status = "disabled"; 190 }; 191 192 CP110_LABEL(gpio2): gpio@140 { 193 compatible = "marvell,armada-8k-gpio"; 194 offset = <0x140>; 195 ngpios = <31>; 196 gpio-controller; 197 #gpio-cells = <2>; 198 gpio-ranges = <&CP110_LABEL(pinctrl) 0 32 31>; 199 interrupt-controller; 200 interrupts = <ICU_GRP_NSR 82 IRQ_TYPE_LEVEL_HIGH>, 201 <ICU_GRP_NSR 81 IRQ_TYPE_LEVEL_HIGH>, 202 <ICU_GRP_NSR 80 IRQ_TYPE_LEVEL_HIGH>, 203 <ICU_GRP_NSR 79 IRQ_TYPE_LEVEL_HIGH>; 204 status = "disabled"; 205 }; 206 }; 207 208 CP110_LABEL(usb3_0): usb3@500000 { 209 compatible = "marvell,armada-8k-xhci", 210 "generic-xhci"; 211 reg = <0x500000 0x4000>; 212 dma-coherent; 213 interrupts = <ICU_GRP_NSR 106 IRQ_TYPE_LEVEL_HIGH>; 214 clocks = <&CP110_LABEL(clk) 1 22>; 215 status = "disabled"; 216 }; 217 218 CP110_LABEL(usb3_1): usb3@510000 { 219 compatible = "marvell,armada-8k-xhci", 220 "generic-xhci"; 221 reg = <0x510000 0x4000>; 222 dma-coherent; 223 interrupts = <ICU_GRP_NSR 105 IRQ_TYPE_LEVEL_HIGH>; 224 clocks = <&CP110_LABEL(clk) 1 23>; 225 status = "disabled"; 226 }; 227 228 CP110_LABEL(sata0): sata@540000 { 229 compatible = "marvell,armada-8k-ahci", 230 "generic-ahci"; 231 reg = <0x540000 0x30000>; 232 interrupts = <ICU_GRP_NSR 107 IRQ_TYPE_LEVEL_HIGH>; 233 clocks = <&CP110_LABEL(clk) 1 15>; 234 status = "disabled"; 235 }; 236 237 CP110_LABEL(xor0): xor@6a0000 { 238 compatible = "marvell,armada-7k-xor", "marvell,xor-v2"; 239 reg = <0x6a0000 0x1000>, <0x6b0000 0x1000>; 240 dma-coherent; 241 msi-parent = <&gic_v2m0>; 242 clocks = <&CP110_LABEL(clk) 1 8>; 243 }; 244 245 CP110_LABEL(xor1): xor@6c0000 { 246 compatible = "marvell,armada-7k-xor", "marvell,xor-v2"; 247 reg = <0x6c0000 0x1000>, <0x6d0000 0x1000>; 248 dma-coherent; 249 msi-parent = <&gic_v2m0>; 250 clocks = <&CP110_LABEL(clk) 1 7>; 251 }; 252 253 CP110_LABEL(spi0): spi@700600 { 254 compatible = "marvell,armada-380-spi"; 255 reg = <0x700600 0x50>; 256 #address-cells = <0x1>; 257 #size-cells = <0x0>; 258 clock-names = "core", "axi"; 259 clocks = <&CP110_LABEL(clk) 1 21>, 260 <&CP110_LABEL(clk) 1 17>; 261 status = "disabled"; 262 }; 263 264 CP110_LABEL(spi1): spi@700680 { 265 compatible = "marvell,armada-380-spi"; 266 reg = <0x700680 0x50>; 267 #address-cells = <1>; 268 #size-cells = <0>; 269 clock-names = "core", "axi"; 270 clocks = <&CP110_LABEL(clk) 1 21>, 271 <&CP110_LABEL(clk) 1 17>; 272 status = "disabled"; 273 }; 274 275 CP110_LABEL(i2c0): i2c@701000 { 276 compatible = "marvell,mv78230-i2c"; 277 reg = <0x701000 0x20>; 278 #address-cells = <1>; 279 #size-cells = <0>; 280 interrupts = <ICU_GRP_NSR 120 IRQ_TYPE_LEVEL_HIGH>; 281 clock-names = "core", "reg"; 282 clocks = <&CP110_LABEL(clk) 1 21>, 283 <&CP110_LABEL(clk) 1 17>; 284 status = "disabled"; 285 }; 286 287 CP110_LABEL(i2c1): i2c@701100 { 288 compatible = "marvell,mv78230-i2c"; 289 reg = <0x701100 0x20>; 290 #address-cells = <1>; 291 #size-cells = <0>; 292 interrupts = <ICU_GRP_NSR 121 IRQ_TYPE_LEVEL_HIGH>; 293 clock-names = "core", "reg"; 294 clocks = <&CP110_LABEL(clk) 1 21>, 295 <&CP110_LABEL(clk) 1 17>; 296 status = "disabled"; 297 }; 298 299 CP110_LABEL(uart0): serial@702000 { 300 compatible = "snps,dw-apb-uart"; 301 reg = <0x702000 0x100>; 302 reg-shift = <2>; 303 interrupts = <ICU_GRP_NSR 122 IRQ_TYPE_LEVEL_HIGH>; 304 reg-io-width = <1>; 305 clocks = <&CP110_LABEL(clk) 1 21>; 306 status = "disabled"; 307 }; 308 309 CP110_LABEL(uart1): serial@702100 { 310 compatible = "snps,dw-apb-uart"; 311 reg = <0x702100 0x100>; 312 reg-shift = <2>; 313 interrupts = <ICU_GRP_NSR 123 IRQ_TYPE_LEVEL_HIGH>; 314 reg-io-width = <1>; 315 clocks = <&CP110_LABEL(clk) 1 21>; 316 status = "disabled"; 317 }; 318 319 CP110_LABEL(uart2): serial@702200 { 320 compatible = "snps,dw-apb-uart"; 321 reg = <0x702200 0x100>; 322 reg-shift = <2>; 323 interrupts = <ICU_GRP_NSR 124 IRQ_TYPE_LEVEL_HIGH>; 324 reg-io-width = <1>; 325 clocks = <&CP110_LABEL(clk) 1 21>; 326 status = "disabled"; 327 }; 328 329 CP110_LABEL(uart3): serial@702300 { 330 compatible = "snps,dw-apb-uart"; 331 reg = <0x702300 0x100>; 332 reg-shift = <2>; 333 interrupts = <ICU_GRP_NSR 125 IRQ_TYPE_LEVEL_HIGH>; 334 reg-io-width = <1>; 335 clocks = <&CP110_LABEL(clk) 1 21>; 336 status = "disabled"; 337 }; 338 339 CP110_LABEL(nand): nand@720000 { 340 /* 341 * Due to the limitation of the pins available 342 * this controller is only usable on the CPM 343 * for A7K and on the CPS for A8K. 344 */ 345 compatible = "marvell,armada-8k-nand", 346 "marvell,armada370-nand"; 347 reg = <0x720000 0x54>; 348 #address-cells = <1>; 349 #size-cells = <1>; 350 interrupts = <ICU_GRP_NSR 115 IRQ_TYPE_LEVEL_HIGH>; 351 clocks = <&CP110_LABEL(clk) 1 2>; 352 marvell,system-controller = <&CP110_LABEL(syscon0)>; 353 status = "disabled"; 354 }; 355 356 CP110_LABEL(trng): trng@760000 { 357 compatible = "marvell,armada-8k-rng", 358 "inside-secure,safexcel-eip76"; 359 reg = <0x760000 0x7d>; 360 interrupts = <ICU_GRP_NSR 95 IRQ_TYPE_LEVEL_HIGH>; 361 clocks = <&CP110_LABEL(clk) 1 25>; 362 status = "okay"; 363 }; 364 365 CP110_LABEL(sdhci0): sdhci@780000 { 366 compatible = "marvell,armada-cp110-sdhci"; 367 reg = <0x780000 0x300>; 368 interrupts = <ICU_GRP_NSR 27 IRQ_TYPE_LEVEL_HIGH>; 369 clock-names = "core", "axi"; 370 clocks = <&CP110_LABEL(clk) 1 4>, <&CP110_LABEL(clk) 1 18>; 371 dma-coherent; 372 status = "disabled"; 373 }; 374 375 CP110_LABEL(crypto): crypto@800000 { 376 compatible = "inside-secure,safexcel-eip197"; 377 reg = <0x800000 0x200000>; 378 interrupts = <ICU_GRP_NSR 87 IRQ_TYPE_LEVEL_HIGH>, 379 <ICU_GRP_NSR 88 IRQ_TYPE_LEVEL_HIGH>, 380 <ICU_GRP_NSR 89 IRQ_TYPE_LEVEL_HIGH>, 381 <ICU_GRP_NSR 90 IRQ_TYPE_LEVEL_HIGH>, 382 <ICU_GRP_NSR 91 IRQ_TYPE_LEVEL_HIGH>, 383 <ICU_GRP_NSR 92 IRQ_TYPE_LEVEL_HIGH>; 384 interrupt-names = "mem", "ring0", "ring1", 385 "ring2", "ring3", "eip"; 386 clocks = <&CP110_LABEL(clk) 1 26>; 387 dma-coherent; 388 }; 389 }; 390 391 CP110_LABEL(pcie0): pcie@CP110_PCIE0_BASE { 392 compatible = "marvell,armada8k-pcie", "snps,dw-pcie"; 393 reg = <0 ADDRESSIFY(CP110_PCIE0_BASE) 0 0x10000>, 394 <0 CP110_PCIEx_CONF_BASE(0) 0 0x80000>; 395 reg-names = "ctrl", "config"; 396 #address-cells = <3>; 397 #size-cells = <2>; 398 #interrupt-cells = <1>; 399 device_type = "pci"; 400 dma-coherent; 401 msi-parent = <&gic_v2m0>; 402 403 bus-range = <0 0xff>; 404 ranges = 405 /* downstream I/O */ 406 <0x81000000 0 CP110_PCIEx_IO_BASE(0) 0 CP110_PCIEx_IO_BASE(0) 0 0x10000 407 /* non-prefetchable memory */ 408 0x82000000 0 CP110_PCIEx_MEM_BASE(0) 0 CP110_PCIEx_MEM_BASE(0) 0 0xf00000>; 409 interrupt-map-mask = <0 0 0 0>; 410 interrupt-map = <0 0 0 0 &CP110_LABEL(icu) ICU_GRP_NSR 22 IRQ_TYPE_LEVEL_HIGH>; 411 interrupts = <ICU_GRP_NSR 22 IRQ_TYPE_LEVEL_HIGH>; 412 num-lanes = <1>; 413 clocks = <&CP110_LABEL(clk) 1 13>; 414 status = "disabled"; 415 }; 416 417 CP110_LABEL(pcie1): pcie@CP110_PCIE1_BASE { 418 compatible = "marvell,armada8k-pcie", "snps,dw-pcie"; 419 reg = <0 ADDRESSIFY(CP110_PCIE1_BASE) 0 0x10000>, 420 <0 CP110_PCIEx_CONF_BASE(1) 0 0x80000>; 421 reg-names = "ctrl", "config"; 422 #address-cells = <3>; 423 #size-cells = <2>; 424 #interrupt-cells = <1>; 425 device_type = "pci"; 426 dma-coherent; 427 msi-parent = <&gic_v2m0>; 428 429 bus-range = <0 0xff>; 430 ranges = 431 /* downstream I/O */ 432 <0x81000000 0 CP110_PCIEx_IO_BASE(1) 0 CP110_PCIEx_IO_BASE(1) 0 0x10000 433 /* non-prefetchable memory */ 434 0x82000000 0 CP110_PCIEx_MEM_BASE(1) 0 CP110_PCIEx_MEM_BASE(1) 0 0xf00000>; 435 interrupt-map-mask = <0 0 0 0>; 436 interrupt-map = <0 0 0 0 &CP110_LABEL(icu) ICU_GRP_NSR 24 IRQ_TYPE_LEVEL_HIGH>; 437 interrupts = <ICU_GRP_NSR 24 IRQ_TYPE_LEVEL_HIGH>; 438 439 num-lanes = <1>; 440 clocks = <&CP110_LABEL(clk) 1 11>; 441 status = "disabled"; 442 }; 443 444 CP110_LABEL(pcie2): pcie@CP110_PCIE2_BASE { 445 compatible = "marvell,armada8k-pcie", "snps,dw-pcie"; 446 reg = <0 ADDRESSIFY(CP110_PCIE2_BASE) 0 0x10000>, 447 <0 CP110_PCIEx_CONF_BASE(2) 0 0x80000>; 448 reg-names = "ctrl", "config"; 449 #address-cells = <3>; 450 #size-cells = <2>; 451 #interrupt-cells = <1>; 452 device_type = "pci"; 453 dma-coherent; 454 msi-parent = <&gic_v2m0>; 455 456 bus-range = <0 0xff>; 457 ranges = 458 /* downstream I/O */ 459 <0x81000000 0 CP110_PCIEx_IO_BASE(2) 0 CP110_PCIEx_IO_BASE(2) 0 0x10000 460 /* non-prefetchable memory */ 461 0x82000000 0 CP110_PCIEx_MEM_BASE(2) 0 CP110_PCIEx_MEM_BASE(2) 0 0xf00000>; 462 interrupt-map-mask = <0 0 0 0>; 463 interrupt-map = <0 0 0 0 &CP110_LABEL(icu) ICU_GRP_NSR 23 IRQ_TYPE_LEVEL_HIGH>; 464 interrupts = <ICU_GRP_NSR 23 IRQ_TYPE_LEVEL_HIGH>; 465 466 num-lanes = <1>; 467 clocks = <&CP110_LABEL(clk) 1 12>; 468 status = "disabled"; 469 }; 470}; 471