1 // SPDX-License-Identifier: GPL-2.0-only
3 * Device Tree Source for Netgear WNDR4700/WNDR4720 Series
5 * Copyright 2008 DENX Software Engineering, Stefan Roese <sr@denx.de>
10 #include <dt-bindings/thermal/thermal.h>
11 #include <dt-bindings/leds/common.h>
12 #include "apm82181.dtsi"
15 model = "Netgear WNDR4700/WNDR4720 Series";
16 compatible = "netgear,wndr4700", "apm,bluestone";
23 stdout-path = "/plb/opb/serial@ef600300:115200n8";
27 cpu_thermal: cpu-thermal {
28 polling-delay-passive = <10000>; /* milliseconds */
29 polling-delay = <20000>; /* milliseconds */
31 thermal-sensors = <&temp0 1>;
36 * Add the <&drive_temp>; sensor there and wire up
37 * the coefficients = <1 1>; property.
39 * Note: The kernel does not yet support more than
40 * one sensor (see of_thermal.c's function:
41 * thermal_of_build_thermal_zon()). Once this is
47 * Once the thermal governers are a bit smarter
48 * and do hysteresis properly, we can disable
49 * the fan when the HDD and CPU has < 39 C.
51 cpu_alert0: board-alert0 {
52 temperature = <25000>;
57 cpu_alert1: cpu-alert1 {
58 temperature = <27000>; /* millicelsius */
59 hysteresis = <2000>; /* millicelsius */
63 cpu_alert2: cpu-alert2 {
64 temperature = <65000>; /* millicelsius */
65 hysteresis = <2000>; /* millicelsius */
69 cpu_alert3: cpu-alert3 {
70 temperature = <70000>; /* millicelsius */
71 hysteresis = <2000>; /* millicelsius */
75 cpu_alert4: cpu-alert4 {
76 temperature = <75000>; /* millicelsius */
77 hysteresis = <2000>; /* millicelsius */
81 cpu_alert5: cpu-alert5 {
82 temperature = <80000>; /* millicelsius */
83 hysteresis = <2000>; /* millicelsius */
87 cpu_alert6: cpu-alert6 {
88 temperature = <85000>; /* millicelsius */
89 hysteresis = <2000>; /* millicelsius */
94 temperature = <90000>; /* millicelsius */
95 hysteresis = <2000>; /* millicelsius */
102 trip = <&cpu_alert0>;
103 cooling-device = <&fan0 THERMAL_NO_LIMIT 0>;
107 trip = <&cpu_alert1>;
108 cooling-device = <&fan0 1 76>;
112 trip = <&cpu_alert2>;
113 cooling-device = <&fan0 77 101>;
117 trip = <&cpu_alert3>;
118 cooling-device = <&fan0 102 147>;
122 trip = <&cpu_alert4>;
123 cooling-device = <&fan0 148 207>;
127 trip = <&cpu_alert5>;
128 cooling-device = <&fan0 208 231>;
132 trip = <&cpu_alert6>;
133 cooling-device =<&fan0 232 THERMAL_NO_LIMIT>;
156 * This drive may have a temperature sensor with a
157 * thermal zone we can use for thermal control of the
158 * chassis temperature using the fan.
161 drive_temp: sata-port@0 {
163 #thermal-sensor-cells = <0>;
174 /* 128 MiB Nand Flash */
179 compatible = "fixed-partitions";
180 #address-cells = <1>;
185 reg = <0x00000000 0x00180000>;
191 reg = <0x00180000 0x00380000>;
193 * device-tree is @ 0x00180000 - 0x001fffff
194 * kernel starts from 0x200000.
195 * this is coded into netgear's u-boot.
197 * this partition will also contain a
198 * fake/empty rootfs at the end to fool
199 * Netgear's uboot rootfs integrety checks.
205 reg = <0x00500000 0x014e0000>;
210 * Netgear's u-boot in the fw_recovery mode (can be
211 * triggered by holding the reset button, or if
212 * "bootm" fails) will not flash past this point
218 reg = <0x019e0000 0x00080000>;
224 reg = <0x01a60000 0x00080000>;
229 label = "traffic_meter";
230 reg = <0x01ae0000 0x00300000>;
236 reg = <0x01de0000 0x001c0000>;
242 reg = <0x01fa0000 0x06020000>;
248 reg = <0x07fc0000 0x00040000>;
267 compatible = "microchip,tc654";
269 #cooling-cells = <2>; /* min followed by max */
271 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>; /* fan status */
272 alarm-gpios = <&GPIO0 5 GPIO_ACTIVE_LOW>; /* fault */
273 interrupt-parent = <&UIC3>;
274 interrupts = <0x16 IRQ_TYPE_EDGE_FALLING>; /* fault */
278 compatible = "gmt,g781";
280 #thermal-sensor-cells = <1>;
283 * The LM90 has two sensors:
284 * temp0 -> internal to LM90
285 * temp1 -> external NTC near CPU
293 phy-handle = <&phy0>;
294 fifo-entry-size = <10>;
297 #address-cells = <1>;
299 phy0: ethernet-phy@0 {
300 device_type = "ethernet-phy";
302 qca,mib-poll-interval = <500>;
304 qca,ar8327-initvals = <
307 0x0004 0x07a00000 /* PAD0_MODE */
308 0x000c 0x01000000 /* PAD6_MODE */
309 0x007c 0x0000007e /* PORT0_STATUS */
318 compatible = "gpio-keys";
321 label = "Reset button";
322 gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
323 linux,code = <KEY_RESTART>;
324 interrupt-parent = <&UIC1>;
325 interrupts = <0x14 IRQ_TYPE_EDGE_FALLING>;
326 debounce-interval = <60>;
330 label = "Backup HD button";
331 gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
332 linux,code = <BTN_0>;
333 interrupt-parent = <&UIC1>;
334 interrupts = <0x1e IRQ_TYPE_EDGE_FALLING>;
335 debounce-interval = <60>;
339 label = "RFKILL button";
340 gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
341 linux,code = <KEY_RFKILL>;
342 interrupt-parent = <&UIC1>;
343 interrupts = <0x1f IRQ_TYPE_EDGE_FALLING>;
344 debounce-interval = <60>;
348 label = "WPS button";
349 gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
350 linux,code = <KEY_WPS_BUTTON>;
351 interrupt-parent = <&UIC2>;
352 interrupts = <0x19 IRQ_TYPE_EDGE_FALLING>;
353 debounce-interval = <60>;
358 compatible = "gpio-leds";
361 color = <LED_COLOR_ID_GREEN>;
362 function = LED_FUNCTION_POWER;
363 gpios = <&GPIO0 8 GPIO_ACTIVE_HIGH>;
367 color = <LED_COLOR_ID_AMBER>;
368 function = LED_FUNCTION_FAULT;
369 gpios = <&GPIO0 9 GPIO_ACTIVE_LOW>;
374 color = <LED_COLOR_ID_BLUE>;
375 function = LED_FUNCTION_USB;
376 gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>;
377 trigger-sources = <&usb2_port 1>, <&usb2_port 2>,
378 <&usb3_port 1>, <&usb3_port 2>;
379 linux,default-trigger = "usbport";
383 color = <LED_COLOR_ID_WHITE>;
384 function = LED_FUNCTION_INDICATOR;
385 gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>;
389 color = <LED_COLOR_ID_YELLOW>;
390 function = LED_FUNCTION_WAN;
391 gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>;
395 color = <LED_COLOR_ID_GREEN>;
396 function = LED_FUNCTION_WAN;
397 gpios = <&GPIO0 12 GPIO_ACTIVE_HIGH>;
401 color = <LED_COLOR_ID_GREEN>;
402 function = LED_FUNCTION_DISK;
403 gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
404 linux,default-trigger = "disk-activity";
408 color = <LED_COLOR_ID_RED>;
409 function = LED_FUNCTION_DISK_ERR;
410 gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
414 color = <LED_COLOR_ID_BLUE>;
415 function = LED_FUNCTION_WLAN;
416 gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;
417 linux,default-trigger = "phy0tpt";
426 * relevant lspci topology:
428 * -+-[0000:40]---00.0-[41-7f]----00.0-[42-45]--+-02.0-[43]----00.0
429 * +-03.0-[44]----00.0
430 * \-04.0-[45]----00.0
435 reg = <0x00400000 0 0 0 0>;
436 #address-cells = <3>;
441 /* IDT PES4T4 PCI Express Switch */
442 compatible = "pci111d,803a";
443 reg = <0x00410000 0 0 0 0>;
444 #address-cells = <3>;
449 compatible = "pci111d,803a";
450 reg = <0x00421000 0 0 0 0>;
451 #address-cells = <3>;
456 /* Atheros AR9380 5GHz */
457 compatible = "pci168c,0030";
458 reg = <0x00430000 0 0 0 0>;
459 interrupts = <3>; /* INTC */
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>;
482 interrupts = <4>; /* INTD */
484 /* wifi CAL & MAC is stored in nvram */
489 compatible = "pci111d,803a";
490 reg = <0x00422000 0 0 0 0>;
491 #address-cells = <3>;
496 /* Renesas uPD720202 */
497 compatible = "pci1912,0015";
498 reg = <0x00450000 0 0 0 0>;
499 interrupts = <1>; /* INTA */
501 #address-cells = <1>;
506 #trigger-source-cells = <1>;
511 #trigger-source-cells = <1>;