Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: exynos: Add GPU thermal zone cooling maps for Odroid XU3/XU4/HC1

Add trip points and cooling maps for GPU thermal zone for Odroid
XU3/XU4/HC1 boards. Trip points are based on the CPU thermal zone for the
those boards.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

authored by

Marek Szyprowski and committed by
Krzysztof Kozlowski
1c651356 b9631bc2

+89
+30
arch/arm/boot/dts/exynos5422-odroidhc1.dts
··· 215 215 }; 216 216 }; 217 217 }; 218 + gpu_thermal: gpu-thermal { 219 + thermal-sensors = <&tmu_gpu 0>; 220 + trips { 221 + gpu_alert0: gpu-alert-0 { 222 + temperature = <70000>; 223 + hysteresis = <10000>; 224 + type = "active"; 225 + }; 226 + gpu_alert1: gpu-alert-1 { 227 + temperature = <85000>; 228 + hysteresis = <10000>; 229 + type = "active"; 230 + }; 231 + gpu_crit0: gpu-crit-0 { 232 + temperature = <120000>; 233 + hysteresis = <0>; 234 + type = "critical"; 235 + }; 236 + }; 237 + cooling-maps { 238 + map0 { 239 + trip = <&gpu_alert0>; 240 + cooling-device = <&gpu 0 2>; 241 + }; 242 + map1 { 243 + trip = <&gpu_alert1>; 244 + cooling-device = <&gpu 3 6>; 245 + }; 246 + }; 247 + }; 218 248 }; 219 249 220 250 };
+59
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi
··· 357 357 }; 358 358 }; 359 359 }; 360 + gpu_thermal: gpu-thermal { 361 + thermal-sensors = <&tmu_gpu 0>; 362 + polling-delay-passive = <250>; 363 + polling-delay = <0>; 364 + trips { 365 + gpu_alert0: gpu-alert-0 { 366 + temperature = <50000>; 367 + hysteresis = <5000>; 368 + type = "active"; 369 + }; 370 + gpu_alert1: gpu-alert-1 { 371 + temperature = <60000>; 372 + hysteresis = <5000>; 373 + type = "active"; 374 + }; 375 + gpu_alert2: gpu-alert-2 { 376 + temperature = <70000>; 377 + hysteresis = <5000>; 378 + type = "active"; 379 + }; 380 + gpu_crit0: gpu-crit-0 { 381 + temperature = <120000>; 382 + hysteresis = <0>; 383 + type = "critical"; 384 + }; 385 + gpu_alert3: gpu-alert-3 { 386 + temperature = <70000>; 387 + hysteresis = <10000>; 388 + type = "passive"; 389 + }; 390 + gpu_alert4: gpu-alert-4 { 391 + temperature = <85000>; 392 + hysteresis = <10000>; 393 + type = "passive"; 394 + }; 395 + }; 396 + cooling-maps { 397 + map0 { 398 + trip = <&gpu_alert0>; 399 + cooling-device = <&fan0 0 1>; 400 + }; 401 + map1 { 402 + trip = <&gpu_alert1>; 403 + cooling-device = <&fan0 1 2>; 404 + }; 405 + map2 { 406 + trip = <&gpu_alert2>; 407 + cooling-device = <&fan0 2 3>; 408 + }; 409 + map3 { 410 + trip = <&gpu_alert3>; 411 + cooling-device = <&gpu 0 2>; 412 + }; 413 + map4 { 414 + trip = <&gpu_alert4>; 415 + cooling-device = <&gpu 3 6>; 416 + }; 417 + }; 418 + }; 360 419 }; 361 420 }; 362 421