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