1*4882a593Smuzhiyun// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*4882a593Smuzhiyun/* 3*4882a593Smuzhiyun * Device Tree Include file for Marvell Armada 370 and Armada XP SoC 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 2012 Marvell 6*4882a593Smuzhiyun * 7*4882a593Smuzhiyun * Lior Amsalem <alior@marvell.com> 8*4882a593Smuzhiyun * Gregory CLEMENT <gregory.clement@free-electrons.com> 9*4882a593Smuzhiyun * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 10*4882a593Smuzhiyun * Ben Dooks <ben.dooks@codethink.co.uk> 11*4882a593Smuzhiyun * 12*4882a593Smuzhiyun * This file contains the definitions that are common to the Armada 13*4882a593Smuzhiyun * 370 and Armada XP SoC. 14*4882a593Smuzhiyun */ 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16)) 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun/ { 19*4882a593Smuzhiyun model = "Marvell Armada 370 and XP SoC"; 20*4882a593Smuzhiyun compatible = "marvell,armada-370-xp"; 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun aliases { 23*4882a593Smuzhiyun serial0 = &uart0; 24*4882a593Smuzhiyun serial1 = &uart1; 25*4882a593Smuzhiyun }; 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun cpus { 28*4882a593Smuzhiyun #address-cells = <1>; 29*4882a593Smuzhiyun #size-cells = <0>; 30*4882a593Smuzhiyun cpu@0 { 31*4882a593Smuzhiyun compatible = "marvell,sheeva-v7"; 32*4882a593Smuzhiyun device_type = "cpu"; 33*4882a593Smuzhiyun reg = <0>; 34*4882a593Smuzhiyun }; 35*4882a593Smuzhiyun }; 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun pmu { 38*4882a593Smuzhiyun compatible = "arm,cortex-a9-pmu"; 39*4882a593Smuzhiyun interrupts-extended = <&mpic 3>; 40*4882a593Smuzhiyun }; 41*4882a593Smuzhiyun 42*4882a593Smuzhiyun soc { 43*4882a593Smuzhiyun #address-cells = <2>; 44*4882a593Smuzhiyun #size-cells = <1>; 45*4882a593Smuzhiyun controller = <&mbusc>; 46*4882a593Smuzhiyun interrupt-parent = <&mpic>; 47*4882a593Smuzhiyun pcie-mem-aperture = <0xf8000000 0x7e00000>; 48*4882a593Smuzhiyun pcie-io-aperture = <0xffe00000 0x100000>; 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun devbus_bootcs: devbus-bootcs { 51*4882a593Smuzhiyun compatible = "marvell,mvebu-devbus"; 52*4882a593Smuzhiyun reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>; 53*4882a593Smuzhiyun ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>; 54*4882a593Smuzhiyun #address-cells = <1>; 55*4882a593Smuzhiyun #size-cells = <1>; 56*4882a593Smuzhiyun clocks = <&coreclk 0>; 57*4882a593Smuzhiyun status = "disabled"; 58*4882a593Smuzhiyun }; 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun devbus_cs0: devbus-cs0 { 61*4882a593Smuzhiyun compatible = "marvell,mvebu-devbus"; 62*4882a593Smuzhiyun reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>; 63*4882a593Smuzhiyun ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>; 64*4882a593Smuzhiyun #address-cells = <1>; 65*4882a593Smuzhiyun #size-cells = <1>; 66*4882a593Smuzhiyun clocks = <&coreclk 0>; 67*4882a593Smuzhiyun status = "disabled"; 68*4882a593Smuzhiyun }; 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun devbus_cs1: devbus-cs1 { 71*4882a593Smuzhiyun compatible = "marvell,mvebu-devbus"; 72*4882a593Smuzhiyun reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>; 73*4882a593Smuzhiyun ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>; 74*4882a593Smuzhiyun #address-cells = <1>; 75*4882a593Smuzhiyun #size-cells = <1>; 76*4882a593Smuzhiyun clocks = <&coreclk 0>; 77*4882a593Smuzhiyun status = "disabled"; 78*4882a593Smuzhiyun }; 79*4882a593Smuzhiyun 80*4882a593Smuzhiyun devbus_cs2: devbus-cs2 { 81*4882a593Smuzhiyun compatible = "marvell,mvebu-devbus"; 82*4882a593Smuzhiyun reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>; 83*4882a593Smuzhiyun ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>; 84*4882a593Smuzhiyun #address-cells = <1>; 85*4882a593Smuzhiyun #size-cells = <1>; 86*4882a593Smuzhiyun clocks = <&coreclk 0>; 87*4882a593Smuzhiyun status = "disabled"; 88*4882a593Smuzhiyun }; 89*4882a593Smuzhiyun 90*4882a593Smuzhiyun devbus_cs3: devbus-cs3 { 91*4882a593Smuzhiyun compatible = "marvell,mvebu-devbus"; 92*4882a593Smuzhiyun reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>; 93*4882a593Smuzhiyun ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>; 94*4882a593Smuzhiyun #address-cells = <1>; 95*4882a593Smuzhiyun #size-cells = <1>; 96*4882a593Smuzhiyun clocks = <&coreclk 0>; 97*4882a593Smuzhiyun status = "disabled"; 98*4882a593Smuzhiyun }; 99*4882a593Smuzhiyun 100*4882a593Smuzhiyun internal-regs { 101*4882a593Smuzhiyun compatible = "simple-bus"; 102*4882a593Smuzhiyun #address-cells = <1>; 103*4882a593Smuzhiyun #size-cells = <1>; 104*4882a593Smuzhiyun ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>; 105*4882a593Smuzhiyun 106*4882a593Smuzhiyun rtc: rtc@10300 { 107*4882a593Smuzhiyun compatible = "marvell,orion-rtc"; 108*4882a593Smuzhiyun reg = <0x10300 0x20>; 109*4882a593Smuzhiyun interrupts = <50>; 110*4882a593Smuzhiyun }; 111*4882a593Smuzhiyun 112*4882a593Smuzhiyun i2c0: i2c@11000 { 113*4882a593Smuzhiyun compatible = "marvell,mv64xxx-i2c"; 114*4882a593Smuzhiyun #address-cells = <1>; 115*4882a593Smuzhiyun #size-cells = <0>; 116*4882a593Smuzhiyun interrupts = <31>; 117*4882a593Smuzhiyun clocks = <&coreclk 0>; 118*4882a593Smuzhiyun status = "disabled"; 119*4882a593Smuzhiyun }; 120*4882a593Smuzhiyun 121*4882a593Smuzhiyun i2c1: i2c@11100 { 122*4882a593Smuzhiyun compatible = "marvell,mv64xxx-i2c"; 123*4882a593Smuzhiyun #address-cells = <1>; 124*4882a593Smuzhiyun #size-cells = <0>; 125*4882a593Smuzhiyun interrupts = <32>; 126*4882a593Smuzhiyun clocks = <&coreclk 0>; 127*4882a593Smuzhiyun status = "disabled"; 128*4882a593Smuzhiyun }; 129*4882a593Smuzhiyun 130*4882a593Smuzhiyun uart0: serial@12000 { 131*4882a593Smuzhiyun compatible = "snps,dw-apb-uart"; 132*4882a593Smuzhiyun reg = <0x12000 0x100>; 133*4882a593Smuzhiyun reg-shift = <2>; 134*4882a593Smuzhiyun interrupts = <41>; 135*4882a593Smuzhiyun reg-io-width = <1>; 136*4882a593Smuzhiyun clocks = <&coreclk 0>; 137*4882a593Smuzhiyun status = "disabled"; 138*4882a593Smuzhiyun }; 139*4882a593Smuzhiyun 140*4882a593Smuzhiyun uart1: serial@12100 { 141*4882a593Smuzhiyun compatible = "snps,dw-apb-uart"; 142*4882a593Smuzhiyun reg = <0x12100 0x100>; 143*4882a593Smuzhiyun reg-shift = <2>; 144*4882a593Smuzhiyun interrupts = <42>; 145*4882a593Smuzhiyun reg-io-width = <1>; 146*4882a593Smuzhiyun clocks = <&coreclk 0>; 147*4882a593Smuzhiyun status = "disabled"; 148*4882a593Smuzhiyun }; 149*4882a593Smuzhiyun 150*4882a593Smuzhiyun pinctrl: pin-ctrl@18000 { 151*4882a593Smuzhiyun reg = <0x18000 0x38>; 152*4882a593Smuzhiyun }; 153*4882a593Smuzhiyun 154*4882a593Smuzhiyun coredivclk: corediv-clock@18740 { 155*4882a593Smuzhiyun compatible = "marvell,armada-370-corediv-clock"; 156*4882a593Smuzhiyun reg = <0x18740 0xc>; 157*4882a593Smuzhiyun #clock-cells = <1>; 158*4882a593Smuzhiyun clocks = <&mainpll>; 159*4882a593Smuzhiyun clock-output-names = "nand"; 160*4882a593Smuzhiyun }; 161*4882a593Smuzhiyun 162*4882a593Smuzhiyun mbusc: mbus-controller@20000 { 163*4882a593Smuzhiyun compatible = "marvell,mbus-controller"; 164*4882a593Smuzhiyun reg = <0x20000 0x100>, <0x20180 0x20>, 165*4882a593Smuzhiyun <0x20250 0x8>; 166*4882a593Smuzhiyun }; 167*4882a593Smuzhiyun 168*4882a593Smuzhiyun mpic: interrupt-controller@20a00 { 169*4882a593Smuzhiyun compatible = "marvell,mpic"; 170*4882a593Smuzhiyun #interrupt-cells = <1>; 171*4882a593Smuzhiyun #size-cells = <1>; 172*4882a593Smuzhiyun interrupt-controller; 173*4882a593Smuzhiyun msi-controller; 174*4882a593Smuzhiyun }; 175*4882a593Smuzhiyun 176*4882a593Smuzhiyun coherencyfab: coherency-fabric@20200 { 177*4882a593Smuzhiyun compatible = "marvell,coherency-fabric"; 178*4882a593Smuzhiyun reg = <0x20200 0xb0>, <0x21010 0x1c>; 179*4882a593Smuzhiyun }; 180*4882a593Smuzhiyun 181*4882a593Smuzhiyun timer: timer@20300 { 182*4882a593Smuzhiyun reg = <0x20300 0x30>, <0x21040 0x30>; 183*4882a593Smuzhiyun interrupts = <37>, <38>, <39>, <40>, <5>, <6>; 184*4882a593Smuzhiyun }; 185*4882a593Smuzhiyun 186*4882a593Smuzhiyun watchdog: watchdog@20300 { 187*4882a593Smuzhiyun reg = <0x20300 0x34>, <0x20704 0x4>; 188*4882a593Smuzhiyun }; 189*4882a593Smuzhiyun 190*4882a593Smuzhiyun cpurst: cpurst@20800 { 191*4882a593Smuzhiyun compatible = "marvell,armada-370-cpu-reset"; 192*4882a593Smuzhiyun reg = <0x20800 0x8>; 193*4882a593Smuzhiyun }; 194*4882a593Smuzhiyun 195*4882a593Smuzhiyun pmsu: pmsu@22000 { 196*4882a593Smuzhiyun compatible = "marvell,armada-370-pmsu"; 197*4882a593Smuzhiyun reg = <0x22000 0x1000>; 198*4882a593Smuzhiyun }; 199*4882a593Smuzhiyun 200*4882a593Smuzhiyun usb0: usb@50000 { 201*4882a593Smuzhiyun compatible = "marvell,orion-ehci"; 202*4882a593Smuzhiyun reg = <0x50000 0x500>; 203*4882a593Smuzhiyun interrupts = <45>; 204*4882a593Smuzhiyun status = "disabled"; 205*4882a593Smuzhiyun }; 206*4882a593Smuzhiyun 207*4882a593Smuzhiyun usb1: usb@51000 { 208*4882a593Smuzhiyun compatible = "marvell,orion-ehci"; 209*4882a593Smuzhiyun reg = <0x51000 0x500>; 210*4882a593Smuzhiyun interrupts = <46>; 211*4882a593Smuzhiyun status = "disabled"; 212*4882a593Smuzhiyun }; 213*4882a593Smuzhiyun 214*4882a593Smuzhiyun eth0: ethernet@70000 { 215*4882a593Smuzhiyun reg = <0x70000 0x4000>; 216*4882a593Smuzhiyun interrupts = <8>; 217*4882a593Smuzhiyun clocks = <&gateclk 4>; 218*4882a593Smuzhiyun status = "disabled"; 219*4882a593Smuzhiyun }; 220*4882a593Smuzhiyun 221*4882a593Smuzhiyun mdio: mdio@72004 { 222*4882a593Smuzhiyun #address-cells = <1>; 223*4882a593Smuzhiyun #size-cells = <0>; 224*4882a593Smuzhiyun compatible = "marvell,orion-mdio"; 225*4882a593Smuzhiyun reg = <0x72004 0x4>; 226*4882a593Smuzhiyun clocks = <&gateclk 4>; 227*4882a593Smuzhiyun }; 228*4882a593Smuzhiyun 229*4882a593Smuzhiyun eth1: ethernet@74000 { 230*4882a593Smuzhiyun reg = <0x74000 0x4000>; 231*4882a593Smuzhiyun interrupts = <10>; 232*4882a593Smuzhiyun clocks = <&gateclk 3>; 233*4882a593Smuzhiyun status = "disabled"; 234*4882a593Smuzhiyun }; 235*4882a593Smuzhiyun 236*4882a593Smuzhiyun sata: sata@a0000 { 237*4882a593Smuzhiyun compatible = "marvell,armada-370-sata"; 238*4882a593Smuzhiyun reg = <0xa0000 0x5000>; 239*4882a593Smuzhiyun interrupts = <55>; 240*4882a593Smuzhiyun clocks = <&gateclk 15>, <&gateclk 30>; 241*4882a593Smuzhiyun clock-names = "0", "1"; 242*4882a593Smuzhiyun status = "disabled"; 243*4882a593Smuzhiyun }; 244*4882a593Smuzhiyun 245*4882a593Smuzhiyun nand_controller: nand-controller@d0000 { 246*4882a593Smuzhiyun compatible = "marvell,armada370-nand-controller"; 247*4882a593Smuzhiyun reg = <0xd0000 0x54>; 248*4882a593Smuzhiyun #address-cells = <1>; 249*4882a593Smuzhiyun #size-cells = <0>; 250*4882a593Smuzhiyun interrupts = <113>; 251*4882a593Smuzhiyun clocks = <&coredivclk 0>; 252*4882a593Smuzhiyun status = "disabled"; 253*4882a593Smuzhiyun }; 254*4882a593Smuzhiyun 255*4882a593Smuzhiyun sdio: mvsdio@d4000 { 256*4882a593Smuzhiyun compatible = "marvell,orion-sdio"; 257*4882a593Smuzhiyun reg = <0xd4000 0x200>; 258*4882a593Smuzhiyun interrupts = <54>; 259*4882a593Smuzhiyun clocks = <&gateclk 17>; 260*4882a593Smuzhiyun bus-width = <4>; 261*4882a593Smuzhiyun cap-sdio-irq; 262*4882a593Smuzhiyun cap-sd-highspeed; 263*4882a593Smuzhiyun cap-mmc-highspeed; 264*4882a593Smuzhiyun status = "disabled"; 265*4882a593Smuzhiyun }; 266*4882a593Smuzhiyun }; 267*4882a593Smuzhiyun 268*4882a593Smuzhiyun spi0: spi@10600 { 269*4882a593Smuzhiyun reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x28>, /* control */ 270*4882a593Smuzhiyun <MBUS_ID(0x01, 0x1e) 0 0xffffffff>, /* CS0 */ 271*4882a593Smuzhiyun <MBUS_ID(0x01, 0x5e) 0 0xffffffff>, /* CS1 */ 272*4882a593Smuzhiyun <MBUS_ID(0x01, 0x9e) 0 0xffffffff>, /* CS2 */ 273*4882a593Smuzhiyun <MBUS_ID(0x01, 0xde) 0 0xffffffff>, /* CS3 */ 274*4882a593Smuzhiyun <MBUS_ID(0x01, 0x1f) 0 0xffffffff>, /* CS4 */ 275*4882a593Smuzhiyun <MBUS_ID(0x01, 0x5f) 0 0xffffffff>, /* CS5 */ 276*4882a593Smuzhiyun <MBUS_ID(0x01, 0x9f) 0 0xffffffff>, /* CS6 */ 277*4882a593Smuzhiyun <MBUS_ID(0x01, 0xdf) 0 0xffffffff>; /* CS7 */ 278*4882a593Smuzhiyun #address-cells = <1>; 279*4882a593Smuzhiyun #size-cells = <0>; 280*4882a593Smuzhiyun cell-index = <0>; 281*4882a593Smuzhiyun interrupts = <30>; 282*4882a593Smuzhiyun clocks = <&coreclk 0>; 283*4882a593Smuzhiyun status = "disabled"; 284*4882a593Smuzhiyun }; 285*4882a593Smuzhiyun 286*4882a593Smuzhiyun spi1: spi@10680 { 287*4882a593Smuzhiyun reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x28>, /* control */ 288*4882a593Smuzhiyun <MBUS_ID(0x01, 0x1a) 0 0xffffffff>, /* CS0 */ 289*4882a593Smuzhiyun <MBUS_ID(0x01, 0x5a) 0 0xffffffff>, /* CS1 */ 290*4882a593Smuzhiyun <MBUS_ID(0x01, 0x9a) 0 0xffffffff>, /* CS2 */ 291*4882a593Smuzhiyun <MBUS_ID(0x01, 0xda) 0 0xffffffff>, /* CS3 */ 292*4882a593Smuzhiyun <MBUS_ID(0x01, 0x1b) 0 0xffffffff>, /* CS4 */ 293*4882a593Smuzhiyun <MBUS_ID(0x01, 0x5b) 0 0xffffffff>, /* CS5 */ 294*4882a593Smuzhiyun <MBUS_ID(0x01, 0x9b) 0 0xffffffff>, /* CS6 */ 295*4882a593Smuzhiyun <MBUS_ID(0x01, 0xdb) 0 0xffffffff>; /* CS7 */ 296*4882a593Smuzhiyun #address-cells = <1>; 297*4882a593Smuzhiyun #size-cells = <0>; 298*4882a593Smuzhiyun cell-index = <1>; 299*4882a593Smuzhiyun interrupts = <92>; 300*4882a593Smuzhiyun clocks = <&coreclk 0>; 301*4882a593Smuzhiyun status = "disabled"; 302*4882a593Smuzhiyun }; 303*4882a593Smuzhiyun }; 304*4882a593Smuzhiyun 305*4882a593Smuzhiyun clocks { 306*4882a593Smuzhiyun /* 2 GHz fixed main PLL */ 307*4882a593Smuzhiyun mainpll: mainpll { 308*4882a593Smuzhiyun compatible = "fixed-clock"; 309*4882a593Smuzhiyun #clock-cells = <0>; 310*4882a593Smuzhiyun clock-frequency = <2000000000>; 311*4882a593Smuzhiyun }; 312*4882a593Smuzhiyun }; 313*4882a593Smuzhiyun }; 314