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 <dt-bindings/thermal/thermal.h>
18 model = "Netgear WNDR4700/WNDR4720 Series";
19 compatible = "netgear,wndr4700";
20 dcr-parent = <&{/cpus/cpu@0}>;
33 model = "PowerPC,apm82181";
35 clock-frequency = <0>; /* Filled in by U-Boot */
36 timebase-frequency = <0>; /* Filled in by U-Boot */
37 i-cache-line-size = <32>;
38 d-cache-line-size = <32>;
39 i-cache-size = <32768>;
40 d-cache-size = <32768>;
42 dcr-access-method = "native";
43 next-level-cache = <&L2C0>;
48 device_type = "memory";
49 reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
52 UIC0: interrupt-controller0 {
53 compatible = "ibm,uic-460ex","ibm,uic";
56 dcr-reg = <0x0c0 0x009>;
59 #interrupt-cells = <2>;
62 UIC1: interrupt-controller1 {
63 compatible = "ibm,uic-460ex","ibm,uic";
66 dcr-reg = <0x0d0 0x009>;
69 #interrupt-cells = <2>;
70 interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
71 interrupt-parent = <&UIC0>;
74 UIC2: interrupt-controller2 {
75 compatible = "ibm,uic-460ex","ibm,uic";
78 dcr-reg = <0x0e0 0x009>;
81 #interrupt-cells = <2>;
82 interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
83 interrupt-parent = <&UIC0>;
86 UIC3: interrupt-controller3 {
87 compatible = "ibm,uic-460ex","ibm,uic";
90 dcr-reg = <0x0f0 0x009>;
93 #interrupt-cells = <2>;
94 interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
95 interrupt-parent = <&UIC0>;
99 compatible = "ibm,ocm";
102 /* configured in U-Boot */
103 reg = <4 0x00040000 0x8000>; /* 32K */
107 compatible = "ibm,sdr-460ex";
108 dcr-reg = <0x00e 0x002>;
112 compatible = "ibm,cpr-460ex";
113 dcr-reg = <0x00c 0x002>;
117 compatible = "ibm,l2-cache-apm82181", "ibm,l2-cache";
118 dcr-reg = <0x020 0x008
120 cache-line-size = <32>;
121 cache-size = <262144>;
122 interrupt-parent = <&UIC1>;
127 compatible = "ibm,cpm-apm821xx", "ibm,cpm";
129 dcr-reg = <0x160 0x003>;
130 pm-cpu = <0x02000000>;
131 pm-doze = <0x302570F0>;
132 pm-nap = <0x302570F0>;
133 pm-deepsleep = <0x302570F0>;
134 pm-iic-device = <&IIC0>;
135 pm-emac-device = <&EMAC0>;
139 compatible = "ibm,plb-460ex", "ibm,plb4";
140 #address-cells = <2>;
143 clock-frequency = <0>; /* Filled in by U-Boot */
146 compatible = "ibm,sdram-460ex", "ibm,sdram-405gp";
147 dcr-reg = <0x010 0x002>;
151 compatible = "ibm,rtc";
152 dcr-reg = <0x240 0x009>;
153 interrupts = <0x1a 0x4>;
154 interrupt-parent = <&UIC2>;
158 CRYPTO: crypto@180000 {
159 compatible = "amcc,ppc460ex-crypto", "amcc,ppc4xx-crypto";
160 reg = <4 0x00180000 0x80400>;
161 interrupt-parent = <&UIC0>;
162 interrupts = <0x1d 0x4>;
167 compatible = "ppc4xx-pka", "amcc,ppc4xx-pka", "amcc, ppc4xx-pka";
168 reg = <4 0x00114000 0x4000>;
169 interrupt-parent = <&UIC0>;
170 interrupts = <0x14 0x1>;
174 device_type = "trng";
175 compatible = "amcc,ppc460ex-rng", "ppc4xx-rng", "amcc, ppc4xx-trng";
176 reg = <4 0x00110000 0x100>;
177 interrupt-parent = <&UIC1>;
178 interrupts = <0x3 0x4>;
182 compatible = "ibm,mcmal-460ex", "ibm,mcmal2";
183 descriptor-memory = "ocm";
184 dcr-reg = <0x180 0x062>;
187 #address-cells = <0>;
189 interrupt-parent = <&UIC2>;
190 interrupts = < /*TXEOB*/ 0x6 0x4
198 /*RX1 COAL 0xd 0x2*/>;
201 AHBDMA: dma@bffd0800 {
202 compatible = "snps,dma-spear1340";
203 reg = <4 0xbffd0800 0x400>;
204 interrupt-parent = <&UIC0>;
207 /* use autoconfiguration for the dma setup */
210 SATA0: sata@bffd1000 {
211 compatible = "amcc,sata-460ex";
212 reg = <4 0xbffd1000 0x800>;
213 interrupt-parent = <&UIC0>;
215 dmas = <&AHBDMA 0 0 1>;
216 dma-names = "sata-dma";
217 status = "disabled"; /* disabled by uboot */
220 SATA1: sata@bffd1800 {
221 compatible = "amcc,sata-460ex";
222 reg = <4 0xbffd1800 0x800>;
223 interrupt-parent = <&UIC0>;
225 dmas = <&AHBDMA 1 0 2>;
226 dma-names = "sata-dma";
229 USBOTG0: usbotg@bff80000 {
230 compatible = "netgear,wndr4700-usb";
231 reg = <4 0xbff80000 0x10000>;
232 interrupt-parent = <&USBOTG0>;
233 interrupts = <0 1 2>;
234 #interrupt-cells = <1>;
235 #address-cells = <0>;
237 interrupt-map = </* USB-OTG */ 0 &UIC2 0x1c 4
238 /* HIGH-POWER */ 1 &UIC1 0x1a 8
239 /* DMA */ 2 &UIC0 0xc 4>;
244 compatible = "ibm,opb-460ex", "ibm,opb";
245 #address-cells = <1>;
247 ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
248 clock-frequency = <0>; /* Filled in by U-Boot */
251 compatible = "ibm,ebc-460ex", "ibm,ebc";
252 dcr-reg = <0x012 0x002>;
253 #address-cells = <2>;
255 clock-frequency = <0>; /* Filled in by U-Boot */
256 /* ranges property is supplied by U-Boot */
257 ranges = < 0x00000003 0x00000000 0xe0000000 0x8000000>;
258 interrupts = <0x6 0x4>;
259 interrupt-parent = <&UIC1>;
262 compatible = "amd,s29gl512n", "cfi-flash";
264 reg = <0x00000000 0x00000000 0x00100000>;
265 #address-cells = <1>;
271 reg = <0x00000000 0x00080000>;
275 reg = <0x00080000 0x0080000>;
279 compatible = "ibm,ndfc";
280 reg = <00000003 00000000 00002000>;
282 bank-settings = <0x80002222>;
283 #address-cells = <1>;
285 /*128 MiB Nand Flash*/
287 #address-cells = <1>;
290 partition0,0@0x00000000 {
291 label = "NAND 128MiB 3,3V 8-bit";
292 reg = <0x00000000 0x08000000>;
296 partition0,1@0x00000000 {
298 reg = <0x00000000 0x00180000>;
302 partition0,2@0x00180000 {
303 label = "device-tree";
304 reg = <0x00180000 0x00020000>;
308 partition0,3@0x001a0000 {
310 reg = <0x001a0000 0x001e0000>;
312 * will also contain a fake/empty
313 * rootfs to fool Netgear's uboot
314 * rootfs integrety checks.
318 partition0,4@0x00380000 {
320 reg = <0x00380000 0x01660000>;
323 partition0,5@0x019e0000 {
325 reg = <0x019e0000 0x00080000>;
329 partition0,6@0x01a60000 {
331 reg = <0x01a60000 0x00080000>;
335 partition0,7@0x01ae0000 {
336 label = "traffic_meter";
337 reg = <0x01ae0000 0x00300000>;
341 partition0,8@0x01de0000 {
343 reg = <0x01de0000 0x001c0000>;
347 partition0,9@0x01fa0000 {
349 reg = <0x01fa0000 0x06020000>;
353 partition0,10@0x07fc0000 {
355 reg = <0x07fc0000 0x00040000>;
359 partition0,11@0x00180000 {
361 reg = <0x00180000 0x01860000>;
368 UART0: serial@ef600300 {
369 device_type = "serial";
370 compatible = "ns16550";
371 reg = <0xef600300 0x00000008>;
372 virtual-reg = <0xef600300>;
373 clock-frequency = <0>; /* Filled in by U-Boot */
374 current-speed = <0>; /* Filled in by U-Boot */
375 interrupt-parent = <&UIC1>;
376 interrupts = <0x1 0x4>;
379 GPIO0: gpio@ef600b00 {
380 compatible = "ibm,ppc4xx-gpio";
381 reg = <0xef600b00 0x00000048>;
384 #interrupt-cells = <2>;
385 interrupt-controller;
387 interrupts-extended = <&UIC1 0x14>,
394 compatible = "gpio-keys-polled";
395 #address-cells = <1>;
397 #interrupt-cells = <2>;
399 poll-interval = <60>; /* 3 * 20 = 60ms */
402 label = "Reset button";
403 linux,code = <0x198>; /* KEY_RESTART */
404 gpios = <&GPIO0 15 0>;
405 interrupt-parent = <&UIC1>;
406 interrupts = <0x14 0x2>;
410 label = "Backup HD button";
411 gpios = <&GPIO0 19 0>;
412 linux,code = <0x100>; /* BTN_0 */
413 interrupt-parent = <&UIC1>;
414 interrupts = <0x1e 0x2>;
418 label = "RFKILL button";
419 gpios = <&GPIO0 20 0>;
420 linux,code = <0xf7>; /* KEY_RFKILL */
421 interrupt-parent = <&UIC1>;
422 interrupts = <0x1f 0x2>;
426 label = "WPS button";
427 gpios = <&GPIO0 23 0>;
428 linux,code = <0x211>; /* KEY_WPS_BUTTON */
429 interrupt-parent = <&UIC2>;
430 interrupts = <0x19 0x2>;
434 label = "SDCard inserted";
435 gpios = <&GPIO0 7 1>;
436 linux,code = <0x101>; /* BTN_1 */
441 compatible = "gpio-leds";
443 label = "wndr4700:green:power";
444 gpios = <&GPIO0 8 0>;
448 label = "wndr4700:orange:power";
449 gpios = <&GPIO0 9 1>;
450 linux,default-trigger = "panic";
454 label = "wndr4700:blue:usb";
455 gpios = <&GPIO0 10 0>;
459 label = "wndr4700:white:logo";
460 gpios = <&GPIO0 11 0>;
464 label = "wndr4700:yellow:wan";
465 gpios = <&GPIO0 3 0>;
469 label = "wndr4700:green:wan";
470 gpios = <&GPIO0 12 0>;
474 label = "wndr4700:green:hd";
475 gpios = <&GPIO0 14 0>;
479 label = "wndr4700:red:hd";
480 gpios = <&GPIO0 17 0>;
484 label = "wndr4700:blue:wlan";
485 gpios = <&GPIO0 18 0>;
490 compatible = "ibm,iic-460ex", "ibm,iic";
491 reg = <0xef600700 0x00000014>;
492 interrupt-parent = <&UIC0>;
493 interrupts = <0x2 0x4>;
494 #address-cells = <1>;
498 compatible = "microchip,tc654";
500 cooling-min-level = <0>;
501 cooling-max-level = <255>;
502 #cooling-cells = <2>; /* min followed by max */
504 gpios = <&GPIO0 16 1>; /* fan status */
505 alarm-gpios = <&GPIO0 5 1>; /* fault */
506 interrupt-parent = <&UIC3>;
507 interrupts = <0x16 0x2>; /* fault */
511 compatible = "gmt,g781";
513 #thermal-sensor-cells = <1>;
516 * The LM90 has two sensors:
517 * temp0 -> internal to LM90
518 * temp1 -> external NTC near CPU
524 compatible = "ibm,iic-460ex", "ibm,iic";
525 reg = <0xef600800 0x00000014>;
526 interrupt-parent = <&UIC0>;
527 interrupts = <0x3 0x4>;
530 RGMII0: emac-rgmii@ef601500 {
531 compatible = "ibm,rgmii-405ex", "ibm,rgmii";
532 reg = <0xef601500 0x00000008>;
536 TAH0: emac-tah@ef601350 {
537 compatible = "ibm,tah-460ex", "ibm,tah";
538 reg = <0xef601350 0x00000030>;
541 EMAC0: ethernet@ef600c00 {
542 device_type = "network";
543 compatible = "ibm,emac-apm821xx", "ibm,emac4sync";
544 interrupt-parent = <&EMAC0>;
545 interrupts = <0x0 0x1>;
546 #interrupt-cells = <1>;
547 #address-cells = <0>;
549 interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
550 /*Wake*/ 0x1 &UIC2 0x14 0x4>;
551 reg = <0xef600c00 0x000000c4>;
552 local-mac-address = [000000000000]; /* Filled in by U-Boot */
553 mal-device = <&MAL0>;
554 mal-tx-channel = <0>;
555 mal-rx-channel = <0>;
557 max-frame-size = <9000>;
558 rx-fifo-size = <16384>;
559 tx-fifo-size = <2048>;
560 fifo-entry-size = <10>;
562 phy-handle = <&phy0>;
563 phy-map = <0x00000000>;
564 rgmii-device = <&RGMII0>;
566 tah-device = <&TAH0>;
568 has-inverted-stacr-oc;
569 has-new-stacr-staopc;
572 #address-cells = <1>;
575 phy0: ethernet-phy@0 {
576 device_type = "ethernet-phy";
578 qca,ar8327-initvals = <
581 0x0004 0x07a00000 /* PAD0_MODE */
582 0x000c 0x01000000 /* PAD6_MODE */
583 0x007c 0x0000007e /* PORT0_STATUS */
590 PCIE0: pciex@d00000000 {
592 #interrupt-cells = <1>;
594 #address-cells = <3>;
595 compatible = "ibm,plb-pciex-apm821xx", "ibm,plb-pciex";
597 port = <0x0>; /* port number */
598 reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
599 0x0000000c 0x08010000 0x00001000>; /* Registers */
600 dcr-reg = <0x100 0x020>;
603 /* Outbound ranges, one memory and one IO,
604 * later cannot be changed
606 ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
607 0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000
608 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
610 /* Inbound 2GB range starting at 0 */
611 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
613 /* This drives busses 40 to 0x7f */
614 bus-range = <0x40 0x7f>;
616 /* Legacy interrupts (note the weird polarity, the bridge seems
617 * to invert PCIe legacy interrupts).
618 * We are de-swizzling here because the numbers are actually for
619 * port of the root complex virtual P2P bridge. But I want
620 * to avoid putting a node for it in the tree, so the numbers
621 * below are basically de-swizzled numbers.
622 * The real slot is on idsel 0, so the swizzling is 1:1
624 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
626 0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
627 0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
628 0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
629 0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
632 MSI: ppc4xx-msi@C10000000 {
633 compatible = "amcc,ppc4xx-msi", "ppc4xx-msi";
634 reg = < 0xC 0x10000000 0x100
635 0xC 0x10000000 0x100>;
637 msi-data = <0x00004440>;
638 msi-mask = <0x0000ffe0>;
639 interrupts =<0 1 2 3 4 5 6 7>;
640 interrupt-parent = <&MSI>;
641 #interrupt-cells = <1>;
642 #address-cells = <0>;
644 msi-available-ranges = <0x0 0x100>;
659 linux,stdout-path = "/plb/opb/serial@ef600300";
663 cpu_thermal: cpu-thermal {
664 polling-delay-passive = <10000>; /* milliseconds */
665 polling-delay = <20000>; /* milliseconds */
667 thermal-sensors = <&temp0 1>;
671 * Once the thermal governers are a bit smarter
672 * and do hysteresis properly, we can disable
673 * the fan when the HDD and CPU has < 39 C.
675 cpu_alert0: cpu-alert0 {
676 temperature = <25000>;
681 cpu_alert1: cpu-alert1 {
682 temperature = <27000>; /* millicelsius */
683 hysteresis = <2000>; /* millicelsius */
687 cpu_alert2: cpu-alert2 {
688 temperature = <65000>; /* millicelsius */
689 hysteresis = <2000>; /* millicelsius */
693 cpu_alert3: cpu-alert3 {
694 temperature = <70000>; /* millicelsius */
695 hysteresis = <2000>; /* millicelsius */
699 cpu_alert4: cpu-alert4 {
700 temperature = <75000>; /* millicelsius */
701 hysteresis = <2000>; /* millicelsius */
705 cpu_alert5: cpu-alert5 {
706 temperature = <80000>; /* millicelsius */
707 hysteresis = <2000>; /* millicelsius */
711 cpu_alert6: cpu-alert6 {
712 temperature = <850000>; /* millicelsius */
713 hysteresis = <2000>; /* millicelsius */
718 temperature = <90000>; /* millicelsius */
719 hysteresis = <2000>; /* millicelsius */
726 trip = <&cpu_alert0>;
727 cooling-device = <&fan0 THERMAL_NO_LIMIT 0>;
731 trip = <&cpu_alert1>;
732 cooling-device = <&fan0 1 87>;
736 trip = <&cpu_alert2>;
737 cooling-device = <&fan0 88 100>;
741 trip = <&cpu_alert3>;
742 cooling-device = <&fan0 101 147>;
746 trip = <&cpu_alert4>;
747 cooling-device = <&fan0 148 207>;
751 trip = <&cpu_alert5>;
752 cooling-device = <&fan0 208 231>;
756 trip = <&cpu_alert6>;
757 cooling-device =<&fan0 232 THERMAL_NO_LIMIT>;