OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | office | 3 | #include "vr9.dtsi" |
1 | office | 4 | |
3 | office | 5 | #include <dt-bindings/input/input.h> |
6 | #include <dt-bindings/mips/lantiq_rcu_gphy.h> |
||
7 | |||
1 | office | 8 | / { |
9 | compatible = "tplink,vr200v", "lantiq,xway", "lantiq,vr9"; |
||
10 | model = "TP-LINK Archer VR200v"; |
||
11 | |||
12 | chosen { |
||
3 | office | 13 | bootargs = "console=ttyLTQ0,115200"; |
1 | office | 14 | }; |
15 | |||
16 | aliases { |
||
17 | led-boot = &power; |
||
18 | led-failsafe = &power; |
||
19 | |||
20 | led-dsl = &dsl; |
||
21 | led-internet = &internet; |
||
22 | led-usb = &led_usb; |
||
23 | led-usb2 = &led_usb; |
||
24 | }; |
||
25 | |||
3 | office | 26 | memory@0 { |
27 | reg = <0x0 0x7f00000>; |
||
28 | }; |
||
29 | |||
1 | office | 30 | gpio-keys-polled { |
31 | compatible = "gpio-keys-polled"; |
||
32 | #address-cells = <1>; |
||
33 | #size-cells = <0>; |
||
34 | poll-interval = <100>; |
||
35 | reset { |
||
36 | label = "reset"; |
||
37 | gpios = <&gpio 22 GPIO_ACTIVE_LOW>; |
||
38 | linux,code = <KEY_RESTART>; |
||
39 | }; |
||
40 | |||
41 | wifi { |
||
42 | label = "wifi"; |
||
43 | gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; |
||
44 | linux,code = <KEY_RFKILL>; |
||
45 | linux,input-type = <EV_SW>; |
||
46 | }; |
||
47 | |||
48 | wps { |
||
49 | label = "wps"; |
||
50 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
||
51 | linux,code = <KEY_WPS_BUTTON>; |
||
52 | }; |
||
53 | |||
54 | dect_paging { |
||
55 | label = "dect_paging"; |
||
56 | gpios = <&gpio 39 GPIO_ACTIVE_LOW>; |
||
57 | linux,code = <KEY_PHONE>; |
||
58 | }; |
||
59 | }; |
||
60 | |||
61 | gpio-leds { |
||
62 | compatible = "gpio-leds"; |
||
63 | power: power { |
||
64 | label = "vr200v:blue:power"; |
||
65 | gpios = <&gpio 46 GPIO_ACTIVE_LOW>; |
||
66 | }; |
||
67 | dsl: dsl { |
||
68 | label = "vr200v:blue:dsl"; |
||
69 | gpios = <&gpio 4 GPIO_ACTIVE_LOW>; |
||
70 | }; |
||
71 | internet: internet { |
||
72 | label = "vr200v:blue:internet"; |
||
73 | gpios = <&gpio 5 GPIO_ACTIVE_LOW>; |
||
74 | }; |
||
75 | led_usb: usb { |
||
76 | label = "vr200v:blue:usb"; |
||
77 | gpios = <&gpio 25 GPIO_ACTIVE_LOW>; |
||
78 | }; |
||
79 | eth { |
||
80 | label = "vr200v:blue:lan"; |
||
81 | gpios = <&gpio 40 GPIO_ACTIVE_LOW>; |
||
82 | }; |
||
83 | wlan { |
||
84 | label = "vr200v:blue:wlan"; |
||
85 | gpios = <&gpio 24 GPIO_ACTIVE_LOW>; |
||
86 | }; |
||
3 | office | 87 | wlan5g { |
1 | office | 88 | label = "vr200v:blue:wlan5g"; |
89 | gpios = <&gpio 20 GPIO_ACTIVE_LOW>; |
||
90 | }; |
||
91 | phone { |
||
92 | label = "vr200v:blue:phone"; |
||
93 | gpios = <&gpio 44 GPIO_ACTIVE_LOW>; |
||
94 | }; |
||
3 | office | 95 | }; |
96 | |||
97 | usb_vbus: regulator-usb-vbus { |
||
98 | compatible = "regulator-fixed"; |
||
99 | |||
100 | regulator-name = "USB_VBUS"; |
||
101 | |||
102 | regulator-min-microvolt = <5000000>; |
||
103 | regulator-max-microvolt = <5000000>; |
||
104 | |||
105 | gpio = <&gpio 33 GPIO_ACTIVE_HIGH>; |
||
106 | enable-active-high; |
||
107 | }; |
||
1 | office | 108 | }; |
109 | |||
3 | office | 110 | ð0 { |
111 | lan: interface@0 { |
||
112 | compatible = "lantiq,xrx200-pdi"; |
||
113 | #address-cells = <1>; |
||
114 | #size-cells = <0>; |
||
115 | reg = <0>; |
||
116 | mtd-mac-address = <&romfile 0xf100>; |
||
117 | lantiq,switch; |
||
118 | |||
119 | ethernet@0 { |
||
120 | compatible = "lantiq,xrx200-pdi-port"; |
||
121 | reg = <0>; |
||
122 | phy-mode = "rgmii"; |
||
123 | phy-handle = <&phy0>; |
||
124 | // gpios = <&gpio 42 GPIO_ACTIVE_LOW>; |
||
125 | }; |
||
126 | ethernet@5 { |
||
127 | compatible = "lantiq,xrx200-pdi-port"; |
||
128 | reg = <5>; |
||
129 | phy-mode = "rgmii"; |
||
130 | phy-handle = <&phy5>; |
||
131 | }; |
||
132 | ethernet@2 { |
||
133 | compatible = "lantiq,xrx200-pdi-port"; |
||
134 | reg = <2>; |
||
135 | phy-mode = "gmii"; |
||
136 | phy-handle = <&phy11>; |
||
137 | }; |
||
138 | ethernet@3 { |
||
139 | compatible = "lantiq,xrx200-pdi-port"; |
||
140 | reg = <4>; |
||
141 | phy-mode = "gmii"; |
||
142 | phy-handle = <&phy13>; |
||
143 | }; |
||
144 | }; |
||
145 | |||
146 | mdio@0 { |
||
147 | #address-cells = <1>; |
||
148 | #size-cells = <0>; |
||
149 | compatible = "lantiq,xrx200-mdio"; |
||
150 | reg = <0>; |
||
151 | |||
152 | phy0: ethernet-phy@0 { |
||
153 | reg = <0x0>; |
||
154 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
||
155 | }; |
||
156 | phy5: ethernet-phy@5 { |
||
157 | reg = <0x5>; |
||
158 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
||
159 | }; |
||
160 | phy11: ethernet-phy@11 { |
||
161 | reg = <0x11>; |
||
162 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
||
163 | }; |
||
164 | phy13: ethernet-phy@13 { |
||
165 | reg = <0x13>; |
||
166 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
||
167 | }; |
||
168 | }; |
||
169 | }; |
||
170 | |||
171 | &gphy0 { |
||
172 | lantiq,gphy-mode = <GPHY_MODE_GE>; |
||
173 | }; |
||
174 | |||
175 | &gphy1 { |
||
176 | lantiq,gphy-mode = <GPHY_MODE_GE>; |
||
177 | }; |
||
178 | |||
179 | &gpio { |
||
180 | pinctrl-names = "default"; |
||
181 | pinctrl-0 = <&state_default>; |
||
182 | |||
183 | state_default: pinmux { |
||
184 | mdio { |
||
185 | lantiq,groups = "mdio"; |
||
186 | lantiq,function = "mdio"; |
||
187 | }; |
||
188 | gphy-leds { |
||
189 | lantiq,groups = "gphy0 led1", "gphy1 led1"; |
||
190 | lantiq,function = "gphy"; |
||
191 | lantiq,pull = <2>; |
||
192 | lantiq,open-drain = <0>; |
||
193 | lantiq,output = <1>; |
||
194 | }; |
||
195 | phy-rst { |
||
196 | lantiq,pins = "io42"; |
||
197 | lantiq,pull = <0>; |
||
198 | lantiq,open-drain = <0>; |
||
199 | lantiq,output = <1>; |
||
200 | }; |
||
201 | pcie-rst { |
||
202 | lantiq,pins = "io38"; |
||
203 | lantiq,pull = <0>; |
||
204 | lantiq,output = <1>; |
||
205 | }; |
||
206 | }; |
||
207 | pins_spi_default: pins_spi_default { |
||
208 | spi_in { |
||
209 | lantiq,groups = "spi_di"; |
||
210 | lantiq,function = "spi"; |
||
211 | }; |
||
212 | spi_out { |
||
213 | lantiq,groups = "spi_do", "spi_clk", |
||
214 | "spi_cs4"; |
||
215 | lantiq,function = "spi"; |
||
216 | lantiq,output = <1>; |
||
217 | }; |
||
218 | }; |
||
219 | }; |
||
220 | |||
221 | &pci0 { |
||
1 | office | 222 | status = "okay"; |
3 | office | 223 | gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; |
1 | office | 224 | }; |
3 | office | 225 | |
226 | &spi { |
||
227 | status = "okay"; |
||
228 | |||
229 | pinctrl-names = "default"; |
||
230 | pinctrl-0 = <&pins_spi_default>; |
||
231 | |||
232 | m25p80@4 { |
||
233 | #address-cells = <1>; |
||
234 | #size-cells = <1>; |
||
235 | compatible = "jedec,spi-nor"; |
||
236 | reg = <4 0>; |
||
237 | spi-max-frequency = <33250000>; |
||
238 | m25p,fast-read; |
||
239 | |||
240 | partitions { |
||
241 | compatible = "fixed-partitions"; |
||
242 | #address-cells = <1>; |
||
243 | #size-cells = <1>; |
||
244 | |||
245 | partition@0 { |
||
246 | reg = <0x0 0x20000>; |
||
247 | label = "u-boot"; |
||
248 | read-only; |
||
249 | }; |
||
250 | |||
251 | partition@20000 { |
||
252 | reg = <0x20000 0xf90000>; |
||
253 | label = "firmware"; |
||
254 | }; |
||
255 | |||
256 | partition@fb0000 { |
||
257 | reg = <0xfb0000 0x10000>; |
||
258 | label = "radioDECT"; |
||
259 | read-only; |
||
260 | }; |
||
261 | |||
262 | partition@fc0000 { |
||
263 | reg = <0xfc0000 0x10000>; |
||
264 | label = "config"; |
||
265 | read-only; |
||
266 | }; |
||
267 | |||
268 | romfile: partition@fd0000 { |
||
269 | reg = <0xfd0000 0x10000>; |
||
270 | label = "romfile"; |
||
271 | read-only; |
||
272 | }; |
||
273 | |||
274 | partition@fe0000 { |
||
275 | reg = <0xfe0000 0x10000>; |
||
276 | label = "rom"; |
||
277 | read-only; |
||
278 | }; |
||
279 | |||
280 | partition@ff0000 { |
||
281 | reg = <0xff0000 0x10000>; |
||
282 | label = "radio"; |
||
283 | read-only; |
||
284 | }; |
||
285 | }; |
||
286 | }; |
||
287 | }; |
||
288 | |||
289 | &usb_phy0 { |
||
290 | status = "okay"; |
||
291 | phy-supply = <&usb_vbus>; |
||
292 | }; |
||
293 | |||
294 | &usb_phy1 { |
||
295 | status = "okay"; |
||
296 | phy-supply = <&usb_vbus>; |
||
297 | }; |
||
298 | |||
299 | &usb0 { |
||
300 | status = "okay"; |
||
301 | }; |
||
302 | |||
303 | &usb1 { |
||
304 | status = "okay"; |
||
305 | }; |