Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Include file for Marvell Armada 38x family of SoCs. |
| 3 | * |
| 4 | * Copyright (C) 2014 Marvell |
| 5 | * |
| 6 | * Lior Amsalem <alior@marvell.com> |
| 7 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 8 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
| 9 | * |
Gregory CLEMENT | 7674432 | 2015-01-26 15:15:59 +0100 | [diff] [blame] | 10 | * This file is dual-licensed: you can use it either under the terms |
| 11 | * of the GPL or the X11 license, at your option. Note that this dual |
| 12 | * licensing only applies to this file, and not this project as a |
| 13 | * whole. |
| 14 | * |
| 15 | * a) This file is free software; you can redistribute it and/or |
| 16 | * modify it under the terms of the GNU General Public License as |
| 17 | * published by the Free Software Foundation; either version 2 of the |
| 18 | * License, or (at your option) any later version. |
| 19 | * |
| 20 | * This file is distributed in the hope that it will be useful |
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 | * GNU General Public License for more details. |
| 24 | * |
| 25 | * Or, alternatively |
| 26 | * |
| 27 | * b) Permission is hereby granted, free of charge, to any person |
| 28 | * obtaining a copy of this software and associated documentation |
| 29 | * files (the "Software"), to deal in the Software without |
| 30 | * restriction, including without limitation the rights to use |
| 31 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 32 | * sell copies of the Software, and to permit persons to whom the |
| 33 | * Software is furnished to do so, subject to the following |
| 34 | * conditions: |
| 35 | * |
| 36 | * The above copyright notice and this permission notice shall be |
| 37 | * included in all copies or substantial portions of the Software. |
| 38 | * |
| 39 | * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND |
| 40 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 41 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 42 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 43 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY |
| 44 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 45 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 46 | * OTHER DEALINGS IN THE SOFTWARE. |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 47 | */ |
| 48 | |
| 49 | #include "skeleton.dtsi" |
Thomas Petazzoni | f327d43 | 2014-02-20 12:11:30 +0100 | [diff] [blame] | 50 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 51 | #include <dt-bindings/interrupt-controller/irq.h> |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 52 | |
| 53 | #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16)) |
| 54 | |
| 55 | / { |
| 56 | model = "Marvell Armada 38x family SoC"; |
Gregory CLEMENT | 8dbdb8e | 2014-06-23 16:16:51 +0200 | [diff] [blame] | 57 | compatible = "marvell,armada380"; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 58 | |
| 59 | aliases { |
| 60 | gpio0 = &gpio0; |
| 61 | gpio1 = &gpio1; |
Thomas Petazzoni | bf6acf1 | 2015-03-03 15:41:01 +0100 | [diff] [blame] | 62 | serial0 = &uart0; |
| 63 | serial1 = &uart1; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 64 | }; |
| 65 | |
Ezequiel Garcia | 754c4b1 | 2015-03-03 11:43:19 +0100 | [diff] [blame] | 66 | pmu { |
| 67 | compatible = "arm,cortex-a9-pmu"; |
| 68 | interrupts-extended = <&mpic 3>; |
| 69 | }; |
| 70 | |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 71 | soc { |
Thomas Petazzoni | a9e274c | 2014-12-30 13:43:44 +0100 | [diff] [blame] | 72 | compatible = "marvell,armada380-mbus", "simple-bus"; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 73 | #address-cells = <2>; |
| 74 | #size-cells = <1>; |
| 75 | controller = <&mbusc>; |
| 76 | interrupt-parent = <&gic>; |
| 77 | pcie-mem-aperture = <0xe0000000 0x8000000>; |
| 78 | pcie-io-aperture = <0xe8000000 0x100000>; |
| 79 | |
| 80 | bootrom { |
| 81 | compatible = "marvell,bootrom"; |
| 82 | reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>; |
| 83 | }; |
| 84 | |
| 85 | devbus-bootcs { |
| 86 | compatible = "marvell,mvebu-devbus"; |
| 87 | reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>; |
| 88 | ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>; |
| 89 | #address-cells = <1>; |
| 90 | #size-cells = <1>; |
| 91 | clocks = <&coreclk 0>; |
| 92 | status = "disabled"; |
| 93 | }; |
| 94 | |
| 95 | devbus-cs0 { |
| 96 | compatible = "marvell,mvebu-devbus"; |
| 97 | reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>; |
| 98 | ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>; |
| 99 | #address-cells = <1>; |
| 100 | #size-cells = <1>; |
| 101 | clocks = <&coreclk 0>; |
| 102 | status = "disabled"; |
| 103 | }; |
| 104 | |
| 105 | devbus-cs1 { |
| 106 | compatible = "marvell,mvebu-devbus"; |
| 107 | reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>; |
| 108 | ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>; |
| 109 | #address-cells = <1>; |
| 110 | #size-cells = <1>; |
| 111 | clocks = <&coreclk 0>; |
| 112 | status = "disabled"; |
| 113 | }; |
| 114 | |
| 115 | devbus-cs2 { |
| 116 | compatible = "marvell,mvebu-devbus"; |
| 117 | reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>; |
| 118 | ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>; |
| 119 | #address-cells = <1>; |
| 120 | #size-cells = <1>; |
| 121 | clocks = <&coreclk 0>; |
| 122 | status = "disabled"; |
| 123 | }; |
| 124 | |
| 125 | devbus-cs3 { |
| 126 | compatible = "marvell,mvebu-devbus"; |
| 127 | reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>; |
| 128 | ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>; |
| 129 | #address-cells = <1>; |
| 130 | #size-cells = <1>; |
| 131 | clocks = <&coreclk 0>; |
| 132 | status = "disabled"; |
| 133 | }; |
| 134 | |
| 135 | internal-regs { |
| 136 | compatible = "simple-bus"; |
| 137 | #address-cells = <1>; |
| 138 | #size-cells = <1>; |
| 139 | ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>; |
| 140 | |
| 141 | L2: cache-controller@8000 { |
| 142 | compatible = "arm,pl310-cache"; |
| 143 | reg = <0x8000 0x1000>; |
| 144 | cache-unified; |
| 145 | cache-level = <2>; |
Thomas Petazzoni | c8f5a87 | 2015-06-11 13:51:12 +0200 | [diff] [blame] | 146 | arm,double-linefill-incr = <1>; |
| 147 | arm,double-linefill-wrap = <0>; |
| 148 | arm,double-linefill = <1>; |
| 149 | prefetch-data = <1>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 150 | }; |
| 151 | |
Thomas Petazzoni | 964a615 | 2014-04-14 15:47:08 +0200 | [diff] [blame] | 152 | scu@c000 { |
| 153 | compatible = "arm,cortex-a9-scu"; |
| 154 | reg = <0xc000 0x58>; |
| 155 | }; |
| 156 | |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 157 | timer@c600 { |
| 158 | compatible = "arm,cortex-a9-twd-timer"; |
| 159 | reg = <0xc600 0x20>; |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 160 | interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 161 | clocks = <&coreclk 2>; |
| 162 | }; |
| 163 | |
| 164 | gic: interrupt-controller@d000 { |
| 165 | compatible = "arm,cortex-a9-gic"; |
| 166 | #interrupt-cells = <3>; |
| 167 | #size-cells = <0>; |
| 168 | interrupt-controller; |
| 169 | reg = <0xd000 0x1000>, |
| 170 | <0xc100 0x100>; |
| 171 | }; |
| 172 | |
| 173 | spi0: spi@10600 { |
Gregory CLEMENT | 2d29592 | 2015-05-26 11:44:44 +0200 | [diff] [blame] | 174 | compatible = "marvell,armada-380-spi", |
| 175 | "marvell,orion-spi"; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 176 | reg = <0x10600 0x50>; |
| 177 | #address-cells = <1>; |
| 178 | #size-cells = <0>; |
| 179 | cell-index = <0>; |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 180 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 181 | clocks = <&coreclk 0>; |
| 182 | status = "disabled"; |
| 183 | }; |
| 184 | |
| 185 | spi1: spi@10680 { |
Gregory CLEMENT | 2d29592 | 2015-05-26 11:44:44 +0200 | [diff] [blame] | 186 | compatible = "marvell,armada-380-spi", |
| 187 | "marvell,orion-spi"; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 188 | reg = <0x10680 0x50>; |
| 189 | #address-cells = <1>; |
| 190 | #size-cells = <0>; |
| 191 | cell-index = <1>; |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 192 | interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 193 | clocks = <&coreclk 0>; |
| 194 | status = "disabled"; |
| 195 | }; |
| 196 | |
| 197 | i2c0: i2c@11000 { |
| 198 | compatible = "marvell,mv64xxx-i2c"; |
| 199 | reg = <0x11000 0x20>; |
| 200 | #address-cells = <1>; |
| 201 | #size-cells = <0>; |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 202 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 203 | timeout-ms = <1000>; |
| 204 | clocks = <&coreclk 0>; |
| 205 | status = "disabled"; |
| 206 | }; |
| 207 | |
| 208 | i2c1: i2c@11100 { |
| 209 | compatible = "marvell,mv64xxx-i2c"; |
| 210 | reg = <0x11100 0x20>; |
| 211 | #address-cells = <1>; |
| 212 | #size-cells = <0>; |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 213 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 214 | timeout-ms = <1000>; |
| 215 | clocks = <&coreclk 0>; |
| 216 | status = "disabled"; |
| 217 | }; |
| 218 | |
Gregory CLEMENT | 10c5c47 | 2015-01-08 18:38:11 +0100 | [diff] [blame] | 219 | uart0: serial@12000 { |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 220 | compatible = "snps,dw-apb-uart"; |
| 221 | reg = <0x12000 0x100>; |
| 222 | reg-shift = <2>; |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 223 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 224 | reg-io-width = <1>; |
Thomas Petazzoni | 64939dc | 2014-04-18 09:41:46 +0200 | [diff] [blame] | 225 | clocks = <&coreclk 0>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 226 | status = "disabled"; |
| 227 | }; |
| 228 | |
Thomas Petazzoni | 8a48dcc | 2015-03-03 15:40:58 +0100 | [diff] [blame] | 229 | uart1: serial@12100 { |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 230 | compatible = "snps,dw-apb-uart"; |
| 231 | reg = <0x12100 0x100>; |
| 232 | reg-shift = <2>; |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 233 | interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 234 | reg-io-width = <1>; |
Thomas Petazzoni | 64939dc | 2014-04-18 09:41:46 +0200 | [diff] [blame] | 235 | clocks = <&coreclk 0>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 236 | status = "disabled"; |
| 237 | }; |
| 238 | |
Gregory CLEMENT | 10c5c47 | 2015-01-08 18:38:11 +0100 | [diff] [blame] | 239 | pinctrl: pinctrl@18000 { |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 240 | reg = <0x18000 0x20>; |
Maxime Ripard | 91b4c91 | 2015-01-08 18:38:08 +0100 | [diff] [blame] | 241 | |
| 242 | ge0_rgmii_pins: ge-rgmii-pins-0 { |
| 243 | marvell,pins = "mpp6", "mpp7", "mpp8", |
| 244 | "mpp9", "mpp10", "mpp11", |
| 245 | "mpp12", "mpp13", "mpp14", |
| 246 | "mpp15", "mpp16", "mpp17"; |
| 247 | marvell,function = "ge0"; |
| 248 | }; |
| 249 | |
Gregory CLEMENT | 3459850 | 2015-01-08 18:38:10 +0100 | [diff] [blame] | 250 | ge1_rgmii_pins: ge-rgmii-pins-1 { |
| 251 | marvell,pins = "mpp21", "mpp27", "mpp28", |
| 252 | "mpp29", "mpp30", "mpp31", |
| 253 | "mpp32", "mpp37", "mpp38", |
| 254 | "mpp39", "mpp40", "mpp41"; |
| 255 | marvell,function = "ge1"; |
| 256 | }; |
| 257 | |
Maxime Ripard | 91b4c91 | 2015-01-08 18:38:08 +0100 | [diff] [blame] | 258 | i2c0_pins: i2c-pins-0 { |
| 259 | marvell,pins = "mpp2", "mpp3"; |
| 260 | marvell,function = "i2c0"; |
| 261 | }; |
| 262 | |
| 263 | mdio_pins: mdio-pins { |
| 264 | marvell,pins = "mpp4", "mpp5"; |
| 265 | marvell,function = "ge"; |
| 266 | }; |
| 267 | |
| 268 | ref_clk0_pins: ref-clk-pins-0 { |
| 269 | marvell,pins = "mpp45"; |
| 270 | marvell,function = "ref"; |
| 271 | }; |
| 272 | |
Gregory CLEMENT | 3459850 | 2015-01-08 18:38:10 +0100 | [diff] [blame] | 273 | ref_clk1_pins: ref-clk-pins-1 { |
| 274 | marvell,pins = "mpp46"; |
| 275 | marvell,function = "ref"; |
| 276 | }; |
| 277 | |
| 278 | spi0_pins: spi-pins-0 { |
| 279 | marvell,pins = "mpp22", "mpp23", "mpp24", |
| 280 | "mpp25"; |
| 281 | marvell,function = "spi0"; |
| 282 | }; |
| 283 | |
Maxime Ripard | 91b4c91 | 2015-01-08 18:38:08 +0100 | [diff] [blame] | 284 | spi1_pins: spi-pins-1 { |
| 285 | marvell,pins = "mpp56", "mpp57", "mpp58", |
| 286 | "mpp59"; |
| 287 | marvell,function = "spi1"; |
| 288 | }; |
| 289 | |
| 290 | uart0_pins: uart-pins-0 { |
| 291 | marvell,pins = "mpp0", "mpp1"; |
| 292 | marvell,function = "ua0"; |
| 293 | }; |
| 294 | |
| 295 | uart1_pins: uart-pins-1 { |
| 296 | marvell,pins = "mpp19", "mpp20"; |
| 297 | marvell,function = "ua1"; |
| 298 | }; |
Gregory CLEMENT | 3459850 | 2015-01-08 18:38:10 +0100 | [diff] [blame] | 299 | |
| 300 | sdhci_pins: sdhci-pins { |
| 301 | marvell,pins = "mpp48", "mpp49", "mpp50", |
| 302 | "mpp52", "mpp53", "mpp54", |
| 303 | "mpp55", "mpp57", "mpp58", |
| 304 | "mpp59"; |
| 305 | marvell,function = "sd0"; |
| 306 | }; |
| 307 | |
| 308 | sata0_pins: sata-pins-0 { |
| 309 | marvell,pins = "mpp20"; |
| 310 | marvell,function = "sata0"; |
| 311 | }; |
| 312 | |
| 313 | sata1_pins: sata-pins-1 { |
| 314 | marvell,pins = "mpp19"; |
| 315 | marvell,function = "sata1"; |
| 316 | }; |
| 317 | |
| 318 | sata2_pins: sata-pins-2 { |
| 319 | marvell,pins = "mpp47"; |
| 320 | marvell,function = "sata2"; |
| 321 | }; |
| 322 | |
| 323 | sata3_pins: sata-pins-3 { |
| 324 | marvell,pins = "mpp44"; |
| 325 | marvell,function = "sata3"; |
| 326 | }; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 327 | }; |
| 328 | |
| 329 | gpio0: gpio@18100 { |
| 330 | compatible = "marvell,orion-gpio"; |
| 331 | reg = <0x18100 0x40>; |
| 332 | ngpios = <32>; |
| 333 | gpio-controller; |
| 334 | #gpio-cells = <2>; |
| 335 | interrupt-controller; |
| 336 | #interrupt-cells = <2>; |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 337 | interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, |
| 338 | <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>, |
| 339 | <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>, |
| 340 | <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 341 | }; |
| 342 | |
| 343 | gpio1: gpio@18140 { |
| 344 | compatible = "marvell,orion-gpio"; |
| 345 | reg = <0x18140 0x40>; |
| 346 | ngpios = <28>; |
| 347 | gpio-controller; |
| 348 | #gpio-cells = <2>; |
| 349 | interrupt-controller; |
| 350 | #interrupt-cells = <2>; |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 351 | interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>, |
| 352 | <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, |
| 353 | <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, |
| 354 | <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 355 | }; |
| 356 | |
| 357 | system-controller@18200 { |
| 358 | compatible = "marvell,armada-380-system-controller", |
| 359 | "marvell,armada-370-xp-system-controller"; |
| 360 | reg = <0x18200 0x100>; |
| 361 | }; |
| 362 | |
| 363 | gateclk: clock-gating-control@18220 { |
| 364 | compatible = "marvell,armada-380-gating-clock"; |
| 365 | reg = <0x18220 0x4>; |
| 366 | clocks = <&coreclk 0>; |
| 367 | #clock-cells = <1>; |
| 368 | }; |
| 369 | |
| 370 | coreclk: mvebu-sar@18600 { |
| 371 | compatible = "marvell,armada-380-core-clock"; |
| 372 | reg = <0x18600 0x04>; |
| 373 | #clock-cells = <1>; |
| 374 | }; |
| 375 | |
| 376 | mbusc: mbus-controller@20000 { |
| 377 | compatible = "marvell,mbus-controller"; |
| 378 | reg = <0x20000 0x100>, <0x20180 0x20>; |
| 379 | }; |
| 380 | |
Maxime Ripard | 1d7b083 | 2015-02-26 10:51:17 +0100 | [diff] [blame] | 381 | mpic: interrupt-controller@20a00 { |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 382 | compatible = "marvell,mpic"; |
| 383 | reg = <0x20a00 0x2d0>, <0x21070 0x58>; |
| 384 | #interrupt-cells = <1>; |
| 385 | #size-cells = <1>; |
| 386 | interrupt-controller; |
| 387 | msi-controller; |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 388 | interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 389 | }; |
| 390 | |
| 391 | timer@20300 { |
| 392 | compatible = "marvell,armada-380-timer", |
| 393 | "marvell,armada-xp-timer"; |
| 394 | reg = <0x20300 0x30>, <0x21040 0x30>; |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 395 | interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, |
| 396 | <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, |
| 397 | <&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>, |
| 398 | <&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 399 | <&mpic 5>, |
| 400 | <&mpic 6>; |
| 401 | clocks = <&coreclk 2>, <&refclk>; |
| 402 | clock-names = "nbclk", "fixed"; |
| 403 | }; |
| 404 | |
Ezequiel Garcia | 153a964 | 2014-04-14 10:23:32 -0300 | [diff] [blame] | 405 | watchdog@20300 { |
| 406 | compatible = "marvell,armada-380-wdt"; |
| 407 | reg = <0x20300 0x34>, <0x20704 0x4>, <0x18260 0x4>; |
| 408 | clocks = <&coreclk 2>, <&refclk>; |
| 409 | clock-names = "nbclk", "fixed"; |
| 410 | }; |
| 411 | |
Thomas Petazzoni | 19b06d7 | 2014-04-14 15:54:08 +0200 | [diff] [blame] | 412 | cpurst@20800 { |
| 413 | compatible = "marvell,armada-370-cpu-reset"; |
| 414 | reg = <0x20800 0x10>; |
| 415 | }; |
| 416 | |
Gregory CLEMENT | d7f3ec2 | 2014-07-09 15:40:14 +0200 | [diff] [blame] | 417 | mpcore-soc-ctrl@20d20 { |
| 418 | compatible = "marvell,armada-380-mpcore-soc-ctrl"; |
| 419 | reg = <0x20d20 0x6c>; |
| 420 | }; |
| 421 | |
Thomas Petazzoni | 964a615 | 2014-04-14 15:47:08 +0200 | [diff] [blame] | 422 | coherency-fabric@21010 { |
| 423 | compatible = "marvell,armada-380-coherency-fabric"; |
| 424 | reg = <0x21010 0x1c>; |
| 425 | }; |
| 426 | |
Thomas Petazzoni | 19b06d7 | 2014-04-14 15:54:08 +0200 | [diff] [blame] | 427 | pmsu@22000 { |
| 428 | compatible = "marvell,armada-380-pmsu"; |
| 429 | reg = <0x22000 0x1000>; |
| 430 | }; |
| 431 | |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 432 | eth1: ethernet@30000 { |
| 433 | compatible = "marvell,armada-370-neta"; |
| 434 | reg = <0x30000 0x4000>; |
| 435 | interrupts-extended = <&mpic 10>; |
| 436 | clocks = <&gateclk 3>; |
| 437 | status = "disabled"; |
| 438 | }; |
| 439 | |
| 440 | eth2: ethernet@34000 { |
| 441 | compatible = "marvell,armada-370-neta"; |
| 442 | reg = <0x34000 0x4000>; |
| 443 | interrupts-extended = <&mpic 12>; |
| 444 | clocks = <&gateclk 2>; |
| 445 | status = "disabled"; |
| 446 | }; |
| 447 | |
Thomas Petazzoni | a165c3b | 2015-03-03 15:40:57 +0100 | [diff] [blame] | 448 | usb@58000 { |
Gregory CLEMENT | 9e81775 | 2014-05-15 12:17:40 +0200 | [diff] [blame] | 449 | compatible = "marvell,orion-ehci"; |
| 450 | reg = <0x58000 0x500>; |
| 451 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; |
| 452 | clocks = <&gateclk 18>; |
| 453 | status = "disabled"; |
| 454 | }; |
| 455 | |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 456 | xor@60800 { |
Thomas Petazzoni | 449e1d6 | 2015-06-17 14:12:21 +0200 | [diff] [blame] | 457 | compatible = "marvell,armada-380-xor", "marvell,orion-xor"; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 458 | reg = <0x60800 0x100 |
| 459 | 0x60a00 0x100>; |
| 460 | clocks = <&gateclk 22>; |
| 461 | status = "okay"; |
| 462 | |
| 463 | xor00 { |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 464 | interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 465 | dmacap,memcpy; |
| 466 | dmacap,xor; |
| 467 | }; |
| 468 | xor01 { |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 469 | interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 470 | dmacap,memcpy; |
| 471 | dmacap,xor; |
| 472 | dmacap,memset; |
| 473 | }; |
| 474 | }; |
| 475 | |
| 476 | xor@60900 { |
Thomas Petazzoni | 449e1d6 | 2015-06-17 14:12:21 +0200 | [diff] [blame] | 477 | compatible = "marvell,armada-380-xor", "marvell,orion-xor"; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 478 | reg = <0x60900 0x100 |
| 479 | 0x60b00 0x100>; |
| 480 | clocks = <&gateclk 28>; |
| 481 | status = "okay"; |
| 482 | |
| 483 | xor10 { |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 484 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 485 | dmacap,memcpy; |
| 486 | dmacap,xor; |
| 487 | }; |
| 488 | xor11 { |
Thomas Petazzoni | d11548e | 2014-02-20 12:11:31 +0100 | [diff] [blame] | 489 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 490 | dmacap,memcpy; |
| 491 | dmacap,xor; |
| 492 | dmacap,memset; |
| 493 | }; |
| 494 | }; |
| 495 | |
| 496 | eth0: ethernet@70000 { |
| 497 | compatible = "marvell,armada-370-neta"; |
| 498 | reg = <0x70000 0x4000>; |
| 499 | interrupts-extended = <&mpic 8>; |
| 500 | clocks = <&gateclk 4>; |
| 501 | status = "disabled"; |
| 502 | }; |
| 503 | |
Imre Kaloz | 973ed08 | 2015-05-06 15:13:59 +0200 | [diff] [blame] | 504 | mdio: mdio@72004 { |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 505 | #address-cells = <1>; |
| 506 | #size-cells = <0>; |
| 507 | compatible = "marvell,orion-mdio"; |
| 508 | reg = <0x72004 0x4>; |
Thomas Petazzoni | 33faf20 | 2014-03-26 00:33:59 +0100 | [diff] [blame] | 509 | clocks = <&gateclk 4>; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 510 | }; |
Ezequiel Garcia | d6bd4b4 | 2014-03-13 17:24:30 -0300 | [diff] [blame] | 511 | |
Boris Brezillon | 35c99ec | 2015-08-18 10:08:58 +0200 | [diff] [blame] | 512 | crypto@90000 { |
| 513 | compatible = "marvell,armada-38x-crypto"; |
| 514 | reg = <0x90000 0x10000>; |
| 515 | reg-names = "regs"; |
| 516 | interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, |
| 517 | <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; |
| 518 | clocks = <&gateclk 23>, <&gateclk 21>, |
| 519 | <&gateclk 14>, <&gateclk 16>; |
| 520 | clock-names = "cesa0", "cesa1", |
| 521 | "cesaz0", "cesaz1"; |
| 522 | marvell,crypto-srams = <&crypto_sram0>, |
| 523 | <&crypto_sram1>; |
| 524 | marvell,crypto-sram-size = <0x800>; |
| 525 | }; |
| 526 | |
Gregory CLEMENT | a73c730 | 2015-02-13 14:41:18 -0800 | [diff] [blame] | 527 | rtc@a3800 { |
| 528 | compatible = "marvell,armada-380-rtc"; |
| 529 | reg = <0xa3800 0x20>, <0x184a0 0x0c>; |
| 530 | reg-names = "rtc", "rtc-soc"; |
| 531 | interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; |
| 532 | }; |
| 533 | |
Thomas Petazzoni | d175b6e | 2014-04-15 17:00:04 +0200 | [diff] [blame] | 534 | sata@a8000 { |
| 535 | compatible = "marvell,armada-380-ahci"; |
| 536 | reg = <0xa8000 0x2000>; |
| 537 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; |
| 538 | clocks = <&gateclk 15>; |
| 539 | status = "disabled"; |
| 540 | }; |
| 541 | |
| 542 | sata@e0000 { |
| 543 | compatible = "marvell,armada-380-ahci"; |
| 544 | reg = <0xe0000 0x2000>; |
| 545 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; |
| 546 | clocks = <&gateclk 30>; |
| 547 | status = "disabled"; |
| 548 | }; |
| 549 | |
Ezequiel Garcia | d6bd4b4 | 2014-03-13 17:24:30 -0300 | [diff] [blame] | 550 | coredivclk: clock@e4250 { |
| 551 | compatible = "marvell,armada-380-corediv-clock"; |
| 552 | reg = <0xe4250 0xc>; |
| 553 | #clock-cells = <1>; |
| 554 | clocks = <&mainpll>; |
| 555 | clock-output-names = "nand"; |
| 556 | }; |
Ezequiel Garcia | 93b5577 | 2014-03-13 17:24:31 -0300 | [diff] [blame] | 557 | |
Ezequiel Garcia | c630829 | 2014-04-24 17:23:24 -0300 | [diff] [blame] | 558 | thermal@e8078 { |
| 559 | compatible = "marvell,armada380-thermal"; |
| 560 | reg = <0xe4078 0x4>, <0xe4074 0x4>; |
| 561 | status = "okay"; |
| 562 | }; |
| 563 | |
Ezequiel Garcia | 93b5577 | 2014-03-13 17:24:31 -0300 | [diff] [blame] | 564 | flash@d0000 { |
| 565 | compatible = "marvell,armada370-nand"; |
| 566 | reg = <0xd0000 0x54>; |
| 567 | #address-cells = <1>; |
| 568 | #size-cells = <1>; |
| 569 | interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; |
| 570 | clocks = <&coredivclk 0>; |
| 571 | status = "disabled"; |
| 572 | }; |
Thomas Petazzoni | 6eccc52 | 2014-04-14 16:41:16 +0200 | [diff] [blame] | 573 | |
| 574 | sdhci@d8000 { |
| 575 | compatible = "marvell,armada-380-sdhci"; |
Gregory CLEMENT | ddbdc57 | 2015-01-29 12:36:29 +0100 | [diff] [blame] | 576 | reg-names = "sdhci", "mbus", "conf-sdio3"; |
| 577 | reg = <0xd8000 0x1000>, |
| 578 | <0xdc000 0x100>, |
| 579 | <0x18454 0x4>; |
Gregory CLEMENT | b757258 | 2015-01-29 12:36:28 +0100 | [diff] [blame] | 580 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; |
Thomas Petazzoni | 6eccc52 | 2014-04-14 16:41:16 +0200 | [diff] [blame] | 581 | clocks = <&gateclk 17>; |
| 582 | mrvl,clk-delay-cycles = <0x1F>; |
| 583 | status = "disabled"; |
| 584 | }; |
Gregory CLEMENT | 87e2fc3 | 2014-05-15 12:17:39 +0200 | [diff] [blame] | 585 | |
| 586 | usb3@f0000 { |
| 587 | compatible = "marvell,armada-380-xhci"; |
| 588 | reg = <0xf0000 0x4000>,<0xf4000 0x4000>; |
| 589 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; |
| 590 | clocks = <&gateclk 9>; |
| 591 | status = "disabled"; |
| 592 | }; |
| 593 | |
| 594 | usb3@f8000 { |
| 595 | compatible = "marvell,armada-380-xhci"; |
| 596 | reg = <0xf8000 0x4000>,<0xfc000 0x4000>; |
| 597 | interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
| 598 | clocks = <&gateclk 10>; |
| 599 | status = "disabled"; |
| 600 | }; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 601 | }; |
Boris Brezillon | 35c99ec | 2015-08-18 10:08:58 +0200 | [diff] [blame] | 602 | |
| 603 | crypto_sram0: sa-sram0 { |
| 604 | compatible = "mmio-sram"; |
| 605 | reg = <MBUS_ID(0x09, 0x19) 0 0x800>; |
| 606 | clocks = <&gateclk 23>; |
| 607 | #address-cells = <1>; |
| 608 | #size-cells = <1>; |
| 609 | ranges = <0 MBUS_ID(0x09, 0x19) 0 0x800>; |
| 610 | }; |
| 611 | |
| 612 | crypto_sram1: sa-sram1 { |
| 613 | compatible = "mmio-sram"; |
| 614 | reg = <MBUS_ID(0x09, 0x15) 0 0x800>; |
| 615 | clocks = <&gateclk 21>; |
| 616 | #address-cells = <1>; |
| 617 | #size-cells = <1>; |
| 618 | ranges = <0 MBUS_ID(0x09, 0x15) 0 0x800>; |
| 619 | }; |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 620 | }; |
| 621 | |
| 622 | clocks { |
Ezequiel Garcia | 5bc94c9 | 2014-03-13 17:24:29 -0300 | [diff] [blame] | 623 | /* 2 GHz fixed main PLL */ |
| 624 | mainpll: mainpll { |
| 625 | compatible = "fixed-clock"; |
| 626 | #clock-cells = <0>; |
Gregory CLEMENT | ae142bd | 2015-04-27 08:55:18 +0200 | [diff] [blame] | 627 | clock-frequency = <1000000000>; |
Ezequiel Garcia | 5bc94c9 | 2014-03-13 17:24:29 -0300 | [diff] [blame] | 628 | }; |
| 629 | |
Thomas Petazzoni | 0d3d96a | 2014-02-17 15:23:28 +0100 | [diff] [blame] | 630 | /* 25 MHz reference crystal */ |
| 631 | refclk: oscillator { |
| 632 | compatible = "fixed-clock"; |
| 633 | #clock-cells = <0>; |
| 634 | clock-frequency = <25000000>; |
| 635 | }; |
| 636 | }; |
| 637 | }; |