sheevaplug.dts revision 235609
1208561Sraj/*
2208561Sraj * Copyright (c) 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 SheevaPlug Device Tree Source.
30208561Sraj *
31208561Sraj * $FreeBSD: head/sys/boot/fdt/dts/sheevaplug.dts 235609 2012-05-18 14:41:14Z gber $
32208561Sraj */
33208561Sraj
34208561Sraj/dts-v1/;
35208561Sraj
36208561Sraj/ {
37208561Sraj	model = "mrvl,SheevaPlug";
38208561Sraj	compatible = "SheevaPlug";
39208561Sraj	#address-cells = <1>;
40208561Sraj	#size-cells = <1>;
41208561Sraj
42208561Sraj	aliases {
43208561Sraj		ethernet0 = &enet0;
44208561Sraj		mpp = &MPP;
45208561Sraj		serial0 = &serial0;
46208561Sraj		serial1 = &serial1;
47208561Sraj		soc = &SOC;
48208561Sraj		sram = &SRAM;
49208561Sraj	};
50208561Sraj
51208561Sraj	cpus {
52208561Sraj		#address-cells = <1>;
53208561Sraj		#size-cells = <0>;
54208561Sraj
55208561Sraj		cpu@0 {
56208561Sraj			device_type = "cpu";
57208561Sraj			compatible = "ARM,88FR131";
58208561Sraj			reg = <0x0>;
59208561Sraj			d-cache-line-size = <32>;	// 32 bytes
60208561Sraj			i-cache-line-size = <32>;	// 32 bytes
61208561Sraj			d-cache-size = <0x4000>;	// L1, 16K
62208561Sraj			i-cache-size = <0x4000>;	// L1, 16K
63208561Sraj			timebase-frequency = <0>;
64208561Sraj			bus-frequency = <0>;
65208561Sraj			clock-frequency = <0>;
66208561Sraj		};
67208561Sraj	};
68208561Sraj
69208561Sraj	memory {
70208561Sraj		device_type = "memory";
71208561Sraj		reg = <0x0 0x20000000>;		// 512M at 0x0
72208561Sraj	};
73208561Sraj
74235609Sgber	localbus@0 {
75208561Sraj		#address-cells = <2>;
76208561Sraj		#size-cells = <1>;
77208561Sraj		compatible = "mrvl,lbc";
78235609Sgber		bank-count = <3>;
79208561Sraj
80208561Sraj		/* This reflects CPU decode windows setup. */
81235609Sgber		ranges = <0x0 0x2f 0xf9300000 0x00100000>;
82208561Sraj
83235609Sgber		nand@0,0 {
84208561Sraj			#address-cells = <1>;
85208561Sraj			#size-cells = <1>;
86235609Sgber			compatible = "mrvl,nfc";
87208561Sraj			reg = <0x0 0x0 0x00100000>;
88208561Sraj			bank-width = <2>;
89208561Sraj			device-width = <1>;
90208561Sraj
91208561Sraj
92208561Sraj		};
93208561Sraj	};
94208561Sraj
95208561Sraj	SOC: soc88f6281@f1000000 {
96208561Sraj		#address-cells = <1>;
97208561Sraj		#size-cells = <1>;
98208561Sraj		compatible = "simple-bus";
99208561Sraj		ranges = <0x0 0xf1000000 0x00100000>;
100208561Sraj		bus-frequency = <0>;
101208561Sraj
102208561Sraj		PIC: pic@20200 {
103208561Sraj			interrupt-controller;
104208561Sraj			#address-cells = <0>;
105208561Sraj			#interrupt-cells = <1>;
106208561Sraj			reg = <0x20200 0x3c>;
107208561Sraj			compatible = "mrvl,pic";
108208561Sraj		};
109208561Sraj
110208561Sraj		timer@20300 {
111208561Sraj			compatible = "mrvl,timer";
112208561Sraj			reg = <0x20300 0x30>;
113208561Sraj			interrupts = <1>;
114208561Sraj			interrupt-parent = <&PIC>;
115208561Sraj			mrvl,has-wdt;
116208561Sraj		};
117208561Sraj
118208561Sraj		MPP: mpp@10000 {
119208561Sraj			#pin-cells = <2>;
120208561Sraj			compatible = "mrvl,mpp";
121208561Sraj			reg = <0x10000 0x34>;
122208561Sraj			pin-count = <50>;
123208561Sraj			pin-map = <
124208561Sraj				0  1		/* MPP[0]:  NF_IO[2] */
125208561Sraj				1  1		/* MPP[1]:  NF_IO[3] */
126208561Sraj				2  1		/* MPP[2]:  NF_IO[4] */
127208561Sraj				3  1		/* MPP[3]:  NF_IO[5] */
128208561Sraj				4  1		/* MPP[4]:  NF_IO[6] */
129208561Sraj				5  1		/* MPP[5]:  NF_IO[7] */
130208561Sraj				6  1		/* MPP[6]:  SYSRST_OUTn */
131208561Sraj				8  2		/* MPP[8]:  UA0_RTS */
132208561Sraj				9  2		/* MPP[9]:  UA0_CTS */
133208561Sraj				10 3		/* MPP[10]: UA0_TXD */
134208561Sraj				11 3		/* MPP[11]: UA0_RXD */
135208561Sraj				12 1		/* MPP[12]: SD_CLK */
136208561Sraj				13 1		/* MPP[13]: SD_CMD */
137208561Sraj				14 1		/* MPP[14]: SD_D[0] */
138208561Sraj				15 1		/* MPP[15]: SD_D[1] */
139208561Sraj				16 1		/* MPP[16]: SD_D[2] */
140208561Sraj				17 1		/* MPP[17]: SD_D[3] */
141208561Sraj				18 1		/* MPP[18]: NF_IO[0] */
142208561Sraj				19 1		/* MPP[19]: NF_IO[1] */
143208561Sraj				29 1 >;		/* MPP[29]: TSMP[9] */
144208561Sraj		};
145208561Sraj
146208561Sraj		GPIO: gpio@10100 {
147208561Sraj			#gpio-cells = <3>;
148208561Sraj			compatible = "mrvl,gpio";
149208561Sraj			reg = <0x10100 0x20>;
150208561Sraj			gpio-controller;
151208561Sraj			interrupts = <35 36 37 38 39 40 41>;
152208561Sraj			interrupt-parent = <&PIC>;
153208561Sraj		};
154208561Sraj
155208561Sraj		rtc@10300 {
156208561Sraj			compatible = "mrvl,rtc";
157208561Sraj			reg = <0x10300 0x08>;
158208561Sraj		};
159208561Sraj
160208561Sraj		twsi@11000 {
161208561Sraj			#address-cells = <1>;
162208561Sraj			#size-cells = <0>;
163208561Sraj			compatible = "mrvl,twsi";
164208561Sraj			reg = <0x11000 0x20>;
165208561Sraj			interrupts = <43>;
166208561Sraj			interrupt-parent = <&PIC>;
167208561Sraj		};
168208561Sraj
169208561Sraj		enet0: ethernet@72000 {
170208561Sraj			#address-cells = <1>;
171208561Sraj			#size-cells = <1>;
172208561Sraj			model = "V2";
173208561Sraj			compatible = "mrvl,ge";
174208561Sraj			reg = <0x72000 0x2000>;
175208561Sraj			ranges = <0x0 0x72000 0x2000>;
176208561Sraj			local-mac-address = [ 00 00 00 00 00 00 ];
177208561Sraj			interrupts = <12 13 14 11 46>;
178208561Sraj			interrupt-parent = <&PIC>;
179208561Sraj			phy-handle = <&phy0>;
180208561Sraj
181208561Sraj			mdio@0 {
182208561Sraj				#address-cells = <1>;
183208561Sraj				#size-cells = <0>;
184208561Sraj				compatible = "mrvl,mdio";
185208561Sraj
186208561Sraj				phy0: ethernet-phy@0 {
187208561Sraj					reg = <0x0>;
188208561Sraj				};
189208561Sraj			};
190208561Sraj		};
191208561Sraj
192208561Sraj		serial0: serial@12000 {
193208561Sraj			compatible = "ns16550";
194208561Sraj			reg = <0x12000 0x20>;
195208561Sraj			reg-shift = <2>;
196208561Sraj			clock-frequency = <0>;
197208561Sraj			interrupts = <33>;
198208561Sraj			interrupt-parent = <&PIC>;
199208561Sraj		};
200208561Sraj
201208561Sraj		serial1: serial@12100 {
202208561Sraj			compatible = "ns16550";
203208561Sraj			reg = <0x12100 0x20>;
204208561Sraj			reg-shift = <2>;
205208561Sraj			clock-frequency = <0>;
206208561Sraj			interrupts = <34>;
207208561Sraj			interrupt-parent = <&PIC>;
208208561Sraj		};
209208561Sraj
210208561Sraj		crypto@30000 {
211208561Sraj			compatible = "mrvl,cesa";
212208561Sraj			reg = <0x30000 0x10000>;
213208561Sraj			interrupts = <22>;
214208561Sraj			interrupt-parent = <&PIC>;
215227730Sraj
216227730Sraj			sram-handle = <&SRAM>;
217208561Sraj		};
218208561Sraj
219208561Sraj		usb@50000 {
220208561Sraj			compatible = "mrvl,usb-ehci", "usb-ehci";
221208561Sraj			reg = <0x50000 0x1000>;
222208561Sraj			interrupts = <48 19>;
223208561Sraj			interrupt-parent = <&PIC>;
224208561Sraj		};
225208561Sraj
226208561Sraj		xor@60000 {
227208561Sraj			compatible = "mrvl,xor";
228208561Sraj			reg = <0x60000 0x1000>;
229208561Sraj			interrupts = <5 6 7 8>;
230208561Sraj			interrupt-parent = <&PIC>;
231208561Sraj		};
232208561Sraj	};
233208561Sraj
234208561Sraj	SRAM: sram@fd000000 {
235208561Sraj		compatible = "mrvl,cesa-sram";
236208561Sraj		reg = <0xfd000000 0x00100000>;
237208561Sraj	};
238208561Sraj
239208561Sraj	chosen {
240208561Sraj		stdin = "serial0";
241208561Sraj		stdout = "serial0";
242208561Sraj	};
243208561Sraj};
244