armada-370-xp.dtsi 6.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*
 * Device Tree Include file for Marvell Armada 370 and Armada XP SoC
 *
 * Copyright (C) 2012 Marvell
 *
 * Lior Amsalem <alior@marvell.com>
 * Gregory CLEMENT <gregory.clement@free-electrons.com>
 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 * Ben Dooks <ben.dooks@codethink.co.uk>
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2.  This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 *
 * This file contains the definitions that are common to the Armada
 * 370 and Armada XP SoC.
 */

19
/include/ "skeleton64.dtsi"
20

21 22
#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))

23 24
/ {
	model = "Marvell Armada 370 and XP SoC";
25
	compatible = "marvell,armada-370-xp";
26

27 28 29 30 31
	aliases {
		eth0 = &eth0;
		eth1 = &eth1;
	};

32
	cpus {
33 34
		#address-cells = <1>;
		#size-cells = <0>;
35 36
		cpu@0 {
			compatible = "marvell,sheeva-v7";
37 38
			device_type = "cpu";
			reg = <0>;
39 40 41 42
		};
	};

	soc {
43
		#address-cells = <2>;
44
		#size-cells = <1>;
45
		controller = <&mbusc>;
46
		interrupt-parent = <&mpic>;
47 48
		pcie-mem-aperture = <0xf8000000 0x7e00000>;
		pcie-io-aperture  = <0xffe00000 0x100000>;
49

50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
		devbus-bootcs {
			compatible = "marvell,mvebu-devbus";
			reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
			ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
			#address-cells = <1>;
			#size-cells = <1>;
			clocks = <&coreclk 0>;
			status = "disabled";
		};

		devbus-cs0 {
			compatible = "marvell,mvebu-devbus";
			reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
			ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
			#address-cells = <1>;
			#size-cells = <1>;
			clocks = <&coreclk 0>;
			status = "disabled";
		};

		devbus-cs1 {
			compatible = "marvell,mvebu-devbus";
			reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
			ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
			#address-cells = <1>;
			#size-cells = <1>;
			clocks = <&coreclk 0>;
			status = "disabled";
		};

		devbus-cs2 {
			compatible = "marvell,mvebu-devbus";
			reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
			ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
			#address-cells = <1>;
			#size-cells = <1>;
			clocks = <&coreclk 0>;
			status = "disabled";
		};

		devbus-cs3 {
			compatible = "marvell,mvebu-devbus";
			reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
			ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
			#address-cells = <1>;
			#size-cells = <1>;
			clocks = <&coreclk 0>;
			status = "disabled";
		};

100 101 102 103
		internal-regs {
			compatible = "simple-bus";
			#address-cells = <1>;
			#size-cells = <1>;
104 105
			ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;

106 107 108 109
			rtc@10300 {
				compatible = "marvell,orion-rtc";
				reg = <0x10300 0x20>;
				interrupts = <50>;
110
			};
111

112
			spi0: spi@10600 {
113
				compatible = "marvell,armada-370-spi", "marvell,orion-spi";
114 115 116 117 118 119 120
				reg = <0x10600 0x28>;
				#address-cells = <1>;
				#size-cells = <0>;
				cell-index = <0>;
				interrupts = <30>;
				clocks = <&coreclk 0>;
				status = "disabled";
121
			};
122

123
			spi1: spi@10680 {
124
				compatible = "marvell,armada-370-spi", "marvell,orion-spi";
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
				reg = <0x10680 0x28>;
				#address-cells = <1>;
				#size-cells = <0>;
				cell-index = <1>;
				interrupts = <92>;
				clocks = <&coreclk 0>;
				status = "disabled";
			};

			i2c0: i2c@11000 {
				compatible = "marvell,mv64xxx-i2c";
				#address-cells = <1>;
				#size-cells = <0>;
				interrupts = <31>;
				timeout-ms = <1000>;
				clocks = <&coreclk 0>;
				status = "disabled";
			};

			i2c1: i2c@11100 {
				compatible = "marvell,mv64xxx-i2c";
				#address-cells = <1>;
				#size-cells = <0>;
				interrupts = <32>;
				timeout-ms = <1000>;
				clocks = <&coreclk 0>;
				status = "disabled";
152
			};
153

154
			serial@12000 {
155
				compatible = "snps,dw-apb-uart";
156
				reg = <0x12000 0x100>;
157 158
				reg-shift = <2>;
				interrupts = <41>;
159
				reg-io-width = <1>;
160
				clocks = <&coreclk 0>;
161
				status = "disabled";
162 163
			};
			serial@12100 {
164
				compatible = "snps,dw-apb-uart";
165
				reg = <0x12100 0x100>;
166 167
				reg-shift = <2>;
				interrupts = <42>;
168
				reg-io-width = <1>;
169
				clocks = <&coreclk 0>;
170
				status = "disabled";
171 172
			};

173 174 175 176 177 178 179 180
			coredivclk: corediv-clock@18740 {
				compatible = "marvell,armada-370-corediv-clock";
				reg = <0x18740 0xc>;
				#clock-cells = <1>;
				clocks = <&mainpll>;
				clock-output-names = "nand";
			};

181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
			mbusc: mbus-controller@20000 {
				compatible = "marvell,mbus-controller";
				reg = <0x20000 0x100>, <0x20180 0x20>;
			};

			mpic: interrupt-controller@20000 {
				compatible = "marvell,mpic";
				#interrupt-cells = <1>;
				#size-cells = <1>;
				interrupt-controller;
				msi-controller;
			};

			coherency-fabric@20200 {
				compatible = "marvell,coherency-fabric";
196
				reg = <0x20200 0xb0>, <0x21010 0x1c>;
197 198
			};

199 200 201 202 203
			timer@20300 {
				reg = <0x20300 0x30>, <0x21040 0x30>;
				interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
			};

204 205 206 207
			watchdog@20300 {
				reg = <0x20300 0x34>, <0x20704 0x4>;
			};

208 209 210 211 212
			pmsu@22000 {
				compatible = "marvell,armada-370-pmsu";
				reg = <0x22000 0x1000>;
			};

213 214 215 216
			usb@50000 {
				compatible = "marvell,orion-ehci";
				reg = <0x50000 0x500>;
				interrupts = <45>;
217 218
				status = "disabled";
			};
219

220 221 222 223 224
			usb@51000 {
				compatible = "marvell,orion-ehci";
				reg = <0x51000 0x500>;
				interrupts = <46>;
				status = "disabled";
225
			};
226

227
			eth0: ethernet@70000 {
228
				compatible = "marvell,armada-370-neta";
229
				reg = <0x70000 0x4000>;
230
				interrupts = <8>;
231
				clocks = <&gateclk 4>;
232
				status = "disabled";
233
			};
234

235
			mdio: mdio {
236 237 238 239
				#address-cells = <1>;
				#size-cells = <0>;
				compatible = "marvell,orion-mdio";
				reg = <0x72004 0x4>;
240
				clocks = <&gateclk 4>;
241 242
			};

243
			eth1: ethernet@74000 {
244
				compatible = "marvell,armada-370-neta";
245
				reg = <0x74000 0x4000>;
246
				interrupts = <10>;
247
				clocks = <&gateclk 3>;
248
				status = "disabled";
249 250
			};

251
			sata@a0000 {
252
				compatible = "marvell,armada-370-sata";
253 254 255 256
				reg = <0xa0000 0x5000>;
				interrupts = <55>;
				clocks = <&gateclk 15>, <&gateclk 30>;
				clock-names = "0", "1";
257 258 259
				status = "disabled";
			};

260 261 262
			nand@d0000 {
				compatible = "marvell,armada370-nand";
				reg = <0xd0000 0x54>;
263
				#address-cells = <1>;
264 265 266
				#size-cells = <1>;
				interrupts = <113>;
				clocks = <&coredivclk 0>;
267 268 269 270 271 272 273 274
				status = "disabled";
			};

			mvsdio@d4000 {
				compatible = "marvell,orion-sdio";
				reg = <0xd4000 0x200>;
				interrupts = <54>;
				clocks = <&gateclk 17>;
275 276 277 278
				bus-width = <4>;
				cap-sdio-irq;
				cap-sd-highspeed;
				cap-mmc-highspeed;
279 280
				status = "disabled";
			};
281
		};
282
	};
283 284 285 286 287 288 289 290 291

	clocks {
		/* 2 GHz fixed main PLL */
		mainpll: mainpll {
			compatible = "fixed-clock";
			#clock-cells = <0>;
			clock-frequency = <2000000000>;
		};
	};
292
 };