summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/ti/k3-am62-thermal.dtsi
blob: 3c6a80aebd9f44ab1bd51386dbe6809043510aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// SPDX-License-Identifier: GPL-2.0-only OR MIT
/*
 * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/
 */

#include <dt-bindings/thermal/thermal.h>

thermal_zones: thermal-zones {
	main0_thermal: main0-thermal {
		polling-delay-passive = <250>;	/* milliSeconds */
		polling-delay = <500>;		/* milliSeconds */
		thermal-sensors = <&wkup_vtm0 0>;

		trips {
			main0_alert: main0-alert {
				temperature = <95000>;
				hysteresis = <2000>;
				type = "passive";
			};

			main0_crit: main0-crit {
				temperature = <105000>;	/* milliCelsius */
				hysteresis = <2000>;	/* milliCelsius */
				type = "critical";
			};
		};

		cooling-maps {
			map0 {
				trip = <&main0_alert>;
				cooling-device =
					<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
					<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
					<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
					<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
			};
		};
	};

	main1_thermal: main1-thermal {
		polling-delay-passive = <250>;	/* milliSeconds */
		polling-delay = <500>;		/* milliSeconds */
		thermal-sensors = <&wkup_vtm0 1>;

		trips {
			main1_alert: main1-alert {
				temperature = <95000>;
				hysteresis = <2000>;
				type = "passive";
			};

			main1_crit: main1-crit {
				temperature = <105000>;	/* milliCelsius */
				hysteresis = <2000>;	/* milliCelsius */
				type = "critical";
			};
		};

		cooling-maps {
			map0 {
				trip = <&main1_alert>;
				cooling-device =
					<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
					<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
					<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
					<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
			};
		};
	};
};