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