OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #include "qcom-ipq8064-v2.0.dtsi" |
2 | |||
3 | #include <dt-bindings/input/input.h> |
||
4 | |||
5 | / { |
||
6 | model = "Netgear Nighthawk X4 R7500v2"; |
||
7 | compatible = "netgear,r7500v2", "qcom,ipq8064"; |
||
8 | |||
9 | memory@0 { |
||
10 | reg = <0x42000000 0x1e000000>; |
||
11 | device_type = "memory"; |
||
12 | }; |
||
13 | |||
14 | reserved-memory { |
||
15 | #address-cells = <1>; |
||
16 | #size-cells = <1>; |
||
17 | ranges; |
||
18 | rsvd@41200000 { |
||
19 | reg = <0x41200000 0x300000>; |
||
20 | no-map; |
||
21 | }; |
||
22 | |||
23 | rsvd@5fe00000 { |
||
24 | reg = <0x5fe00000 0x200000>; |
||
25 | reusable; |
||
26 | }; |
||
27 | }; |
||
28 | |||
29 | aliases { |
||
30 | serial0 = &gsbi4_serial; |
||
31 | mdio-gpio0 = &mdio0; |
||
32 | |||
33 | led-boot = &power; |
||
34 | led-failsafe = &power; |
||
35 | led-running = &power; |
||
36 | led-upgrade = &power; |
||
37 | }; |
||
38 | |||
39 | chosen { |
||
40 | bootargs = "rootfstype=squashfs noinitrd"; |
||
3 | office | 41 | linux,stdout-path = "serial0:115200n8"; |
1 | office | 42 | }; |
43 | |||
44 | soc { |
||
45 | pinmux@800000 { |
||
46 | button_pins: button_pins { |
||
47 | mux { |
||
48 | pins = "gpio6", "gpio54", "gpio65"; |
||
49 | function = "gpio"; |
||
50 | drive-strength = <2>; |
||
51 | bias-pull-up; |
||
52 | }; |
||
53 | }; |
||
54 | |||
55 | i2c4_pins: i2c4_pinmux { |
||
56 | mux { |
||
57 | pins = "gpio12", "gpio13"; |
||
58 | function = "gsbi4"; |
||
59 | drive-strength = <12>; |
||
60 | bias-disable; |
||
61 | }; |
||
62 | }; |
||
63 | |||
64 | led_pins: led_pins { |
||
65 | mux { |
||
66 | pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23", |
||
67 | "gpio24","gpio26", "gpio53", "gpio64"; |
||
68 | function = "gpio"; |
||
69 | drive-strength = <2>; |
||
70 | bias-pull-up; |
||
71 | }; |
||
72 | }; |
||
73 | |||
74 | mdio0_pins: mdio0_pins { |
||
75 | mux { |
||
76 | pins = "gpio0", "gpio1"; |
||
77 | function = "gpio"; |
||
78 | drive-strength = <8>; |
||
79 | bias-disable; |
||
80 | }; |
||
81 | }; |
||
82 | |||
83 | nand_pins: nand_pins { |
||
84 | mux { |
||
85 | pins = "gpio34", "gpio35", "gpio36", |
||
86 | "gpio37", "gpio38", "gpio39", |
||
87 | "gpio40", "gpio41", "gpio42", |
||
88 | "gpio43", "gpio44", "gpio45", |
||
89 | "gpio46", "gpio47"; |
||
90 | function = "nand"; |
||
91 | drive-strength = <10>; |
||
92 | bias-disable; |
||
93 | }; |
||
94 | pullups { |
||
95 | pins = "gpio39"; |
||
96 | bias-pull-up; |
||
97 | }; |
||
98 | hold { |
||
99 | pins = "gpio40", "gpio41", "gpio42", |
||
100 | "gpio43", "gpio44", "gpio45", |
||
101 | "gpio46", "gpio47"; |
||
102 | bias-bus-hold; |
||
103 | }; |
||
104 | }; |
||
105 | |||
106 | rgmii2_pins: rgmii2_pins { |
||
107 | mux { |
||
108 | pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32", |
||
109 | "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ; |
||
110 | function = "rgmii2"; |
||
111 | drive-strength = <8>; |
||
112 | bias-disable; |
||
113 | }; |
||
114 | }; |
||
115 | |||
116 | usb0_pwr_en_pins: usb0_pwr_en_pins { |
||
117 | mux { |
||
118 | pins = "gpio15"; |
||
119 | function = "gpio"; |
||
120 | drive-strength = <12>; |
||
121 | bias-pull-down; |
||
122 | output-high; |
||
123 | }; |
||
124 | }; |
||
125 | |||
126 | usb1_pwr_en_pins: usb1_pwr_en_pins { |
||
127 | mux { |
||
128 | pins = "gpio16", "gpio68"; |
||
129 | function = "gpio"; |
||
130 | drive-strength = <12>; |
||
131 | bias-pull-down; |
||
132 | output-high; |
||
133 | }; |
||
134 | }; |
||
135 | }; |
||
136 | |||
137 | gsbi@16300000 { |
||
138 | qcom,mode = <GSBI_PROT_I2C_UART>; |
||
139 | status = "ok"; |
||
140 | serial@16340000 { |
||
141 | status = "ok"; |
||
142 | }; |
||
143 | /* |
||
144 | * The i2c device on gsbi4 should not be enabled. |
||
145 | * On ipq806x designs gsbi4 i2c is meant for exclusive |
||
146 | * RPM usage. Turning this on in kernel manifests as |
||
147 | * i2c failure for the RPM. |
||
148 | */ |
||
149 | }; |
||
150 | |||
151 | sata-phy@1b400000 { |
||
152 | status = "ok"; |
||
153 | }; |
||
154 | |||
155 | sata@29000000 { |
||
156 | status = "ok"; |
||
157 | }; |
||
158 | |||
159 | phy@100f8800 { /* USB3 port 1 HS phy */ |
||
160 | status = "ok"; |
||
161 | }; |
||
162 | |||
163 | phy@100f8830 { /* USB3 port 1 SS phy */ |
||
164 | status = "ok"; |
||
165 | }; |
||
166 | |||
167 | phy@110f8800 { /* USB3 port 0 HS phy */ |
||
168 | status = "ok"; |
||
169 | }; |
||
170 | |||
171 | phy@110f8830 { /* USB3 port 0 SS phy */ |
||
172 | status = "ok"; |
||
173 | }; |
||
174 | |||
175 | usb30@0 { |
||
176 | status = "ok"; |
||
177 | |||
178 | pinctrl-0 = <&usb0_pwr_en_pins>; |
||
179 | pinctrl-names = "default"; |
||
180 | }; |
||
181 | |||
182 | usb30@1 { |
||
183 | status = "ok"; |
||
184 | |||
185 | pinctrl-0 = <&usb1_pwr_en_pins>; |
||
186 | pinctrl-names = "default"; |
||
187 | }; |
||
188 | |||
189 | pcie0: pci@1b500000 { |
||
190 | status = "ok"; |
||
191 | reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>; |
||
192 | pinctrl-0 = <&pcie0_pins>; |
||
193 | pinctrl-names = "default"; |
||
194 | }; |
||
195 | |||
196 | pcie1: pci@1b700000 { |
||
197 | status = "ok"; |
||
198 | reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>; |
||
199 | pinctrl-0 = <&pcie1_pins>; |
||
200 | pinctrl-names = "default"; |
||
201 | force_gen1 = <1>; |
||
202 | }; |
||
203 | |||
204 | nand@1ac00000 { |
||
205 | status = "ok"; |
||
206 | |||
207 | pinctrl-0 = <&nand_pins>; |
||
208 | pinctrl-names = "default"; |
||
209 | |||
210 | cs0 { |
||
211 | reg = <0>; |
||
212 | compatible = "qcom,nandcs"; |
||
213 | |||
214 | nand-ecc-strength = <4>; |
||
215 | nand-bus-width = <8>; |
||
216 | nand-ecc-step-size = <512>; |
||
217 | |||
218 | partitions { |
||
219 | compatible = "fixed-partitions"; |
||
220 | #address-cells = <1>; |
||
221 | #size-cells = <1>; |
||
222 | |||
223 | qcadata@0 { |
||
224 | label = "qcadata"; |
||
225 | reg = <0x0000000 0x0c80000>; |
||
226 | read-only; |
||
227 | }; |
||
228 | |||
229 | APPSBL@c80000 { |
||
230 | label = "APPSBL"; |
||
231 | reg = <0x0c80000 0x0500000>; |
||
232 | read-only; |
||
233 | }; |
||
234 | |||
235 | APPSBLENV@1180000 { |
||
236 | label = "APPSBLENV"; |
||
237 | reg = <0x1180000 0x0080000>; |
||
238 | read-only; |
||
239 | }; |
||
240 | |||
241 | art: art@1200000 { |
||
242 | label = "art"; |
||
243 | reg = <0x1200000 0x0140000>; |
||
244 | read-only; |
||
245 | }; |
||
246 | |||
247 | artbak: art@1340000 { |
||
248 | label = "artbak"; |
||
249 | reg = <0x1340000 0x0140000>; |
||
250 | read-only; |
||
251 | }; |
||
252 | |||
253 | kernel@1480000 { |
||
254 | label = "kernel"; |
||
255 | reg = <0x1480000 0x0400000>; |
||
256 | }; |
||
257 | |||
258 | ubi@1880000 { |
||
259 | label = "ubi"; |
||
260 | reg = <0x1880000 0x1C00000>; |
||
261 | }; |
||
262 | |||
263 | netgear@3480000 { |
||
264 | label = "netgear"; |
||
265 | reg = <0x3480000 0x4480000>; |
||
266 | read-only; |
||
267 | }; |
||
268 | |||
269 | reserve@7900000 { |
||
270 | label = "reserve"; |
||
271 | reg = <0x7900000 0x0700000>; |
||
272 | read-only; |
||
273 | }; |
||
274 | }; |
||
275 | }; |
||
276 | }; |
||
277 | |||
278 | mdio0: mdio { |
||
279 | compatible = "virtual,mdio-gpio"; |
||
280 | #address-cells = <1>; |
||
281 | #size-cells = <0>; |
||
282 | gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>; |
||
283 | pinctrl-0 = <&mdio0_pins>; |
||
284 | pinctrl-names = "default"; |
||
285 | |||
286 | phy0: ethernet-phy@0 { |
||
3 | office | 287 | device_type = "ethernet-phy"; |
1 | office | 288 | reg = <0>; |
289 | qca,ar8327-initvals = < |
||
290 | 0x00004 0x7600000 /* PAD0_MODE */ |
||
291 | 0x00008 0x1000000 /* PAD5_MODE */ |
||
292 | 0x0000c 0x80 /* PAD6_MODE */ |
||
293 | 0x000e4 0xaa545 /* MAC_POWER_SEL */ |
||
294 | 0x000e0 0xc74164de /* SGMII_CTRL */ |
||
295 | 0x0007c 0x4e /* PORT0_STATUS */ |
||
296 | 0x00094 0x4e /* PORT6_STATUS */ |
||
297 | >; |
||
298 | }; |
||
299 | |||
300 | phy4: ethernet-phy@4 { |
||
3 | office | 301 | device_type = "ethernet-phy"; |
1 | office | 302 | reg = <4>; |
303 | }; |
||
304 | }; |
||
305 | |||
306 | gmac1: ethernet@37200000 { |
||
307 | status = "ok"; |
||
308 | phy-mode = "rgmii"; |
||
309 | qcom,id = <1>; |
||
310 | |||
311 | pinctrl-0 = <&rgmii2_pins>; |
||
312 | pinctrl-names = "default"; |
||
313 | |||
314 | mtd-mac-address = <&art 6>; |
||
315 | |||
316 | fixed-link { |
||
317 | speed = <1000>; |
||
318 | full-duplex; |
||
319 | }; |
||
320 | }; |
||
321 | |||
322 | gmac2: ethernet@37400000 { |
||
323 | status = "ok"; |
||
324 | phy-mode = "sgmii"; |
||
325 | qcom,id = <2>; |
||
326 | |||
327 | mtd-mac-address = <&art 0>; |
||
328 | |||
329 | fixed-link { |
||
330 | speed = <1000>; |
||
331 | full-duplex; |
||
332 | }; |
||
333 | }; |
||
334 | }; |
||
335 | |||
3 | office | 336 | gpio-keys { |
1 | office | 337 | compatible = "gpio-keys"; |
338 | pinctrl-0 = <&button_pins>; |
||
339 | pinctrl-names = "default"; |
||
340 | |||
341 | wifi { |
||
342 | label = "wifi"; |
||
343 | gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>; |
||
344 | linux,code = <KEY_RFKILL>; |
||
345 | }; |
||
346 | |||
347 | reset { |
||
348 | label = "reset"; |
||
349 | gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>; |
||
350 | linux,code = <KEY_RESTART>; |
||
351 | }; |
||
352 | |||
353 | wps { |
||
354 | label = "wps"; |
||
355 | gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>; |
||
356 | linux,code = <KEY_WPS_BUTTON>; |
||
357 | }; |
||
358 | }; |
||
359 | |||
3 | office | 360 | gpio-leds { |
1 | office | 361 | compatible = "gpio-leds"; |
362 | pinctrl-0 = <&led_pins>; |
||
363 | pinctrl-names = "default"; |
||
364 | |||
365 | usb1 { |
||
366 | label = "r7500v2:amber:usb1"; |
||
367 | gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>; |
||
368 | }; |
||
369 | |||
370 | usb3 { |
||
371 | label = "r7500v2:amber:usb3"; |
||
372 | gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>; |
||
373 | }; |
||
374 | |||
375 | status { |
||
376 | label = "r7500v2:amber:status"; |
||
377 | gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>; |
||
378 | }; |
||
379 | |||
380 | internet { |
||
381 | label = "r7500v2:white:internet"; |
||
382 | gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>; |
||
383 | }; |
||
384 | |||
385 | wan { |
||
386 | label = "r7500v2:white:wan"; |
||
387 | gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>; |
||
388 | }; |
||
389 | |||
390 | wps { |
||
391 | label = "r7500v2:white:wps"; |
||
392 | gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>; |
||
393 | }; |
||
394 | |||
395 | esata { |
||
396 | label = "r7500v2:white:esata"; |
||
397 | gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>; |
||
398 | }; |
||
399 | |||
400 | power: power { |
||
401 | label = "r7500v2:white:power"; |
||
402 | gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>; |
||
403 | default-state = "keep"; |
||
404 | }; |
||
405 | |||
406 | wifi { |
||
407 | label = "r7500v2:white:wifi"; |
||
408 | gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>; |
||
409 | }; |
||
410 | }; |
||
411 | }; |
||
412 | |||
413 | &adm_dma { |
||
414 | status = "ok"; |
||
415 | }; |