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