xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/armada-385.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Device Tree Include file for Marvell Armada 385 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 385 family SoC";
53*4882a593Smuzhiyun	compatible = "marvell,armada385", "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		cpu@1 {
66*4882a593Smuzhiyun			device_type = "cpu";
67*4882a593Smuzhiyun			compatible = "arm,cortex-a9";
68*4882a593Smuzhiyun			reg = <1>;
69*4882a593Smuzhiyun		};
70*4882a593Smuzhiyun	};
71*4882a593Smuzhiyun
72*4882a593Smuzhiyun	soc {
73*4882a593Smuzhiyun		internal-regs {
74*4882a593Smuzhiyun			pinctrl@18000 {
75*4882a593Smuzhiyun				compatible = "marvell,mv88f6820-pinctrl";
76*4882a593Smuzhiyun			};
77*4882a593Smuzhiyun		};
78*4882a593Smuzhiyun
79*4882a593Smuzhiyun		pcie-controller {
80*4882a593Smuzhiyun			compatible = "marvell,armada-370-pcie";
81*4882a593Smuzhiyun			status = "disabled";
82*4882a593Smuzhiyun			device_type = "pci";
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun			#address-cells = <3>;
85*4882a593Smuzhiyun			#size-cells = <2>;
86*4882a593Smuzhiyun
87*4882a593Smuzhiyun			msi-parent = <&mpic>;
88*4882a593Smuzhiyun			bus-range = <0x00 0xff>;
89*4882a593Smuzhiyun
90*4882a593Smuzhiyun			ranges =
91*4882a593Smuzhiyun			       <0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
92*4882a593Smuzhiyun				0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
93*4882a593Smuzhiyun				0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000
94*4882a593Smuzhiyun				0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000
95*4882a593Smuzhiyun				0x82000000 0x1 0     MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 0 MEM */
96*4882a593Smuzhiyun				0x81000000 0x1 0     MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 0 IO  */
97*4882a593Smuzhiyun				0x82000000 0x2 0     MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 1 MEM */
98*4882a593Smuzhiyun				0x81000000 0x2 0     MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 1 IO  */
99*4882a593Smuzhiyun				0x82000000 0x3 0     MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 2 MEM */
100*4882a593Smuzhiyun				0x81000000 0x3 0     MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 2 IO  */
101*4882a593Smuzhiyun				0x82000000 0x4 0     MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 3 MEM */
102*4882a593Smuzhiyun				0x81000000 0x4 0     MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 3 IO  */>;
103*4882a593Smuzhiyun
104*4882a593Smuzhiyun			/*
105*4882a593Smuzhiyun			 * This port can be either x4 or x1. When
106*4882a593Smuzhiyun			 * configured in x4 by the bootloader, then
107*4882a593Smuzhiyun			 * pcie@4,0 is not available.
108*4882a593Smuzhiyun			 */
109*4882a593Smuzhiyun			pcie@1,0 {
110*4882a593Smuzhiyun				device_type = "pci";
111*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
112*4882a593Smuzhiyun				reg = <0x0800 0 0 0 0>;
113*4882a593Smuzhiyun				#address-cells = <3>;
114*4882a593Smuzhiyun				#size-cells = <2>;
115*4882a593Smuzhiyun				#interrupt-cells = <1>;
116*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
117*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x1 0 1 0>;
118*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
119*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
120*4882a593Smuzhiyun				marvell,pcie-port = <0>;
121*4882a593Smuzhiyun				marvell,pcie-lane = <0>;
122*4882a593Smuzhiyun				clocks = <&gateclk 8>;
123*4882a593Smuzhiyun				status = "disabled";
124*4882a593Smuzhiyun			};
125*4882a593Smuzhiyun
126*4882a593Smuzhiyun			/* x1 port */
127*4882a593Smuzhiyun			pcie@2,0 {
128*4882a593Smuzhiyun				device_type = "pci";
129*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
130*4882a593Smuzhiyun				reg = <0x1000 0 0 0 0>;
131*4882a593Smuzhiyun				#address-cells = <3>;
132*4882a593Smuzhiyun				#size-cells = <2>;
133*4882a593Smuzhiyun				#interrupt-cells = <1>;
134*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
135*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x2 0 1 0>;
136*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
137*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
138*4882a593Smuzhiyun				marvell,pcie-port = <1>;
139*4882a593Smuzhiyun				marvell,pcie-lane = <0>;
140*4882a593Smuzhiyun				clocks = <&gateclk 5>;
141*4882a593Smuzhiyun				status = "disabled";
142*4882a593Smuzhiyun			};
143*4882a593Smuzhiyun
144*4882a593Smuzhiyun			/* x1 port */
145*4882a593Smuzhiyun			pcie@3,0 {
146*4882a593Smuzhiyun				device_type = "pci";
147*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
148*4882a593Smuzhiyun				reg = <0x1800 0 0 0 0>;
149*4882a593Smuzhiyun				#address-cells = <3>;
150*4882a593Smuzhiyun				#size-cells = <2>;
151*4882a593Smuzhiyun				#interrupt-cells = <1>;
152*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
153*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x3 0 1 0>;
154*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
155*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
156*4882a593Smuzhiyun				marvell,pcie-port = <2>;
157*4882a593Smuzhiyun				marvell,pcie-lane = <0>;
158*4882a593Smuzhiyun				clocks = <&gateclk 6>;
159*4882a593Smuzhiyun				status = "disabled";
160*4882a593Smuzhiyun			};
161*4882a593Smuzhiyun
162*4882a593Smuzhiyun			/*
163*4882a593Smuzhiyun			 * x1 port only available when pcie@1,0 is
164*4882a593Smuzhiyun			 * configured as a x1 port
165*4882a593Smuzhiyun			 */
166*4882a593Smuzhiyun			pcie@4,0 {
167*4882a593Smuzhiyun				device_type = "pci";
168*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
169*4882a593Smuzhiyun				reg = <0x2000 0 0 0 0>;
170*4882a593Smuzhiyun				#address-cells = <3>;
171*4882a593Smuzhiyun				#size-cells = <2>;
172*4882a593Smuzhiyun				#interrupt-cells = <1>;
173*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
174*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x4 0 1 0>;
175*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
176*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
177*4882a593Smuzhiyun				marvell,pcie-port = <3>;
178*4882a593Smuzhiyun				marvell,pcie-lane = <0>;
179*4882a593Smuzhiyun				clocks = <&gateclk 7>;
180*4882a593Smuzhiyun				status = "disabled";
181*4882a593Smuzhiyun			};
182*4882a593Smuzhiyun		};
183*4882a593Smuzhiyun	};
184*4882a593Smuzhiyun};
185