xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/armada-380.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Device Tree Include file for Marvell Armada 380 SoC.
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 "armada-38x.dtsi"
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun/ {
52*4882a593Smuzhiyun	model = "Marvell Armada 380 family SoC";
53*4882a593Smuzhiyun	compatible = "marvell,armada380";
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun	cpus {
56*4882a593Smuzhiyun		#address-cells = <1>;
57*4882a593Smuzhiyun		#size-cells = <0>;
58*4882a593Smuzhiyun		enable-method = "marvell,armada-380-smp";
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun		cpu@0 {
61*4882a593Smuzhiyun			device_type = "cpu";
62*4882a593Smuzhiyun			compatible = "arm,cortex-a9";
63*4882a593Smuzhiyun			reg = <0>;
64*4882a593Smuzhiyun		};
65*4882a593Smuzhiyun	};
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun	soc {
68*4882a593Smuzhiyun		internal-regs {
69*4882a593Smuzhiyun			pinctrl@18000 {
70*4882a593Smuzhiyun				compatible = "marvell,mv88f6810-pinctrl";
71*4882a593Smuzhiyun			};
72*4882a593Smuzhiyun		};
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun		pcie-controller {
75*4882a593Smuzhiyun			compatible = "marvell,armada-370-pcie";
76*4882a593Smuzhiyun			status = "disabled";
77*4882a593Smuzhiyun			device_type = "pci";
78*4882a593Smuzhiyun
79*4882a593Smuzhiyun			#address-cells = <3>;
80*4882a593Smuzhiyun			#size-cells = <2>;
81*4882a593Smuzhiyun
82*4882a593Smuzhiyun			msi-parent = <&mpic>;
83*4882a593Smuzhiyun			bus-range = <0x00 0xff>;
84*4882a593Smuzhiyun
85*4882a593Smuzhiyun			ranges =
86*4882a593Smuzhiyun			       <0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
87*4882a593Smuzhiyun				0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
88*4882a593Smuzhiyun				0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000
89*4882a593Smuzhiyun				0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000
90*4882a593Smuzhiyun				0x82000000 0x1 0     MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 0 MEM */
91*4882a593Smuzhiyun				0x81000000 0x1 0     MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 0 IO  */
92*4882a593Smuzhiyun				0x82000000 0x2 0     MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 1 MEM */
93*4882a593Smuzhiyun				0x81000000 0x2 0     MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 1 IO  */
94*4882a593Smuzhiyun				0x82000000 0x3 0     MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 2 MEM */
95*4882a593Smuzhiyun				0x81000000 0x3 0     MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 2 IO  */>;
96*4882a593Smuzhiyun
97*4882a593Smuzhiyun			/* x1 port */
98*4882a593Smuzhiyun			pcie@1,0 {
99*4882a593Smuzhiyun				device_type = "pci";
100*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
101*4882a593Smuzhiyun				reg = <0x0800 0 0 0 0>;
102*4882a593Smuzhiyun				#address-cells = <3>;
103*4882a593Smuzhiyun				#size-cells = <2>;
104*4882a593Smuzhiyun				#interrupt-cells = <1>;
105*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
106*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x1 0 1 0>;
107*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
108*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
109*4882a593Smuzhiyun				marvell,pcie-port = <0>;
110*4882a593Smuzhiyun				marvell,pcie-lane = <0>;
111*4882a593Smuzhiyun				clocks = <&gateclk 8>;
112*4882a593Smuzhiyun				status = "disabled";
113*4882a593Smuzhiyun			};
114*4882a593Smuzhiyun
115*4882a593Smuzhiyun			/* x1 port */
116*4882a593Smuzhiyun			pcie@2,0 {
117*4882a593Smuzhiyun				device_type = "pci";
118*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
119*4882a593Smuzhiyun				reg = <0x1000 0 0 0 0>;
120*4882a593Smuzhiyun				#address-cells = <3>;
121*4882a593Smuzhiyun				#size-cells = <2>;
122*4882a593Smuzhiyun				#interrupt-cells = <1>;
123*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
124*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x2 0 1 0>;
125*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
126*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
127*4882a593Smuzhiyun				marvell,pcie-port = <1>;
128*4882a593Smuzhiyun				marvell,pcie-lane = <0>;
129*4882a593Smuzhiyun				clocks = <&gateclk 5>;
130*4882a593Smuzhiyun				status = "disabled";
131*4882a593Smuzhiyun			};
132*4882a593Smuzhiyun
133*4882a593Smuzhiyun			/* x1 port */
134*4882a593Smuzhiyun			pcie@3,0 {
135*4882a593Smuzhiyun				device_type = "pci";
136*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
137*4882a593Smuzhiyun				reg = <0x1800 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 0x3 0 1 0
142*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x3 0 1 0>;
143*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
144*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
145*4882a593Smuzhiyun				marvell,pcie-port = <2>;
146*4882a593Smuzhiyun				marvell,pcie-lane = <0>;
147*4882a593Smuzhiyun				clocks = <&gateclk 6>;
148*4882a593Smuzhiyun				status = "disabled";
149*4882a593Smuzhiyun			};
150*4882a593Smuzhiyun		};
151*4882a593Smuzhiyun	};
152*4882a593Smuzhiyun};
153