blob: 6771046434475b5af7c921c2bfb025b6a1523ca0 [file] [log] [blame]
Luca Weiss9b022442023-04-14 14:47:36 +02001#include <dt-bindings/thermal/thermal.h>
2
3&thermal_zones {
4 pmi632-tz {
5 cooling-maps {
6 trip0_bat {
7 trip = <&pmi632_trip0>;
8 cooling-device =
9 <&pmi632_charger (THERMAL_MAX_LIMIT-1)
10 (THERMAL_MAX_LIMIT-1)>;
11 };
12
13 trip1_bat {
14 trip = <&pmi632_trip1>;
15 cooling-device =
16 <&pmi632_charger THERMAL_MAX_LIMIT
17 THERMAL_MAX_LIMIT>;
18 };
19 };
20 };
21
22 pmi632-bcl-lvl0 {
23 cooling-maps {
24 cpu0_cdev {
25 trip = <&bcl_lvl0>;
26 cooling-device =
27 <&CPU0 (THERMAL_MAX_LIMIT-5)
28 (THERMAL_MAX_LIMIT-5)>;
29 };
30
31 cpu4_cdev {
32 trip = <&bcl_lvl0>;
33 cooling-device =
34 <&CPU4 (THERMAL_MAX_LIMIT-5)
35 (THERMAL_MAX_LIMIT-5)>;
36 };
37 };
38 };
39
40 pmi632-bcl-lvl1 {
41 cooling-maps {
42 cpu0_cdev {
43 trip = <&bcl_lvl1>;
44 cooling-device =
45 <&CPU0 (THERMAL_MAX_LIMIT-4)
46 (THERMAL_MAX_LIMIT-4)>;
47 };
48
49 cpu4_cdev {
50 trip = <&bcl_lvl1>;
51 cooling-device =
52 <&CPU4 (THERMAL_MAX_LIMIT-4)
53 (THERMAL_MAX_LIMIT-4)>;
54 };
55
56 cpu6_cdev {
57 trip = <&bcl_lvl1>;
58 cooling-device = <&cpu6_isolate 1 1>;
59 };
60
61 cpu7_cdev {
62 trip = <&bcl_lvl1>;
63 cooling-device = <&cpu7_isolate 1 1>;
64 };
65 };
66 };
67
68 pmi632-bcl-lvl2 {
69 cooling-maps {
70 cpu4_cdev {
71 trip = <&bcl_lvl2>;
72 cooling-device = <&cpu4_isolate 1 1>;
73 };
74
75 cpu5_cdev {
76 trip = <&bcl_lvl2>;
77 cooling-device = <&cpu5_isolate 1 1>;
78 };
79 };
80 };
81
82 soc {
83 cooling-maps {
84 soc_cpu0 {
85 trip = <&pmi632_low_soc>;
86 cooling-device =
87 <&CPU0 (THERMAL_MAX_LIMIT-4)
88 (THERMAL_MAX_LIMIT-4)>;
89 };
90
91 soc_cpu4 {
92 trip = <&pmi632_low_soc>;
93 cooling-device =
94 <&CPU4 (THERMAL_MAX_LIMIT-4)
95 (THERMAL_MAX_LIMIT-4)>;
96 };
97
98 soc_cpu6 {
99 trip = <&pmi632_low_soc>;
100 cooling-device = <&cpu6_isolate 1 1>;
101 };
102
103 soc_cpu7 {
104 trip = <&pmi632_low_soc>;
105 cooling-device = <&cpu7_isolate 1 1>;
106 };
107 };
108 };
109};