0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Device tree sources for Exynos5433 thermal zone
0004 *
0005 * Copyright (c) 2016 Chanwoo Choi <cw00.choi@samsung.com>
0006 */
0007
0008 #include <dt-bindings/thermal/thermal.h>
0009
0010 / {
0011 thermal-zones {
0012 atlas0_thermal: atlas0-thermal {
0013 thermal-sensors = <&tmu_atlas0>;
0014 polling-delay-passive = <0>;
0015 polling-delay = <0>;
0016 trips {
0017 atlas0_alert_0: atlas0-alert-0 {
0018 temperature = <65000>; /* millicelsius */
0019 hysteresis = <1000>; /* millicelsius */
0020 type = "active";
0021 };
0022 atlas0_alert_1: atlas0-alert-1 {
0023 temperature = <70000>; /* millicelsius */
0024 hysteresis = <1000>; /* millicelsius */
0025 type = "active";
0026 };
0027 atlas0_alert_2: atlas0-alert-2 {
0028 temperature = <75000>; /* millicelsius */
0029 hysteresis = <1000>; /* millicelsius */
0030 type = "active";
0031 };
0032 atlas0_alert_3: atlas0-alert-3 {
0033 temperature = <80000>; /* millicelsius */
0034 hysteresis = <1000>; /* millicelsius */
0035 type = "active";
0036 };
0037 atlas0_alert_4: atlas0-alert-4 {
0038 temperature = <85000>; /* millicelsius */
0039 hysteresis = <1000>; /* millicelsius */
0040 type = "active";
0041 };
0042 atlas0_alert_5: atlas0-alert-5 {
0043 temperature = <90000>; /* millicelsius */
0044 hysteresis = <1000>; /* millicelsius */
0045 type = "active";
0046 };
0047 atlas0_alert_6: atlas0-alert-6 {
0048 temperature = <95000>; /* millicelsius */
0049 hysteresis = <1000>; /* millicelsius */
0050 type = "active";
0051 };
0052 };
0053
0054 cooling-maps {
0055 map0 {
0056 /* Set maximum frequency as 1800MHz */
0057 trip = <&atlas0_alert_0>;
0058 cooling-device = <&cpu4 1 2>, <&cpu5 1 2>,
0059 <&cpu6 1 2>, <&cpu7 1 2>;
0060 };
0061 map1 {
0062 /* Set maximum frequency as 1700MHz */
0063 trip = <&atlas0_alert_1>;
0064 cooling-device = <&cpu4 2 3>, <&cpu5 2 3>,
0065 <&cpu6 2 3>, <&cpu7 2 3>;
0066 };
0067 map2 {
0068 /* Set maximum frequency as 1600MHz */
0069 trip = <&atlas0_alert_2>;
0070 cooling-device = <&cpu4 3 4>, <&cpu5 3 4>,
0071 <&cpu6 3 4>, <&cpu7 3 4>;
0072 };
0073 map3 {
0074 /* Set maximum frequency as 1500MHz */
0075 trip = <&atlas0_alert_3>;
0076 cooling-device = <&cpu4 4 5>, <&cpu5 4 5>,
0077 <&cpu6 4 5>, <&cpu7 4 5>;
0078 };
0079 map4 {
0080 /* Set maximum frequency as 1400MHz */
0081 trip = <&atlas0_alert_4>;
0082 cooling-device = <&cpu4 5 7>, <&cpu5 5 7>,
0083 <&cpu6 5 7>, <&cpu7 5 7>;
0084 };
0085 map5 {
0086 /* Set maximum frequencyas 1200MHz */
0087 trip = <&atlas0_alert_5>;
0088 cooling-device = <&cpu4 7 9>, <&cpu5 7 9>,
0089 <&cpu6 7 9>, <&cpu7 7 9>;
0090 };
0091 map6 {
0092 /* Set maximum frequency as 1000MHz */
0093 trip = <&atlas0_alert_6>;
0094 cooling-device = <&cpu4 9 14>, <&cpu5 9 14>,
0095 <&cpu6 9 14>, <&cpu7 9 14>;
0096 };
0097 };
0098 };
0099
0100 atlas1_thermal: atlas1-thermal {
0101 thermal-sensors = <&tmu_atlas1>;
0102 polling-delay-passive = <0>;
0103 polling-delay = <0>;
0104 trips {
0105 atlas1_alert_0: atlas1-alert-0 {
0106 temperature = <65000>; /* millicelsius */
0107 hysteresis = <1000>; /* millicelsius */
0108 type = "active";
0109 };
0110 atlas1_alert_1: atlas1-alert-1 {
0111 temperature = <70000>; /* millicelsius */
0112 hysteresis = <1000>; /* millicelsius */
0113 type = "active";
0114 };
0115 atlas1_alert_2: atlas1-alert-2 {
0116 temperature = <75000>; /* millicelsius */
0117 hysteresis = <1000>; /* millicelsius */
0118 type = "active";
0119 };
0120 atlas1_alert_3: atlas1-alert-3 {
0121 temperature = <80000>; /* millicelsius */
0122 hysteresis = <1000>; /* millicelsius */
0123 type = "active";
0124 };
0125 atlas1_alert_4: atlas1-alert-4 {
0126 temperature = <85000>; /* millicelsius */
0127 hysteresis = <1000>; /* millicelsius */
0128 type = "active";
0129 };
0130 atlas1_alert_5: atlas1-alert-5 {
0131 temperature = <90000>; /* millicelsius */
0132 hysteresis = <1000>; /* millicelsius */
0133 type = "active";
0134 };
0135 atlas1_alert_6: atlas1-alert-6 {
0136 temperature = <95000>; /* millicelsius */
0137 hysteresis = <1000>; /* millicelsius */
0138 type = "active";
0139 };
0140 };
0141 };
0142
0143 g3d_thermal: g3d-thermal {
0144 thermal-sensors = <&tmu_g3d>;
0145 polling-delay-passive = <0>;
0146 polling-delay = <0>;
0147 trips {
0148 g3d_alert_0: g3d-alert-0 {
0149 temperature = <70000>; /* millicelsius */
0150 hysteresis = <1000>; /* millicelsius */
0151 type = "active";
0152 };
0153 g3d_alert_1: g3d-alert-1 {
0154 temperature = <75000>; /* millicelsius */
0155 hysteresis = <1000>; /* millicelsius */
0156 type = "active";
0157 };
0158 g3d_alert_2: g3d-alert-2 {
0159 temperature = <80000>; /* millicelsius */
0160 hysteresis = <1000>; /* millicelsius */
0161 type = "active";
0162 };
0163 g3d_alert_3: g3d-alert-3 {
0164 temperature = <85000>; /* millicelsius */
0165 hysteresis = <1000>; /* millicelsius */
0166 type = "active";
0167 };
0168 g3d_alert_4: g3d-alert-4 {
0169 temperature = <90000>; /* millicelsius */
0170 hysteresis = <1000>; /* millicelsius */
0171 type = "active";
0172 };
0173 g3d_alert_5: g3d-alert-5 {
0174 temperature = <95000>; /* millicelsius */
0175 hysteresis = <1000>; /* millicelsius */
0176 type = "active";
0177 };
0178 g3d_alert_6: g3d-alert-6 {
0179 temperature = <100000>; /* millicelsius */
0180 hysteresis = <1000>; /* millicelsius */
0181 type = "active";
0182 };
0183 };
0184 };
0185
0186 apollo_thermal: apollo-thermal {
0187 thermal-sensors = <&tmu_apollo>;
0188 polling-delay-passive = <0>;
0189 polling-delay = <0>;
0190 trips {
0191 apollo_alert_0: apollo-alert-0 {
0192 temperature = <65000>; /* millicelsius */
0193 hysteresis = <1000>; /* millicelsius */
0194 type = "active";
0195 };
0196 apollo_alert_1: apollo-alert-1 {
0197 temperature = <70000>; /* millicelsius */
0198 hysteresis = <1000>; /* millicelsius */
0199 type = "active";
0200 };
0201 apollo_alert_2: apollo-alert-2 {
0202 temperature = <75000>; /* millicelsius */
0203 hysteresis = <1000>; /* millicelsius */
0204 type = "active";
0205 };
0206 apollo_alert_3: apollo-alert-3 {
0207 temperature = <80000>; /* millicelsius */
0208 hysteresis = <1000>; /* millicelsius */
0209 type = "active";
0210 };
0211 apollo_alert_4: apollo-alert-4 {
0212 temperature = <85000>; /* millicelsius */
0213 hysteresis = <1000>; /* millicelsius */
0214 type = "active";
0215 };
0216 apollo_alert_5: apollo-alert-5 {
0217 temperature = <90000>; /* millicelsius */
0218 hysteresis = <1000>; /* millicelsius */
0219 type = "active";
0220 };
0221 apollo_alert_6: apollo-alert-6 {
0222 temperature = <95000>; /* millicelsius */
0223 hysteresis = <1000>; /* millicelsius */
0224 type = "active";
0225 };
0226 };
0227
0228 cooling-maps {
0229 map0 {
0230 /* Set maximum frequency as 1200MHz */
0231 trip = <&apollo_alert_2>;
0232 cooling-device = <&cpu0 1 2>, <&cpu1 1 2>,
0233 <&cpu2 1 2>, <&cpu3 1 2>;
0234 };
0235 map1 {
0236 /* Set maximum frequency as 1100MHz */
0237 trip = <&apollo_alert_3>;
0238 cooling-device = <&cpu0 2 3>, <&cpu1 2 3>,
0239 <&cpu2 2 3>, <&cpu3 2 3>;
0240 };
0241 map2 {
0242 /* Set maximum frequency as 1000MHz */
0243 trip = <&apollo_alert_4>;
0244 cooling-device = <&cpu0 3 4>, <&cpu1 3 4>,
0245 <&cpu2 3 4>, <&cpu3 3 4>;
0246 };
0247 map3 {
0248 /* Set maximum frequency as 900MHz */
0249 trip = <&apollo_alert_5>;
0250 cooling-device = <&cpu0 4 5>, <&cpu1 4 5>,
0251 <&cpu2 4 5>, <&cpu3 4 5>;
0252 };
0253 map4 {
0254 /* Set maximum frequency as 800MHz */
0255 trip = <&apollo_alert_6>;
0256 cooling-device = <&cpu0 5 9>, <&cpu1 5 9>,
0257 <&cpu2 5 9>, <&cpu3 5 9>;
0258 };
0259 };
0260 };
0261
0262 isp_thermal: isp-thermal {
0263 thermal-sensors = <&tmu_isp>;
0264 polling-delay-passive = <0>;
0265 polling-delay = <0>;
0266 trips {
0267 isp_alert_0: isp-alert-0 {
0268 temperature = <80000>; /* millicelsius */
0269 hysteresis = <1000>; /* millicelsius */
0270 type = "active";
0271 };
0272 isp_alert_1: isp-alert-1 {
0273 temperature = <85000>; /* millicelsius */
0274 hysteresis = <1000>; /* millicelsius */
0275 type = "active";
0276 };
0277 isp_alert_2: isp-alert-2 {
0278 temperature = <90000>; /* millicelsius */
0279 hysteresis = <1000>; /* millicelsius */
0280 type = "active";
0281 };
0282 isp_alert_3: isp-alert-3 {
0283 temperature = <95000>; /* millicelsius */
0284 hysteresis = <1000>; /* millicelsius */
0285 type = "active";
0286 };
0287 isp_alert_4: isp-alert-4 {
0288 temperature = <100000>; /* millicelsius */
0289 hysteresis = <1000>; /* millicelsius */
0290 type = "active";
0291 };
0292 isp_alert_5: isp-alert-5 {
0293 temperature = <105000>; /* millicelsius */
0294 hysteresis = <1000>; /* millicelsius */
0295 type = "active";
0296 };
0297 isp_alert_6: isp-alert-6 {
0298 temperature = <110000>; /* millicelsius */
0299 hysteresis = <1000>; /* millicelsius */
0300 type = "active";
0301 };
0302 };
0303 };
0304 };
0305 };