OpenWrt – Blame information for rev 3

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