332df3d1475ff5f72ece8d4237b555034168c3b9
[openwrt.git] / target / linux / lantiq / image / EASY80920.dtsi
1 /include/ "vr9.dtsi"
2
3 / {
4         chosen {
5                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
6         };
7
8         memory@0 {
9                 reg = <0x0 0x4000000>;
10         };
11         
12         fpi@10000000 {
13                 #address-cells = <1>;
14                 #size-cells = <1>;
15                 compatible = "lantiq,fpi", "simple-bus";
16                 ranges = <0x0 0x10000000 0xEEFFFFF>;
17                 reg = <0x10000000 0xEF00000>;
18
19                 localbus@0 {
20                         #address-cells = <2>;
21                         #size-cells = <1>;
22                         compatible = "lantiq,localbus", "simple-bus";
23                         
24                 };
25
26                 sflash@E100800 {
27                         compatible = "lantiq,sflash";
28                         reg = <0xE100800 0x100>;
29                         #address-cells = <1>;
30                         #size-cells = <1>;
31         
32                         partition@0 {
33                                 label = "uboot";
34                                 reg = <0x00000 0x10000>;
35                         };
36
37                         partition@10000 {
38                                 label = "uboot_env";
39                                 reg = <0x10000 0x10000>;
40                         };
41
42                         partition@20000 {
43                                 label = "linux";
44                                 reg = <0x20000 0x1d0000>;
45                         };
46                 };
47
48                 gpio: pinmux@E100B10 {
49                         compatible = "lantiq,pinctrl-xr9";
50                         pinctrl-names = "default";
51                         pinctrl-0 = <&state_default>;
52                         
53                         interrupt-parent = <&icu0>;
54                         interrupts = <166 135 66 40 41 42 38>;
55
56                         #gpio-cells = <2>;
57                         gpio-controller;
58                         reg = <0xE100B10 0xA0>;
59
60                         state_default: pinmux {
61                                 stp {
62                                         lantiq,groups = "stp";
63                                         lantiq,function = "stp";
64                                 };
65                                 /*spi {
66                                         lantiq,groups = "spi", "spi_cs4";
67                                         lantiq,function = "spi";
68                                 };*/
69                                 nand {
70                                         lantiq,groups = "nand cle", "nand ale",
71                                                         "nand rd", "nand rdy";
72                                         lantiq,function = "ebu";
73                                 };
74                                 mdio {
75                                         lantiq,groups = "mdio";
76                                         lantiq,function = "mdio";
77                                 };
78                                 pci {
79                                         lantiq,groups = "gnt1", "req1";
80                                         lantiq,function = "pci";
81                                 };
82                                 exin {
83                                         lantiq,groups = "exin3";
84                                         lantiq,function = "exin";
85                                 };
86                                 conf_out {
87                                         lantiq,pins = "io24", "io13", "io49", /* nand cle, ale and rd */
88                                                         "io4", "io5", "io6", /* stp */
89                                                         "io17", "io18", /* spi dout & clk */
90                                                         "io21", /* pci-rst */
91                                                         "io38"; /* pcie-rst */
92                                         lantiq,open-drain;
93                                         lantiq,pull = <0>;
94                                 };
95                                 conf_in {
96                                         lantiq,pins = "io39", /* exin3 */
97                                                         "io48"; /* nand rdy */
98                                         lantiq,pull = <2>;
99                                 };
100                         };
101                 };
102
103                 eth@0xE108000 {
104                         #address-cells = <1>;
105                         #size-cells = <0>;
106                         compatible = "lantiq,xrx200-net";
107                         reg = < 0xE108000 0x3000 /* switch */
108                                 0xE10B100 0x70 /* mdio */
109                                 0xE10B1D8 0x30 /* mii */
110                                 0xE10B308 0x30 /* pmac */
111                         >;
112                         interrupt-parent = <&icu0>;
113                         interrupts = <73 72>;
114
115                         lan: interface@0 {
116                                 compatible = "lantiq,xrx200-pdi";
117                                 #address-cells = <1>;
118                                 #size-cells = <0>;
119                                 reg = <0>;
120                                 mac-address = [ 00 11 22 33 44 55 ];
121
122                                 ethernet@0 {
123                                         compatible = "lantiq,xrx200-pdi-port";
124                                         reg = <0>;
125                                         phy-mode = "rgmii";
126                                         phy-handle = <&phy0>;
127                                 };
128                                 ethernet@1 {
129                                         compatible = "lantiq,xrx200-pdi-port";
130                                         reg = <1>;
131                                         phy-mode = "rgmii";
132                                         phy-handle = <&phy1>;
133                                 };
134                                 ethernet@2 {
135                                         compatible = "lantiq,xrx200-pdi-port";
136                                         reg = <2>;
137                                         phy-mode = "gmii";
138                                         phy-handle = <&phy11>;
139                                 };
140                                 ethernet@4 {
141                                         compatible = "lantiq,xrx200-pdi-port";
142                                         reg = <4>;
143                                         phynmode0 = "gmii";
144                                         phy-handle = <&phy13>;
145                                 };
146                         };
147
148                         wan: interface@1 {
149                                 compatible = "lantiq,xrx200-pdi";
150                                 #address-cells = <1>;
151                                 #size-cells = <0>;
152                                 reg = <1>;
153                                 mac-address = [ 00 11 22 33 44 56 ];
154
155                                 ethernet@5 {
156                                         compatible = "lantiq,xrx200-pdi-port";
157                                         reg = <5>;
158                                         phy-mode = "rgmii";
159                                         phy-handle = <&phy5>;
160                                 };
161                         };
162
163                         mdio@0 {
164                                 #address-cells = <1>;
165                                 #size-cells = <0>;
166                                 compatible = "lantiq,xrx200-mdio";
167                                 phy0: ethernet-phy@0 {
168                                         reg = <0x0>;
169                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
170                                         lantiq,c45-reg-init = <1 0 0 0>; 
171                                 };
172                                 phy1: ethernet-phy@1 {
173                                         reg = <0x1>;
174                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
175                                         lantiq,c45-reg-init = <1 0 0 0>; 
176                                 };
177                                 phy5: ethernet-phy@5 {
178                                         reg = <0x5>;
179                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
180                                         lantiq,c45-reg-init = <1 0 0 0>; 
181                                 };
182                                 phy11: ethernet-phy@11 {
183                                         reg = <0x11>;
184                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
185                                         lantiq,c45-reg-init = <1 0 0 0>; 
186                                 };
187                                 phy13: ethernet-phy@13 {
188                                         reg = <0x13>;
189                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
190                                         lantiq,c45-reg-init = <1 0 0 0>; 
191                                 };
192                         };
193                 };
194
195                 stp: stp@E100BB0 {
196                         compatible = "lantiq,gpio-stp-xway";
197                         reg = <0xE100BB0 0x40>;
198                         #gpio-cells = <2>;
199                         gpio-controller;
200
201                         lantiq,shadow = <0xffff>;
202                         lantiq,groups = <0x7>;
203                         lantiq,dsl = <0x3>;
204                         lantiq,phy1 = <0x7>;
205                         lantiq,phy2 = <0x7>;
206                         /* lantiq,rising; */
207                 };
208                 
209                 pci@E105400 {
210                         #address-cells = <3>;
211                         #size-cells = <2>;
212                         #interrupt-cells = <1>;
213                         compatible = "lantiq,pci-xway";
214                         bus-range = <0x0 0x0>;
215                         ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000   /* pci memory */
216                                 0x1000000 0 0x00000000 0xAE00000 0 0x200000>; /* io space */
217                         reg = <0x7000000 0x8000         /* config space */
218                                 0xE105400 0x400>;       /* pci bridge */
219                         lantiq,bus-clock = <33333333>;
220                         /*lantiq,external-clock;*/
221                         lantiq,delay-hi = <0>; /* 0ns delay */
222                         lantiq,delay-lo = <0>; /* 0.0ns delay */
223                         interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
224                         interrupt-map = <
225                                 0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29
226                                 >;
227                         gpios-reset = <&gpio 21 0>;
228                         req-mask = <0x1>;       /* GNT1 */
229                 };
230         };
231
232         ifxhcd {
233                 compatible = "lantiq,ifxhcd";
234                 interrupt-parent = <&icu0>;
235                 interrupts = <62 91>;
236         };
237
238         gphy-xrx200 {
239                 compatible = "lantiq,phy-xrx200";
240                 firmware = "lantiq/vr9_phy11g_a2x.bin";
241                 phys = [ 00 01 ];
242         };
243
244         gpio-keys-polled {
245                 compatible = "gpio-keys-polled";
246                 #address-cells = <1>;
247                 #size-cells = <0>;
248                 poll-interval = <100>;
249                 reset {
250                         label = "Reset";
251                         gpios = <&gpio 7 0>;
252                         linux,code = <0x100>;
253                 };
254                 paging {
255                         label = "paging";
256                         gpios = <&gpio 11 1>;
257                         linux,code = <0x100>;
258                 };
259         };
260
261 /*      gpio-keys {
262                 compatible = "gpio-keys";
263                 wps {
264                         gpios = <&gpio 39 0>;
265                         linux,code = <0x100>;
266                 };
267         };*/
268
269         gpio-leds {
270                 compatible = "gpio-leds";
271                 
272                 led0 {
273                         label = "led0";
274                         gpios = <&stp 9 0>;
275                         default-state = "on";
276                 };
277                 warning {
278                         label = "warning";
279                         gpios = <&stp 22 0>;
280                         default-state = "on";
281                 };
282                 fxs1 {
283                         label = "fxs1";
284                         gpios = <&stp 21 0>;
285                         default-state = "on";
286                 };
287                 fxs2 {
288                         label = "fxs2";
289                         gpios = <&stp 20 0>;
290                         default-state = "on";
291                 };
292                 fxo {
293                         label = "fxo";
294                         gpios = <&stp 19 0>;
295                         default-state = "on";
296                 };
297                 usb1 {
298                         label = "usb1";
299                         gpios = <&stp 18 0>;
300                         default-state = "on";
301                 };
302                 usb2 {
303                         label = "usb2";
304                         gpios = <&stp 15 0>;
305                         default-state = "on";
306                 };
307                 sd {
308                         label = "sd";
309                         gpios = <&stp 14 0>;
310                         default-state = "on";
311                 };
312                 wps {
313                         label = "wps";
314                         gpios = <&stp 12 0>;
315                         default-state = "on";
316                 };
317         };
318 };