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>;
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.
45 cpu_alert0: cpu-alert0 {
46 temperature = <25000>;
51 cpu_alert1: cpu-alert1 {
52 temperature = <27000>; /* millicelsius */
53 hysteresis = <2000>; /* millicelsius */
57 cpu_alert2: cpu-alert2 {
58 temperature = <65000>; /* millicelsius */
59 hysteresis = <2000>; /* millicelsius */
63 cpu_alert3: cpu-alert3 {
64 temperature = <70000>; /* millicelsius */
65 hysteresis = <2000>; /* millicelsius */
69 cpu_alert4: cpu-alert4 {
70 temperature = <75000>; /* millicelsius */
71 hysteresis = <2000>; /* millicelsius */
75 cpu_alert5: cpu-alert5 {
76 temperature = <80000>; /* millicelsius */
77 hysteresis = <2000>; /* millicelsius */
81 cpu_alert6: cpu-alert6 {
82 temperature = <850000>; /* millicelsius */
83 hysteresis = <2000>; /* millicelsius */
88 temperature = <90000>; /* millicelsius */
89 hysteresis = <2000>; /* millicelsius */
97 cooling-device = <&fan0 THERMAL_NO_LIMIT 0>;
101 trip = <&cpu_alert1>;
102 cooling-device = <&fan0 1 76>;
106 trip = <&cpu_alert2>;
107 cooling-device = <&fan0 77 101>;
111 trip = <&cpu_alert3>;
112 cooling-device = <&fan0 102 147>;
116 trip = <&cpu_alert4>;
117 cooling-device = <&fan0 148 207>;
121 trip = <&cpu_alert5>;
122 cooling-device = <&fan0 208 231>;
126 trip = <&cpu_alert6>;
127 cooling-device =<&fan0 232 THERMAL_NO_LIMIT>;
158 /* 128 MiB Nand Flash */
161 label = "NAND 128MiB 3,3V 8-bit";
162 reg = <0x00000000 0x08000000>;
168 reg = <0x00000000 0x00180000>;
172 partition0,2@180000 {
173 label = "device-tree";
174 reg = <0x00180000 0x00020000>;
177 partition0,3@180000 {
179 reg = <0x00180000 0x00380000>;
181 * device-tree is @ 0x00180000 - 0x001fffff
182 * kernel starts from 0x200000.
183 * this is coded into netgear's u-boot.
185 * this partition will also contain a
186 * fake/empty rootfs at the end to fool
187 * Netgear's uboot rootfs integrety checks.
191 partition0,4@500000 {
193 reg = <0x00500000 0x014e0000>;
196 partition0,5@19e0000 {
198 reg = <0x019e0000 0x00080000>;
202 partition0,6@1a60000 {
204 reg = <0x01a60000 0x00080000>;
208 partition0,7@1ae0000 {
209 label = "traffic_meter";
210 reg = <0x01ae0000 0x00300000>;
214 partition0,8@1de0000 {
216 reg = <0x01de0000 0x001c0000>;
220 partition0,9@1fa0000 {
222 reg = <0x01fa0000 0x06020000>;
226 partition0,10@7fc0000 {
228 reg = <0x07fc0000 0x00040000>;
232 partition0,11@180000 {
234 reg = <0x00180000 0x01860000>;
247 #interrupt-cells = <2>;
248 interrupt-controller;
249 interrupts-extended = <&UIC1 0x14>,
259 compatible = "microchip,tc654";
261 cooling-min-level = <0>;
262 cooling-max-level = <255>;
263 #cooling-cells = <2>; /* min followed by max */
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 */
272 compatible = "gmt,g781";
274 #thermal-sensor-cells = <1>;
277 * The LM90 has two sensors:
278 * temp0 -> internal to LM90
279 * temp1 -> external NTC near CPU
287 phy-handle = <&phy0>;
288 fifo-entry-size = <10>;
291 #address-cells = <1>;
293 phy0: ethernet-phy@0 {
294 device_type = "ethernet-phy";
296 qca,mib-poll-interval = <500>;
298 qca,ar8327-initvals = <
301 0x0004 0x07a00000 /* PAD0_MODE */
302 0x000c 0x01000000 /* PAD6_MODE */
303 0x007c 0x0000007e /* PORT0_STATUS */
312 compatible = "gpio-keys";
315 label = "Reset button";
316 gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
317 linux,code = <KEY_RESTART>;
318 interrupt-parent = <&UIC1>;
319 interrupts = <0x14 IRQ_TYPE_EDGE_FALLING>;
323 label = "Backup HD button";
324 gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
325 linux,code = <BTN_0>;
326 interrupt-parent = <&UIC1>;
327 interrupts = <0x1e IRQ_TYPE_EDGE_FALLING>;
331 label = "RFKILL button";
332 gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
333 linux,code = <KEY_RFKILL>;
334 interrupt-parent = <&UIC1>;
335 interrupts = <0x1f IRQ_TYPE_EDGE_FALLING>;
339 label = "WPS button";
340 gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
341 linux,code = <KEY_WPS_BUTTON>;
342 interrupt-parent = <&UIC2>;
343 interrupts = <0x19 IRQ_TYPE_EDGE_FALLING>;
348 compatible = "gpio-leds";
349 status: power-green {
350 label = "wndr4700:green:power";
351 gpios = <&GPIO0 8 GPIO_ACTIVE_HIGH>;
354 failsafe: power-orange {
355 label = "wndr4700:orange:power";
356 gpios = <&GPIO0 9 GPIO_ACTIVE_LOW>;
357 linux,default-trigger = "panic";
361 label = "wndr4700:blue:usb";
362 gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>;
366 label = "wndr4700:white:logo";
367 gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>;
371 label = "wndr4700:yellow:wan";
372 gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>;
376 label = "wndr4700:green:wan";
377 gpios = <&GPIO0 12 GPIO_ACTIVE_HIGH>;
381 label = "wndr4700:green:hd";
382 gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
383 linux,default-trigger = "disk-activity";
387 label = "wndr4700:red:hd";
388 gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
392 label = "wndr4700:blue:wlan";
393 gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;