]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/powerpc/boot/dts/mpc8349emitx.dts
powerpc/83xx: Add support for MCU microcontroller in .dts files
[linux-2.6-omap-h63xx.git] / arch / powerpc / boot / dts / mpc8349emitx.dts
1 /*
2  * MPC8349E-mITX Device Tree Source
3  *
4  * Copyright 2006 Freescale Semiconductor Inc.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the
8  * Free Software Foundation; either version 2 of the License, or (at your
9  * option) any later version.
10  */
11
12 /dts-v1/;
13
14 / {
15         model = "MPC8349EMITX";
16         compatible = "MPC8349EMITX", "MPC834xMITX", "MPC83xxMITX";
17         #address-cells = <1>;
18         #size-cells = <1>;
19
20         aliases {
21                 ethernet0 = &enet0;
22                 ethernet1 = &enet1;
23                 serial0 = &serial0;
24                 serial1 = &serial1;
25                 pci0 = &pci0;
26                 pci1 = &pci1;
27         };
28
29         cpus {
30                 #address-cells = <1>;
31                 #size-cells = <0>;
32
33                 PowerPC,8349@0 {
34                         device_type = "cpu";
35                         reg = <0x0>;
36                         d-cache-line-size = <32>;
37                         i-cache-line-size = <32>;
38                         d-cache-size = <32768>;
39                         i-cache-size = <32768>;
40                         timebase-frequency = <0>;       // from bootloader
41                         bus-frequency = <0>;            // from bootloader
42                         clock-frequency = <0>;          // from bootloader
43                 };
44         };
45
46         memory {
47                 device_type = "memory";
48                 reg = <0x00000000 0x10000000>;
49         };
50
51         soc8349@e0000000 {
52                 #address-cells = <1>;
53                 #size-cells = <1>;
54                 device_type = "soc";
55                 compatible = "simple-bus";
56                 ranges = <0x0 0xe0000000 0x00100000>;
57                 reg = <0xe0000000 0x00000200>;
58                 bus-frequency = <0>;                    // from bootloader
59
60                 wdt@200 {
61                         device_type = "watchdog";
62                         compatible = "mpc83xx_wdt";
63                         reg = <0x200 0x100>;
64                 };
65
66                 i2c@3000 {
67                         #address-cells = <1>;
68                         #size-cells = <0>;
69                         cell-index = <0>;
70                         compatible = "fsl-i2c";
71                         reg = <0x3000 0x100>;
72                         interrupts = <14 0x8>;
73                         interrupt-parent = <&ipic>;
74                         dfsrr;
75                 };
76
77                 i2c@3100 {
78                         #address-cells = <1>;
79                         #size-cells = <0>;
80                         cell-index = <1>;
81                         compatible = "fsl-i2c";
82                         reg = <0x3100 0x100>;
83                         interrupts = <15 0x8>;
84                         interrupt-parent = <&ipic>;
85                         dfsrr;
86                 };
87
88                 spi@7000 {
89                         cell-index = <0>;
90                         compatible = "fsl,spi";
91                         reg = <0x7000 0x1000>;
92                         interrupts = <16 0x8>;
93                         interrupt-parent = <&ipic>;
94                         mode = "cpu";
95                 };
96
97                 dma@82a8 {
98                         #address-cells = <1>;
99                         #size-cells = <1>;
100                         compatible = "fsl,mpc8349-dma", "fsl,elo-dma";
101                         reg = <0x82a8 4>;
102                         ranges = <0 0x8100 0x1a8>;
103                         interrupt-parent = <&ipic>;
104                         interrupts = <71 8>;
105                         cell-index = <0>;
106                         dma-channel@0 {
107                                 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
108                                 reg = <0 0x80>;
109                                 cell-index = <0>;
110                                 interrupt-parent = <&ipic>;
111                                 interrupts = <71 8>;
112                         };
113                         dma-channel@80 {
114                                 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
115                                 reg = <0x80 0x80>;
116                                 cell-index = <1>;
117                                 interrupt-parent = <&ipic>;
118                                 interrupts = <71 8>;
119                         };
120                         dma-channel@100 {
121                                 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
122                                 reg = <0x100 0x80>;
123                                 cell-index = <2>;
124                                 interrupt-parent = <&ipic>;
125                                 interrupts = <71 8>;
126                         };
127                         dma-channel@180 {
128                                 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
129                                 reg = <0x180 0x28>;
130                                 cell-index = <3>;
131                                 interrupt-parent = <&ipic>;
132                                 interrupts = <71 8>;
133                         };
134
135                         mcu_pio: mcu@a {
136                                 #gpio-cells = <2>;
137                                 compatible = "fsl,mc9s08qg8-mpc8349emitx",
138                                              "fsl,mcu-mpc8349emitx";
139                                 reg = <0x0a>;
140                                 gpio-controller;
141                         };
142                 };
143
144                 usb@22000 {
145                         compatible = "fsl-usb2-mph";
146                         reg = <0x22000 0x1000>;
147                         #address-cells = <1>;
148                         #size-cells = <0>;
149                         interrupt-parent = <&ipic>;
150                         interrupts = <39 0x8>;
151                         phy_type = "ulpi";
152                         port1;
153                 };
154
155                 usb@23000 {
156                         compatible = "fsl-usb2-dr";
157                         reg = <0x23000 0x1000>;
158                         #address-cells = <1>;
159                         #size-cells = <0>;
160                         interrupt-parent = <&ipic>;
161                         interrupts = <38 0x8>;
162                         dr_mode = "peripheral";
163                         phy_type = "ulpi";
164                 };
165
166                 mdio@24520 {
167                         #address-cells = <1>;
168                         #size-cells = <0>;
169                         compatible = "fsl,gianfar-mdio";
170                         reg = <0x24520 0x20>;
171
172                         /* Vitesse 8201 */
173                         phy1c: ethernet-phy@1c {
174                                 interrupt-parent = <&ipic>;
175                                 interrupts = <18 0x8>;
176                                 reg = <0x1c>;
177                                 device_type = "ethernet-phy";
178                         };
179                 };
180
181                 enet0: ethernet@24000 {
182                         cell-index = <0>;
183                         device_type = "network";
184                         model = "TSEC";
185                         compatible = "gianfar";
186                         reg = <0x24000 0x1000>;
187                         local-mac-address = [ 00 00 00 00 00 00 ];
188                         interrupts = <32 0x8 33 0x8 34 0x8>;
189                         interrupt-parent = <&ipic>;
190                         phy-handle = <&phy1c>;
191                         linux,network-index = <0>;
192                 };
193
194                 enet1: ethernet@25000 {
195                         cell-index = <1>;
196                         device_type = "network";
197                         model = "TSEC";
198                         compatible = "gianfar";
199                         reg = <0x25000 0x1000>;
200                         local-mac-address = [ 00 00 00 00 00 00 ];
201                         interrupts = <35 0x8 36 0x8 37 0x8>;
202                         interrupt-parent = <&ipic>;
203                         /* Vitesse 7385 isn't on the MDIO bus */
204                         fixed-link = <1 1 1000 0 0>;
205                         linux,network-index = <1>;
206                 };
207
208                 serial0: serial@4500 {
209                         cell-index = <0>;
210                         device_type = "serial";
211                         compatible = "ns16550";
212                         reg = <0x4500 0x100>;
213                         clock-frequency = <0>;          // from bootloader
214                         interrupts = <9 0x8>;
215                         interrupt-parent = <&ipic>;
216                 };
217
218                 serial1: serial@4600 {
219                         cell-index = <1>;
220                         device_type = "serial";
221                         compatible = "ns16550";
222                         reg = <0x4600 0x100>;
223                         clock-frequency = <0>;          // from bootloader
224                         interrupts = <10 0x8>;
225                         interrupt-parent = <&ipic>;
226                 };
227
228                 crypto@30000 {
229                         compatible = "fsl,sec2.0";
230                         reg = <0x30000 0x10000>;
231                         interrupts = <11 0x8>;
232                         interrupt-parent = <&ipic>;
233                         fsl,num-channels = <4>;
234                         fsl,channel-fifo-len = <24>;
235                         fsl,exec-units-mask = <0x7e>;
236                         fsl,descriptor-types-mask = <0x01010ebf>;
237                 };
238
239                 ipic: pic@700 {
240                         interrupt-controller;
241                         #address-cells = <0>;
242                         #interrupt-cells = <2>;
243                         reg = <0x700 0x100>;
244                         device_type = "ipic";
245                 };
246         };
247
248         pci0: pci@e0008500 {
249                 cell-index = <1>;
250                 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
251                 interrupt-map = <
252                                 /* IDSEL 0x10 - SATA */
253                                 0x8000 0x0 0x0 0x1 &ipic 22 0x8 /* SATA_INTA */
254                                 >;
255                 interrupt-parent = <&ipic>;
256                 interrupts = <66 0x8>;
257                 bus-range = <0x0 0x0>;
258                 ranges = <0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
259                           0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
260                           0x01000000 0x0 0x00000000 0xe2000000 0x0 0x01000000>;
261                 clock-frequency = <66666666>;
262                 #interrupt-cells = <1>;
263                 #size-cells = <2>;
264                 #address-cells = <3>;
265                 reg = <0xe0008500 0x100         /* internal registers */
266                        0xe0008300 0x8>;         /* config space access registers */
267                 compatible = "fsl,mpc8349-pci";
268                 device_type = "pci";
269         };
270
271         pci1: pci@e0008600 {
272                 cell-index = <2>;
273                 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
274                 interrupt-map = <
275                                 /* IDSEL 0x0E - MiniPCI Slot */
276                                 0x7000 0x0 0x0 0x1 &ipic 21 0x8 /* PCI_INTA */
277
278                                 /* IDSEL 0x0F - PCI Slot */
279                                 0x7800 0x0 0x0 0x1 &ipic 20 0x8 /* PCI_INTA */
280                                 0x7800 0x0 0x0 0x2 &ipic 21 0x8 /* PCI_INTB */
281                                 >;
282                 interrupt-parent = <&ipic>;
283                 interrupts = <67 0x8>;
284                 bus-range = <0x0 0x0>;
285                 ranges = <0x42000000 0x0 0xa0000000 0xa0000000 0x0 0x10000000
286                           0x02000000 0x0 0xb0000000 0xb0000000 0x0 0x10000000
287                           0x01000000 0x0 0x00000000 0xe3000000 0x0 0x01000000>;
288                 clock-frequency = <66666666>;
289                 #interrupt-cells = <1>;
290                 #size-cells = <2>;
291                 #address-cells = <3>;
292                 reg = <0xe0008600 0x100         /* internal registers */
293                        0xe0008380 0x8>;         /* config space access registers */
294                 compatible = "fsl,mpc8349-pci";
295                 device_type = "pci";
296         };
297
298         localbus@e0005000 {
299                 #address-cells = <2>;
300                 #size-cells = <1>;
301                 compatible = "fsl,mpc8349e-localbus",
302                              "fsl,pq2pro-localbus";
303                 reg = <0xe0005000 0xd8>;
304                 ranges = <0x3 0x0 0xf0000000 0x210>;
305
306                 pata@3,0 {
307                         compatible = "fsl,mpc8349emitx-pata", "ata-generic";
308                         reg = <0x3 0x0 0x10 0x3 0x20c 0x4>;
309                         reg-shift = <1>;
310                         pio-mode = <6>;
311                         interrupts = <23 0x8>;
312                         interrupt-parent = <&ipic>;
313                 };
314         };
315 };