1*4882a593Smuzhiyun/* 2*4882a593Smuzhiyun * Device Tree Include file for Marvell Armada XP family SoC 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Copyright (C) 2012 Marvell 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * This file is dual-licensed: you can use it either under the terms 9*4882a593Smuzhiyun * of the GPL or the X11 license, at your option. Note that this dual 10*4882a593Smuzhiyun * licensing only applies to this file, and not this project as a 11*4882a593Smuzhiyun * whole. 12*4882a593Smuzhiyun * 13*4882a593Smuzhiyun * a) This file is free software; you can redistribute it and/or 14*4882a593Smuzhiyun * modify it under the terms of the GNU General Public License as 15*4882a593Smuzhiyun * published by the Free Software Foundation; either version 2 of the 16*4882a593Smuzhiyun * License, or (at your option) any later version. 17*4882a593Smuzhiyun * 18*4882a593Smuzhiyun * This file is distributed in the hope that it will be useful 19*4882a593Smuzhiyun * but WITHOUT ANY WARRANTY; without even the implied warranty of 20*4882a593Smuzhiyun * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21*4882a593Smuzhiyun * GNU General Public License for more details. 22*4882a593Smuzhiyun * 23*4882a593Smuzhiyun * Or, alternatively 24*4882a593Smuzhiyun * 25*4882a593Smuzhiyun * b) Permission is hereby granted, free of charge, to any person 26*4882a593Smuzhiyun * obtaining a copy of this software and associated documentation 27*4882a593Smuzhiyun * files (the "Software"), to deal in the Software without 28*4882a593Smuzhiyun * restriction, including without limitation the rights to use 29*4882a593Smuzhiyun * copy, modify, merge, publish, distribute, sublicense, and/or 30*4882a593Smuzhiyun * sell copies of the Software, and to permit persons to whom the 31*4882a593Smuzhiyun * Software is furnished to do so, subject to the following 32*4882a593Smuzhiyun * conditions: 33*4882a593Smuzhiyun * 34*4882a593Smuzhiyun * The above copyright notice and this permission notice shall be 35*4882a593Smuzhiyun * included in all copies or substantial portions of the Software. 36*4882a593Smuzhiyun * 37*4882a593Smuzhiyun * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND 38*4882a593Smuzhiyun * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 39*4882a593Smuzhiyun * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 40*4882a593Smuzhiyun * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 41*4882a593Smuzhiyun * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY 42*4882a593Smuzhiyun * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 43*4882a593Smuzhiyun * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 44*4882a593Smuzhiyun * OTHER DEALINGS IN THE SOFTWARE. 45*4882a593Smuzhiyun * 46*4882a593Smuzhiyun * Contains definitions specific to the Armada XP MV78230 SoC that are not 47*4882a593Smuzhiyun * common to all Armada XP SoCs. 48*4882a593Smuzhiyun */ 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun#include "armada-xp.dtsi" 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun/ { 53*4882a593Smuzhiyun model = "Marvell Armada XP MV78230 SoC"; 54*4882a593Smuzhiyun compatible = "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp"; 55*4882a593Smuzhiyun 56*4882a593Smuzhiyun aliases { 57*4882a593Smuzhiyun gpio0 = &gpio0; 58*4882a593Smuzhiyun gpio1 = &gpio1; 59*4882a593Smuzhiyun }; 60*4882a593Smuzhiyun 61*4882a593Smuzhiyun cpus { 62*4882a593Smuzhiyun #address-cells = <1>; 63*4882a593Smuzhiyun #size-cells = <0>; 64*4882a593Smuzhiyun enable-method = "marvell,armada-xp-smp"; 65*4882a593Smuzhiyun 66*4882a593Smuzhiyun cpu@0 { 67*4882a593Smuzhiyun device_type = "cpu"; 68*4882a593Smuzhiyun compatible = "marvell,sheeva-v7"; 69*4882a593Smuzhiyun reg = <0>; 70*4882a593Smuzhiyun clocks = <&cpuclk 0>; 71*4882a593Smuzhiyun clock-latency = <1000000>; 72*4882a593Smuzhiyun }; 73*4882a593Smuzhiyun 74*4882a593Smuzhiyun cpu@1 { 75*4882a593Smuzhiyun device_type = "cpu"; 76*4882a593Smuzhiyun compatible = "marvell,sheeva-v7"; 77*4882a593Smuzhiyun reg = <1>; 78*4882a593Smuzhiyun clocks = <&cpuclk 1>; 79*4882a593Smuzhiyun clock-latency = <1000000>; 80*4882a593Smuzhiyun }; 81*4882a593Smuzhiyun }; 82*4882a593Smuzhiyun 83*4882a593Smuzhiyun soc { 84*4882a593Smuzhiyun /* 85*4882a593Smuzhiyun * MV78230 has 2 PCIe units Gen2.0: One unit can be 86*4882a593Smuzhiyun * configured as x4 or quad x1 lanes. One unit is 87*4882a593Smuzhiyun * x1 only. 88*4882a593Smuzhiyun */ 89*4882a593Smuzhiyun pcie-controller { 90*4882a593Smuzhiyun compatible = "marvell,armada-xp-pcie"; 91*4882a593Smuzhiyun status = "disabled"; 92*4882a593Smuzhiyun device_type = "pci"; 93*4882a593Smuzhiyun 94*4882a593Smuzhiyun #address-cells = <3>; 95*4882a593Smuzhiyun #size-cells = <2>; 96*4882a593Smuzhiyun 97*4882a593Smuzhiyun msi-parent = <&mpic>; 98*4882a593Smuzhiyun bus-range = <0x00 0xff>; 99*4882a593Smuzhiyun 100*4882a593Smuzhiyun ranges = 101*4882a593Smuzhiyun <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */ 102*4882a593Smuzhiyun 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */ 103*4882a593Smuzhiyun 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */ 104*4882a593Smuzhiyun 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */ 105*4882a593Smuzhiyun 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */ 106*4882a593Smuzhiyun 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */ 107*4882a593Smuzhiyun 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */ 108*4882a593Smuzhiyun 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */ 109*4882a593Smuzhiyun 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */ 110*4882a593Smuzhiyun 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */ 111*4882a593Smuzhiyun 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */ 112*4882a593Smuzhiyun 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */ 113*4882a593Smuzhiyun 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */ 114*4882a593Smuzhiyun 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */ 115*4882a593Smuzhiyun 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>; 116*4882a593Smuzhiyun 117*4882a593Smuzhiyun pcie@1,0 { 118*4882a593Smuzhiyun device_type = "pci"; 119*4882a593Smuzhiyun assigned-addresses = <0x82000800 0 0x40000 0 0x2000>; 120*4882a593Smuzhiyun reg = <0x0800 0 0 0 0>; 121*4882a593Smuzhiyun #address-cells = <3>; 122*4882a593Smuzhiyun #size-cells = <2>; 123*4882a593Smuzhiyun #interrupt-cells = <1>; 124*4882a593Smuzhiyun ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0 125*4882a593Smuzhiyun 0x81000000 0 0 0x81000000 0x1 0 1 0>; 126*4882a593Smuzhiyun interrupt-map-mask = <0 0 0 0>; 127*4882a593Smuzhiyun interrupt-map = <0 0 0 0 &mpic 58>; 128*4882a593Smuzhiyun marvell,pcie-port = <0>; 129*4882a593Smuzhiyun marvell,pcie-lane = <0>; 130*4882a593Smuzhiyun clocks = <&gateclk 5>; 131*4882a593Smuzhiyun status = "disabled"; 132*4882a593Smuzhiyun }; 133*4882a593Smuzhiyun 134*4882a593Smuzhiyun pcie@2,0 { 135*4882a593Smuzhiyun device_type = "pci"; 136*4882a593Smuzhiyun assigned-addresses = <0x82000800 0 0x44000 0 0x2000>; 137*4882a593Smuzhiyun reg = <0x1000 0 0 0 0>; 138*4882a593Smuzhiyun #address-cells = <3>; 139*4882a593Smuzhiyun #size-cells = <2>; 140*4882a593Smuzhiyun #interrupt-cells = <1>; 141*4882a593Smuzhiyun ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0 142*4882a593Smuzhiyun 0x81000000 0 0 0x81000000 0x2 0 1 0>; 143*4882a593Smuzhiyun interrupt-map-mask = <0 0 0 0>; 144*4882a593Smuzhiyun interrupt-map = <0 0 0 0 &mpic 59>; 145*4882a593Smuzhiyun marvell,pcie-port = <0>; 146*4882a593Smuzhiyun marvell,pcie-lane = <1>; 147*4882a593Smuzhiyun clocks = <&gateclk 6>; 148*4882a593Smuzhiyun status = "disabled"; 149*4882a593Smuzhiyun }; 150*4882a593Smuzhiyun 151*4882a593Smuzhiyun pcie@3,0 { 152*4882a593Smuzhiyun device_type = "pci"; 153*4882a593Smuzhiyun assigned-addresses = <0x82000800 0 0x48000 0 0x2000>; 154*4882a593Smuzhiyun reg = <0x1800 0 0 0 0>; 155*4882a593Smuzhiyun #address-cells = <3>; 156*4882a593Smuzhiyun #size-cells = <2>; 157*4882a593Smuzhiyun #interrupt-cells = <1>; 158*4882a593Smuzhiyun ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0 159*4882a593Smuzhiyun 0x81000000 0 0 0x81000000 0x3 0 1 0>; 160*4882a593Smuzhiyun interrupt-map-mask = <0 0 0 0>; 161*4882a593Smuzhiyun interrupt-map = <0 0 0 0 &mpic 60>; 162*4882a593Smuzhiyun marvell,pcie-port = <0>; 163*4882a593Smuzhiyun marvell,pcie-lane = <2>; 164*4882a593Smuzhiyun clocks = <&gateclk 7>; 165*4882a593Smuzhiyun status = "disabled"; 166*4882a593Smuzhiyun }; 167*4882a593Smuzhiyun 168*4882a593Smuzhiyun pcie@4,0 { 169*4882a593Smuzhiyun device_type = "pci"; 170*4882a593Smuzhiyun assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>; 171*4882a593Smuzhiyun reg = <0x2000 0 0 0 0>; 172*4882a593Smuzhiyun #address-cells = <3>; 173*4882a593Smuzhiyun #size-cells = <2>; 174*4882a593Smuzhiyun #interrupt-cells = <1>; 175*4882a593Smuzhiyun ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0 176*4882a593Smuzhiyun 0x81000000 0 0 0x81000000 0x4 0 1 0>; 177*4882a593Smuzhiyun interrupt-map-mask = <0 0 0 0>; 178*4882a593Smuzhiyun interrupt-map = <0 0 0 0 &mpic 61>; 179*4882a593Smuzhiyun marvell,pcie-port = <0>; 180*4882a593Smuzhiyun marvell,pcie-lane = <3>; 181*4882a593Smuzhiyun clocks = <&gateclk 8>; 182*4882a593Smuzhiyun status = "disabled"; 183*4882a593Smuzhiyun }; 184*4882a593Smuzhiyun 185*4882a593Smuzhiyun pcie@5,0 { 186*4882a593Smuzhiyun device_type = "pci"; 187*4882a593Smuzhiyun assigned-addresses = <0x82000800 0 0x80000 0 0x2000>; 188*4882a593Smuzhiyun reg = <0x2800 0 0 0 0>; 189*4882a593Smuzhiyun #address-cells = <3>; 190*4882a593Smuzhiyun #size-cells = <2>; 191*4882a593Smuzhiyun #interrupt-cells = <1>; 192*4882a593Smuzhiyun ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0 193*4882a593Smuzhiyun 0x81000000 0 0 0x81000000 0x5 0 1 0>; 194*4882a593Smuzhiyun interrupt-map-mask = <0 0 0 0>; 195*4882a593Smuzhiyun interrupt-map = <0 0 0 0 &mpic 62>; 196*4882a593Smuzhiyun marvell,pcie-port = <1>; 197*4882a593Smuzhiyun marvell,pcie-lane = <0>; 198*4882a593Smuzhiyun clocks = <&gateclk 9>; 199*4882a593Smuzhiyun status = "disabled"; 200*4882a593Smuzhiyun }; 201*4882a593Smuzhiyun }; 202*4882a593Smuzhiyun 203*4882a593Smuzhiyun internal-regs { 204*4882a593Smuzhiyun gpio0: gpio@18100 { 205*4882a593Smuzhiyun compatible = "marvell,orion-gpio"; 206*4882a593Smuzhiyun reg = <0x18100 0x40>; 207*4882a593Smuzhiyun ngpios = <32>; 208*4882a593Smuzhiyun gpio-controller; 209*4882a593Smuzhiyun #gpio-cells = <2>; 210*4882a593Smuzhiyun interrupt-controller; 211*4882a593Smuzhiyun #interrupt-cells = <2>; 212*4882a593Smuzhiyun interrupts = <82>, <83>, <84>, <85>; 213*4882a593Smuzhiyun }; 214*4882a593Smuzhiyun 215*4882a593Smuzhiyun gpio1: gpio@18140 { 216*4882a593Smuzhiyun compatible = "marvell,orion-gpio"; 217*4882a593Smuzhiyun reg = <0x18140 0x40>; 218*4882a593Smuzhiyun ngpios = <17>; 219*4882a593Smuzhiyun gpio-controller; 220*4882a593Smuzhiyun #gpio-cells = <2>; 221*4882a593Smuzhiyun interrupt-controller; 222*4882a593Smuzhiyun #interrupt-cells = <2>; 223*4882a593Smuzhiyun interrupts = <87>, <88>, <89>; 224*4882a593Smuzhiyun }; 225*4882a593Smuzhiyun }; 226*4882a593Smuzhiyun }; 227*4882a593Smuzhiyun}; 228*4882a593Smuzhiyun 229*4882a593Smuzhiyun&pinctrl { 230*4882a593Smuzhiyun compatible = "marvell,mv78230-pinctrl"; 231*4882a593Smuzhiyun}; 232