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 1>;
112 trip = <&cpu_alert2>;
113 cooling-device = <&fan0 2 4>;
117 trip = <&cpu_alert3>;
118 cooling-device = <&fan0 4 8>;
122 trip = <&cpu_alert4>;
123 cooling-device = <&fan0 9 12>;
127 trip = <&cpu_alert5>;
128 cooling-device = <&fan0 13 15>;
132 trip = <&cpu_alert6>;
133 cooling-device =<&fan0 16 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 0x01860000>;
193 compatible = "fixed-partitions";
194 #address-cells = <1>;
199 reg = <0x00000000 0x00380000>;
201 compatible = "fixed-partitions";
202 #address-cells = <1>;
206 * device-tree is @ 0x00180000 - 0x0019ffff
207 * kernel starts from 0x20000.
208 * this is coded into netgear's u-boot.
212 reg = <0x00000000 0x20000>;
215 * this partition will also contain a
216 * fake/empty rootfs at the end to fool
217 * Netgear's uboot rootfs integrety checks.
223 reg = <0x00380000 0x014e0000>;
229 * Netgear's u-boot in the fw_recovery mode (can be
230 * triggered by holding the reset button, or if
231 * "bootm" fails) will not flash past this point
237 reg = <0x019e0000 0x00080000>;
243 reg = <0x01a60000 0x00080000>;
248 label = "traffic_meter";
249 reg = <0x01ae0000 0x00300000>;
255 reg = <0x01de0000 0x001c0000>;
261 reg = <0x01fa0000 0x06020000>;
267 reg = <0x07fc0000 0x00040000>;
271 compatible = "fixed-layout";
272 #address-cells = <1>;
275 macaddr_wifi_0: macaddr@0 {
278 macaddr_wifi_c: macaddr@c {
282 calibration_wifi_1000: calibration@1000 {
283 reg = <0x1000 0x440>;
286 calibration_wifi_5000: calibration@5000 {
287 reg = <0x5000 0x440>;
307 compatible = "microchip,tc654";
309 #cooling-cells = <2>; /* min followed by max */
311 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>; /* fan status */
312 alarm-gpios = <&GPIO0 5 GPIO_ACTIVE_LOW>; /* fault */
313 interrupt-parent = <&UIC3>;
314 interrupts = <0x16 IRQ_TYPE_EDGE_FALLING>; /* fault */
318 compatible = "gmt,g781";
320 #thermal-sensor-cells = <1>;
323 * The LM90 has two sensors:
324 * temp0 -> internal to LM90
325 * temp1 -> external NTC near CPU
333 phy-handle = <&phy0>;
334 fifo-entry-size = <10>;
337 #address-cells = <1>;
339 phy0: ethernet-phy@0 {
340 device_type = "ethernet-phy";
342 qca,mib-poll-interval = <500>;
344 qca,ar8327-initvals = <
347 0x0004 0x07a00000 /* PAD0_MODE */
348 0x000c 0x01000000 /* PAD6_MODE */
349 0x007c 0x0000007e /* PORT0_STATUS */
358 compatible = "gpio-keys";
361 label = "Reset button";
362 gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
363 linux,code = <KEY_RESTART>;
364 interrupt-parent = <&UIC1>;
365 interrupts = <0x14 IRQ_TYPE_EDGE_FALLING>;
366 debounce-interval = <60>;
370 label = "Backup HD button";
371 gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
372 linux,code = <BTN_0>;
373 interrupt-parent = <&UIC1>;
374 interrupts = <0x1e IRQ_TYPE_EDGE_FALLING>;
375 debounce-interval = <60>;
379 label = "RFKILL button";
380 gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
381 linux,code = <KEY_RFKILL>;
382 interrupt-parent = <&UIC1>;
383 interrupts = <0x1f IRQ_TYPE_EDGE_FALLING>;
384 debounce-interval = <60>;
388 label = "WPS button";
389 gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
390 linux,code = <KEY_WPS_BUTTON>;
391 interrupt-parent = <&UIC2>;
392 interrupts = <0x19 IRQ_TYPE_EDGE_FALLING>;
393 debounce-interval = <60>;
398 compatible = "gpio-leds";
401 color = <LED_COLOR_ID_GREEN>;
402 function = LED_FUNCTION_POWER;
403 gpios = <&GPIO0 8 GPIO_ACTIVE_HIGH>;
407 color = <LED_COLOR_ID_AMBER>;
408 function = LED_FUNCTION_FAULT;
409 gpios = <&GPIO0 9 GPIO_ACTIVE_LOW>;
414 color = <LED_COLOR_ID_BLUE>;
415 function = LED_FUNCTION_USB;
416 gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>;
417 trigger-sources = <&usb2_port 1>, <&usb2_port 2>,
418 <&usb3_port 1>, <&usb3_port 2>;
419 linux,default-trigger = "usbport";
423 color = <LED_COLOR_ID_WHITE>;
424 function = LED_FUNCTION_INDICATOR;
425 gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>;
429 color = <LED_COLOR_ID_YELLOW>;
430 function = LED_FUNCTION_WAN;
431 gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>;
435 color = <LED_COLOR_ID_GREEN>;
436 function = LED_FUNCTION_WAN;
437 gpios = <&GPIO0 12 GPIO_ACTIVE_HIGH>;
441 color = <LED_COLOR_ID_GREEN>;
442 function = LED_FUNCTION_DISK;
443 gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
444 linux,default-trigger = "disk-activity";
448 color = <LED_COLOR_ID_RED>;
449 function = LED_FUNCTION_DISK_ERR;
450 gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
454 color = <LED_COLOR_ID_BLUE>;
455 function = LED_FUNCTION_WLAN;
456 gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;
457 linux,default-trigger = "phy0tpt";
466 * relevant lspci topology:
468 * -+-[0000:40]---00.0-[41-7f]----00.0-[42-45]--+-02.0-[43]----00.0
469 * +-03.0-[44]----00.0
470 * \-04.0-[45]----00.0
475 reg = <0x00400000 0 0 0 0>;
476 #address-cells = <3>;
481 /* IDT PES4T4 PCI Express Switch */
482 compatible = "pci111d,803a";
483 reg = <0x00410000 0 0 0 0>;
484 #address-cells = <3>;
489 compatible = "pci111d,803a";
490 reg = <0x00421000 0 0 0 0>;
491 #address-cells = <3>;
496 /* Atheros AR9380 5GHz */
497 compatible = "pci168c,0030";
498 reg = <0x00430000 0 0 0 0>;
499 interrupts = <3>; /* INTC */
500 nvmem-cell-names = "mac-address", "calibration";
501 nvmem-cells = <&macaddr_wifi_0>, <&calibration_wifi_1000>;
504 * Because this was such a pain.
505 * Here's the full device path:
506 * pci0000:40/0000:40:00.0/0000:41:00.0/0000:42:02.0/0000:43:00.0
512 compatible = "pci111d,803a";
513 reg = <0x00421800 0 0 0 0>;
514 #address-cells = <3>;
519 /* Atheros AR9381 2.4GHz */
520 compatible = "pci168c,0033";
521 reg = <0x00440000 0 0 0 0>;
522 interrupts = <4>; /* INTD */
523 nvmem-cell-names = "mac-address", "calibration";
524 nvmem-cells = <&macaddr_wifi_c>, <&calibration_wifi_5000>;
529 compatible = "pci111d,803a";
530 reg = <0x00422000 0 0 0 0>;
531 #address-cells = <3>;
536 /* Renesas uPD720202 */
537 compatible = "pci1912,0015";
538 reg = <0x00450000 0 0 0 0>;
539 interrupts = <1>; /* INTA */
541 #address-cells = <1>;
546 #trigger-source-cells = <1>;
551 #trigger-source-cells = <1>;