2 * Device Tree Source for Netgear WNDR4700/WNDR4720 Series
4 * Copyright 2008 DENX Software Engineering, Stefan Roese <sr@denx.de>
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.
13 #include "apm82181.dtsi"
14 #include <dt-bindings/thermal/thermal.h>
17 model = "Netgear WNDR4700/WNDR4720 Series";
18 compatible = "netgear,wndr4700";
23 led-failsafe = &failsafe;
24 led-running = &status;
25 led-upgrade = &status;
29 stdout-path = "/plb/opb/serial@ef600300:115200n8";
33 cpu_thermal: cpu-thermal {
34 polling-delay-passive = <10000>; /* milliseconds */
35 polling-delay = <20000>; /* milliseconds */
37 thermal-sensors = <&temp0 1>;
42 * Add the <&drive_temp>; sensor there and wire up
43 * the coefficients = <1 1>; property.
45 * Note: The kernel does not yet support more than
46 * one sensor (see of_thermal.c's function:
47 * thermal_of_build_thermal_zon()). Once this is
53 * Once the thermal governers are a bit smarter
54 * and do hysteresis properly, we can disable
55 * the fan when the HDD and CPU has < 39 C.
57 cpu_alert0: board-alert0 {
58 temperature = <25000>;
63 cpu_alert1: cpu-alert1 {
64 temperature = <27000>; /* millicelsius */
65 hysteresis = <2000>; /* millicelsius */
69 cpu_alert2: cpu-alert2 {
70 temperature = <65000>; /* millicelsius */
71 hysteresis = <2000>; /* millicelsius */
75 cpu_alert3: cpu-alert3 {
76 temperature = <70000>; /* millicelsius */
77 hysteresis = <2000>; /* millicelsius */
81 cpu_alert4: cpu-alert4 {
82 temperature = <75000>; /* millicelsius */
83 hysteresis = <2000>; /* millicelsius */
87 cpu_alert5: cpu-alert5 {
88 temperature = <80000>; /* millicelsius */
89 hysteresis = <2000>; /* millicelsius */
93 cpu_alert6: cpu-alert6 {
94 temperature = <85000>; /* millicelsius */
95 hysteresis = <2000>; /* millicelsius */
100 temperature = <90000>; /* millicelsius */
101 hysteresis = <2000>; /* millicelsius */
108 trip = <&cpu_alert0>;
109 cooling-device = <&fan0 THERMAL_NO_LIMIT 0>;
113 trip = <&cpu_alert1>;
114 cooling-device = <&fan0 1 76>;
118 trip = <&cpu_alert2>;
119 cooling-device = <&fan0 77 101>;
123 trip = <&cpu_alert3>;
124 cooling-device = <&fan0 102 147>;
128 trip = <&cpu_alert4>;
129 cooling-device = <&fan0 148 207>;
133 trip = <&cpu_alert5>;
134 cooling-device = <&fan0 208 231>;
138 trip = <&cpu_alert6>;
139 cooling-device =<&fan0 232 THERMAL_NO_LIMIT>;
162 * This drive may have a temperature sensor with a
163 * thermal zone we can use for thermal control of the
164 * chassis temperature using the fan.
167 drive_temp: sata-port@0 {
169 #thermal-sensor-cells = <0>;
181 /* 128 MiB Nand Flash */
184 label = "NAND 128MiB 3,3V 8-bit";
185 reg = <0x00000000 0x08000000>;
191 reg = <0x00000000 0x00180000>;
195 partition0,2@180000 {
196 label = "device-tree";
197 reg = <0x00180000 0x00020000>;
200 partition0,3@180000 {
202 reg = <0x00180000 0x00380000>;
204 * device-tree is @ 0x00180000 - 0x001fffff
205 * kernel starts from 0x200000.
206 * this is coded into netgear's u-boot.
208 * this partition will also contain a
209 * fake/empty rootfs at the end to fool
210 * Netgear's uboot rootfs integrety checks.
214 partition0,4@500000 {
216 reg = <0x00500000 0x014e0000>;
219 partition0,5@19e0000 {
221 reg = <0x019e0000 0x00080000>;
225 partition0,6@1a60000 {
227 reg = <0x01a60000 0x00080000>;
231 partition0,7@1ae0000 {
232 label = "traffic_meter";
233 reg = <0x01ae0000 0x00300000>;
237 partition0,8@1de0000 {
239 reg = <0x01de0000 0x001c0000>;
243 partition0,9@1fa0000 {
245 reg = <0x01fa0000 0x06020000>;
249 partition0,10@7fc0000 {
251 reg = <0x07fc0000 0x00040000>;
255 partition0,11@180000 {
257 reg = <0x00180000 0x01860000>;
276 compatible = "microchip,tc654";
278 cooling-min-level = <0>;
279 cooling-max-level = <255>;
280 #cooling-cells = <2>; /* min followed by max */
282 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>; /* fan status */
283 alarm-gpios = <&GPIO0 5 GPIO_ACTIVE_LOW>; /* fault */
284 interrupt-parent = <&UIC3>;
285 interrupts = <0x16 IRQ_TYPE_EDGE_FALLING>; /* fault */
289 compatible = "gmt,g781";
291 #thermal-sensor-cells = <1>;
294 * The LM90 has two sensors:
295 * temp0 -> internal to LM90
296 * temp1 -> external NTC near CPU
304 phy-handle = <&phy0>;
305 fifo-entry-size = <10>;
308 #address-cells = <1>;
310 phy0: ethernet-phy@0 {
311 device_type = "ethernet-phy";
313 qca,mib-poll-interval = <500>;
315 qca,ar8327-initvals = <
318 0x0004 0x07a00000 /* PAD0_MODE */
319 0x000c 0x01000000 /* PAD6_MODE */
320 0x007c 0x0000007e /* PORT0_STATUS */
329 compatible = "gpio-keys";
332 label = "Reset button";
333 gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
334 linux,code = <KEY_RESTART>;
335 interrupt-parent = <&UIC1>;
336 interrupts = <0x14 IRQ_TYPE_EDGE_FALLING>;
337 debounce-interval = <60>;
341 label = "Backup HD button";
342 gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
343 linux,code = <BTN_0>;
344 interrupt-parent = <&UIC1>;
345 interrupts = <0x1e IRQ_TYPE_EDGE_FALLING>;
346 debounce-interval = <60>;
350 label = "RFKILL button";
351 gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
352 linux,code = <KEY_RFKILL>;
353 interrupt-parent = <&UIC1>;
354 interrupts = <0x1f IRQ_TYPE_EDGE_FALLING>;
355 debounce-interval = <60>;
359 label = "WPS button";
360 gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
361 linux,code = <KEY_WPS_BUTTON>;
362 interrupt-parent = <&UIC2>;
363 interrupts = <0x19 IRQ_TYPE_EDGE_FALLING>;
364 debounce-interval = <60>;
369 compatible = "gpio-leds";
370 status: power-green {
371 label = "wndr4700:green:power";
372 gpios = <&GPIO0 8 GPIO_ACTIVE_HIGH>;
375 failsafe: power-orange {
376 label = "wndr4700:orange:power";
377 gpios = <&GPIO0 9 GPIO_ACTIVE_LOW>;
378 linux,default-trigger = "panic";
382 label = "wndr4700:blue:usb";
383 gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>;
384 trigger-sources = <&usb2_port 1>, <&usb2_port 2>,
385 <&usb3_port 1>, <&usb3_port 2>;
386 linux,default-trigger = "usbport";
390 label = "wndr4700:white:logo";
391 gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>;
395 label = "wndr4700:yellow:wan";
396 gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>;
400 label = "wndr4700:green:wan";
401 gpios = <&GPIO0 12 GPIO_ACTIVE_HIGH>;
405 label = "wndr4700:green:hd";
406 gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
407 linux,default-trigger = "disk-activity";
411 label = "wndr4700:red:hd";
412 gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
416 label = "wndr4700:blue:wlan";
417 gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;
418 linux,default-trigger = "phy0tpt";
427 * relevant lspci topology:
429 * -+-[0000:40]---00.0-[41-7f]----00.0-[42-45]--+-02.0-[43]----00.0
430 * +-03.0-[44]----00.0
431 * \-04.0-[45]----00.0
436 reg = <0x00400000 0 0 0 0>;
437 #address-cells = <3>;
442 /* IDT PES4T4 PCI Express Switch */
443 compatible = "pci111d,803a";
444 reg = <0x00410000 0 0 0 0>;
445 #address-cells = <3>;
450 compatible = "pci111d,803a";
451 reg = <0x00421000 0 0 0 0>;
452 #address-cells = <3>;
457 /* Atheros AR9380 5GHz */
458 compatible = "pci168c,0030";
459 reg = <0x00430000 0 0 0 0>;
461 /* wifi CAL & MAC is stored in nvram */
464 * Because this was such a pain.
465 * Here's the full device path:
466 * pci0000:40/0000:40:00.0/0000:41:00.0/0000:42:02.0/0000:43:00.0
472 compatible = "pci111d,803a";
473 reg = <0x00421800 0 0 0 0>;
474 #address-cells = <3>;
479 /* Atheros AR9381 2.4GHz */
480 compatible = "pci168c,0033";
481 reg = <0x00440000 0 0 0 0>;
483 /* wifi CAL & MAC is stored in nvram */
488 compatible = "pci111d,803a";
489 reg = <0x00422000 0 0 0 0>;
490 #address-cells = <3>;
495 /* Renesas uPD720202 */
496 compatible = "pci1912,0015";
497 reg = <0x00450000 0 0 0 0>;
499 #address-cells = <1>;
504 #trigger-source-cells = <1>;
509 #trigger-source-cells = <1>;