lantiq: xrx200: use vlan for ethernet wan port
[openwrt/openwrt.git] / target / linux / lantiq / dts / VGV7519.dtsi
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 chosen {
7 bootargs = "console=ttyLTQ0,115200 mem=62M vpe1_load_addr=0x83e00000 vpe1_mem=2M maxvpes=1 maxtcs=1";
8 };
9
10 aliases {
11 led-boot = &power_green;
12 led-failsafe = &power_red;
13 led-running = &power_green;
14
15 led-dsl = &broadband_green;
16 led-internet = &internet_green;
17 led-wifi = &wireless_green;
18 };
19
20 sram@1F000000 {
21 vmmc@107000 {
22 status = "okay";
23 gpios = <&gpio 30 GPIO_ACTIVE_HIGH //fxs relay
24 &gpio 31 GPIO_ACTIVE_HIGH //still unknown
25 &gpio 3 GPIO_ACTIVE_HIGH>; //reset_slic?
26 };
27 };
28
29 memory@0 {
30 reg = <0x0 0x4000000>;
31 };
32
33 fpi@10000000 {
34 localbus@0 {
35 nor-boot@0 {
36 compatible = "lantiq,nor";
37 bank-width = <2>;
38 reg = <0 0x0 0x800000>, <1 0x800000 0x800000>;
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partitions {
43 compatible = "fixed-partitions";
44 #address-cells = <1>;
45 #size-cells = <1>;
46
47 boardconfig: partition@40000 {
48 label = "board_config";
49 reg = <0x40000 0x10000>;
50 read-only;
51 };
52 };
53 };
54 };
55
56 gpio: pinmux@E100B10 {
57 pinctrl-names = "default";
58 pinctrl-0 = <&state_default>;
59
60 state_default: pinmux {
61 stp {
62 lantiq,groups = "stp";
63 lantiq,function = "stp";
64 lantiq,open-drain = <0>;
65 lantiq,output = <1>;
66 lantiq,pull = <0>;
67 };
68 mdio {
69 lantiq,groups = "mdio";
70 lantiq,function = "mdio";
71 };
72 pci-rst {
73 lantiq,pins = "io21";
74 lantiq,open-drain = <0>;
75 lantiq,pull = <0>;
76 lantiq,output = <1>;
77 };
78 gphy-leds {
79 lantiq,groups = "gphy0 led1", "gphy1 led0";
80 lantiq,function = "gphy";
81 lantiq,open-drain = <0>;
82 lantiq,pull = <0>;
83 lantiq,output = <1>;
84 };
85 };
86 };
87
88 stp: stp@E100BB0 {
89 compatible = "lantiq,gpio-stp-xway";
90 reg = <0xE100BB0 0x40>;
91 #gpio-cells = <2>;
92 gpio-controller;
93
94 lantiq,shadow = <0xffff>;
95 lantiq,groups = <0x3>;
96 lantiq,dsl = <0x0>;
97 lantiq,phy1 = <0x0>;
98 lantiq,phy2 = <0x0>;
99 /* lantiq,rising; */
100 };
101
102 ifxhcd@E101000 {
103 status = "okay";
104 gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
105 lantiq,portmask = <0x3>;
106 };
107
108 ifxhcd@E106000 {
109 status = "okay";
110 gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
111 };
112
113 pcie@d900000 {
114 status = "disabled";
115 };
116 };
117
118 gphy-xrx200 {
119 compatible = "lantiq,phy-xrx200";
120 firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /*VR9 1.1*/
121 firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /*VR9 1.2*/
122 phys = [ 00 01 ];
123 };
124
125 gpio-keys-polled {
126 compatible = "gpio-keys-polled";
127 #address-cells = <1>;
128 #size-cells = <0>;
129 poll-interval = <100>;
130 reset {
131 label = "reset";
132 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
133 linux,code = <KEY_RESTART>;
134 };
135 eco {
136 label = "eco";
137 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
138 linux,code = <BTN_0>;
139 };
140 rfkill {
141 label = "rfkill";
142 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
143 linux,code = <KEY_RFKILL>;
144 };
145 wps {
146 label = "wps";
147 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
148 linux,code = <KEY_WPS_BUTTON>;
149 };
150 };
151
152 gpio-leds {
153 compatible = "gpio-leds";
154
155 eco {
156 label = "vgv7519:blue:eco";
157 gpios = <&stp 2 GPIO_ACTIVE_LOW>;
158 };
159 wps_red {
160 label = "vgv7519:red:wps";
161 gpios = <&stp 3 GPIO_ACTIVE_LOW>;
162 };
163 wps_green {
164 label = "vgv7519:green:wps";
165 gpios = <&stp 4 GPIO_ACTIVE_LOW>;
166 };
167 upgrade {
168 label = "vgv7519:blue:upgrade";
169 gpios = <&stp 5 GPIO_ACTIVE_LOW>;
170 };
171 tv {
172 label = "vgv7519:green:tv";
173 gpios = <&stp 6 GPIO_ACTIVE_LOW>;
174 };
175 internet_green: internet_green {
176 label = "vgv7519:green:internet";
177 gpios = <&stp 7 GPIO_ACTIVE_LOW>;
178 };
179 internet_red {
180 label = "vgv7519:red:internet";
181 gpios = <&stp 8 GPIO_ACTIVE_LOW>;
182 };
183 broadband_red {
184 label = "vgv7519:red:broadband";
185 gpios = <&stp 9 GPIO_ACTIVE_LOW>;
186 };
187 broadband_green: broadband_green {
188 label = "vgv7519:green:broadband";
189 gpios = <&stp 10 GPIO_ACTIVE_LOW>;
190 };
191 voice {
192 label = "vgv7519:green:voice";
193 gpios = <&stp 11 GPIO_ACTIVE_LOW>;
194 };
195 wireless_red {
196 label = "vgv7519:red:wireless";
197 gpios = <&stp 12 GPIO_ACTIVE_LOW>;
198 };
199 wireless_green: wireless_green {
200 label = "vgv7519:green:wireless";
201 gpios = <&stp 13 GPIO_ACTIVE_LOW>;
202 };
203 power_green: power2 {
204 label = "vgv7519:green:power";
205 gpios = <&stp 14 GPIO_ACTIVE_LOW>;
206 default-state = "keep";
207 };
208 power_red: power {
209 label = "vgv7519:red:power";
210 gpios = <&stp 15 GPIO_ACTIVE_LOW>;
211 };
212 };
213 };
214
215 &pci0 {
216 status = "okay";
217 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
218
219 wifi@1814,3091 {
220 compatible = "pci1814,3091";
221 reg = <0x7000 0 0 0 0>;
222 ralink,mtd-eeprom = <&boardconfig 0x410>;
223 ralink,mtd-eeprom-swap;
224 mtd-mac-address = <&boardconfig 0x16>;
225 mtd-mac-address-increment = <1>;
226 };
227 };
228
229 &eth0 {
230 lan: interface@0 {
231 compatible = "lantiq,xrx200-pdi";
232 #address-cells = <1>;
233 #size-cells = <0>;
234 reg = <0>;
235 mtd-mac-address = <&boardconfig 0x16>;
236 mtd-mac-address-increment = <1>;
237 lantiq,switch;
238
239 ethernet@0 {
240 compatible = "lantiq,xrx200-pdi-port";
241 reg = <0>;
242 phy-mode = "rgmii";
243 phy-handle = <&phy0>;
244 };
245 ethernet@1 {
246 compatible = "lantiq,xrx200-pdi-port";
247 reg = <1>;
248 phy-mode = "rgmii";
249 phy-handle = <&phy1>;
250 };
251 ethernet@2 {
252 compatible = "lantiq,xrx200-pdi-port";
253 reg = <2>;
254 phy-mode = "gmii";
255 phy-handle = <&phy11>;
256 };
257 ethernet@4 {
258 compatible = "lantiq,xrx200-pdi-port";
259 reg = <4>;
260 phy-mode = "gmii";
261 phy-handle = <&phy13>;
262 };
263 ethernet@5 {
264 compatible = "lantiq,xrx200-pdi-port";
265 reg = <5>;
266 phy-mode = "rgmii";
267 phy-handle = <&phy5>;
268 };
269 };
270
271 mdio@0 {
272 #address-cells = <1>;
273 #size-cells = <0>;
274 compatible = "lantiq,xrx200-mdio";
275 phy0: ethernet-phy@0 {
276 reg = <0x0>;
277 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
278 };
279 phy1: ethernet-phy@1 {
280 reg = <0x1>;
281 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
282 };
283 phy5: ethernet-phy@5 {
284 reg = <0x5>;
285 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
286 };
287 phy11: ethernet-phy@11 {
288 reg = <0x11>;
289 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
290 };
291 phy13: ethernet-phy@13 {
292 reg = <0x13>;
293 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
294 };
295 };
296 };