Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Include file for Marvell Armada 38x family of SoCs. |
| 4 | * |
| 5 | * Copyright (C) 2014 Marvell |
| 6 | * |
| 7 | * Lior Amsalem <alior@marvell.com> |
| 8 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 9 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #include "skeleton.dtsi" |
| 13 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 14 | #include <dt-bindings/interrupt-controller/irq.h> |
| 15 | |
| 16 | #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16)) |
| 17 | |
| 18 | / { |
| 19 | model = "Marvell Armada 38x family SoC"; |
| 20 | compatible = "marvell,armada380"; |
| 21 | |
| 22 | aliases { |
| 23 | gpio0 = &gpio0; |
| 24 | gpio1 = &gpio1; |
| 25 | serial0 = &uart0; |
| 26 | serial1 = &uart1; |
| 27 | }; |
| 28 | |
| 29 | pmu { |
| 30 | compatible = "arm,cortex-a9-pmu"; |
| 31 | interrupts-extended = <&mpic 3>; |
| 32 | }; |
| 33 | |
| 34 | soc { |
| 35 | compatible = "marvell,armada380-mbus", "simple-bus"; |
Stefan Roese | 49e7d77 | 2015-11-20 13:51:57 +0100 | [diff] [blame] | 36 | u-boot,dm-pre-reloc; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 37 | #address-cells = <2>; |
| 38 | #size-cells = <1>; |
| 39 | controller = <&mbusc>; |
| 40 | interrupt-parent = <&gic>; |
| 41 | pcie-mem-aperture = <0xe0000000 0x8000000>; |
| 42 | pcie-io-aperture = <0xe8000000 0x100000>; |
| 43 | |
| 44 | bootrom { |
| 45 | compatible = "marvell,bootrom"; |
| 46 | reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>; |
| 47 | }; |
| 48 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 49 | devbus_bootcs: devbus-bootcs { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 50 | compatible = "marvell,mvebu-devbus"; |
| 51 | reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>; |
| 52 | ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>; |
| 53 | #address-cells = <1>; |
| 54 | #size-cells = <1>; |
| 55 | clocks = <&coreclk 0>; |
| 56 | status = "disabled"; |
| 57 | }; |
| 58 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 59 | devbus_cs0: devbus-cs0 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 60 | compatible = "marvell,mvebu-devbus"; |
| 61 | reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>; |
| 62 | ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>; |
| 63 | #address-cells = <1>; |
| 64 | #size-cells = <1>; |
| 65 | clocks = <&coreclk 0>; |
| 66 | status = "disabled"; |
| 67 | }; |
| 68 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 69 | devbus_cs1: devbus-cs1 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 70 | compatible = "marvell,mvebu-devbus"; |
| 71 | reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>; |
| 72 | ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>; |
| 73 | #address-cells = <1>; |
| 74 | #size-cells = <1>; |
| 75 | clocks = <&coreclk 0>; |
| 76 | status = "disabled"; |
| 77 | }; |
| 78 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 79 | devbus_cs2: devbus-cs2 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 80 | compatible = "marvell,mvebu-devbus"; |
| 81 | reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>; |
| 82 | ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>; |
| 83 | #address-cells = <1>; |
| 84 | #size-cells = <1>; |
| 85 | clocks = <&coreclk 0>; |
| 86 | status = "disabled"; |
| 87 | }; |
| 88 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 89 | devbus_cs3: devbus-cs3 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 90 | compatible = "marvell,mvebu-devbus"; |
| 91 | reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>; |
| 92 | ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>; |
| 93 | #address-cells = <1>; |
| 94 | #size-cells = <1>; |
| 95 | clocks = <&coreclk 0>; |
| 96 | status = "disabled"; |
| 97 | }; |
| 98 | |
| 99 | internal-regs { |
| 100 | compatible = "simple-bus"; |
Stefan Roese | 49e7d77 | 2015-11-20 13:51:57 +0100 | [diff] [blame] | 101 | u-boot,dm-pre-reloc; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 102 | #address-cells = <1>; |
| 103 | #size-cells = <1>; |
| 104 | ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>; |
| 105 | |
| 106 | L2: cache-controller@8000 { |
| 107 | compatible = "arm,pl310-cache"; |
| 108 | reg = <0x8000 0x1000>; |
| 109 | cache-unified; |
| 110 | cache-level = <2>; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 111 | arm,double-linefill-incr = <0>; |
| 112 | arm,double-linefill-wrap = <0>; |
| 113 | arm,double-linefill = <0>; |
| 114 | prefetch-data = <1>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 115 | }; |
| 116 | |
| 117 | scu@c000 { |
| 118 | compatible = "arm,cortex-a9-scu"; |
| 119 | reg = <0xc000 0x58>; |
| 120 | }; |
| 121 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 122 | timer@c200 { |
| 123 | compatible = "arm,cortex-a9-global-timer"; |
| 124 | reg = <0xc200 0x20>; |
| 125 | interrupts = <GIC_PPI 11 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>; |
| 126 | clocks = <&coreclk 2>; |
| 127 | }; |
| 128 | |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 129 | timer@c600 { |
| 130 | compatible = "arm,cortex-a9-twd-timer"; |
| 131 | reg = <0xc600 0x20>; |
| 132 | interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>; |
| 133 | clocks = <&coreclk 2>; |
| 134 | }; |
| 135 | |
| 136 | gic: interrupt-controller@d000 { |
| 137 | compatible = "arm,cortex-a9-gic"; |
| 138 | #interrupt-cells = <3>; |
| 139 | #size-cells = <0>; |
| 140 | interrupt-controller; |
| 141 | reg = <0xd000 0x1000>, |
| 142 | <0xc100 0x100>; |
| 143 | }; |
| 144 | |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 145 | i2c0: i2c@11000 { |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 146 | compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c"; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 147 | reg = <0x11000 0x20>; |
| 148 | #address-cells = <1>; |
| 149 | #size-cells = <0>; |
| 150 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
| 151 | timeout-ms = <1000>; |
| 152 | clocks = <&coreclk 0>; |
| 153 | status = "disabled"; |
| 154 | }; |
| 155 | |
| 156 | i2c1: i2c@11100 { |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 157 | compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c"; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 158 | reg = <0x11100 0x20>; |
| 159 | #address-cells = <1>; |
| 160 | #size-cells = <0>; |
| 161 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
| 162 | timeout-ms = <1000>; |
| 163 | clocks = <&coreclk 0>; |
| 164 | status = "disabled"; |
| 165 | }; |
| 166 | |
| 167 | uart0: serial@12000 { |
| 168 | compatible = "snps,dw-apb-uart"; |
| 169 | reg = <0x12000 0x100>; |
| 170 | reg-shift = <2>; |
| 171 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
| 172 | reg-io-width = <1>; |
| 173 | clocks = <&coreclk 0>; |
| 174 | status = "disabled"; |
| 175 | }; |
| 176 | |
| 177 | uart1: serial@12100 { |
| 178 | compatible = "snps,dw-apb-uart"; |
| 179 | reg = <0x12100 0x100>; |
| 180 | reg-shift = <2>; |
| 181 | interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
| 182 | reg-io-width = <1>; |
| 183 | clocks = <&coreclk 0>; |
| 184 | status = "disabled"; |
| 185 | }; |
| 186 | |
| 187 | pinctrl: pinctrl@18000 { |
| 188 | reg = <0x18000 0x20>; |
| 189 | |
| 190 | ge0_rgmii_pins: ge-rgmii-pins-0 { |
| 191 | marvell,pins = "mpp6", "mpp7", "mpp8", |
| 192 | "mpp9", "mpp10", "mpp11", |
| 193 | "mpp12", "mpp13", "mpp14", |
| 194 | "mpp15", "mpp16", "mpp17"; |
| 195 | marvell,function = "ge0"; |
| 196 | }; |
| 197 | |
| 198 | ge1_rgmii_pins: ge-rgmii-pins-1 { |
| 199 | marvell,pins = "mpp21", "mpp27", "mpp28", |
| 200 | "mpp29", "mpp30", "mpp31", |
| 201 | "mpp32", "mpp37", "mpp38", |
| 202 | "mpp39", "mpp40", "mpp41"; |
| 203 | marvell,function = "ge1"; |
| 204 | }; |
| 205 | |
| 206 | i2c0_pins: i2c-pins-0 { |
| 207 | marvell,pins = "mpp2", "mpp3"; |
| 208 | marvell,function = "i2c0"; |
| 209 | }; |
| 210 | |
| 211 | mdio_pins: mdio-pins { |
| 212 | marvell,pins = "mpp4", "mpp5"; |
| 213 | marvell,function = "ge"; |
| 214 | }; |
| 215 | |
| 216 | ref_clk0_pins: ref-clk-pins-0 { |
| 217 | marvell,pins = "mpp45"; |
| 218 | marvell,function = "ref"; |
| 219 | }; |
| 220 | |
| 221 | ref_clk1_pins: ref-clk-pins-1 { |
| 222 | marvell,pins = "mpp46"; |
| 223 | marvell,function = "ref"; |
| 224 | }; |
| 225 | |
| 226 | spi0_pins: spi-pins-0 { |
| 227 | marvell,pins = "mpp22", "mpp23", "mpp24", |
| 228 | "mpp25"; |
| 229 | marvell,function = "spi0"; |
| 230 | }; |
| 231 | |
| 232 | spi1_pins: spi-pins-1 { |
| 233 | marvell,pins = "mpp56", "mpp57", "mpp58", |
| 234 | "mpp59"; |
| 235 | marvell,function = "spi1"; |
| 236 | }; |
| 237 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 238 | nand_pins: nand-pins { |
| 239 | marvell,pins = "mpp22", "mpp34", "mpp23", |
| 240 | "mpp33", "mpp38", "mpp28", |
| 241 | "mpp40", "mpp42", "mpp35", |
| 242 | "mpp36", "mpp25", "mpp30", |
| 243 | "mpp32"; |
| 244 | marvell,function = "dev"; |
| 245 | }; |
| 246 | |
| 247 | nand_rb: nand-rb { |
| 248 | marvell,pins = "mpp41"; |
| 249 | marvell,function = "nand"; |
| 250 | }; |
| 251 | |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 252 | uart0_pins: uart-pins-0 { |
| 253 | marvell,pins = "mpp0", "mpp1"; |
| 254 | marvell,function = "ua0"; |
| 255 | }; |
| 256 | |
| 257 | uart1_pins: uart-pins-1 { |
| 258 | marvell,pins = "mpp19", "mpp20"; |
| 259 | marvell,function = "ua1"; |
| 260 | }; |
| 261 | |
| 262 | sdhci_pins: sdhci-pins { |
| 263 | marvell,pins = "mpp48", "mpp49", "mpp50", |
| 264 | "mpp52", "mpp53", "mpp54", |
| 265 | "mpp55", "mpp57", "mpp58", |
| 266 | "mpp59"; |
| 267 | marvell,function = "sd0"; |
| 268 | }; |
| 269 | |
| 270 | sata0_pins: sata-pins-0 { |
| 271 | marvell,pins = "mpp20"; |
| 272 | marvell,function = "sata0"; |
| 273 | }; |
| 274 | |
| 275 | sata1_pins: sata-pins-1 { |
| 276 | marvell,pins = "mpp19"; |
| 277 | marvell,function = "sata1"; |
| 278 | }; |
| 279 | |
| 280 | sata2_pins: sata-pins-2 { |
| 281 | marvell,pins = "mpp47"; |
| 282 | marvell,function = "sata2"; |
| 283 | }; |
| 284 | |
| 285 | sata3_pins: sata-pins-3 { |
| 286 | marvell,pins = "mpp44"; |
| 287 | marvell,function = "sata3"; |
| 288 | }; |
| 289 | }; |
| 290 | |
| 291 | gpio0: gpio@18100 { |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 292 | compatible = "marvell,armada-370-gpio", |
| 293 | "marvell,orion-gpio"; |
| 294 | reg = <0x18100 0x40>, <0x181c0 0x08>; |
| 295 | reg-names = "gpio", "pwm"; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 296 | ngpios = <32>; |
| 297 | gpio-controller; |
| 298 | #gpio-cells = <2>; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 299 | #pwm-cells = <2>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 300 | interrupt-controller; |
| 301 | #interrupt-cells = <2>; |
| 302 | interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, |
| 303 | <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>, |
| 304 | <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>, |
| 305 | <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 306 | clocks = <&coreclk 0>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 307 | }; |
| 308 | |
| 309 | gpio1: gpio@18140 { |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 310 | compatible = "marvell,armada-370-gpio", |
| 311 | "marvell,orion-gpio"; |
| 312 | reg = <0x18140 0x40>, <0x181c8 0x08>; |
| 313 | reg-names = "gpio", "pwm"; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 314 | ngpios = <28>; |
| 315 | gpio-controller; |
| 316 | #gpio-cells = <2>; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 317 | #pwm-cells = <2>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 318 | interrupt-controller; |
| 319 | #interrupt-cells = <2>; |
| 320 | interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>, |
| 321 | <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, |
| 322 | <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, |
| 323 | <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 324 | clocks = <&coreclk 0>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 325 | }; |
| 326 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 327 | systemc: system-controller@18200 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 328 | compatible = "marvell,armada-380-system-controller", |
| 329 | "marvell,armada-370-xp-system-controller"; |
| 330 | reg = <0x18200 0x100>; |
Pali Rohár | 4669df3 | 2021-12-21 12:20:18 +0100 | [diff] [blame] | 331 | #reset-cells = <2>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 332 | }; |
| 333 | |
| 334 | gateclk: clock-gating-control@18220 { |
| 335 | compatible = "marvell,armada-380-gating-clock"; |
| 336 | reg = <0x18220 0x4>; |
| 337 | clocks = <&coreclk 0>; |
| 338 | #clock-cells = <1>; |
| 339 | }; |
| 340 | |
| 341 | coreclk: mvebu-sar@18600 { |
| 342 | compatible = "marvell,armada-380-core-clock"; |
| 343 | reg = <0x18600 0x04>; |
| 344 | #clock-cells = <1>; |
| 345 | }; |
| 346 | |
| 347 | mbusc: mbus-controller@20000 { |
| 348 | compatible = "marvell,mbus-controller"; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 349 | reg = <0x20000 0x100>, <0x20180 0x20>, |
| 350 | <0x20250 0x8>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 351 | }; |
| 352 | |
| 353 | mpic: interrupt-controller@20a00 { |
| 354 | compatible = "marvell,mpic"; |
| 355 | reg = <0x20a00 0x2d0>, <0x21070 0x58>; |
| 356 | #interrupt-cells = <1>; |
| 357 | #size-cells = <1>; |
| 358 | interrupt-controller; |
| 359 | msi-controller; |
| 360 | interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>; |
| 361 | }; |
| 362 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 363 | timer: timer@20300 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 364 | compatible = "marvell,armada-380-timer", |
| 365 | "marvell,armada-xp-timer"; |
| 366 | reg = <0x20300 0x30>, <0x21040 0x30>; |
| 367 | interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, |
| 368 | <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, |
| 369 | <&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>, |
| 370 | <&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, |
| 371 | <&mpic 5>, |
| 372 | <&mpic 6>; |
| 373 | clocks = <&coreclk 2>, <&refclk>; |
| 374 | clock-names = "nbclk", "fixed"; |
| 375 | }; |
| 376 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 377 | watchdog: watchdog@20300 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 378 | compatible = "marvell,armada-380-wdt"; |
| 379 | reg = <0x20300 0x34>, <0x20704 0x4>, <0x18260 0x4>; |
| 380 | clocks = <&coreclk 2>, <&refclk>; |
| 381 | clock-names = "nbclk", "fixed"; |
| 382 | }; |
| 383 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 384 | cpurst: cpurst@20800 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 385 | compatible = "marvell,armada-370-cpu-reset"; |
| 386 | reg = <0x20800 0x10>; |
| 387 | }; |
| 388 | |
| 389 | mpcore-soc-ctrl@20d20 { |
| 390 | compatible = "marvell,armada-380-mpcore-soc-ctrl"; |
| 391 | reg = <0x20d20 0x6c>; |
| 392 | }; |
| 393 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 394 | coherencyfab: coherency-fabric@21010 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 395 | compatible = "marvell,armada-380-coherency-fabric"; |
| 396 | reg = <0x21010 0x1c>; |
| 397 | }; |
| 398 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 399 | pmsu: pmsu@22000 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 400 | compatible = "marvell,armada-380-pmsu"; |
| 401 | reg = <0x22000 0x1000>; |
| 402 | }; |
| 403 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 404 | /* |
| 405 | * As a special exception to the "order by |
| 406 | * register address" rule, the eth0 node is |
| 407 | * placed here to ensure that it gets |
| 408 | * registered as the first interface, since |
| 409 | * the network subsystem doesn't allow naming |
| 410 | * interfaces using DT aliases. Without this, |
| 411 | * the ordering of interfaces is different |
| 412 | * from the one used in U-Boot and the |
| 413 | * labeling of interfaces on the boards, which |
| 414 | * is very confusing for users. |
| 415 | */ |
| 416 | eth0: ethernet@70000 { |
| 417 | compatible = "marvell,armada-370-neta"; |
| 418 | reg = <0x70000 0x4000>; |
| 419 | interrupts-extended = <&mpic 8>; |
| 420 | clocks = <&gateclk 4>; |
| 421 | tx-csum-limit = <9800>; |
| 422 | status = "disabled"; |
| 423 | }; |
| 424 | |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 425 | eth1: ethernet@30000 { |
| 426 | compatible = "marvell,armada-370-neta"; |
| 427 | reg = <0x30000 0x4000>; |
| 428 | interrupts-extended = <&mpic 10>; |
| 429 | clocks = <&gateclk 3>; |
| 430 | status = "disabled"; |
| 431 | }; |
| 432 | |
| 433 | eth2: ethernet@34000 { |
| 434 | compatible = "marvell,armada-370-neta"; |
| 435 | reg = <0x34000 0x4000>; |
| 436 | interrupts-extended = <&mpic 12>; |
| 437 | clocks = <&gateclk 2>; |
| 438 | status = "disabled"; |
| 439 | }; |
| 440 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 441 | usb0: usb@58000 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 442 | compatible = "marvell,orion-ehci"; |
| 443 | reg = <0x58000 0x500>; |
| 444 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; |
| 445 | clocks = <&gateclk 18>; |
| 446 | status = "disabled"; |
| 447 | }; |
| 448 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 449 | xor0: xor@60800 { |
| 450 | compatible = "marvell,armada-380-xor", "marvell,orion-xor"; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 451 | reg = <0x60800 0x100 |
| 452 | 0x60a00 0x100>; |
| 453 | clocks = <&gateclk 22>; |
| 454 | status = "okay"; |
| 455 | |
| 456 | xor00 { |
| 457 | interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; |
| 458 | dmacap,memcpy; |
| 459 | dmacap,xor; |
| 460 | }; |
| 461 | xor01 { |
| 462 | interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; |
| 463 | dmacap,memcpy; |
| 464 | dmacap,xor; |
| 465 | dmacap,memset; |
| 466 | }; |
| 467 | }; |
| 468 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 469 | xor1: xor@60900 { |
| 470 | compatible = "marvell,armada-380-xor", "marvell,orion-xor"; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 471 | reg = <0x60900 0x100 |
| 472 | 0x60b00 0x100>; |
| 473 | clocks = <&gateclk 28>; |
| 474 | status = "okay"; |
| 475 | |
| 476 | xor10 { |
| 477 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
| 478 | dmacap,memcpy; |
| 479 | dmacap,xor; |
| 480 | }; |
| 481 | xor11 { |
| 482 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; |
| 483 | dmacap,memcpy; |
| 484 | dmacap,xor; |
| 485 | dmacap,memset; |
| 486 | }; |
| 487 | }; |
| 488 | |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 489 | mdio: mdio@72004 { |
| 490 | #address-cells = <1>; |
| 491 | #size-cells = <0>; |
| 492 | compatible = "marvell,orion-mdio"; |
| 493 | reg = <0x72004 0x4>; |
| 494 | clocks = <&gateclk 4>; |
| 495 | }; |
| 496 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 497 | cesa: crypto@90000 { |
| 498 | compatible = "marvell,armada-38x-crypto"; |
| 499 | reg = <0x90000 0x10000>; |
| 500 | reg-names = "regs"; |
| 501 | interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, |
| 502 | <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; |
| 503 | clocks = <&gateclk 23>, <&gateclk 21>, |
| 504 | <&gateclk 14>, <&gateclk 16>; |
| 505 | clock-names = "cesa0", "cesa1", |
| 506 | "cesaz0", "cesaz1"; |
| 507 | marvell,crypto-srams = <&crypto_sram0>, |
| 508 | <&crypto_sram1>; |
| 509 | marvell,crypto-sram-size = <0x800>; |
| 510 | }; |
| 511 | |
| 512 | rtc: rtc@a3800 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 513 | compatible = "marvell,armada-380-rtc"; |
| 514 | reg = <0xa3800 0x20>, <0x184a0 0x0c>; |
| 515 | reg-names = "rtc", "rtc-soc"; |
| 516 | interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; |
| 517 | }; |
| 518 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 519 | ahci0: sata@a8000 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 520 | compatible = "marvell,armada-380-ahci"; |
| 521 | reg = <0xa8000 0x2000>; |
| 522 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; |
| 523 | clocks = <&gateclk 15>; |
| 524 | status = "disabled"; |
| 525 | }; |
| 526 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 527 | bm: bm@c8000 { |
| 528 | compatible = "marvell,armada-380-neta-bm"; |
| 529 | reg = <0xc8000 0xac>; |
| 530 | clocks = <&gateclk 13>; |
| 531 | internal-mem = <&bm_bppi>; |
| 532 | status = "disabled"; |
| 533 | }; |
| 534 | |
| 535 | ahci1: sata@e0000 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 536 | compatible = "marvell,armada-380-ahci"; |
| 537 | reg = <0xe0000 0x2000>; |
| 538 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; |
| 539 | clocks = <&gateclk 30>; |
| 540 | status = "disabled"; |
| 541 | }; |
| 542 | |
| 543 | coredivclk: clock@e4250 { |
| 544 | compatible = "marvell,armada-380-corediv-clock"; |
| 545 | reg = <0xe4250 0xc>; |
| 546 | #clock-cells = <1>; |
| 547 | clocks = <&mainpll>; |
| 548 | clock-output-names = "nand"; |
| 549 | }; |
| 550 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 551 | thermal: thermal@e8078 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 552 | compatible = "marvell,armada380-thermal"; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 553 | reg = <0xe4078 0x4>, <0xe4070 0x8>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 554 | status = "okay"; |
| 555 | }; |
| 556 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 557 | nand_controller: nand-controller@d0000 { |
Sean Nyekjaer | 534a7cc | 2017-11-24 14:00:48 +0100 | [diff] [blame] | 558 | compatible = "marvell,armada370-nand","marvell,mvebu-pxa3xx-nand"; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 559 | reg = <0xd0000 0x54>; |
| 560 | #address-cells = <1>; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 561 | #size-cells = <0>; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 562 | interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; |
| 563 | clocks = <&coredivclk 0>; |
| 564 | status = "disabled"; |
| 565 | }; |
| 566 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 567 | sdhci: sdhci@d8000 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 568 | compatible = "marvell,armada-380-sdhci"; |
| 569 | reg-names = "sdhci", "mbus", "conf-sdio3"; |
| 570 | reg = <0xd8000 0x1000>, |
| 571 | <0xdc000 0x100>, |
| 572 | <0x18454 0x4>; |
| 573 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; |
| 574 | clocks = <&gateclk 17>; |
| 575 | mrvl,clk-delay-cycles = <0x1F>; |
| 576 | status = "disabled"; |
| 577 | }; |
| 578 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 579 | usb3_0: usb3@f0000 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 580 | compatible = "marvell,armada-380-xhci"; |
| 581 | reg = <0xf0000 0x4000>,<0xf4000 0x4000>; |
| 582 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; |
| 583 | clocks = <&gateclk 9>; |
| 584 | status = "disabled"; |
| 585 | }; |
| 586 | |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 587 | usb3_1: usb3@f8000 { |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 588 | compatible = "marvell,armada-380-xhci"; |
| 589 | reg = <0xf8000 0x4000>,<0xfc000 0x4000>; |
| 590 | interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
| 591 | clocks = <&gateclk 10>; |
| 592 | status = "disabled"; |
| 593 | }; |
| 594 | }; |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 595 | |
| 596 | crypto_sram0: sa-sram0 { |
| 597 | compatible = "mmio-sram"; |
| 598 | reg = <MBUS_ID(0x09, 0x19) 0 0x800>; |
| 599 | clocks = <&gateclk 23>; |
| 600 | #address-cells = <1>; |
| 601 | #size-cells = <1>; |
| 602 | ranges = <0 MBUS_ID(0x09, 0x19) 0 0x800>; |
| 603 | }; |
| 604 | |
| 605 | crypto_sram1: sa-sram1 { |
| 606 | compatible = "mmio-sram"; |
| 607 | reg = <MBUS_ID(0x09, 0x15) 0 0x800>; |
| 608 | clocks = <&gateclk 21>; |
| 609 | #address-cells = <1>; |
| 610 | #size-cells = <1>; |
| 611 | ranges = <0 MBUS_ID(0x09, 0x15) 0 0x800>; |
| 612 | }; |
| 613 | |
| 614 | bm_bppi: bm-bppi { |
| 615 | compatible = "mmio-sram"; |
| 616 | reg = <MBUS_ID(0x0c, 0x04) 0 0x100000>; |
| 617 | ranges = <0 MBUS_ID(0x0c, 0x04) 0 0x100000>; |
| 618 | #address-cells = <1>; |
| 619 | #size-cells = <1>; |
| 620 | clocks = <&gateclk 13>; |
| 621 | no-memory-wc; |
| 622 | status = "disabled"; |
| 623 | }; |
| 624 | |
| 625 | spi0: spi@10600 { |
| 626 | compatible = "marvell,armada-380-spi", |
| 627 | "marvell,orion-spi"; |
| 628 | reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x50>; |
| 629 | #address-cells = <1>; |
| 630 | #size-cells = <0>; |
| 631 | cell-index = <0>; |
| 632 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
| 633 | clocks = <&coreclk 0>; |
| 634 | status = "disabled"; |
| 635 | }; |
| 636 | |
| 637 | spi1: spi@10680 { |
| 638 | compatible = "marvell,armada-380-spi", |
| 639 | "marvell,orion-spi"; |
| 640 | reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x50>; |
| 641 | #address-cells = <1>; |
| 642 | #size-cells = <0>; |
| 643 | cell-index = <1>; |
| 644 | interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
| 645 | clocks = <&coreclk 0>; |
| 646 | status = "disabled"; |
| 647 | }; |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 648 | }; |
| 649 | |
| 650 | clocks { |
Chris Packham | 06db9d2 | 2018-12-10 20:07:51 +1300 | [diff] [blame] | 651 | /* 1 GHz fixed main PLL */ |
Stefan Roese | ac5efba | 2015-08-31 07:33:57 +0200 | [diff] [blame] | 652 | mainpll: mainpll { |
| 653 | compatible = "fixed-clock"; |
| 654 | #clock-cells = <0>; |
| 655 | clock-frequency = <1000000000>; |
| 656 | }; |
| 657 | |
| 658 | /* 25 MHz reference crystal */ |
| 659 | refclk: oscillator { |
| 660 | compatible = "fixed-clock"; |
| 661 | #clock-cells = <0>; |
| 662 | clock-frequency = <25000000>; |
| 663 | }; |
| 664 | }; |
| 665 | }; |