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