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";
25 linux,stdout-path = "/plb/opb/serial@ef600300";
29 cpu_thermal: cpu-thermal {
30 polling-delay-passive = <10000>; /* milliseconds */
31 polling-delay = <20000>; /* milliseconds */
33 thermal-sensors = <&temp0 1>;
37 * Once the thermal governers are a bit smarter
38 * and do hysteresis properly, we can disable
39 * the fan when the HDD and CPU has < 39 C.
41 cpu_alert0: cpu-alert0 {
42 temperature = <25000>;
47 cpu_alert1: cpu-alert1 {
48 temperature = <27000>; /* millicelsius */
49 hysteresis = <2000>; /* millicelsius */
53 cpu_alert2: cpu-alert2 {
54 temperature = <65000>; /* millicelsius */
55 hysteresis = <2000>; /* millicelsius */
59 cpu_alert3: cpu-alert3 {
60 temperature = <70000>; /* millicelsius */
61 hysteresis = <2000>; /* millicelsius */
65 cpu_alert4: cpu-alert4 {
66 temperature = <75000>; /* millicelsius */
67 hysteresis = <2000>; /* millicelsius */
71 cpu_alert5: cpu-alert5 {
72 temperature = <80000>; /* millicelsius */
73 hysteresis = <2000>; /* millicelsius */
77 cpu_alert6: cpu-alert6 {
78 temperature = <850000>; /* millicelsius */
79 hysteresis = <2000>; /* millicelsius */
84 temperature = <90000>; /* millicelsius */
85 hysteresis = <2000>; /* millicelsius */
93 cooling-device = <&fan0 THERMAL_NO_LIMIT 0>;
98 cooling-device = <&fan0 1 87>;
102 trip = <&cpu_alert2>;
103 cooling-device = <&fan0 88 100>;
107 trip = <&cpu_alert3>;
108 cooling-device = <&fan0 101 147>;
112 trip = <&cpu_alert4>;
113 cooling-device = <&fan0 148 207>;
117 trip = <&cpu_alert5>;
118 cooling-device = <&fan0 208 231>;
122 trip = <&cpu_alert6>;
123 cooling-device =<&fan0 232 THERMAL_NO_LIMIT>;
154 /* 128 MiB Nand Flash */
156 #address-cells = <1>;
159 partition0,0@0x00000000 {
160 label = "NAND 128MiB 3,3V 8-bit";
161 reg = <0x00000000 0x08000000>;
165 partition0,1@0x00000000 {
167 reg = <0x00000000 0x00180000>;
171 partition0,2@0x00180000 {
172 label = "device-tree";
173 reg = <0x00180000 0x00020000>;
176 partition0,3@0x001a0000 {
178 reg = <0x001a0000 0x001e0000>;
180 * will also contain a fake/empty
181 * rootfs to fool Netgear's uboot
182 * rootfs integrety checks.
186 partition0,4@0x00380000 {
188 reg = <0x00380000 0x01660000>;
191 partition0,5@0x019e0000 {
193 reg = <0x019e0000 0x00080000>;
197 partition0,6@0x01a60000 {
199 reg = <0x01a60000 0x00080000>;
203 partition0,7@0x01ae0000 {
204 label = "traffic_meter";
205 reg = <0x01ae0000 0x00300000>;
209 partition0,8@0x01de0000 {
211 reg = <0x01de0000 0x001c0000>;
215 partition0,9@0x01fa0000 {
217 reg = <0x01fa0000 0x06020000>;
221 partition0,10@0x07fc0000 {
223 reg = <0x07fc0000 0x00040000>;
227 partition0,11@0x00180000 {
229 reg = <0x00180000 0x01860000>;
242 #interrupt-cells = <2>;
243 interrupt-controller;
244 interrupts-extended = <&UIC1 0x14>,
254 compatible = "microchip,tc654";
256 cooling-min-level = <0>;
257 cooling-max-level = <255>;
258 #cooling-cells = <2>; /* min followed by max */
260 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>; /* fan status */
261 alarm-gpios = <&GPIO0 5 GPIO_ACTIVE_LOW>; /* fault */
262 interrupt-parent = <&UIC3>;
263 interrupts = <0x16 IRQ_TYPE_EDGE_FALLING>; /* fault */
267 compatible = "gmt,g781";
269 #thermal-sensor-cells = <1>;
272 * The LM90 has two sensors:
273 * temp0 -> internal to LM90
274 * temp1 -> external NTC near CPU
282 phy-handle = <&phy0>;
285 #address-cells = <1>;
287 phy0: ethernet-phy@0 {
288 device_type = "ethernet-phy";
290 qca,ar8327-initvals = <
293 0x0004 0x07a00000 /* PAD0_MODE */
294 0x000c 0x01000000 /* PAD6_MODE */
295 0x007c 0x0000007e /* PORT0_STATUS */
303 compatible = "gpio-keys-polled";
304 #address-cells = <1>;
306 #interrupt-cells = <2>;
308 poll-interval = <60>; /* 3 * 20 = 60ms */
311 label = "Reset button";
312 linux,code = <KEY_RESTART>;
313 gpios = <&GPIO0 15 GPIO_ACTIVE_HIGH>;
314 interrupt-parent = <&UIC1>;
315 interrupts = <0x14 IRQ_TYPE_EDGE_FALLING>;
319 label = "Backup HD button";
320 gpios = <&GPIO0 19 GPIO_ACTIVE_HIGH>;
321 linux,code = <BTN_0>;
322 interrupt-parent = <&UIC1>;
323 interrupts = <0x1e IRQ_TYPE_EDGE_FALLING>;
327 label = "RFKILL button";
328 gpios = <&GPIO0 20 GPIO_ACTIVE_HIGH>;
329 linux,code = <KEY_RFKILL>;
330 interrupt-parent = <&UIC1>;
331 interrupts = <0x1f IRQ_TYPE_EDGE_FALLING>;
335 label = "WPS button";
336 gpios = <&GPIO0 23 GPIO_ACTIVE_HIGH>;
337 linux,code = <KEY_WPS_BUTTON>;
338 interrupt-parent = <&UIC2>;
339 interrupts = <0x19 IRQ_TYPE_EDGE_FALLING>;
343 label = "SDCard inserted";
344 gpios = <&GPIO0 7 GPIO_ACTIVE_LOW>;
345 linux,code = <BTN_1>;
350 compatible = "gpio-leds";
352 label = "wndr4700:green:power";
353 gpios = <&GPIO0 8 GPIO_ACTIVE_HIGH>;
357 label = "wndr4700:orange:power";
358 gpios = <&GPIO0 9 GPIO_ACTIVE_LOW>;
359 linux,default-trigger = "panic";
363 label = "wndr4700:blue:usb";
364 gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>;
368 label = "wndr4700:white:logo";
369 gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>;
373 label = "wndr4700:yellow:wan";
374 gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>;
378 label = "wndr4700:green:wan";
379 gpios = <&GPIO0 12 GPIO_ACTIVE_HIGH>;
383 label = "wndr4700:green:hd";
384 gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
388 label = "wndr4700:red:hd";
389 gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
393 label = "wndr4700:blue:wlan";
394 gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;