apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
[openwrt/openwrt.git] / target / linux / apm821xx / dts / wndr4700.dts
1 /*
2 * Device Tree Source for Netgear WNDR4700/WNDR4720 Series
3 *
4 * Copyright 2008 DENX Software Engineering, Stefan Roese <sr@denx.de>
5 *
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.
9 */
10
11 /dts-v1/;
12
13 #include <dt-bindings/thermal/thermal.h>
14
15 / {
16 #address-cells = <2>;
17 #size-cells = <1>;
18 model = "Netgear WNDR4700/WNDR4720 Series";
19 compatible = "netgear,wndr4700";
20 dcr-parent = <&{/cpus/cpu@0}>;
21
22 aliases {
23 ethernet0 = &EMAC0;
24 serial0 = &UART0;
25 };
26
27 cpus {
28 #address-cells = <1>;
29 #size-cells = <0>;
30
31 cpu0: cpu@0 {
32 device_type = "cpu";
33 model = "PowerPC,apm82181";
34 reg = <0x00000000>;
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>;
41 dcr-controller;
42 dcr-access-method = "native";
43 next-level-cache = <&L2C0>;
44 };
45 };
46
47 memory {
48 device_type = "memory";
49 reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
50 };
51
52 UIC0: interrupt-controller0 {
53 compatible = "ibm,uic-460ex","ibm,uic";
54 interrupt-controller;
55 cell-index = <0>;
56 dcr-reg = <0x0c0 0x009>;
57 #address-cells = <0>;
58 #size-cells = <0>;
59 #interrupt-cells = <2>;
60 };
61
62 UIC1: interrupt-controller1 {
63 compatible = "ibm,uic-460ex","ibm,uic";
64 interrupt-controller;
65 cell-index = <1>;
66 dcr-reg = <0x0d0 0x009>;
67 #address-cells = <0>;
68 #size-cells = <0>;
69 #interrupt-cells = <2>;
70 interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
71 interrupt-parent = <&UIC0>;
72 };
73
74 UIC2: interrupt-controller2 {
75 compatible = "ibm,uic-460ex","ibm,uic";
76 interrupt-controller;
77 cell-index = <2>;
78 dcr-reg = <0x0e0 0x009>;
79 #address-cells = <0>;
80 #size-cells = <0>;
81 #interrupt-cells = <2>;
82 interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
83 interrupt-parent = <&UIC0>;
84 };
85
86 UIC3: interrupt-controller3 {
87 compatible = "ibm,uic-460ex","ibm,uic";
88 interrupt-controller;
89 cell-index = <3>;
90 dcr-reg = <0x0f0 0x009>;
91 #address-cells = <0>;
92 #size-cells = <0>;
93 #interrupt-cells = <2>;
94 interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
95 interrupt-parent = <&UIC0>;
96 };
97
98 OCM1: ocm@400040000 {
99 compatible = "ibm,ocm";
100 status = "okay";
101 cell-index = <1>;
102 /* configured in U-Boot */
103 reg = <4 0x00040000 0x8000>; /* 32K */
104 };
105
106 SDR0: sdr {
107 compatible = "ibm,sdr-460ex";
108 dcr-reg = <0x00e 0x002>;
109 };
110
111 CPR0: cpr {
112 compatible = "ibm,cpr-460ex";
113 dcr-reg = <0x00c 0x002>;
114 };
115
116 L2C0: l2c {
117 compatible = "ibm,l2-cache-apm82181", "ibm,l2-cache";
118 dcr-reg = <0x020 0x008
119 0x030 0x008>;
120 cache-line-size = <32>;
121 cache-size = <262144>;
122 interrupt-parent = <&UIC1>;
123 interrupts = <11 1>;
124 };
125
126 CPM0: cpm {
127 compatible = "ibm,cpm-apm821xx", "ibm,cpm";
128 cell-index = <0>;
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>;
136 };
137
138 plb {
139 compatible = "ibm,plb-460ex", "ibm,plb4";
140 #address-cells = <2>;
141 #size-cells = <1>;
142 ranges;
143 clock-frequency = <0>; /* Filled in by U-Boot */
144
145 SDRAM0: sdram {
146 compatible = "ibm,sdram-460ex", "ibm,sdram-405gp";
147 dcr-reg = <0x010 0x002>;
148 };
149
150 RTC: rtc {
151 compatible = "ibm,rtc";
152 dcr-reg = <0x240 0x009>;
153 interrupts = <0x1a 0x4>;
154 interrupt-parent = <&UIC2>;
155
156 };
157
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>;
163 };
164
165 PKA: pka@114000 {
166 device_type = "pka";
167 compatible = "ppc4xx-pka", "amcc,ppc4xx-pka", "amcc, ppc4xx-pka";
168 reg = <4 0x00114000 0x4000>;
169 interrupt-parent = <&UIC0>;
170 interrupts = <0x14 0x1>;
171 };
172
173 TRNG: trng@110000 {
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>;
179 };
180
181 MAL0: mcmal {
182 compatible = "ibm,mcmal-460ex", "ibm,mcmal2";
183 descriptor-memory = "ocm";
184 dcr-reg = <0x180 0x062>;
185 num-tx-chans = <1>;
186 num-rx-chans = <1>;
187 #address-cells = <0>;
188 #size-cells = <0>;
189 interrupt-parent = <&UIC2>;
190 interrupts = < /*TXEOB*/ 0x6 0x4
191 /*RXEOB*/ 0x7 0x4
192 /*SERR*/ 0x3 0x4
193 /*TXDE*/ 0x4 0x4
194 /*RXDE*/ 0x5 0x4
195 /*TX0 COAL*/ 0x8 0x2
196 /*TX1 COAL 0x9 0x2*/
197 /*RX0 COAL*/ 0xc 0x2
198 /*RX1 COAL 0xd 0x2*/>;
199 };
200
201 AHBDMA: dma@bffd0800 {
202 compatible = "snps,dma-spear1340";
203 reg = <4 0xbffd0800 0x400>;
204 interrupt-parent = <&UIC0>;
205 interrupts = <25 4>;
206 #dma-cells = <3>;
207 /* use autoconfiguration for the dma setup */
208 };
209
210 SATA0: sata@bffd1000 {
211 compatible = "amcc,sata-460ex";
212 reg = <4 0xbffd1000 0x800>;
213 interrupt-parent = <&UIC0>;
214 interrupts = <26 4>;
215 dmas = <&AHBDMA 0 0 1>;
216 dma-names = "sata-dma";
217 status = "disabled"; /* disabled by uboot */
218 };
219
220 SATA1: sata@bffd1800 {
221 compatible = "amcc,sata-460ex";
222 reg = <4 0xbffd1800 0x800>;
223 interrupt-parent = <&UIC0>;
224 interrupts = <27 4>;
225 dmas = <&AHBDMA 1 0 2>;
226 dma-names = "sata-dma";
227 };
228
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>;
236 #size-cells = <0>;
237 interrupt-map = </* USB-OTG */ 0 &UIC2 0x1c 4
238 /* HIGH-POWER */ 1 &UIC1 0x1a 8
239 /* DMA */ 2 &UIC0 0xc 4>;
240 dr_mode = "host";
241 };
242
243 POB0: opb {
244 compatible = "ibm,opb-460ex", "ibm,opb";
245 #address-cells = <1>;
246 #size-cells = <1>;
247 ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
248 clock-frequency = <0>; /* Filled in by U-Boot */
249
250 EBC0: ebc {
251 compatible = "ibm,ebc-460ex", "ibm,ebc";
252 dcr-reg = <0x012 0x002>;
253 #address-cells = <2>;
254 #size-cells = <1>;
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>;
260
261 nor_flash@0,0 {
262 compatible = "amd,s29gl512n", "cfi-flash";
263 bank-width = <1>;
264 reg = <0x00000000 0x00000000 0x00100000>;
265 #address-cells = <1>;
266 #size-cells = <1>;
267 status = "disabled";
268
269 partition@0 {
270 label = "back-up";
271 reg = <0x00000000 0x00080000>;
272 };
273 partition@1 {
274 label = "u-boot";
275 reg = <0x00080000 0x0080000>;
276 };
277 };
278 ndfc@1,0 {
279 compatible = "ibm,ndfc";
280 reg = <00000003 00000000 00002000>;
281 ccr = <0x00001000>;
282 bank-settings = <0x80002222>;
283 #address-cells = <1>;
284 #size-cells = <1>;
285 /*128 MiB Nand Flash*/
286 nand {
287 #address-cells = <1>;
288 #size-cells = <1>;
289
290 partition0,0@0x00000000 {
291 label = "NAND 128MiB 3,3V 8-bit";
292 reg = <0x00000000 0x08000000>;
293 read-only;
294 };
295
296 partition0,1@0x00000000 {
297 label = "uboot";
298 reg = <0x00000000 0x00180000>;
299 read-only;
300 };
301
302 partition0,2@0x00180000 {
303 label = "device-tree";
304 reg = <0x00180000 0x00020000>;
305 read-only;
306 };
307
308 partition0,3@0x001a0000 {
309 label = "kernel";
310 reg = <0x001a0000 0x001e0000>;
311 /*
312 * will also contain a fake/empty
313 * rootfs to fool Netgear's uboot
314 * rootfs integrety checks.
315 */
316 };
317
318 partition0,4@0x00380000 {
319 label = "ubi";
320 reg = <0x00380000 0x01660000>;
321 };
322
323 partition0,5@0x019e0000 {
324 label = "config";
325 reg = <0x019e0000 0x00080000>;
326 read-only;
327 };
328
329 partition0,6@0x01a60000 {
330 label = "pot";
331 reg = <0x01a60000 0x00080000>;
332 read-only;
333 };
334
335 partition0,7@0x01ae0000 {
336 label = "traffic_meter";
337 reg = <0x01ae0000 0x00300000>;
338 read-only;
339 };
340
341 partition0,8@0x01de0000 {
342 label = "language";
343 reg = <0x01de0000 0x001c0000>;
344 read-only;
345 };
346
347 partition0,9@0x01fa0000 {
348 label = "ecos";
349 reg = <0x01fa0000 0x06020000>;
350 read-only;
351 };
352
353 partition0,10@0x07fc0000 {
354 label = "wifi_data";
355 reg = <0x07fc0000 0x00040000>;
356 read-only;
357 };
358
359 partition0,11@0x00180000 {
360 label = "firmware";
361 reg = <0x00180000 0x01860000>;
362 read-only;
363 };
364 };
365 };
366 };
367
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>;
377 };
378
379 GPIO0: gpio@ef600b00 {
380 compatible = "ibm,ppc4xx-gpio";
381 reg = <0xef600b00 0x00000048>;
382 #gpio-cells = <2>;
383 gpio-controller;
384 #interrupt-cells = <2>;
385 interrupt-controller;
386
387 interrupts-extended = <&UIC1 0x14>,
388 <&UIC1 0x1e>,
389 <&UIC1 0x1f>,
390 <&UIC2 0x19>;
391 };
392
393 gpio_keys_polled {
394 compatible = "gpio-keys-polled";
395 #address-cells = <1>;
396 #size-cells = <0>;
397 #interrupt-cells = <2>;
398 autorepeat;
399 poll-interval = <60>; /* 3 * 20 = 60ms */
400
401 reset {
402 label = "Reset button";
403 linux,code = <0x198>; /* KEY_RESTART */
404 gpios = <&GPIO0 15 0>;
405 interrupt-parent = <&UIC1>;
406 interrupts = <0x14 0x2>;
407 };
408
409 backup_hd {
410 label = "Backup HD button";
411 gpios = <&GPIO0 19 0>;
412 linux,code = <0x100>; /* BTN_0 */
413 interrupt-parent = <&UIC1>;
414 interrupts = <0x1e 0x2>;
415 };
416
417 rfkill {
418 label = "RFKILL button";
419 gpios = <&GPIO0 20 0>;
420 linux,code = <0xf7>; /* KEY_RFKILL */
421 interrupt-parent = <&UIC1>;
422 interrupts = <0x1f 0x2>;
423 };
424
425 wps {
426 label = "WPS button";
427 gpios = <&GPIO0 23 0>;
428 linux,code = <0x211>; /* KEY_WPS_BUTTON */
429 interrupt-parent = <&UIC2>;
430 interrupts = <0x19 0x2>;
431 };
432
433 sdcard {
434 label = "SDCard inserted";
435 gpios = <&GPIO0 7 0>;
436 linux,code = <0x101>; /* BTN_1 */
437 };
438 };
439
440 gpio-leds {
441 compatible = "gpio-leds";
442 power-green {
443 label = "wndr4700:green:power";
444 gpios = <&GPIO0 8 0>;
445 };
446
447 power-orange {
448 label = "wndr4700:orange:power";
449 gpios = <&GPIO0 9 1>;
450 linux,default-trigger = "panic";
451 };
452
453 usb-blue {
454 label = "wndr4700:blue:usb";
455 gpios = <&GPIO0 10 0>;
456 };
457
458 logo-white {
459 label = "wndr4700:white:logo";
460 gpios = <&GPIO0 11 0>;
461 };
462
463 wan-yellow {
464 label = "wndr4700:yellow:wan";
465 gpios = <&GPIO0 3 0>;
466 };
467
468 wan-green {
469 label = "wndr4700:green:wan";
470 gpios = <&GPIO0 12 0>;
471 };
472
473 hd-green {
474 label = "wndr4700:green:hd";
475 gpios = <&GPIO0 14 0>;
476 };
477
478 hd-red {
479 label = "wndr4700:red:hd";
480 gpios = <&GPIO0 17 0>;
481 };
482
483 wlan-blue {
484 label = "wndr4700:blue:wlan";
485 gpios = <&GPIO0 18 0>;
486 };
487 };
488
489 IIC0: i2c@ef600700 {
490 compatible = "ibm,iic-460ex", "ibm,iic";
491 reg = <0xef600700 0x00000014>;
492 interrupt-parent = <&UIC0>;
493 interrupts = <0x2 0x4>;
494 #address-cells = <1>;
495 #size-cells = <0>;
496
497 fan0: fan@1b {
498 compatible = "microchip,tc654";
499 reg = <0x1b>;
500 cooling-min-level = <0>;
501 cooling-max-level = <255>;
502 #cooling-cells = <2>; /* min followed by max */
503
504 gpios = <&GPIO0 16 1>; /* fan status */
505 alarm-gpios = <&GPIO0 5 1>; /* fault */
506 interrupt-parent = <&UIC3>;
507 interrupts = <0x16 0x2>; /* fault */
508 };
509
510 temp0: temp@4d {
511 compatible = "gmt,g781";
512 reg = <0x4d>;
513 #thermal-sensor-cells = <1>;
514
515 /*
516 * The LM90 has two sensors:
517 * temp0 -> internal to LM90
518 * temp1 -> external NTC near CPU
519 */
520 };
521 };
522
523 IIC1: i2c@ef600800 {
524 compatible = "ibm,iic-460ex", "ibm,iic";
525 reg = <0xef600800 0x00000014>;
526 interrupt-parent = <&UIC0>;
527 interrupts = <0x3 0x4>;
528 };
529
530 RGMII0: emac-rgmii@ef601500 {
531 compatible = "ibm,rgmii-405ex", "ibm,rgmii";
532 reg = <0xef601500 0x00000008>;
533 has-mdio;
534 };
535
536 TAH0: emac-tah@ef601350 {
537 compatible = "ibm,tah-460ex", "ibm,tah";
538 reg = <0xef601350 0x00000030>;
539 };
540
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>;
548 #size-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>;
556 cell-index = <0>;
557 max-frame-size = <9000>;
558 rx-fifo-size = <16384>;
559 tx-fifo-size = <2048>;
560 fifo-entry-size = <10>;
561 phy-mode = "rgmii";
562 phy-handle = <&phy0>;
563 phy-map = <0x00000000>;
564 rgmii-device = <&RGMII0>;
565 rgmii-channel = <0>;
566 tah-device = <&TAH0>;
567 tah-channel = <0>;
568 has-inverted-stacr-oc;
569 has-new-stacr-staopc;
570
571 mdio {
572 #address-cells = <1>;
573 #size-cells = <0>;
574
575 phy0: ethernet-phy@0 {
576 device_type = "ethernet-phy";
577 reg = <0>;
578 qca,ar8327-initvals = <
579 0x0010 0x40000000
580 0x0624 0x007f7f7f
581 0x0004 0x07a00000 /* PAD0_MODE */
582 0x000c 0x01000000 /* PAD6_MODE */
583 0x007c 0x0000007e /* PORT0_STATUS */
584 >;
585 };
586 };
587 };
588 };
589
590 PCIE0: pciex@d00000000 {
591 device_type = "pci";
592 #interrupt-cells = <1>;
593 #size-cells = <2>;
594 #address-cells = <3>;
595 compatible = "ibm,plb-pciex-apm821xx", "ibm,plb-pciex";
596 primary;
597 port = <0x0>; /* port number */
598 reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
599 0x0000000c 0x08010000 0x00001000>; /* Registers */
600 dcr-reg = <0x100 0x020>;
601 sdr-base = <0x300>;
602
603 /* Outbound ranges, one memory and one IO,
604 * later cannot be changed
605 */
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>;
609
610 /* Inbound 2GB range starting at 0 */
611 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
612
613 /* This drives busses 40 to 0x7f */
614 bus-range = <0x40 0x7f>;
615
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
623 */
624 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
625 interrupt-map = <
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 */>;
630 };
631
632 MSI: ppc4xx-msi@C10000000 {
633 compatible = "amcc,ppc4xx-msi", "ppc4xx-msi";
634 reg = < 0xC 0x10000000 0x100
635 0xC 0x10000000 0x100>;
636 sdr-base = <0x36C>;
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>;
643 #size-cells = <0>;
644 msi-available-ranges = <0x0 0x100>;
645 interrupt-map = <
646 0 &UIC3 0x18 1
647 1 &UIC3 0x19 1
648 2 &UIC3 0x1A 1
649 3 &UIC3 0x1B 1
650 4 &UIC3 0x1C 1
651 5 &UIC3 0x1D 1
652 6 &UIC3 0x1E 1
653 7 &UIC3 0x1F 1
654 >;
655 };
656 };
657
658 chosen {
659 linux,stdout-path = "/plb/opb/serial@ef600300";
660 };
661
662 thermal-zones {
663 cpu_thermal: cpu-thermal {
664 polling-delay-passive = <10000>; /* milliseconds */
665 polling-delay = <20000>; /* milliseconds */
666
667 thermal-sensors = <&temp0 1>;
668
669 trips {
670 /*
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.
674 */
675 cpu_alert0: cpu-alert0 {
676 temperature = <25000>;
677 hysteresis = <2000>;
678 type = "active";
679 };
680
681 cpu_alert1: cpu-alert1 {
682 temperature = <27000>; /* millicelsius */
683 hysteresis = <2000>; /* millicelsius */
684 type = "active";
685 };
686
687 cpu_alert2: cpu-alert2 {
688 temperature = <65000>; /* millicelsius */
689 hysteresis = <2000>; /* millicelsius */
690 type = "active";
691 };
692
693 cpu_alert3: cpu-alert3 {
694 temperature = <70000>; /* millicelsius */
695 hysteresis = <2000>; /* millicelsius */
696 type = "active";
697 };
698
699 cpu_alert4: cpu-alert4 {
700 temperature = <75000>; /* millicelsius */
701 hysteresis = <2000>; /* millicelsius */
702 type = "active";
703 };
704
705 cpu_alert5: cpu-alert5 {
706 temperature = <80000>; /* millicelsius */
707 hysteresis = <2000>; /* millicelsius */
708 type = "active";
709 };
710
711 cpu_alert6: cpu-alert6 {
712 temperature = <850000>; /* millicelsius */
713 hysteresis = <2000>; /* millicelsius */
714 type = "active";
715 };
716
717 cpu_crit: cpu-crit {
718 temperature = <90000>; /* millicelsius */
719 hysteresis = <2000>; /* millicelsius */
720 type = "critical";
721 };
722 };
723
724 cooling-maps {
725 map0 {
726 trip = <&cpu_alert0>;
727 cooling-device = <&fan0 THERMAL_NO_LIMIT 0>;
728 };
729
730 map1 {
731 trip = <&cpu_alert1>;
732 cooling-device = <&fan0 1 87>;
733 };
734
735 map2 {
736 trip = <&cpu_alert2>;
737 cooling-device = <&fan0 88 100>;
738 };
739
740 map3 {
741 trip = <&cpu_alert3>;
742 cooling-device = <&fan0 101 147>;
743 };
744
745 map4 {
746 trip = <&cpu_alert4>;
747 cooling-device = <&fan0 148 207>;
748 };
749
750 map5 {
751 trip = <&cpu_alert5>;
752 cooling-device = <&fan0 208 231>;
753 };
754
755 map6 {
756 trip = <&cpu_alert6>;
757 cooling-device =<&fan0 232 THERMAL_NO_LIMIT>;
758 };
759 };
760 };
761 };
762 };