OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* |
2 | * Device Tree Source for Netgear WNDR4700/WNDR4720 Series |
||
3 | * |
||
4 | * Copyright 2008 DENX Software Engineering, Stefan Roese <sr@denx.de> |
||
5 | * |
||
6 | * This file is licensed under the terms of the GNU General Public |
||
7 | * License version 2. This program is licensed "as is" without |
||
8 | * any warranty of any kind, whether express or implied. |
||
9 | */ |
||
10 | |||
11 | /dts-v1/; |
||
12 | |||
13 | #include "apm82181.dtsi" |
||
14 | #include <dt-bindings/thermal/thermal.h> |
||
15 | |||
16 | / { |
||
17 | model = "Netgear WNDR4700/WNDR4720 Series"; |
||
18 | compatible = "netgear,wndr4700"; |
||
19 | |||
20 | aliases { |
||
21 | serial0 = &UART0; |
||
22 | led-boot = &status; |
||
23 | led-failsafe = &failsafe; |
||
24 | led-running = &status; |
||
25 | led-upgrade = &status; |
||
26 | }; |
||
27 | |||
28 | chosen { |
||
29 | stdout-path = "/plb/opb/serial@ef600300:115200n8"; |
||
30 | }; |
||
31 | |||
32 | thermal-zones { |
||
33 | cpu_thermal: cpu-thermal { |
||
34 | polling-delay-passive = <10000>; /* milliseconds */ |
||
35 | polling-delay = <20000>; /* milliseconds */ |
||
36 | |||
37 | thermal-sensors = <&temp0 1>; |
||
38 | |||
39 | trips { |
||
40 | /* |
||
41 | * Once the thermal governers are a bit smarter |
||
42 | * and do hysteresis properly, we can disable |
||
43 | * the fan when the HDD and CPU has < 39 C. |
||
44 | */ |
||
45 | cpu_alert0: cpu-alert0 { |
||
46 | temperature = <25000>; |
||
47 | hysteresis = <2000>; |
||
48 | type = "active"; |
||
49 | }; |
||
50 | |||
51 | cpu_alert1: cpu-alert1 { |
||
52 | temperature = <27000>; /* millicelsius */ |
||
53 | hysteresis = <2000>; /* millicelsius */ |
||
54 | type = "active"; |
||
55 | }; |
||
56 | |||
57 | cpu_alert2: cpu-alert2 { |
||
58 | temperature = <65000>; /* millicelsius */ |
||
59 | hysteresis = <2000>; /* millicelsius */ |
||
60 | type = "active"; |
||
61 | }; |
||
62 | |||
63 | cpu_alert3: cpu-alert3 { |
||
64 | temperature = <70000>; /* millicelsius */ |
||
65 | hysteresis = <2000>; /* millicelsius */ |
||
66 | type = "active"; |
||
67 | }; |
||
68 | |||
69 | cpu_alert4: cpu-alert4 { |
||
70 | temperature = <75000>; /* millicelsius */ |
||
71 | hysteresis = <2000>; /* millicelsius */ |
||
72 | type = "active"; |
||
73 | }; |
||
74 | |||
75 | cpu_alert5: cpu-alert5 { |
||
76 | temperature = <80000>; /* millicelsius */ |
||
77 | hysteresis = <2000>; /* millicelsius */ |
||
78 | type = "active"; |
||
79 | }; |
||
80 | |||
81 | cpu_alert6: cpu-alert6 { |
||
82 | temperature = <850000>; /* millicelsius */ |
||
83 | hysteresis = <2000>; /* millicelsius */ |
||
84 | type = "active"; |
||
85 | }; |
||
86 | |||
87 | cpu_crit: cpu-crit { |
||
88 | temperature = <90000>; /* millicelsius */ |
||
89 | hysteresis = <2000>; /* millicelsius */ |
||
90 | type = "critical"; |
||
91 | }; |
||
92 | }; |
||
93 | |||
94 | cooling-maps { |
||
95 | map0 { |
||
96 | trip = <&cpu_alert0>; |
||
97 | cooling-device = <&fan0 THERMAL_NO_LIMIT 0>; |
||
98 | }; |
||
99 | |||
100 | map1 { |
||
101 | trip = <&cpu_alert1>; |
||
102 | cooling-device = <&fan0 1 76>; |
||
103 | }; |
||
104 | |||
105 | map2 { |
||
106 | trip = <&cpu_alert2>; |
||
107 | cooling-device = <&fan0 77 101>; |
||
108 | }; |
||
109 | |||
110 | map3 { |
||
111 | trip = <&cpu_alert3>; |
||
112 | cooling-device = <&fan0 102 147>; |
||
113 | }; |
||
114 | |||
115 | map4 { |
||
116 | trip = <&cpu_alert4>; |
||
117 | cooling-device = <&fan0 148 207>; |
||
118 | }; |
||
119 | |||
120 | map5 { |
||
121 | trip = <&cpu_alert5>; |
||
122 | cooling-device = <&fan0 208 231>; |
||
123 | }; |
||
124 | |||
125 | map6 { |
||
126 | trip = <&cpu_alert6>; |
||
127 | cooling-device =<&fan0 232 THERMAL_NO_LIMIT>; |
||
128 | }; |
||
129 | }; |
||
130 | }; |
||
131 | }; |
||
132 | }; |
||
133 | |||
134 | &CRYPTO { |
||
135 | status = "okay"; |
||
136 | }; |
||
137 | |||
138 | &PKA { |
||
139 | status = "okay"; |
||
140 | }; |
||
141 | |||
142 | &TRNG { |
||
143 | status = "okay"; |
||
144 | }; |
||
145 | |||
146 | &SATA1 { |
||
147 | status = "okay"; |
||
148 | }; |
||
149 | |||
150 | &USBOTG0 { |
||
151 | status = "okay"; |
||
152 | dr_mode = "host"; |
||
153 | }; |
||
154 | |||
155 | &EBC0 { |
||
156 | ndfc@1,0 { |
||
157 | status = "okay"; |
||
158 | /* 128 MiB Nand Flash */ |
||
159 | nand { |
||
160 | partition0,0@0 { |
||
161 | label = "NAND 128MiB 3,3V 8-bit"; |
||
162 | reg = <0x00000000 0x08000000>; |
||
163 | read-only; |
||
164 | }; |
||
165 | |||
166 | partition0,1@0 { |
||
167 | label = "uboot"; |
||
168 | reg = <0x00000000 0x00180000>; |
||
169 | read-only; |
||
170 | }; |
||
171 | |||
172 | partition0,2@180000 { |
||
173 | label = "device-tree"; |
||
174 | reg = <0x00180000 0x00020000>; |
||
175 | }; |
||
176 | |||
177 | partition0,3@180000 { |
||
178 | label = "kernel"; |
||
179 | reg = <0x00180000 0x00380000>; |
||
180 | /* |
||
181 | * device-tree is @ 0x00180000 - 0x001fffff |
||
182 | * kernel starts from 0x200000. |
||
183 | * this is coded into netgear's u-boot. |
||
184 | * |
||
185 | * this partition will also contain a |
||
186 | * fake/empty rootfs at the end to fool |
||
187 | * Netgear's uboot rootfs integrety checks. |
||
188 | */ |
||
189 | }; |
||
190 | |||
191 | partition0,4@500000 { |
||
192 | label = "ubi"; |
||
193 | reg = <0x00500000 0x014e0000>; |
||
194 | }; |
||
195 | |||
196 | partition0,5@19e0000 { |
||
197 | label = "config"; |
||
198 | reg = <0x019e0000 0x00080000>; |
||
199 | read-only; |
||
200 | }; |
||
201 | |||
202 | partition0,6@1a60000 { |
||
203 | label = "pot"; |
||
204 | reg = <0x01a60000 0x00080000>; |
||
205 | read-only; |
||
206 | }; |
||
207 | |||
208 | partition0,7@1ae0000 { |
||
209 | label = "traffic_meter"; |
||
210 | reg = <0x01ae0000 0x00300000>; |
||
211 | read-only; |
||
212 | }; |
||
213 | |||
214 | partition0,8@1de0000 { |
||
215 | label = "language"; |
||
216 | reg = <0x01de0000 0x001c0000>; |
||
217 | read-only; |
||
218 | }; |
||
219 | |||
220 | partition0,9@1fa0000 { |
||
221 | label = "ecos"; |
||
222 | reg = <0x01fa0000 0x06020000>; |
||
223 | read-only; |
||
224 | }; |
||
225 | |||
226 | partition0,10@7fc0000 { |
||
227 | label = "wifi_data"; |
||
228 | reg = <0x07fc0000 0x00040000>; |
||
229 | read-only; |
||
230 | }; |
||
231 | |||
232 | partition0,11@180000 { |
||
233 | label = "firmware"; |
||
234 | reg = <0x00180000 0x01860000>; |
||
235 | read-only; |
||
236 | }; |
||
237 | }; |
||
238 | }; |
||
239 | }; |
||
240 | |||
241 | &UART0 { |
||
242 | status = "okay"; |
||
243 | }; |
||
244 | |||
245 | &GPIO0 { |
||
246 | status = "okay"; |
||
247 | #interrupt-cells = <2>; |
||
248 | interrupt-controller; |
||
249 | interrupts-extended = <&UIC1 0x14>, |
||
250 | <&UIC1 0x1e>, |
||
251 | <&UIC1 0x1f>, |
||
252 | <&UIC2 0x19>; |
||
253 | }; |
||
254 | |||
255 | &IIC0 { |
||
256 | status = "okay"; |
||
257 | |||
258 | fan0: fan@1b { |
||
259 | compatible = "microchip,tc654"; |
||
260 | reg = <0x1b>; |
||
261 | cooling-min-level = <0>; |
||
262 | cooling-max-level = <255>; |
||
263 | #cooling-cells = <2>; /* min followed by max */ |
||
264 | |||
265 | gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>; /* fan status */ |
||
266 | alarm-gpios = <&GPIO0 5 GPIO_ACTIVE_LOW>; /* fault */ |
||
267 | interrupt-parent = <&UIC3>; |
||
268 | interrupts = <0x16 IRQ_TYPE_EDGE_FALLING>; /* fault */ |
||
269 | }; |
||
270 | |||
271 | temp0: temp@4d { |
||
272 | compatible = "gmt,g781"; |
||
273 | reg = <0x4d>; |
||
274 | #thermal-sensor-cells = <1>; |
||
275 | |||
276 | /* |
||
277 | * The LM90 has two sensors: |
||
278 | * temp0 -> internal to LM90 |
||
279 | * temp1 -> external NTC near CPU |
||
280 | */ |
||
281 | }; |
||
282 | }; |
||
283 | |||
284 | |||
285 | &EMAC0 { |
||
286 | status = "okay"; |
||
287 | phy-handle = <&phy0>; |
||
288 | fifo-entry-size = <10>; |
||
289 | |||
290 | mdio { |
||
291 | #address-cells = <1>; |
||
292 | #size-cells = <0>; |
||
293 | phy0: ethernet-phy@0 { |
||
294 | device_type = "ethernet-phy"; |
||
295 | reg = <0>; |
||
296 | qca,ar8327-initvals = < |
||
297 | 0x0010 0x40000000 |
||
298 | 0x0624 0x007f7f7f |
||
299 | 0x0004 0x07a00000 /* PAD0_MODE */ |
||
300 | 0x000c 0x01000000 /* PAD6_MODE */ |
||
301 | 0x007c 0x0000007e /* PORT0_STATUS */ |
||
302 | >; |
||
303 | }; |
||
304 | }; |
||
305 | }; |
||
306 | |||
307 | &POB0 { |
||
308 | keys { |
||
309 | compatible = "gpio-keys-polled"; |
||
310 | #interrupt-cells = <2>; |
||
311 | autorepeat; |
||
312 | poll-interval = <60>; /* 3 * 20 = 60ms */ |
||
313 | |||
314 | reset { |
||
315 | label = "Reset button"; |
||
316 | linux,code = <KEY_RESTART>; |
||
317 | gpios = <&GPIO0 15 GPIO_ACTIVE_HIGH>; |
||
318 | interrupt-parent = <&UIC1>; |
||
319 | interrupts = <0x14 IRQ_TYPE_EDGE_FALLING>; |
||
320 | }; |
||
321 | |||
322 | backup_hd { |
||
323 | label = "Backup HD button"; |
||
324 | gpios = <&GPIO0 19 GPIO_ACTIVE_HIGH>; |
||
325 | linux,code = <BTN_0>; |
||
326 | interrupt-parent = <&UIC1>; |
||
327 | interrupts = <0x1e IRQ_TYPE_EDGE_FALLING>; |
||
328 | }; |
||
329 | |||
330 | rfkill { |
||
331 | label = "RFKILL button"; |
||
332 | gpios = <&GPIO0 20 GPIO_ACTIVE_HIGH>; |
||
333 | linux,code = <KEY_RFKILL>; |
||
334 | interrupt-parent = <&UIC1>; |
||
335 | interrupts = <0x1f IRQ_TYPE_EDGE_FALLING>; |
||
336 | }; |
||
337 | |||
338 | wps { |
||
339 | label = "WPS button"; |
||
340 | gpios = <&GPIO0 23 GPIO_ACTIVE_HIGH>; |
||
341 | linux,code = <KEY_WPS_BUTTON>; |
||
342 | interrupt-parent = <&UIC2>; |
||
343 | interrupts = <0x19 IRQ_TYPE_EDGE_FALLING>; |
||
344 | }; |
||
345 | |||
346 | sdcard { |
||
347 | label = "SDCard inserted"; |
||
348 | gpios = <&GPIO0 7 GPIO_ACTIVE_LOW>; |
||
349 | linux,code = <BTN_1>; |
||
350 | }; |
||
351 | }; |
||
352 | |||
353 | leds { |
||
354 | compatible = "gpio-leds"; |
||
355 | status: power-green { |
||
356 | label = "wndr4700:green:power"; |
||
357 | gpios = <&GPIO0 8 GPIO_ACTIVE_HIGH>; |
||
358 | }; |
||
359 | |||
360 | failsafe: power-orange { |
||
361 | label = "wndr4700:orange:power"; |
||
362 | gpios = <&GPIO0 9 GPIO_ACTIVE_LOW>; |
||
363 | linux,default-trigger = "panic"; |
||
364 | }; |
||
365 | |||
366 | usb-blue { |
||
367 | label = "wndr4700:blue:usb"; |
||
368 | gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>; |
||
369 | }; |
||
370 | |||
371 | logo-white { |
||
372 | label = "wndr4700:white:logo"; |
||
373 | gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>; |
||
374 | }; |
||
375 | |||
376 | wan-yellow { |
||
377 | label = "wndr4700:yellow:wan"; |
||
378 | gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>; |
||
379 | }; |
||
380 | |||
381 | wan-green { |
||
382 | label = "wndr4700:green:wan"; |
||
383 | gpios = <&GPIO0 12 GPIO_ACTIVE_HIGH>; |
||
384 | }; |
||
385 | |||
386 | hd-green { |
||
387 | label = "wndr4700:green:hd"; |
||
388 | gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>; |
||
389 | linux,default-trigger = "disk-activity"; |
||
390 | }; |
||
391 | |||
392 | hd-red { |
||
393 | label = "wndr4700:red:hd"; |
||
394 | gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>; |
||
395 | }; |
||
396 | |||
397 | wlan-blue { |
||
398 | label = "wndr4700:blue:wlan"; |
||
399 | gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>; |
||
400 | }; |
||
401 | }; |
||
402 | }; |
||
403 | |||
404 | &PCIE0 { |
||
405 | status = "okay"; |
||
406 | }; |
||
407 | |||
408 | &MSI { |
||
409 | status = "okay"; |
||
410 | }; |