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