]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/boot/fdt/dts/am335x.dtsi
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / boot / fdt / dts / am335x.dtsi
1 /*-
2  * Copyright (c) 2012 Damjan Marion <dmarion@Freebsd.org>
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24  * SUCH DAMAGE.
25  * 
26  * $FreeBSD$
27  */
28
29 / {
30         #address-cells = <1>;
31         #size-cells = <1>;
32
33         interrupt-parent = <&AINTC>;
34
35         SOC: am335x {
36                 #address-cells = <1>;
37                 #size-cells = <1>;
38                 compatible = "simple-bus";
39                 ranges;
40                 bus-frequency = <0>;
41
42                 AINTC: interrupt-controller@48200000 {
43                         compatible = "ti,aintc";
44                         interrupt-controller;
45                         #address-cells = <0>;
46                         #interrupt-cells = <1>;
47                         reg =   < 0x48200000 0x1000 >;
48                 };
49
50                 scm@44e10000 {
51                         compatible = "ti,scm";
52                         reg =   < 0x44e10000 0x2000 >;
53                 };
54
55                 prcm@44E00000 {
56                         compatible = "am335x,prcm";
57                         #address-cells = <1>;
58                         #size-cells = <1>;
59                         reg = < 0x44E00000 0x1300 >;
60                 };
61
62                 dmtimers@44E05000 {
63                         compatible = "ti,am335x-dmtimer";
64                         #address-cells = <1>;
65                         #size-cells = <1>;
66                         reg =   < 0x44E05000 0x1000
67                                   0x44E31000 0x1000
68                                   0x48040000 0x1000
69                                   0x48042000 0x1000
70                                   0x48044000 0x1000
71                                   0x48046000 0x1000
72                                   0x48048000 0x1000
73                                   0x4804A000 0x1000 >;
74                         interrupts = < 66 67 68 69 92 93 94 95 >;
75                         interrupt-parent = <&AINTC>;
76                 };
77
78                 GPIO: gpio {
79                         #gpio-cells = <3>;
80                         compatible = "ti,gpio";
81                         gpio-controller;
82                         reg =<  0x44E07000 0x1000
83                                 0x4804C000 0x1000
84                                 0x481AC000 0x1000
85                                 0x481AE000 0x1000 >;
86                         interrupts = < 96 97 98 99 32 33 62 63 >;
87                         interrupt-parent = <&AINTC>;
88                 };
89
90                 uart0: serial@44E09000 {
91                         compatible = "ti,ns16550";
92                         reg = <0x44E09000 0x1000>;
93                         reg-shift = <2>;
94                         interrupts = < 72 >;
95                         interrupt-parent = <&AINTC>;
96                         clock-frequency = < 48000000 >;
97                         uart-device-id = < 0 >;
98                 };
99                 
100                 uart1: serial@48022000 {
101                         compatible = "ti,ns16550";
102                         reg = <0x48022000 0x1000>;
103                         reg-shift = <2>;
104                         interrupts = < 73 >;
105                         interrupt-parent = <&AINTC>;
106                         clock-frequency = < 48000000 >; 
107                         uart-device-id = < 1 >;
108                         status = "disabled";
109                 };
110                 
111                 uart2: serial@48024000 {
112                         compatible = "ti,ns16550";
113                         reg = <0x48024000 0x1000>;
114                         reg-shift = <2>;
115                         interrupts = < 74 >;
116                         interrupt-parent = <&AINTC>;
117                         clock-frequency = < 48000000 >; 
118                         uart-device-id = < 2 >;
119                         status = "disabled";
120                 };
121                 
122                 uart3: serial@481a6000 {
123                         compatible = "ti,ns16550";
124                         reg = <0x481A6000 0x1000>;
125                         reg-shift = <2>;
126                         interrupts = < 44 >;
127                         interrupt-parent = <&AINTC>;
128                         clock-frequency = < 48000000 >; 
129                         uart-device-id = < 3 >;
130                         status = "disabled";
131                 };
132  
133                 uart4: serial@481a8000 {
134                         compatible = "ti,ns16550";
135                         reg = <0x481A8000 0x1000>;
136                         reg-shift = <2>;
137                         interrupts = < 45 >;
138                         interrupt-parent = <&AINTC>;
139                         clock-frequency = < 48000000 >; 
140                         uart-device-id = < 4 >;
141                         status = "disabled";
142                 };
143  
144                 uart5: serial@481aa000 {
145                         compatible = "ti,ns16550";
146                         reg = <0x481AA000 0x1000>;
147                         reg-shift = <2>;
148                         interrupts = < 46 >;
149                         interrupt-parent = <&AINTC>;
150                         clock-frequency = < 48000000 >; 
151                         uart-device-id = < 5 >;
152                         status = "disabled";
153                 };
154
155                 edma3@49000000 {
156                         compatible = "ti,edma3";
157                         reg =<  0x49000000 0x100000     /* Channel Controller Regs */
158                                 0x49800000 0x100000     /* Transfer Controller 0 Regs */
159                                 0x49900000 0x100000     /* Transfer Controller 1 Regs */
160                                 0x49a00000 0x100000 >;  /* Transfer Controller 2 Regs */
161                         interrupts = <12 13 14>;
162                         interrupt-parent = <&AINTC>;
163                 };
164
165                 mmchs0@48060000 {
166                         compatible = "ti,mmchs";
167                         reg =<0x48060000 0x1000 >;
168                         interrupts = <64>;
169                         interrupt-parent = <&AINTC>;
170                         mmchs-device-id = <0>;
171                         mmchs-wp-gpio-pin = <0xffffffff>;
172                 };
173
174                 mmchs1@481D8000 {
175                         compatible = "ti,mmchs";
176                         reg =<0x481D8000 0x1000 >;
177                         interrupts = <28>;
178                         interrupt-parent = <&AINTC>;
179                         mmchs-device-id = <1>;
180                         mmchs-wp-gpio-pin = <0xffffffff>;
181                         status = "disabled";
182                 };
183
184                 enet0: ethernet@4A100000 {
185                         #address-cells = <1>;
186                         #size-cells = <1>;
187                         compatible = "ti,cpsw";
188                         reg = <0x4A100000 0x4000>;
189                         interrupts = <40 41 42 43>;
190                         interrupt-parent = <&AINTC>;
191                         phy-handle = <&phy0>;
192                         mdio@0 {
193                                 #address-cells = <1>;
194                                 #size-cells = <0>;
195                                 compatible = "ti,cpsw-mdio";
196                                 phy0: ethernet-phy@0 {
197                                         reg = <0x0>;
198                                 };
199                         };
200                 };
201
202                 i2c0: i2c@44e0b000 {
203                         #address-cells = <1>;
204                         #size-cells = <0>;
205                         compatible = "ti,i2c";
206                         reg =<  0x44e0b000 0x1000 >;
207                         interrupts = <70>;
208                         interrupt-parent = <&AINTC>;
209                         i2c-device-id = <0>;
210                 };
211
212                 pwm@48300000 {
213                         compatible = "ti,am335x-pwm";
214                         #address-cells = <1>;
215                         #size-cells = <1>;
216                         reg = < 0x48300000 0x100        /* PWMSS0 */
217                                 0x48300100 0x80         /* eCAP0 */
218                                 0x48300180 0x80         /* eQEP0 */
219                                 0x48300200 0x60         /* ePWM0 */
220                         >;
221                         interrupts = <86 58>; /* ePWM0INT, ePWM0_TZINT */
222                         interrupt-parent = <&AINTC>;
223                         pwm-device-id = <0>;
224                 };
225
226                 pwm@48302000 {
227                         compatible = "ti,am335x-pwm";
228                         #address-cells = <1>;
229                         #size-cells = <1>;
230                         reg = < 0x48302000 0x100        /* PWMSS1 */
231                                 0x48302100 0x80         /* eCAP1 */
232                                 0x48302180 0x80         /* eQEP1 */
233                                 0x48302200 0x60         /* ePWM1 */
234                         >;
235                         interrupts = <87 59>; /* ePWM1INT, ePWM1_TZINT */
236                         interrupt-parent = <&AINTC>;
237                         pwm-device-id = <1>;
238                 };
239
240                 pwm@48304000 {
241                         compatible = "ti,am335x-pwm";
242                         #address-cells = <1>;
243                         #size-cells = <1>;
244                         reg = < 0x48304000 0x100        /* PWMSS2 */
245                                 0x48304100 0x80         /* eCAP2 */
246                                 0x48304180 0x80         /* eQEP2 */
247                                 0x48304200 0x60         /* ePWM2 */
248                         >;
249                         interrupts = <88 60>; /* ePWM2INT, ePWM2_TZINT */
250                         interrupt-parent = <&AINTC>;
251                         pwm-device-id = <2>;
252                 };
253
254                 lcd: lcd@4830e000 {
255                         #address-cells = <1>;
256                         #size-cells = <0>;
257                         compatible = "ti,am335x-lcd";
258                         reg =<  0x4830e000 0x1000 >;
259                         interrupts = <36>;
260                         interrupt-parent = <&AINTC>;
261                 };
262
263                 usb@47400000 {
264                         #address-cells = <1>;
265                         #size-cells = <0>;
266                         compatible = "ti,musb-am33xx";
267                         reg =<  0x47400000 0x1000       /* USBSS */
268                                 0x47401000 0x300        /* USB0 */
269                                 0x47401300 0x100        /* USB0_PHY */
270                                 0x47401400 0x400        /* USB0_CORE */
271                                 0x47401800 0x300        /* USB1 */
272                                 0x47401B00 0x100        /* USB1_PHY */
273                                 0x47401C00 0x400        /* USB1_CORE */
274                         >;
275                         interrupts = <17 18 19>;
276                         interrupt-parent = <&AINTC>;
277                         /* 1 - Host Mode, 0 - Device Mode */
278                         modemask = <2>;
279                 };
280
281                 mbox0@480C8000 {
282                         compatible = "am335x,system-mbox";
283                         reg = < 0x480C8000 0x1000 >;
284                         interrupts = <77>;
285                         interrupt-parent = <&AINTC>;
286                 };
287
288                 spinlock0@480CA000 {
289                         compatible = "am335x,spinlock";
290                         reg = < 0x480CA000 0x1000 >;
291                 };
292
293                 pruss@4A300000 {
294                         compatible = "ti,pruss-v2";
295                         reg = <0x4A300000 0x80000>;
296                         interrupt-parent = <&AINTC>;
297                         interrupts = <20 21 22 23 24 25 26 27>;
298                 };
299         };
300 };