Simon Glass | 087e987 | 2015-08-30 16:55:20 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for RK3288 SoC thermal |
| 3 | * |
| 4 | * Copyright (c) 2014, Fuzhou Rockchip Electronics Co., Ltd |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0 |
| 7 | */ |
| 8 | |
| 9 | #include <dt-bindings/thermal/thermal.h> |
| 10 | |
| 11 | reserve_thermal: reserve_thermal { |
| 12 | polling-delay-passive = <1000>; /* milliseconds */ |
| 13 | polling-delay = <5000>; /* milliseconds */ |
| 14 | |
| 15 | /* sensor ID */ |
| 16 | thermal-sensors = <&tsadc 0>; |
| 17 | |
| 18 | }; |
| 19 | |
| 20 | cpu_thermal: cpu_thermal { |
| 21 | polling-delay-passive = <100>; /* milliseconds */ |
| 22 | polling-delay = <5000>; /* milliseconds */ |
| 23 | |
| 24 | /* sensor ID */ |
| 25 | thermal-sensors = <&tsadc 1>; |
| 26 | linux,hwmon; |
| 27 | |
| 28 | trips { |
| 29 | cpu_alert0: cpu_alert0 { |
| 30 | temperature = <70000>; /* millicelsius */ |
| 31 | hysteresis = <2000>; /* millicelsius */ |
| 32 | type = "passive"; |
| 33 | }; |
| 34 | cpu_alert1: cpu_alert1 { |
| 35 | temperature = <75000>; /* millicelsius */ |
| 36 | hysteresis = <2000>; /* millicelsius */ |
| 37 | type = "passive"; |
| 38 | }; |
| 39 | cpu_crit: cpu_crit { |
| 40 | temperature = <100000>; /* millicelsius */ |
| 41 | hysteresis = <2000>; /* millicelsius */ |
| 42 | type = "critical"; |
| 43 | }; |
| 44 | }; |
| 45 | |
| 46 | cooling-maps { |
| 47 | map0 { |
| 48 | trip = <&cpu_alert0>; |
| 49 | cooling-device = |
| 50 | <&cpu0 THERMAL_NO_LIMIT 6>; |
| 51 | }; |
| 52 | map1 { |
| 53 | trip = <&cpu_alert1>; |
| 54 | cooling-device = |
| 55 | <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 56 | }; |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | gpu_thermal: gpu_thermal { |
| 61 | polling-delay-passive = <100>; /* milliseconds */ |
| 62 | polling-delay = <5000>; /* milliseconds */ |
| 63 | |
| 64 | /* sensor ID */ |
| 65 | thermal-sensors = <&tsadc 2>; |
| 66 | linux,hwmon; |
| 67 | |
| 68 | trips { |
| 69 | gpu_alert0: gpu_alert0 { |
| 70 | temperature = <80000>; /* millicelsius */ |
| 71 | hysteresis = <2000>; /* millicelsius */ |
| 72 | type = "passive"; |
| 73 | }; |
| 74 | gpu_crit: gpu_crit { |
| 75 | temperature = <100000>; /* millicelsius */ |
| 76 | hysteresis = <2000>; /* millicelsius */ |
| 77 | type = "critical"; |
| 78 | }; |
| 79 | }; |
| 80 | |
| 81 | cooling-maps { |
| 82 | map0 { |
| 83 | trip = <&gpu_alert0>; |
| 84 | cooling-device = |
| 85 | <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 86 | }; |
| 87 | }; |
| 88 | }; |