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>;
176 /* 128 MiB Nand Flash */
181 label = "NAND 128MiB 3,3V 8-bit";
182 reg = <0x00000000 0x08000000>;
188 reg = <0x00000000 0x00180000>;
192 partition0,2@180000 {
193 label = "device-tree";
194 reg = <0x00180000 0x00020000>;
197 partition0,3@180000 {
199 reg = <0x00180000 0x00380000>;
201 * device-tree is @ 0x00180000 - 0x001fffff
202 * kernel starts from 0x200000.
203 * this is coded into netgear's u-boot.
205 * this partition will also contain a
206 * fake/empty rootfs at the end to fool
207 * Netgear's uboot rootfs integrety checks.
211 partition0,4@500000 {
213 reg = <0x00500000 0x014e0000>;
216 partition0,5@19e0000 {
218 reg = <0x019e0000 0x00080000>;
222 partition0,6@1a60000 {
224 reg = <0x01a60000 0x00080000>;
228 partition0,7@1ae0000 {
229 label = "traffic_meter";
230 reg = <0x01ae0000 0x00300000>;
234 partition0,8@1de0000 {
236 reg = <0x01de0000 0x001c0000>;
240 partition0,9@1fa0000 {
242 reg = <0x01fa0000 0x06020000>;
246 partition0,10@7fc0000 {
248 reg = <0x07fc0000 0x00040000>;
252 partition0,11@180000 {
254 reg = <0x00180000 0x01860000>;
273 compatible = "microchip,tc654";
275 cooling-min-level = <0>;
276 cooling-max-level = <255>;
277 #cooling-cells = <2>; /* min followed by max */
279 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>; /* fan status */
280 alarm-gpios = <&GPIO0 5 GPIO_ACTIVE_LOW>; /* fault */
281 interrupt-parent = <&UIC3>;
282 interrupts = <0x16 IRQ_TYPE_EDGE_FALLING>; /* fault */
286 compatible = "gmt,g781";
288 #thermal-sensor-cells = <1>;
291 * The LM90 has two sensors:
292 * temp0 -> internal to LM90
293 * temp1 -> external NTC near CPU
301 phy-handle = <&phy0>;
302 fifo-entry-size = <10>;
305 #address-cells = <1>;
307 phy0: ethernet-phy@0 {
308 device_type = "ethernet-phy";
310 qca,mib-poll-interval = <500>;
312 qca,ar8327-initvals = <
315 0x0004 0x07a00000 /* PAD0_MODE */
316 0x000c 0x01000000 /* PAD6_MODE */
317 0x007c 0x0000007e /* PORT0_STATUS */
326 compatible = "gpio-keys";
329 label = "Reset button";
330 gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
331 linux,code = <KEY_RESTART>;
332 interrupt-parent = <&UIC1>;
333 interrupts = <0x14 IRQ_TYPE_EDGE_FALLING>;
334 debounce-interval = <60>;
338 label = "Backup HD button";
339 gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
340 linux,code = <BTN_0>;
341 interrupt-parent = <&UIC1>;
342 interrupts = <0x1e IRQ_TYPE_EDGE_FALLING>;
343 debounce-interval = <60>;
347 label = "RFKILL button";
348 gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
349 linux,code = <KEY_RFKILL>;
350 interrupt-parent = <&UIC1>;
351 interrupts = <0x1f IRQ_TYPE_EDGE_FALLING>;
352 debounce-interval = <60>;
356 label = "WPS button";
357 gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
358 linux,code = <KEY_WPS_BUTTON>;
359 interrupt-parent = <&UIC2>;
360 interrupts = <0x19 IRQ_TYPE_EDGE_FALLING>;
361 debounce-interval = <60>;
366 compatible = "gpio-leds";
369 color = <LED_COLOR_ID_GREEN>;
370 function = LED_FUNCTION_POWER;
371 gpios = <&GPIO0 8 GPIO_ACTIVE_HIGH>;
375 color = <LED_COLOR_ID_AMBER>;
376 function = LED_FUNCTION_FAULT;
377 gpios = <&GPIO0 9 GPIO_ACTIVE_LOW>;
382 color = <LED_COLOR_ID_BLUE>;
383 function = LED_FUNCTION_USB;
384 gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>;
385 trigger-sources = <&usb2_port 1>, <&usb2_port 2>,
386 <&usb3_port 1>, <&usb3_port 2>;
387 linux,default-trigger = "usbport";
391 color = <LED_COLOR_ID_WHITE>;
392 function = LED_FUNCTION_INDICATOR;
393 gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>;
397 color = <LED_COLOR_ID_YELLOW>;
398 function = LED_FUNCTION_WAN;
399 gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>;
403 color = <LED_COLOR_ID_GREEN>;
404 function = LED_FUNCTION_WAN;
405 gpios = <&GPIO0 12 GPIO_ACTIVE_HIGH>;
409 color = <LED_COLOR_ID_GREEN>;
410 function = LED_FUNCTION_DISK;
411 gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
412 linux,default-trigger = "disk-activity";
416 color = <LED_COLOR_ID_RED>;
417 function = LED_FUNCTION_DISK_ERR;
418 gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
422 color = <LED_COLOR_ID_BLUE>;
423 function = LED_FUNCTION_WLAN;
424 gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;
425 linux,default-trigger = "phy0tpt";
434 * relevant lspci topology:
436 * -+-[0000:40]---00.0-[41-7f]----00.0-[42-45]--+-02.0-[43]----00.0
437 * +-03.0-[44]----00.0
438 * \-04.0-[45]----00.0
443 reg = <0x00400000 0 0 0 0>;
444 #address-cells = <3>;
449 /* IDT PES4T4 PCI Express Switch */
450 compatible = "pci111d,803a";
451 reg = <0x00410000 0 0 0 0>;
452 #address-cells = <3>;
457 compatible = "pci111d,803a";
458 reg = <0x00421000 0 0 0 0>;
459 #address-cells = <3>;
464 /* Atheros AR9380 5GHz */
465 compatible = "pci168c,0030";
466 reg = <0x00430000 0 0 0 0>;
467 interrupts = <3>; /* INTC */
469 /* wifi CAL & MAC is stored in nvram */
472 * Because this was such a pain.
473 * Here's the full device path:
474 * pci0000:40/0000:40:00.0/0000:41:00.0/0000:42:02.0/0000:43:00.0
480 compatible = "pci111d,803a";
481 reg = <0x00421800 0 0 0 0>;
482 #address-cells = <3>;
487 /* Atheros AR9381 2.4GHz */
488 compatible = "pci168c,0033";
489 reg = <0x00440000 0 0 0 0>;
490 interrupts = <4>; /* INTD */
492 /* wifi CAL & MAC is stored in nvram */
497 compatible = "pci111d,803a";
498 reg = <0x00422000 0 0 0 0>;
499 #address-cells = <3>;
504 /* Renesas uPD720202 */
505 compatible = "pci1912,0015";
506 reg = <0x00450000 0 0 0 0>;
507 interrupts = <1>; /* INTA */
509 #address-cells = <1>;
514 #trigger-source-cells = <1>;
519 #trigger-source-cells = <1>;