]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/boot/fdt/dts/arm/db78460.dts
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / boot / fdt / dts / arm / db78460.dts
1 /*
2  * Copyright (c) 2010 The FreeBSD Foundation
3  * Copyright (c) 2010-2011 Semihalf
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the
13  *    documentation and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25  * SUCH DAMAGE.
26  *
27  * Marvell DB-78460 Device Tree Source.
28  *
29  * $FreeBSD$
30  */
31
32 /dts-v1/;
33
34 / {
35         model = "mrvl,DB-78460";
36         #address-cells = <1>;
37         #size-cells = <1>;
38
39         aliases {
40                 serial0 = &serial0;
41         };
42
43         cpus {
44                 #address-cells = <1>;
45                 #size-cells = <0>;
46
47                 cpu@0 {
48                         device_type = "cpu";
49                         compatible = "ARM,88VS584";
50                         reg = <0x0>;
51                         d-cache-line-size = <32>;       // 32 bytes
52                         i-cache-line-size = <32>;       // 32 bytes
53                         d-cache-size = <0x8000>;        // L1, 32K
54                         i-cache-size = <0x8000>;        // L1, 32K
55                         timebase-frequency = <0>;
56                         bus-frequency = <200000000>;
57                         clock-frequency = <0>;
58                 };
59         };
60
61         memory {
62                 device_type = "memory";
63                 reg = <0x0 0x80000000>;         // 2G at 0x0
64         };
65
66         soc78460@d0000000 {
67                 #address-cells = <1>;
68                 #size-cells = <1>;
69                 compatible = "simple-bus";
70                 ranges = <0x0 0xd0000000 0x00100000>;
71                 bus-frequency = <0>;
72
73
74                 MPIC: mpic@20a00 {
75                         interrupt-controller;
76                         #address-cells = <0>;
77                         #interrupt-cells = <1>;
78                         reg = <0x20a00 0x500 0x21000 0x800 0x20400 0x100>;
79                         compatible = "mrvl,mpic";
80                 };
81
82                 rtc@10300 {
83                         compatible = "mrvl,rtc";
84                         reg = <0x10300 0x08>;
85                 };
86
87                 timer@21840 {
88                         compatible = "mrvl,timer";
89                         reg = <0x21840 0x30>;
90                         interrupts = <5>;
91                         interrupt-parent = <&MPIC>;
92                         mrvl,has-wdt;
93                 };
94
95                 twsi@11000 {
96                         #address-cells = <1>;
97                         #size-cells = <0>;
98                         compatible = "mrvl,twsi";
99                         reg = <0x11000 0x20>;
100                         interrupts = <31>;
101                         interrupt-parent = <&MPIC>;
102                 };
103
104                 twsi@11100 {
105                         #address-cells = <1>;
106                         #size-cells = <0>;
107                         compatible = "mrvl,twsi";
108                         reg = <0x11100 0x20>;
109                         interrupts = <32>;
110                         interrupt-parent = <&MPIC>;
111                 };
112
113                 serial0: serial@12000 {
114                         compatible = "ns16550";
115                         reg = <0x12000 0x20>;
116                         reg-shift = <2>;
117                         current-speed = <115200>;
118                         clock-frequency = <0>;
119                         busy-detect = <1>;
120                         interrupts = <41>;
121                         interrupt-parent = <&MPIC>;
122                 };
123
124                 serial1: serial@12100 {
125                         compatible = "ns16550";
126                         reg = <0x12100 0x20>;
127                         reg-shift = <2>;
128                         current-speed = <115200>;
129                         clock-frequency = <0>;
130                         busy-detect = <1>;
131                         interrupts = <42>;
132                         interrupt-parent = <&MPIC>;
133                 };
134
135                 serial2: serial@12200 {
136                         compatible = "ns16550";
137                         reg = <0x12200 0x20>;
138                         reg-shift = <2>;
139                         current-speed = <115200>;
140                         clock-frequency = <0>;
141                         busy-detect = <1>;
142                         interrupts = <43>;
143                         interrupt-parent = <&MPIC>;
144                 };
145                 
146                 serial3: serial@12300 {
147                         compatible = "ns16550";
148                         reg = <0x12300 0x20>;
149                         reg-shift = <2>;
150                         current-speed = <115200>;
151                         clock-frequency = <0>;
152                         busy-detect = <1>;
153                         interrupts = <44>;
154                         interrupt-parent = <&MPIC>;
155                 };
156
157                 MPP: mpp@10000 {
158                         #pin-cells = <2>;
159                         compatible = "mrvl,mpp";
160                         reg = <0x18000 0x34>;
161                         pin-count = <68>;
162                         pin-map = <
163                                 0  1            /* MPP[0]:  GE1_TXCLK */
164                                 1  1            /* MPP[1]:  GE1_TXCTL */
165                                 2  1            /* MPP[2]:  GE1_RXCTL */
166                                 3  1            /* MPP[3]:  GE1_RXCLK */
167                                 4  1            /* MPP[4]:  GE1_TXD[0] */
168                                 5  1            /* MPP[5]:  GE1_TXD[1] */
169                                 6  1            /* MPP[6]:  GE1_TXD[2] */
170                                 7  1            /* MPP[7]:  GE1_TXD[3] */
171                                 8  1            /* MPP[8]:  GE1_RXD[0] */
172                                 9  1            /* MPP[9]:  GE1_RXD[1] */
173                                 10 1            /* MPP[10]: GE1_RXD[2] */
174                                 11 1            /* MPP[11]: GE1_RXD[3] */
175                                 12 2            /* MPP[13]: SYSRST_OUTn */
176                                 13 2            /* MPP[13]: SYSRST_OUTn */
177                                 14 2            /* MPP[14]: SATA1_ACTn */
178                                 15 2            /* MPP[15]: SATA0_ACTn */
179                                 16 2            /* MPP[16]: UA2_TXD */
180                                 17 2            /* MPP[17]: UA2_RXD */
181                                 18 2            /* MPP[18]: <UNKNOWN> */
182                                 19 2            /* MPP[19]: <UNKNOWN> */
183                                 20 2            /* MPP[20]: <UNKNOWN> */
184                                 21 2            /* MPP[21]: <UNKNOWN> */
185                                 22 2            /* MPP[22]: UA3_TXD */
186                                 23 2
187                                 24 0
188                                 25 0
189                                 26 0
190                                 27 0
191                                 28 4
192                                 29 0
193                                 30 1
194                                 31 1
195                                 32 1
196                                 33 1
197                                 34 1
198                                 35 1
199                                 36 1
200                                 37 1
201                                 38 1
202                                 39 1
203                                 40 0
204                                 41 3
205                                 42 1
206                                 43 1
207                                 44 2
208                                 45 2
209                                 46 4
210                                 47 3
211                                 48 0
212                                 49 1
213                                 50 1
214                                 51 1
215                                 52 1
216                                 53 1
217                                 54 1
218                                 55 1
219                                 56 1
220                                 57 0
221                                 58 1
222                                 59 1
223                                 60 1
224                                 61 1
225                                 62 1
226                                 63 1
227                                 64 1
228                                 65 1
229                                 66 1
230                                 67 2 >;
231                 };
232
233                 usb@50000 {
234                         compatible = "mrvl,usb-ehci", "usb-ehci";
235                         reg = <0x50000 0x1000>;
236                         interrupts = <124 45>;
237                         interrupt-parent = <&MPIC>;
238                 };
239
240                 usb@51000 {
241                         compatible = "mrvl,usb-ehci", "usb-ehci";
242                         reg = <0x51000 0x1000>;
243                         interrupts = <124 46>;
244                         interrupt-parent = <&MPIC>;
245                 };
246
247                 usb@52000 {
248                         compatible = "mrvl,usb-ehci", "usb-ehci";
249                         reg = <0x52000 0x1000>;
250                         interrupts = <124 47>;
251                         interrupt-parent = <&MPIC>;
252                 };
253
254                 enet0: ethernet@72000 {
255                         #address-cells = <1>;
256                         #size-cells = <1>;
257                         model = "V2";
258                         compatible = "mrvl,ge";
259                         reg = <0x72000 0x2000>;
260                         ranges = <0x0 0x72000 0x2000>;
261                         local-mac-address = [ 00 04 01 07 84 60 ];
262                         interrupts = <67 68 122 >;
263                         interrupt-parent = <&MPIC>;
264                         phy-handle = <&phy0>;
265                         has-neta;
266
267                         mdio@0 {
268                                 #address-cells = <1>;
269                                 #size-cells = <0>;
270                                 compatible = "mrvl,mdio";
271
272                                 phy0: ethernet-phy@0 {
273                                         reg = <0x0>;
274                                 };
275                                 phy1: ethernet-phy@1 {
276                                         reg = <0x1>;
277                                 };
278                                 phy2: ethernet-phy@2 {
279                                         reg = <0x19>;
280                                 };
281                                 phy3: ethernet-phy@3 {
282                                         reg = <0x1b>;
283                                 };
284                         };
285                 };
286
287                 sata@A0000 {
288                         compatible = "mrvl,sata";
289                         reg = <0xA0000 0x6000>;
290                         interrupts = <55>;
291                         interrupt-parent = <&MPIC>;
292                 };
293         };
294
295         pci0: pcie@d0040000 {
296                 compatible = "mrvl,pcie";
297                 device_type = "pci";
298                 #interrupt-cells = <1>;
299                 #size-cells = <2>;
300                 #address-cells = <3>;
301                 reg = <0xd0040000 0x2000>;
302                 bus-range = <0 255>;
303                 ranges = <0x02000000 0x0 0x80000000 0x80000000 0x0 0x20000000
304                           0x01000000 0x0 0x00000000 0xa0000000 0x0 0x08000000>;
305                 clock-frequency = <33333333>;
306                 interrupt-parent = <&MPIC>;
307                 interrupts = <120>;
308                 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
309                 interrupt-map = <
310                         0x0800 0x0 0x0 0x1 &MPIC 0x3A
311                         0x0800 0x0 0x0 0x2 &MPIC 0x3A
312                         0x0800 0x0 0x0 0x3 &MPIC 0x3A
313                         0x0800 0x0 0x0 0x4 &MPIC 0x3A
314                         >;
315         };
316
317         sram@ffff0000 {
318                 compatible = "mrvl,cesa-sram";
319                 reg = <0xffff0000 0x00010000>;
320         };
321
322         chosen {
323                 stdin = "serial0";
324                 stdout = "serial0";
325                 stddbg = "serial0";
326         };
327 };