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