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