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