1208561Sraj/*
2208561Sraj * Copyright (c) 2009-2010 The FreeBSD Foundation
3208561Sraj * All rights reserved.
4208561Sraj *
5208561Sraj * This software was developed by Semihalf under sponsorship from
6208561Sraj * the FreeBSD Foundation.
7208561Sraj *
8208561Sraj * Redistribution and use in source and binary forms, with or without
9208561Sraj * modification, are permitted provided that the following conditions
10208561Sraj * are met:
11208561Sraj * 1. Redistributions of source code must retain the above copyright
12208561Sraj *    notice, this list of conditions and the following disclaimer.
13208561Sraj * 2. Redistributions in binary form must reproduce the above copyright
14208561Sraj *    notice, this list of conditions and the following disclaimer in the
15208561Sraj *    documentation and/or other materials provided with the distribution.
16208561Sraj *
17208561Sraj * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18208561Sraj * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19208561Sraj * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20208561Sraj * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21208561Sraj * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22208561Sraj * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23208561Sraj * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24208561Sraj * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25208561Sraj * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26208561Sraj * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27208561Sraj * SUCH DAMAGE.
28208561Sraj *
29208561Sraj * Marvell DB-88F6281 Device Tree Source.
30208561Sraj *
31208561Sraj * $FreeBSD$
32208561Sraj */
33208561Sraj
34208561Sraj/dts-v1/;
35208561Sraj
36208561Sraj/ {
37208561Sraj	model = "mrvl,DB-88F6281";
38208561Sraj	compatible = "DB-88F6281-BP", "DB-88F6281-BP-A";
39208561Sraj	#address-cells = <1>;
40208561Sraj	#size-cells = <1>;
41208561Sraj
42208561Sraj	aliases {
43208561Sraj		ethernet0 = &enet0;
44208561Sraj		mpp = &MPP;
45208561Sraj		pci0 = &pci0;
46208561Sraj		serial0 = &serial0;
47208561Sraj		serial1 = &serial1;
48208561Sraj		soc = &SOC;
49208561Sraj		sram = &SRAM;
50208561Sraj	};
51208561Sraj
52208561Sraj	cpus {
53208561Sraj		#address-cells = <1>;
54208561Sraj		#size-cells = <0>;
55208561Sraj
56208561Sraj		cpu@0 {
57208561Sraj			device_type = "cpu";
58208561Sraj			compatible = "ARM,88FR131";
59208561Sraj			reg = <0x0>;
60208561Sraj			d-cache-line-size = <32>;	// 32 bytes
61208561Sraj			i-cache-line-size = <32>;	// 32 bytes
62208561Sraj			d-cache-size = <0x4000>;	// L1, 16K
63208561Sraj			i-cache-size = <0x4000>;	// L1, 16K
64208561Sraj			timebase-frequency = <0>;
65208561Sraj			bus-frequency = <0>;
66208561Sraj			clock-frequency = <0>;
67208561Sraj		};
68208561Sraj	};
69208561Sraj
70208561Sraj	memory {
71208561Sraj		device_type = "memory";
72208561Sraj		reg = <0x0 0x20000000>;		// 512M at 0x0
73208561Sraj	};
74208561Sraj
75235609Sgber	localbus@0 {
76208561Sraj		#address-cells = <2>;
77208561Sraj		#size-cells = <1>;
78208561Sraj		compatible = "mrvl,lbc";
79235609Sgber		bank-count = <3>;
80208561Sraj
81208561Sraj		/* This reflects CPU decode windows setup. */
82235609Sgber		ranges = <0x0 0x2f 0xf9300000 0x00100000>;
83208561Sraj
84235609Sgber		nand@0,0 {
85208561Sraj			#address-cells = <1>;
86208561Sraj			#size-cells = <1>;
87235609Sgber			compatible = "mrvl,nfc";
88208561Sraj			reg = <0x0 0x0 0x00100000>;
89208561Sraj			bank-width = <2>;
90208561Sraj			device-width = <1>;
91208561Sraj
92235779Sgber			slice@0 {
93235779Sgber				reg = <0x0 0x200000>;
94235779Sgber				label = "u-boot";
95235779Sgber				read-only;
96235779Sgber			};
97208561Sraj
98235779Sgber			slice@200000 {
99235779Sgber				reg = <0x200000 0x7e00000>;
100235779Sgber				label = "root";
101235779Sgber			};
102208561Sraj		};
103208561Sraj	};
104208561Sraj
105208561Sraj	SOC: soc88f6281@f1000000 {
106208561Sraj		#address-cells = <1>;
107208561Sraj		#size-cells = <1>;
108208561Sraj		compatible = "simple-bus";
109208561Sraj		ranges = <0x0 0xf1000000 0x00100000>;
110208561Sraj		bus-frequency = <0>;
111208561Sraj
112208561Sraj		PIC: pic@20200 {
113208561Sraj			interrupt-controller;
114208561Sraj			#address-cells = <0>;
115208561Sraj			#interrupt-cells = <1>;
116208561Sraj			reg = <0x20200 0x3c>;
117208561Sraj			compatible = "mrvl,pic";
118208561Sraj		};
119208561Sraj
120208561Sraj		timer@20300 {
121208561Sraj			compatible = "mrvl,timer";
122208561Sraj			reg = <0x20300 0x30>;
123208561Sraj			interrupts = <1>;
124208561Sraj			interrupt-parent = <&PIC>;
125208561Sraj			mrvl,has-wdt;
126208561Sraj		};
127208561Sraj
128208561Sraj		MPP: mpp@10000 {
129208561Sraj			#pin-cells = <2>;
130208561Sraj			compatible = "mrvl,mpp";
131208561Sraj			reg = <0x10000 0x34>;
132208561Sraj			pin-count = <50>;
133208561Sraj			pin-map = <
134208561Sraj				0  1		/* MPP[0]:  NF_IO[2] */
135208561Sraj				1  1		/* MPP[1]:  NF_IO[3] */
136208561Sraj				2  1		/* MPP[2]:  NF_IO[4] */
137208561Sraj				3  1		/* MPP[3]:  NF_IO[5] */
138208561Sraj				4  1		/* MPP[4]:  NF_IO[6] */
139208561Sraj				5  1		/* MPP[5]:  NF_IO[7] */
140208561Sraj				6  1		/* MPP[6]:  SYSRST_OUTn */
141208561Sraj				7  2		/* MPP[7]:  SPI_SCn */
142208561Sraj				8  1		/* MPP[8]:  TW_SDA */
143208561Sraj				9  1		/* MPP[9]:  TW_SCK */
144208561Sraj				10 3		/* MPP[10]: UA0_TXD */
145208561Sraj				11 3		/* MPP[11]: UA0_RXD */
146208561Sraj				12 1		/* MPP[12]: SD_CLK */
147208561Sraj				13 1		/* MPP[13]: SD_CMD */
148208561Sraj				14 1		/* MPP[14]: SD_D[0] */
149208561Sraj				15 1		/* MPP[15]: SD_D[1] */
150208561Sraj				16 1		/* MPP[16]: SD_D[2] */
151208561Sraj				17 1		/* MPP[17]: SD_D[3] */
152208561Sraj				18 1		/* MPP[18]: NF_IO[0] */
153208561Sraj				19 1		/* MPP[19]: NF_IO[1] */
154208561Sraj				20 5		/* MPP[20]: SATA1_AC */
155208561Sraj				21 5 >;		/* MPP[21]: SATA0_AC */
156208561Sraj		};
157208561Sraj
158208561Sraj		GPIO: gpio@10100 {
159208561Sraj			#gpio-cells = <3>;
160208561Sraj			compatible = "mrvl,gpio";
161208561Sraj			reg = <0x10100 0x20>;
162208561Sraj			gpio-controller;
163208561Sraj			interrupts = <35 36 37 38 39 40 41>;
164208561Sraj			interrupt-parent = <&PIC>;
165208561Sraj		};
166208561Sraj
167208561Sraj		rtc@10300 {
168208561Sraj			compatible = "mrvl,rtc";
169208561Sraj			reg = <0x10300 0x08>;
170208561Sraj		};
171208561Sraj
172208561Sraj		twsi@11000 {
173208561Sraj			#address-cells = <1>;
174208561Sraj			#size-cells = <0>;
175208561Sraj			compatible = "mrvl,twsi";
176208561Sraj			reg = <0x11000 0x20>;
177208561Sraj			interrupts = <43>;
178208561Sraj			interrupt-parent = <&PIC>;
179208561Sraj		};
180208561Sraj
181208561Sraj		enet0: ethernet@72000 {
182208561Sraj			#address-cells = <1>;
183208561Sraj			#size-cells = <1>;
184208561Sraj			model = "V2";
185208561Sraj			compatible = "mrvl,ge";
186208561Sraj			reg = <0x72000 0x2000>;
187208561Sraj			ranges = <0x0 0x72000 0x2000>;
188208561Sraj			local-mac-address = [ 00 00 00 00 00 00 ];
189208561Sraj			interrupts = <12 13 14 11 46>;
190208561Sraj			interrupt-parent = <&PIC>;
191208561Sraj			phy-handle = <&phy0>;
192208561Sraj
193208561Sraj			mdio@0 {
194208561Sraj				#address-cells = <1>;
195208561Sraj				#size-cells = <0>;
196208561Sraj				compatible = "mrvl,mdio";
197208561Sraj
198208561Sraj				phy0: ethernet-phy@0 {
199208561Sraj					reg = <0x8>;
200208561Sraj				};
201208561Sraj			};
202208561Sraj		};
203208561Sraj
204208561Sraj		serial0: serial@12000 {
205208561Sraj			compatible = "ns16550";
206208561Sraj			reg = <0x12000 0x20>;
207208561Sraj			reg-shift = <2>;
208208561Sraj			clock-frequency = <0>;
209208561Sraj			interrupts = <33>;
210208561Sraj			interrupt-parent = <&PIC>;
211208561Sraj		};
212208561Sraj
213208561Sraj		serial1: serial@12100 {
214208561Sraj			compatible = "ns16550";
215208561Sraj			reg = <0x12100 0x20>;
216208561Sraj			reg-shift = <2>;
217208561Sraj			clock-frequency = <0>;
218208561Sraj			interrupts = <34>;
219208561Sraj			interrupt-parent = <&PIC>;
220208561Sraj		};
221208561Sraj
222208561Sraj		crypto@30000 {
223208561Sraj			compatible = "mrvl,cesa";
224208561Sraj			reg = <0x30000 0x10000>;
225208561Sraj			interrupts = <22>;
226208561Sraj			interrupt-parent = <&PIC>;
227227730Sraj
228227730Sraj			sram-handle = <&SRAM>;
229208561Sraj		};
230208561Sraj
231208561Sraj		usb@50000 {
232208561Sraj			compatible = "mrvl,usb-ehci", "usb-ehci";
233208561Sraj			reg = <0x50000 0x1000>;
234208561Sraj			interrupts = <48 19>;
235208561Sraj			interrupt-parent = <&PIC>;
236208561Sraj		};
237208561Sraj
238208561Sraj		xor@60000 {
239208561Sraj			compatible = "mrvl,xor";
240208561Sraj			reg = <0x60000 0x1000>;
241208561Sraj			interrupts = <5 6 7 8>;
242208561Sraj			interrupt-parent = <&PIC>;
243208561Sraj		};
244208561Sraj
245208561Sraj		sata@80000 {
246208561Sraj			compatible = "mrvl,sata";
247208561Sraj			reg = <0x80000 0x6000>;
248208561Sraj			interrupts = <21>;
249208561Sraj			interrupt-parent = <&PIC>;
250208561Sraj		};
251208561Sraj	};
252208561Sraj
253208561Sraj	SRAM: sram@fd000000 {
254208561Sraj		compatible = "mrvl,cesa-sram";
255208561Sraj		reg = <0xfd000000 0x00100000>;
256208561Sraj	};
257208561Sraj
258208561Sraj	pci0: pcie@f1040000 {
259208561Sraj		compatible = "mrvl,pcie";
260208561Sraj		device_type = "pci";
261208561Sraj		#interrupt-cells = <1>;
262208561Sraj		#size-cells = <2>;
263208561Sraj		#address-cells = <3>;
264208561Sraj		reg = <0xf1040000 0x2000>;
265208561Sraj		bus-range = <0 255>;
266208561Sraj		ranges = <0x02000000 0x0 0xf1300000 0xf1300000 0x0 0x04000000
267208561Sraj			  0x01000000 0x0 0x00000000 0xf1100000 0x0 0x00100000>;
268208561Sraj		clock-frequency = <33333333>;
269208561Sraj		interrupt-parent = <&PIC>;
270208561Sraj		interrupts = <44>;
271208561Sraj		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
272208561Sraj		interrupt-map = <
273208561Sraj			/* IDSEL 0x1 */
274208561Sraj			0x0800 0x0 0x0 0x1 &PIC 0x9
275208561Sraj			0x0800 0x0 0x0 0x2 &PIC 0x9
276208561Sraj			0x0800 0x0 0x0 0x3 &PIC 0x9
277208561Sraj			0x0800 0x0 0x0 0x4 &PIC 0x9
278208561Sraj			>;
279208561Sraj		pcie@0 {
280208561Sraj			reg = <0x0 0x0 0x0 0x0 0x0>;
281208561Sraj			#size-cells = <2>;
282208561Sraj			#address-cells = <3>;
283208561Sraj			device_type = "pci";
284208561Sraj			ranges = <0x02000000 0x0 0xf1300000
285208561Sraj				  0x02000000 0x0 0xf1300000
286208561Sraj				  0x0 0x04000000
287208561Sraj
288208561Sraj				  0x01000000 0x0 0x0
289208561Sraj				  0x01000000 0x0 0x0
290208561Sraj				  0x0 0x00100000>;
291208561Sraj		};
292208561Sraj	};
293235609Sgber
294235609Sgber      	chosen {
295235609Sgber		stdin = "serial0";
296235609Sgber		stdout = "serial0";
297235609Sgber	};
298208561Sraj};
299