huangcm
2025-09-01 53d8e046ac1bf2ebe94f671983e3d3be059df91a
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/*
 * Allwinner Technology CO., Ltd. sun50iw6p1 soc perf1_v1_0 board.
 *
 * soc board support.
 */
 
/dts-v1/;
 
#include "sun50iw3p1.dtsi"
 
/{
 
   soc@03000000 {
       cpu_budget_cooling:cpu_budget_cool{
           compatible = "allwinner,budget_cooling";
           device_type = "cpu_budget_cooling";
           #cooling-cells = <2>;
           status = "okay";
           state_cnt = <6>;
           cluster_num = <1>;
           state0 = <1800000 4>;
           state1 = <1416000 4>;
           state2 = <1200000 4>;
           state3 = <1008000 4>;
           state4 = <1008000 2>;
           state5 = <1008000 1>;
       };
 
       gpu_cooling:gpu_cooling{
           compatible = "allwinner,gpu_cooling";
           device_type = "gpu_cooling";
           reg = <0x0 0x0 0x0 0x0>;
           #cooling-cells = <2>;
           status = "okay";
           state_cnt = <4>;
           state0 = <0>;
           state1 = <1>;
           state2 = <2>;
           state3 = <3>;
       };
 
       thermal-zones{
           cpu_thermal_zone{
 
               polling-delay-passive = <1000>;
               polling-delay = <1000>;
               thermal-sensors = <&ths_combine0 0>;
 
               trips{
                   cpu_trip0:t0{
                       temperature = <60000>;
                       type = "passive";
                       hysteresis = <0>;
                   };
                   cpu_trip1:t1{
                       temperature = <75000>;
                       type = "passive";
                       hysteresis = <0>;
                   };
                   cpu_trip2:t2{
                       temperature = <90000>;
                       type = "passive";
                       hysteresis = <0>;
                   };
                   cpu_trip3:t3{
                       temperature = <100000>;
                       type = "passive";
                       hysteresis = <0>;
                   };
                   cpu_trip4:t4{
                       temperature = <105000>;
                       type = "passive";
                       hysteresis = <0>;
                   };
                   crt_trip0:t5{
                       temperature = <110000>;
                       type = "critical";
                       hysteresis = <0>;
                   };
               };
 
               cooling-maps{
                   bind0{
                       contribution = <0>;
                       trip = <&cpu_trip0>;
                       cooling-device = <&cpu_budget_cooling 1 1>;
                   };
                   bind1{
                       contribution = <0>;
                       trip = <&cpu_trip1>;
                       cooling-device = <&cpu_budget_cooling 2 2>;
                   };
                   bind2{
                       contribution = <0>;
                       trip = <&cpu_trip2>;
                       cooling-device =
                       <&cpu_budget_cooling 3 3>;
                   };
                   bind3{
                       contribution = <0>;
                       trip = <&cpu_trip3>;
                       cooling-device =
                       <&cpu_budget_cooling 4 4>;
                   };
                   bind4{
                       contribution = <0>;
                       trip = <&cpu_trip4>;
                       cooling-device =
                       <&cpu_budget_cooling 5 5>;
                   };
               };
           };
           gpu_thermal_zone{
 
               polling-delay-passive = <1000>;
               polling-delay = <2000>;
               thermal-sensors = <&ths_combine1 1>;
 
               trips{
                   gpu_trip0:t0{
                       temperature = <95000>;
                       type = "passive";
                       hysteresis = <0>;
                   };
                   gpu_trip1:t1{
                       temperature = <100000>;
                       type = "passive";
                       hysteresis = <0>;
                   };
                   gpu_trip2:t2{
                       temperature = <105000>;
                       type = "passive";
                       hysteresis = <0>;
                   };
                   crt_trip1:t3{
                       temperature = <110000>;
                       type = "critical";
                       hysteresis = <0>;
                   };
               };
 
               cooling-maps{
                   bind0{
                       contribution = <0>;
                       trip = <&gpu_trip0>;
                       cooling-device = <&gpu_cooling 1 1>;
                   };
                   bind1{
                       contribution = <0>;
                       trip = <&gpu_trip1>;
                       cooling-device = <&gpu_cooling 2 2>;
                   };
                   bind2{
                       contribution = <0>;
                       trip = <&gpu_trip2>;
                       cooling-device = <&gpu_cooling 3 3>;
                   };
               };
           };
       };
 
 
   };
 
   chosen {
       bootargs = "earlyprintk=sunxi-uart,0x05000000 loglevel=8 initcall_debug=1 console=ttyS0 init=/init";
   };
};