xref: /OK3568_Linux_fs/kernel/arch/arm/boot/dts/armada-xp-mv78260.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*4882a593Smuzhiyun/*
3*4882a593Smuzhiyun * Device Tree Include file for Marvell Armada XP family SoC
4*4882a593Smuzhiyun *
5*4882a593Smuzhiyun * Copyright (C) 2012 Marvell
6*4882a593Smuzhiyun *
7*4882a593Smuzhiyun * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8*4882a593Smuzhiyun *
9*4882a593Smuzhiyun * Contains definitions specific to the Armada XP MV78260 SoC that are not
10*4882a593Smuzhiyun * common to all Armada XP SoCs.
11*4882a593Smuzhiyun */
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun#include "armada-xp.dtsi"
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun/ {
16*4882a593Smuzhiyun	model = "Marvell Armada XP MV78260 SoC";
17*4882a593Smuzhiyun	compatible = "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun	aliases {
20*4882a593Smuzhiyun		gpio0 = &gpio0;
21*4882a593Smuzhiyun		gpio1 = &gpio1;
22*4882a593Smuzhiyun		gpio2 = &gpio2;
23*4882a593Smuzhiyun	};
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun	cpus {
26*4882a593Smuzhiyun		#address-cells = <1>;
27*4882a593Smuzhiyun		#size-cells = <0>;
28*4882a593Smuzhiyun		enable-method = "marvell,armada-xp-smp";
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun		cpu@0 {
31*4882a593Smuzhiyun			device_type = "cpu";
32*4882a593Smuzhiyun			compatible = "marvell,sheeva-v7";
33*4882a593Smuzhiyun			reg = <0>;
34*4882a593Smuzhiyun			clocks = <&cpuclk 0>;
35*4882a593Smuzhiyun			clock-latency = <1000000>;
36*4882a593Smuzhiyun		};
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun		cpu@1 {
39*4882a593Smuzhiyun			device_type = "cpu";
40*4882a593Smuzhiyun			compatible = "marvell,sheeva-v7";
41*4882a593Smuzhiyun			reg = <1>;
42*4882a593Smuzhiyun			clocks = <&cpuclk 1>;
43*4882a593Smuzhiyun			clock-latency = <1000000>;
44*4882a593Smuzhiyun		};
45*4882a593Smuzhiyun	};
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun	soc {
48*4882a593Smuzhiyun		/*
49*4882a593Smuzhiyun		 * MV78260 has 3 PCIe units Gen2.0: Two units can be
50*4882a593Smuzhiyun		 * configured as x4 or quad x1 lanes. One unit is
51*4882a593Smuzhiyun		 * x4 only.
52*4882a593Smuzhiyun		 */
53*4882a593Smuzhiyun		pciec: pcie@82000000 {
54*4882a593Smuzhiyun			compatible = "marvell,armada-xp-pcie";
55*4882a593Smuzhiyun			status = "disabled";
56*4882a593Smuzhiyun			device_type = "pci";
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun			#address-cells = <3>;
59*4882a593Smuzhiyun			#size-cells = <2>;
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun			msi-parent = <&mpic>;
62*4882a593Smuzhiyun			bus-range = <0x00 0xff>;
63*4882a593Smuzhiyun
64*4882a593Smuzhiyun			ranges =
65*4882a593Smuzhiyun			       <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000   /* Port 0.0 registers */
66*4882a593Smuzhiyun				0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000   /* Port 2.0 registers */
67*4882a593Smuzhiyun				0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000   /* Port 0.1 registers */
68*4882a593Smuzhiyun				0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000   /* Port 0.2 registers */
69*4882a593Smuzhiyun				0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000   /* Port 0.3 registers */
70*4882a593Smuzhiyun				0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000   /* Port 1.0 registers */
71*4882a593Smuzhiyun				0x82000000 0 0x84000 MBUS_ID(0xf0, 0x01) 0x84000 0 0x00002000   /* Port 1.1 registers */
72*4882a593Smuzhiyun				0x82000000 0 0x88000 MBUS_ID(0xf0, 0x01) 0x88000 0 0x00002000   /* Port 1.2 registers */
73*4882a593Smuzhiyun				0x82000000 0 0x8c000 MBUS_ID(0xf0, 0x01) 0x8c000 0 0x00002000   /* Port 1.3 registers */
74*4882a593Smuzhiyun				0x82000000 0x1 0     MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
75*4882a593Smuzhiyun				0x81000000 0x1 0     MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO  */
76*4882a593Smuzhiyun				0x82000000 0x2 0     MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
77*4882a593Smuzhiyun				0x81000000 0x2 0     MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO  */
78*4882a593Smuzhiyun				0x82000000 0x3 0     MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
79*4882a593Smuzhiyun				0x81000000 0x3 0     MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO  */
80*4882a593Smuzhiyun				0x82000000 0x4 0     MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
81*4882a593Smuzhiyun				0x81000000 0x4 0     MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO  */
82*4882a593Smuzhiyun
83*4882a593Smuzhiyun				0x82000000 0x5 0     MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
84*4882a593Smuzhiyun				0x81000000 0x5 0     MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO  */
85*4882a593Smuzhiyun				0x82000000 0x6 0     MBUS_ID(0x08, 0xd8) 0 1 0 /* Port 1.1 MEM */
86*4882a593Smuzhiyun				0x81000000 0x6 0     MBUS_ID(0x08, 0xd0) 0 1 0 /* Port 1.1 IO  */
87*4882a593Smuzhiyun				0x82000000 0x7 0     MBUS_ID(0x08, 0xb8) 0 1 0 /* Port 1.2 MEM */
88*4882a593Smuzhiyun				0x81000000 0x7 0     MBUS_ID(0x08, 0xb0) 0 1 0 /* Port 1.2 IO  */
89*4882a593Smuzhiyun				0x82000000 0x8 0     MBUS_ID(0x08, 0x78) 0 1 0 /* Port 1.3 MEM */
90*4882a593Smuzhiyun				0x81000000 0x8 0     MBUS_ID(0x08, 0x70) 0 1 0 /* Port 1.3 IO  */
91*4882a593Smuzhiyun
92*4882a593Smuzhiyun				0x82000000 0x9 0     MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
93*4882a593Smuzhiyun				0x81000000 0x9 0     MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO  */>;
94*4882a593Smuzhiyun
95*4882a593Smuzhiyun			pcie1: pcie@1,0 {
96*4882a593Smuzhiyun				device_type = "pci";
97*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
98*4882a593Smuzhiyun				reg = <0x0800 0 0 0 0>;
99*4882a593Smuzhiyun				#address-cells = <3>;
100*4882a593Smuzhiyun				#size-cells = <2>;
101*4882a593Smuzhiyun				#interrupt-cells = <1>;
102*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
103*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x1 0 1 0>;
104*4882a593Smuzhiyun				bus-range = <0x00 0xff>;
105*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
106*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &mpic 58>;
107*4882a593Smuzhiyun				marvell,pcie-port = <0>;
108*4882a593Smuzhiyun				marvell,pcie-lane = <0>;
109*4882a593Smuzhiyun				clocks = <&gateclk 5>;
110*4882a593Smuzhiyun				status = "disabled";
111*4882a593Smuzhiyun			};
112*4882a593Smuzhiyun
113*4882a593Smuzhiyun			pcie2: pcie@2,0 {
114*4882a593Smuzhiyun				device_type = "pci";
115*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
116*4882a593Smuzhiyun				reg = <0x1000 0 0 0 0>;
117*4882a593Smuzhiyun				#address-cells = <3>;
118*4882a593Smuzhiyun				#size-cells = <2>;
119*4882a593Smuzhiyun				#interrupt-cells = <1>;
120*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
121*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x2 0 1 0>;
122*4882a593Smuzhiyun				bus-range = <0x00 0xff>;
123*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
124*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &mpic 59>;
125*4882a593Smuzhiyun				marvell,pcie-port = <0>;
126*4882a593Smuzhiyun				marvell,pcie-lane = <1>;
127*4882a593Smuzhiyun				clocks = <&gateclk 6>;
128*4882a593Smuzhiyun				status = "disabled";
129*4882a593Smuzhiyun			};
130*4882a593Smuzhiyun
131*4882a593Smuzhiyun			pcie3: pcie@3,0 {
132*4882a593Smuzhiyun				device_type = "pci";
133*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
134*4882a593Smuzhiyun				reg = <0x1800 0 0 0 0>;
135*4882a593Smuzhiyun				#address-cells = <3>;
136*4882a593Smuzhiyun				#size-cells = <2>;
137*4882a593Smuzhiyun				#interrupt-cells = <1>;
138*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
139*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x3 0 1 0>;
140*4882a593Smuzhiyun				bus-range = <0x00 0xff>;
141*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
142*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &mpic 60>;
143*4882a593Smuzhiyun				marvell,pcie-port = <0>;
144*4882a593Smuzhiyun				marvell,pcie-lane = <2>;
145*4882a593Smuzhiyun				clocks = <&gateclk 7>;
146*4882a593Smuzhiyun				status = "disabled";
147*4882a593Smuzhiyun			};
148*4882a593Smuzhiyun
149*4882a593Smuzhiyun			pcie4: pcie@4,0 {
150*4882a593Smuzhiyun				device_type = "pci";
151*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
152*4882a593Smuzhiyun				reg = <0x2000 0 0 0 0>;
153*4882a593Smuzhiyun				#address-cells = <3>;
154*4882a593Smuzhiyun				#size-cells = <2>;
155*4882a593Smuzhiyun				#interrupt-cells = <1>;
156*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
157*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x4 0 1 0>;
158*4882a593Smuzhiyun				bus-range = <0x00 0xff>;
159*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
160*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &mpic 61>;
161*4882a593Smuzhiyun				marvell,pcie-port = <0>;
162*4882a593Smuzhiyun				marvell,pcie-lane = <3>;
163*4882a593Smuzhiyun				clocks = <&gateclk 8>;
164*4882a593Smuzhiyun				status = "disabled";
165*4882a593Smuzhiyun			};
166*4882a593Smuzhiyun
167*4882a593Smuzhiyun			pcie5: pcie@5,0 {
168*4882a593Smuzhiyun				device_type = "pci";
169*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
170*4882a593Smuzhiyun				reg = <0x2800 0 0 0 0>;
171*4882a593Smuzhiyun				#address-cells = <3>;
172*4882a593Smuzhiyun				#size-cells = <2>;
173*4882a593Smuzhiyun				#interrupt-cells = <1>;
174*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
175*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x5 0 1 0>;
176*4882a593Smuzhiyun				bus-range = <0x00 0xff>;
177*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
178*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &mpic 62>;
179*4882a593Smuzhiyun				marvell,pcie-port = <1>;
180*4882a593Smuzhiyun				marvell,pcie-lane = <0>;
181*4882a593Smuzhiyun				clocks = <&gateclk 9>;
182*4882a593Smuzhiyun				status = "disabled";
183*4882a593Smuzhiyun			};
184*4882a593Smuzhiyun
185*4882a593Smuzhiyun			pcie6: pcie@6,0 {
186*4882a593Smuzhiyun				device_type = "pci";
187*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x84000 0 0x2000>;
188*4882a593Smuzhiyun				reg = <0x3000 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 0x6 0 1 0
193*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x6 0 1 0>;
194*4882a593Smuzhiyun				bus-range = <0x00 0xff>;
195*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
196*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &mpic 63>;
197*4882a593Smuzhiyun				marvell,pcie-port = <1>;
198*4882a593Smuzhiyun				marvell,pcie-lane = <1>;
199*4882a593Smuzhiyun				clocks = <&gateclk 10>;
200*4882a593Smuzhiyun				status = "disabled";
201*4882a593Smuzhiyun			};
202*4882a593Smuzhiyun
203*4882a593Smuzhiyun			pcie7: pcie@7,0 {
204*4882a593Smuzhiyun				device_type = "pci";
205*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x88000 0 0x2000>;
206*4882a593Smuzhiyun				reg = <0x3800 0 0 0 0>;
207*4882a593Smuzhiyun				#address-cells = <3>;
208*4882a593Smuzhiyun				#size-cells = <2>;
209*4882a593Smuzhiyun				#interrupt-cells = <1>;
210*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0
211*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x7 0 1 0>;
212*4882a593Smuzhiyun				bus-range = <0x00 0xff>;
213*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
214*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &mpic 64>;
215*4882a593Smuzhiyun				marvell,pcie-port = <1>;
216*4882a593Smuzhiyun				marvell,pcie-lane = <2>;
217*4882a593Smuzhiyun				clocks = <&gateclk 11>;
218*4882a593Smuzhiyun				status = "disabled";
219*4882a593Smuzhiyun			};
220*4882a593Smuzhiyun
221*4882a593Smuzhiyun			pcie8: pcie@8,0 {
222*4882a593Smuzhiyun				device_type = "pci";
223*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>;
224*4882a593Smuzhiyun				reg = <0x4000 0 0 0 0>;
225*4882a593Smuzhiyun				#address-cells = <3>;
226*4882a593Smuzhiyun				#size-cells = <2>;
227*4882a593Smuzhiyun				#interrupt-cells = <1>;
228*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0
229*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x8 0 1 0>;
230*4882a593Smuzhiyun				bus-range = <0x00 0xff>;
231*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
232*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &mpic 65>;
233*4882a593Smuzhiyun				marvell,pcie-port = <1>;
234*4882a593Smuzhiyun				marvell,pcie-lane = <3>;
235*4882a593Smuzhiyun				clocks = <&gateclk 12>;
236*4882a593Smuzhiyun				status = "disabled";
237*4882a593Smuzhiyun			};
238*4882a593Smuzhiyun
239*4882a593Smuzhiyun			pcie9: pcie@9,0 {
240*4882a593Smuzhiyun				device_type = "pci";
241*4882a593Smuzhiyun				assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
242*4882a593Smuzhiyun				reg = <0x4800 0 0 0 0>;
243*4882a593Smuzhiyun				#address-cells = <3>;
244*4882a593Smuzhiyun				#size-cells = <2>;
245*4882a593Smuzhiyun				#interrupt-cells = <1>;
246*4882a593Smuzhiyun				ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
247*4882a593Smuzhiyun					  0x81000000 0 0 0x81000000 0x9 0 1 0>;
248*4882a593Smuzhiyun				bus-range = <0x00 0xff>;
249*4882a593Smuzhiyun				interrupt-map-mask = <0 0 0 0>;
250*4882a593Smuzhiyun				interrupt-map = <0 0 0 0 &mpic 99>;
251*4882a593Smuzhiyun				marvell,pcie-port = <2>;
252*4882a593Smuzhiyun				marvell,pcie-lane = <0>;
253*4882a593Smuzhiyun				clocks = <&gateclk 26>;
254*4882a593Smuzhiyun				status = "disabled";
255*4882a593Smuzhiyun			};
256*4882a593Smuzhiyun		};
257*4882a593Smuzhiyun
258*4882a593Smuzhiyun		internal-regs {
259*4882a593Smuzhiyun			gpio0: gpio@18100 {
260*4882a593Smuzhiyun				compatible = "marvell,armada-370-gpio",
261*4882a593Smuzhiyun					     "marvell,orion-gpio";
262*4882a593Smuzhiyun				reg = <0x18100 0x40>, <0x181c0 0x08>;
263*4882a593Smuzhiyun				reg-names = "gpio", "pwm";
264*4882a593Smuzhiyun				ngpios = <32>;
265*4882a593Smuzhiyun				gpio-controller;
266*4882a593Smuzhiyun				#gpio-cells = <2>;
267*4882a593Smuzhiyun				#pwm-cells = <2>;
268*4882a593Smuzhiyun				interrupt-controller;
269*4882a593Smuzhiyun				#interrupt-cells = <2>;
270*4882a593Smuzhiyun				interrupts = <82>, <83>, <84>, <85>;
271*4882a593Smuzhiyun				clocks = <&coreclk 0>;
272*4882a593Smuzhiyun			};
273*4882a593Smuzhiyun
274*4882a593Smuzhiyun			gpio1: gpio@18140 {
275*4882a593Smuzhiyun				compatible = "marvell,armada-370-gpio",
276*4882a593Smuzhiyun					     "marvell,orion-gpio";
277*4882a593Smuzhiyun				reg = <0x18140 0x40>, <0x181c8 0x08>;
278*4882a593Smuzhiyun				reg-names = "gpio", "pwm";
279*4882a593Smuzhiyun				ngpios = <32>;
280*4882a593Smuzhiyun				gpio-controller;
281*4882a593Smuzhiyun				#gpio-cells = <2>;
282*4882a593Smuzhiyun				#pwm-cells = <2>;
283*4882a593Smuzhiyun				interrupt-controller;
284*4882a593Smuzhiyun				#interrupt-cells = <2>;
285*4882a593Smuzhiyun				interrupts = <87>, <88>, <89>, <90>;
286*4882a593Smuzhiyun				clocks = <&coreclk 0>;
287*4882a593Smuzhiyun			};
288*4882a593Smuzhiyun
289*4882a593Smuzhiyun			gpio2: gpio@18180 {
290*4882a593Smuzhiyun				compatible = "marvell,armada-370-gpio",
291*4882a593Smuzhiyun					     "marvell,orion-gpio";
292*4882a593Smuzhiyun				reg = <0x18180 0x40>;
293*4882a593Smuzhiyun				ngpios = <3>;
294*4882a593Smuzhiyun				gpio-controller;
295*4882a593Smuzhiyun				#gpio-cells = <2>;
296*4882a593Smuzhiyun				interrupt-controller;
297*4882a593Smuzhiyun				#interrupt-cells = <2>;
298*4882a593Smuzhiyun				interrupts = <91>;
299*4882a593Smuzhiyun			};
300*4882a593Smuzhiyun
301*4882a593Smuzhiyun			eth3: ethernet@34000 {
302*4882a593Smuzhiyun				compatible = "marvell,armada-xp-neta";
303*4882a593Smuzhiyun				reg = <0x34000 0x4000>;
304*4882a593Smuzhiyun				interrupts = <14>;
305*4882a593Smuzhiyun				clocks = <&gateclk 1>;
306*4882a593Smuzhiyun				status = "disabled";
307*4882a593Smuzhiyun			};
308*4882a593Smuzhiyun		};
309*4882a593Smuzhiyun	};
310*4882a593Smuzhiyun};
311*4882a593Smuzhiyun
312*4882a593Smuzhiyun&pinctrl {
313*4882a593Smuzhiyun	compatible = "marvell,mv78260-pinctrl";
314*4882a593Smuzhiyun};
315