blob: b3731fc98d440c2684817c2ad4a0c125f8debde0 [file] [log] [blame]
David Chao91f89372022-08-19 15:39:19 +08001{
2 "Sensors":[
3 {
TeYuan Wangcd3de182022-08-29 10:20:37 +08004 "Name":"neutral_therm",
5 "Type":"UNKNOWN",
6 "TempPath":"/dev/thermal/tz-by-name/neutral_therm/tz_temp",
David Chao91f89372022-08-19 15:39:19 +08007 "Multiplier":0.001
TeYuan Wangcd3de182022-08-29 10:20:37 +08008 },
9 {
10 "Name":"quiet_therm",
11 "Type":"UNKNOWN",
12 "TempPath":"/dev/thermal/tz-by-name/quiet_therm/tz_temp",
13 "Multiplier":0.001
14 },
15 {
16 "Name":"skin_therm",
17 "Type":"UNKNOWN",
TeYuan Wang067fd6c2023-01-11 23:46:31 +080018 "HotThreshold":["NAN", 32.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
TeYuan Wangcd3de182022-08-29 10:20:37 +080019 "TempPath":"/dev/thermal/tz-by-name/skin_therm/tz_temp",
TeYuan Wang14e2d002022-12-15 13:04:28 +080020 "Multiplier":0.001,
21 "PollingDelay":300000,
22 "PassiveDelay":7000
TeYuan Wangcd3de182022-08-29 10:20:37 +080023 },
24 {
25 "Name":"usb_pwr_therm",
26 "Type":"UNKNOWN",
27 "TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/tz_temp",
28 "Multiplier":0.001
29 },
30 {
31 "Name":"usb_pwr_therm2",
32 "Type":"UNKNOWN",
33 "HotThreshold":["NAN", 40.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
34 "TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/tz_temp",
35 "Multiplier":0.001,
TeYuan Wang14e2d002022-12-15 13:04:28 +080036 "PollingDelay":300000,
TeYuan Wangcd3de182022-08-29 10:20:37 +080037 "PassiveDelay":7000
38 },
39 {
40 "Name":"inner_disp_therm",
41 "Type":"UNKNOWN",
42 "TempPath":"/dev/thermal/tz-by-name/inner_disp_therm/tz_temp",
43 "Multiplier":0.001
44 },
45 {
46 "Name":"outer_disp_therm",
47 "Type":"UNKNOWN",
48 "TempPath":"/dev/thermal/tz-by-name/outer_disp_therm/tz_temp",
49 "Multiplier":0.001
50 },
51 {
52 "Name":"gnss_tcxo_therm",
53 "Type":"UNKNOWN",
54 "TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/tz_temp",
55 "Multiplier":0.001
56 },
57 {
TeYuan Wang64ba8ee2022-12-29 20:26:32 +080058 "Name":"inner-disp",
TeYuan Wangcd3de182022-08-29 10:20:37 +080059 "Type":"UNKNOWN",
TeYuan Wang64ba8ee2022-12-29 20:26:32 +080060 "Multiplier":1
TeYuan Wangcd3de182022-08-29 10:20:37 +080061 },
62 {
TeYuan Wang66d98f42023-07-05 15:03:43 -070063 "Name":"OPEN_WEIGHT",
TeYuan Wangcd3de182022-08-29 10:20:37 +080064 "Type":"UNKNOWN",
65 "Hidden":true,
66 "VirtualSensor":true,
67 "Formula":"COUNT_THRESHOLD",
TeYuan Wang66d98f42023-07-05 15:03:43 -070068 "StepRatio":0.2,
TeYuan Wang64ba8ee2022-12-29 20:26:32 +080069 "Combination":["inner-disp"],
70 "Coefficient":[1.0],
TeYuan Wang66d98f42023-07-05 15:03:43 -070071 "Multiplier":1,
72 "PassiveDelay":7000
TeYuan Wangcd3de182022-08-29 10:20:37 +080073 },
74 {
TeYuan Wang66d98f42023-07-05 15:03:43 -070075 "Name":"CLOSE_WEIGHT",
TeYuan Wangcd3de182022-08-29 10:20:37 +080076 "Type":"UNKNOWN",
77 "Hidden":true,
78 "VirtualSensor":true,
TeYuan Wang66d98f42023-07-05 15:03:43 -070079 "Formula":"WEIGHTED_AVG",
80 "Combination":["1", "OPEN_WEIGHT"],
81 "CombinationType":["CONSTANT", "SENSOR"],
82 "Coefficient":[1.0, -1.0],
TeYuan Wangcd3de182022-08-29 10:20:37 +080083 "Multiplier":1
84 },
85 {
TeYuan Wang85b00d62022-10-28 17:57:34 +080086 "Name":"CLOSE-SUB2",
87 "Type":"UNKNOWN",
88 "Hidden":true,
89 "VirtualSensor":true,
90 "Formula":"WEIGHTED_AVG",
TeYuan Wang2a503912023-05-25 21:47:16 -070091 "Combination":["neutral_therm", "skin_therm", "usb_pwr_therm", "gnss_tcxo_therm"],
92 "Coefficient":[0.259, 0.652, -0.161, 0.03],
93 "Offset":8450,
TeYuan Wang85b00d62022-10-28 17:57:34 +080094 "Multiplier":0.001
95 },
96 {
97 "Name":"CLOSE-SUB3",
98 "Type":"UNKNOWN",
99 "Hidden":true,
100 "VirtualSensor":true,
101 "Formula":"WEIGHTED_AVG",
TeYuan Wang067fd6c2023-01-11 23:46:31 +0800102 "Combination":["neutral_therm", "quiet_therm", "skin_therm", "usb_pwr_therm", "gnss_tcxo_therm"],
103 "Coefficient":[0.05, 0.05, 1.25, 0.15, -0.6],
104 "Offset":270,
TeYuan Wang85b00d62022-10-28 17:57:34 +0800105 "Multiplier":0.001
106 },
107 {
108 "Name":"CLOSE-SUB4",
109 "Type":"UNKNOWN",
110 "Hidden":true,
111 "VirtualSensor":true,
112 "Formula":"WEIGHTED_AVG",
TeYuan Wang067fd6c2023-01-11 23:46:31 +0800113 "Combination":["neutral_therm", "quiet_therm", "skin_therm", "usb_pwr_therm", "usb_pwr_therm2"],
114 "Coefficient":[0.4, 1.65, -1.2, 0.6, -0.55],
115 "Offset":2350,
TeYuan Wang85b00d62022-10-28 17:57:34 +0800116 "Multiplier":0.001
117 },
118 {
119 "Name":"CLOSE-SUB5",
120 "Type":"UNKNOWN",
121 "Hidden":true,
122 "VirtualSensor":true,
123 "Formula":"WEIGHTED_AVG",
TeYuan Wang067fd6c2023-01-11 23:46:31 +0800124 "Combination":["neutral_therm", "quiet_therm", "skin_therm", "usb_pwr_therm", "usb_pwr_therm2", "outer_disp_therm", "gnss_tcxo_therm"],
125 "Coefficient":[-1.3, 1.05, 0.65, 0.15, 1, -0.05, -0.5],
126 "Offset":120,
127 "Multiplier":0.001
128 },
129 {
130 "Name":"CLOSE-SUB6",
131 "Type":"UNKNOWN",
132 "Hidden":true,
133 "VirtualSensor":true,
134 "Formula":"WEIGHTED_AVG",
135 "Combination":["neutral_therm", "quiet_therm", "skin_therm", "usb_pwr_therm", "inner_disp_therm", "gnss_tcxo_therm"],
136 "Coefficient":[-0.45, -1.2, -0.8, 0.65, 2.5, 0.2],
137 "Offset":1820,
TeYuan Wang85b00d62022-10-28 17:57:34 +0800138 "Multiplier":0.001
139 },
140 {
141 "Name":"CLOSE-SUB-MAX",
TeYuan Wangcd3de182022-08-29 10:20:37 +0800142 "Type":"UNKNOWN",
143 "Hidden":true,
144 "VirtualSensor":true,
145 "Formula":"MAXIMUM",
TeYuan Wang2a503912023-05-25 21:47:16 -0700146 "Combination":["CLOSE-SUB2", "CLOSE-SUB3", "CLOSE-SUB4", "CLOSE-SUB5"],
147 "Coefficient":[1.0, 1.0, 1.0, 1.0],
TeYuan Wangcd3de182022-08-29 10:20:37 +0800148 "Multiplier":0.001
149 },
150 {
TeYuan Wang85b00d62022-10-28 17:57:34 +0800151 "Name":"OPEN-SUB1",
TeYuan Wangcd3de182022-08-29 10:20:37 +0800152 "Type":"UNKNOWN",
153 "Hidden":true,
154 "VirtualSensor":true,
155 "Formula":"WEIGHTED_AVG",
TeYuan Wang067fd6c2023-01-11 23:46:31 +0800156 "Combination":["neutral_therm", "skin_therm", "usb_pwr_therm", "inner_disp_therm"],
157 "Coefficient":[-0.05, 0.3, 0.3, 0.35],
158 "Offset":3740,
TeYuan Wangcd3de182022-08-29 10:20:37 +0800159 "Multiplier":0.001
160 },
161 {
TeYuan Wang85b00d62022-10-28 17:57:34 +0800162 "Name":"OPEN-SUB2",
TeYuan Wangcd3de182022-08-29 10:20:37 +0800163 "Type":"UNKNOWN",
164 "Hidden":true,
165 "VirtualSensor":true,
166 "Formula":"WEIGHTED_AVG",
TeYuan Wang2a503912023-05-25 21:47:16 -0700167 "Combination":["skin_therm", "usb_pwr_therm", "inner_disp_therm", "gnss_tcxo_therm"],
168 "Coefficient":[0.385, 0.075, 0.348, 0.302],
169 "Offset":-4950,
TeYuan Wangcd3de182022-08-29 10:20:37 +0800170 "Multiplier":0.001
171 },
172 {
TeYuan Wang85b00d62022-10-28 17:57:34 +0800173 "Name":"OPEN-SUB3",
174 "Type":"UNKNOWN",
175 "Hidden":true,
176 "VirtualSensor":true,
177 "Formula":"WEIGHTED_AVG",
TeYuan Wang067fd6c2023-01-11 23:46:31 +0800178 "Combination":["neutral_therm", "quiet_therm", "skin_therm", "usb_pwr_therm", "inner_disp_therm", "gnss_tcxo_therm"],
179 "Coefficient":[-2, 1.4, 1.4, -0.4, 0.25, 0.25],
180 "Offset":-4120,
TeYuan Wang85b00d62022-10-28 17:57:34 +0800181 "Multiplier":0.001
182 },
183 {
184 "Name":"OPEN-SUB4",
185 "Type":"UNKNOWN",
186 "Hidden":true,
187 "VirtualSensor":true,
188 "Formula":"WEIGHTED_AVG",
TeYuan Wang067fd6c2023-01-11 23:46:31 +0800189 "Combination":["neutral_therm", "quiet_therm", "skin_therm", "usb_pwr_therm", "usb_pwr_therm2", "inner_disp_therm", "gnss_tcxo_therm"],
190 "Coefficient":[0.3, 1.8, 0.55, 0.4, -1.2, -0.15, -0.8],
191 "Offset":-540,
TeYuan Wang85b00d62022-10-28 17:57:34 +0800192 "Multiplier":0.001
193 },
194 {
195 "Name":"OPEN-SUB5",
196 "Type":"UNKNOWN",
197 "Hidden":true,
198 "VirtualSensor":true,
199 "Formula":"WEIGHTED_AVG",
TeYuan Wang1237bf62023-07-05 23:26:34 -0700200 "Combination":["quiet_therm", "skin_therm", "usb_pwr_therm"],
201 "Coefficient":[0.429, 0.314, 0.205],
202 "Offset":2600,
TeYuan Wang85b00d62022-10-28 17:57:34 +0800203 "Multiplier":0.001
204 },
205 {
206 "Name":"OPEN-SUB-MAX",
TeYuan Wangcd3de182022-08-29 10:20:37 +0800207 "Type":"UNKNOWN",
208 "Hidden":true,
209 "VirtualSensor":true,
210 "Formula":"MAXIMUM",
TeYuan Wang85b00d62022-10-28 17:57:34 +0800211 "Combination":["OPEN-SUB1", "OPEN-SUB2", "OPEN-SUB3", "OPEN-SUB4", "OPEN-SUB5"],
212 "Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0],
TeYuan Wangcd3de182022-08-29 10:20:37 +0800213 "Multiplier":0.001
214 },
215 {
TeYuan Wangcd3de182022-08-29 10:20:37 +0800216 "Name":"VIRTUAL-SKIN-CHARGE",
217 "Type":"UNKNOWN",
TeYuan Wangc8097622023-02-17 20:31:20 +0800218 "Version":"0.3",
TeYuan Wangcd3de182022-08-29 10:20:37 +0800219 "Hidden":true,
220 "VirtualSensor":true,
221 "TriggerSensor":"skin_therm",
TeYuan Wang66d98f42023-07-05 15:03:43 -0700222 "Formula":"WEIGHTED_AVG",
223 "Combination":["OPEN-SUB-MAX", "CLOSE-SUB-MAX"],
224 "Coefficient":["OPEN_WEIGHT", "CLOSE_WEIGHT"],
225 "CoefficientType":["SENSOR", "SENSOR"],
TeYuan Wang7b4560d2023-02-08 17:41:50 +0800226 "HotThreshold":["NAN", 25.0, 39.0, 41.0, 45.0, 46.5, 54.0],
TeYuan Wang6eedadb2023-01-31 16:47:50 +0800227 "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.4, 1.9],
TeYuan Wangcd3de182022-08-29 10:20:37 +0800228 "Multiplier":0.001,
TeYuan Wang7e31fda2022-12-06 17:31:36 +0800229 "PollingDelay":60000,
230 "PassiveDelay":60000,
TeYuan Wangcd3de182022-08-29 10:20:37 +0800231 "PIDInfo": {
TeYuan Wang7e31fda2022-12-06 17:31:36 +0800232 "K_Po":["NAN", "NAN", 1000, "NAN", "NAN", "NAN", "NAN"],
233 "K_Pu":["NAN", "NAN", 30, "NAN", "NAN", "NAN", "NAN"],
TeYuan Wangc8097622023-02-17 20:31:20 +0800234 "K_I":["NAN", "NAN", 40, "NAN", "NAN", "NAN", "NAN"],
TeYuan Wangcd3de182022-08-29 10:20:37 +0800235 "K_D":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"],
TeYuan Wang7e31fda2022-12-06 17:31:36 +0800236 "I_Max":["NAN", "NAN", 1500, "NAN", "NAN", "NAN", "NAN"],
TeYuan Wangc8097622023-02-17 20:31:20 +0800237 "S_Power":["NAN", "NAN", 3000, "NAN", "NAN", "NAN", "NAN"],
TeYuan Wang7e31fda2022-12-06 17:31:36 +0800238 "MinAllocPower":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"],
239 "MaxAllocPower":["NAN", "NAN", 10000, "NAN", "NAN", "NAN", "NAN"],
TeYuan Wang7b4560d2023-02-08 17:41:50 +0800240 "I_Cutoff":["NAN", "NAN", 14, "NAN", "NAN", "NAN", "NAN"],
TeYuan Wangc8097622023-02-17 20:31:20 +0800241 "I_Default":1500
TeYuan Wangcd3de182022-08-29 10:20:37 +0800242 },
243 "ExcludedPowerInfo": [
244 {
245 "PowerRail": "PARTIAL_SYSTEM_POWER",
TeYuan Wang7e31fda2022-12-06 17:31:36 +0800246 "PowerWeight": [1.6, 1.6, 1.6, 1.6, 1.6, 1.6, 1.6]
TeYuan Wangcd3de182022-08-29 10:20:37 +0800247 }
248 ],
249 "BindedCdevInfo": [
250 {
251 "CdevRequest": "chg_mdis",
252 "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
253 "MaxReleaseStep": 1,
TeYuan Wangc8097622023-02-17 20:31:20 +0800254 "MaxThrottleStep": 2,
TeYuan Wang7e31fda2022-12-06 17:31:36 +0800255 "CdevCeiling": [0, 10, 11, 11, 12, 12, 12],
TeYuan Wangcd3de182022-08-29 10:20:37 +0800256 "LimitInfo": [0, 0, 0, 0, 0, 12, 12]
257 }
258 ]
259 },
260 {
261 "Name":"USB2-MINUS-USB",
262 "Type":"UNKNOWN",
263 "Hidden":true,
264 "VirtualSensor":true,
265 "TriggerSensor": "usb_pwr_therm2",
266 "Formula":"WEIGHTED_AVG",
267 "Combination":["usb_pwr_therm2", "usb_pwr_therm"],
268 "Coefficient":[1.0, -1.0],
TeYuan Wang14e2d002022-12-15 13:04:28 +0800269 "Multiplier":0.001
TeYuan Wangcd3de182022-08-29 10:20:37 +0800270 },
271 {
272 "Name":"VIRTUAL-USB-THROTTLING",
TeYuan Wang14e2d002022-12-15 13:04:28 +0800273 "Type":"UNKNOWN",
TeYuan Wangcd3de182022-08-29 10:20:37 +0800274 "Hidden":true,
275 "VirtualSensor":true,
276 "Formula":"COUNT_THRESHOLD",
277 "TriggerSensor": "usb_pwr_therm2",
278 "Combination":["usb_pwr_therm2", "USB2-MINUS-USB"],
279 "Coefficient":[40000, 10000],
280 "HotThreshold":["NAN", "NAN", "NAN", "NAN", "2.0", "NAN", "NAN"],
281 "BindedCdevInfo": [
282 {
283 "CdevRequest": "usbc-port",
284 "LimitInfo": [0, 0, 0, 0, 1, 1, 1]
285 }
286 ],
287 "Multiplier":1,
TeYuan Wang14e2d002022-12-15 13:04:28 +0800288 "PollingDelay":300000,
TeYuan Wangcd3de182022-08-29 10:20:37 +0800289 "PassiveDelay":7000
290 }
291 ],
292 "CoolingDevices":[
293 {
294 "Name":"chg_mdis",
TeYuan Wang7e31fda2022-12-06 17:31:36 +0800295 "Type":"BATTERY",
296 "State2Power":[4122, 3623, 3308, 2824, 2524, 2241, 1864, 1635, 1319, 932, 632, 344, 0]
TeYuan Wangcd3de182022-08-29 10:20:37 +0800297 },
298 {
299 "Name":"usbc-port",
300 "Type":"BATTERY"
301 }
302 ],
303 "PowerRails":[
304 {
TeYuan Wangcd3de182022-08-29 10:20:37 +0800305 "Name":"PARTIAL_SYSTEM_POWER",
306 "VirtualRails":true,
307 "Formula":"WEIGHTED_AVG",
TeYuan Wang7e31fda2022-12-06 17:31:36 +0800308 "Combination":["VSYS_PWR_MMWAVE", "VSYS_PWR_MODEM", "VSYS_PWR_RFFE", "S1M_VDD_MIF", "S2M_VDD_CPUCL2", "S3M_VDD_CPUCL1", "S4M_VDD_CPUCL0", "S5M_VDD_INT", "S8M_LLDO2",
309 "S10M_VDD_TPU", "VSYS_PWR_DISPLAY", "VSYS_PWR_WLAN_BT", "VSYS_PWR_CAM", "S1S_VDD_CAM","S2S_VDD_G3D", "S4S_VDD2H_MEM", "S8S_VDD_G3D_L2", "L2S_PLL_MIPI_UFS"],
310 "Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
311 "PowerSampleDelay":60000,
312 "PowerSampleCount":1
David Chao91f89372022-08-19 15:39:19 +0800313 }
314 ]
315}