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>;
177 partition0,3@0x001a0000 {
179 reg = <0x001a0000 0x001e0000>;
181 * will also contain a fake/empty
182 * rootfs to fool Netgear's uboot
183 * rootfs integrety checks.
187 partition0,4@0x00380000 {
189 reg = <0x00380000 0x01660000>;
192 partition0,5@0x019e0000 {
194 reg = <0x019e0000 0x00080000>;
198 partition0,6@0x01a60000 {
200 reg = <0x01a60000 0x00080000>;
204 partition0,7@0x01ae0000 {
205 label = "traffic_meter";
206 reg = <0x01ae0000 0x00300000>;
210 partition0,8@0x01de0000 {
212 reg = <0x01de0000 0x001c0000>;
216 partition0,9@0x01fa0000 {
218 reg = <0x01fa0000 0x06020000>;
222 partition0,10@0x07fc0000 {
224 reg = <0x07fc0000 0x00040000>;
228 partition0,11@0x00180000 {
230 reg = <0x00180000 0x01860000>;
243 #interrupt-cells = <2>;
244 interrupt-controller;
245 interrupts-extended = <&UIC1 0x14>,
255 compatible = "microchip,tc654";
257 cooling-min-level = <0>;
258 cooling-max-level = <255>;
259 #cooling-cells = <2>; /* min followed by max */
261 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>; /* fan status */
262 alarm-gpios = <&GPIO0 5 GPIO_ACTIVE_LOW>; /* fault */
263 interrupt-parent = <&UIC3>;
264 interrupts = <0x16 IRQ_TYPE_EDGE_FALLING>; /* fault */
268 compatible = "gmt,g781";
270 #thermal-sensor-cells = <1>;
273 * The LM90 has two sensors:
274 * temp0 -> internal to LM90
275 * temp1 -> external NTC near CPU
283 phy-handle = <&phy0>;
286 #address-cells = <1>;
288 phy0: ethernet-phy@0 {
289 device_type = "ethernet-phy";
291 qca,ar8327-initvals = <
294 0x0004 0x07a00000 /* PAD0_MODE */
295 0x000c 0x01000000 /* PAD6_MODE */
296 0x007c 0x0000007e /* PORT0_STATUS */
304 compatible = "gpio-keys-polled";
305 #address-cells = <1>;
307 #interrupt-cells = <2>;
309 poll-interval = <60>; /* 3 * 20 = 60ms */
312 label = "Reset button";
313 linux,code = <KEY_RESTART>;
314 gpios = <&GPIO0 15 GPIO_ACTIVE_HIGH>;
315 interrupt-parent = <&UIC1>;
316 interrupts = <0x14 IRQ_TYPE_EDGE_FALLING>;
320 label = "Backup HD button";
321 gpios = <&GPIO0 19 GPIO_ACTIVE_HIGH>;
322 linux,code = <BTN_0>;
323 interrupt-parent = <&UIC1>;
324 interrupts = <0x1e IRQ_TYPE_EDGE_FALLING>;
328 label = "RFKILL button";
329 gpios = <&GPIO0 20 GPIO_ACTIVE_HIGH>;
330 linux,code = <KEY_RFKILL>;
331 interrupt-parent = <&UIC1>;
332 interrupts = <0x1f IRQ_TYPE_EDGE_FALLING>;
336 label = "WPS button";
337 gpios = <&GPIO0 23 GPIO_ACTIVE_HIGH>;
338 linux,code = <KEY_WPS_BUTTON>;
339 interrupt-parent = <&UIC2>;
340 interrupts = <0x19 IRQ_TYPE_EDGE_FALLING>;
344 label = "SDCard inserted";
345 gpios = <&GPIO0 7 GPIO_ACTIVE_LOW>;
346 linux,code = <BTN_1>;
351 compatible = "gpio-leds";
353 label = "wndr4700:green:power";
354 gpios = <&GPIO0 8 GPIO_ACTIVE_HIGH>;
358 label = "wndr4700:orange:power";
359 gpios = <&GPIO0 9 GPIO_ACTIVE_LOW>;
360 linux,default-trigger = "panic";
364 label = "wndr4700:blue:usb";
365 gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>;
369 label = "wndr4700:white:logo";
370 gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>;
374 label = "wndr4700:yellow:wan";
375 gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>;
379 label = "wndr4700:green:wan";
380 gpios = <&GPIO0 12 GPIO_ACTIVE_HIGH>;
384 label = "wndr4700:green:hd";
385 gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
389 label = "wndr4700:red:hd";
390 gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
394 label = "wndr4700:blue:wlan";
395 gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;