1{
2    "Sensors":[
3        {
4            "Name":"neutral_therm",
5            "Type":"UNKNOWN",
6            "TempPath":"/dev/thermal/tz-by-name/neutral_therm/tz_temp",
7            "Multiplier":0.001
8        },
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",
18            "HotThreshold":["NAN", 32.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
19            "TempPath":"/dev/thermal/tz-by-name/skin_therm/tz_temp",
20            "Multiplier":0.001,
21            "PollingDelay":300000,
22            "PassiveDelay":7000
23        },
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,
36            "PollingDelay":300000,
37            "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        {
58            "Name":"inner-disp",
59            "Type":"UNKNOWN",
60            "Multiplier":1
61        },
62        {
63            "Name":"OPEN_WEIGHT",
64            "Type":"UNKNOWN",
65            "Hidden":true,
66            "VirtualSensor":true,
67            "Formula":"COUNT_THRESHOLD",
68            "StepRatio":0.2,
69            "Combination":["inner-disp"],
70            "Coefficient":[1.0],
71            "Multiplier":1,
72            "PassiveDelay":7000
73        },
74        {
75            "Name":"CLOSE_WEIGHT",
76            "Type":"UNKNOWN",
77            "Hidden":true,
78            "VirtualSensor":true,
79            "Formula":"WEIGHTED_AVG",
80            "Combination":["1", "OPEN_WEIGHT"],
81            "CombinationType":["CONSTANT", "SENSOR"],
82            "Coefficient":[1.0, -1.0],
83            "Multiplier":1
84        },
85        {
86            "Name":"CLOSE-SUB2",
87            "Type":"UNKNOWN",
88            "Hidden":true,
89            "VirtualSensor":true,
90            "Formula":"WEIGHTED_AVG",
91            "Combination":["neutral_therm", "skin_therm", "usb_pwr_therm", "gnss_tcxo_therm"],
92            "Coefficient":[0.259, 0.652, -0.161, 0.03],
93            "Offset":8450,
94            "Multiplier":0.001
95        },
96        {
97            "Name":"CLOSE-SUB3",
98            "Type":"UNKNOWN",
99            "Hidden":true,
100            "VirtualSensor":true,
101            "Formula":"WEIGHTED_AVG",
102            "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,
105            "Multiplier":0.001
106        },
107        {
108            "Name":"CLOSE-SUB4",
109            "Type":"UNKNOWN",
110            "Hidden":true,
111            "VirtualSensor":true,
112            "Formula":"WEIGHTED_AVG",
113            "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,
116            "Multiplier":0.001
117        },
118        {
119            "Name":"CLOSE-SUB5",
120            "Type":"UNKNOWN",
121            "Hidden":true,
122            "VirtualSensor":true,
123            "Formula":"WEIGHTED_AVG",
124            "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,
138            "Multiplier":0.001
139        },
140        {
141            "Name":"CLOSE-SUB-MAX",
142            "Type":"UNKNOWN",
143            "Hidden":true,
144            "VirtualSensor":true,
145            "Formula":"MAXIMUM",
146            "Combination":["CLOSE-SUB2", "CLOSE-SUB3", "CLOSE-SUB4", "CLOSE-SUB5"],
147            "Coefficient":[1.0, 1.0, 1.0, 1.0],
148            "Multiplier":0.001
149        },
150        {
151            "Name":"OPEN-SUB1",
152            "Type":"UNKNOWN",
153            "Hidden":true,
154            "VirtualSensor":true,
155            "Formula":"WEIGHTED_AVG",
156            "Combination":["neutral_therm", "skin_therm", "usb_pwr_therm", "inner_disp_therm"],
157            "Coefficient":[-0.05, 0.3, 0.3, 0.35],
158            "Offset":3740,
159            "Multiplier":0.001
160        },
161        {
162            "Name":"OPEN-SUB2",
163            "Type":"UNKNOWN",
164            "Hidden":true,
165            "VirtualSensor":true,
166            "Formula":"WEIGHTED_AVG",
167            "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,
170            "Multiplier":0.001
171        },
172        {
173            "Name":"OPEN-SUB3",
174            "Type":"UNKNOWN",
175            "Hidden":true,
176            "VirtualSensor":true,
177            "Formula":"WEIGHTED_AVG",
178            "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,
181            "Multiplier":0.001
182        },
183        {
184            "Name":"OPEN-SUB4",
185            "Type":"UNKNOWN",
186            "Hidden":true,
187            "VirtualSensor":true,
188            "Formula":"WEIGHTED_AVG",
189            "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,
192            "Multiplier":0.001
193        },
194        {
195            "Name":"OPEN-SUB5",
196            "Type":"UNKNOWN",
197            "Hidden":true,
198            "VirtualSensor":true,
199            "Formula":"WEIGHTED_AVG",
200            "Combination":["quiet_therm", "skin_therm", "usb_pwr_therm"],
201            "Coefficient":[0.429, 0.314, 0.205],
202            "Offset":2600,
203            "Multiplier":0.001
204        },
205        {
206            "Name":"OPEN-SUB-MAX",
207            "Type":"UNKNOWN",
208            "Hidden":true,
209            "VirtualSensor":true,
210            "Formula":"MAXIMUM",
211            "Combination":["OPEN-SUB1", "OPEN-SUB2", "OPEN-SUB3", "OPEN-SUB4", "OPEN-SUB5"],
212            "Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0],
213            "Multiplier":0.001
214        },
215        {
216            "Name":"VIRTUAL-SKIN-CHARGE",
217            "Type":"UNKNOWN",
218            "Version":"0.3",
219            "Hidden":true,
220            "VirtualSensor":true,
221            "TriggerSensor":"skin_therm",
222            "Formula":"WEIGHTED_AVG",
223            "Combination":["OPEN-SUB-MAX", "CLOSE-SUB-MAX"],
224            "Coefficient":["OPEN_WEIGHT", "CLOSE_WEIGHT"],
225            "CoefficientType":["SENSOR", "SENSOR"],
226            "HotThreshold":["NAN", 25.0, 39.0, 41.0, 45.0, 46.5, 54.0],
227            "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.4, 1.9],
228            "Multiplier":0.001,
229            "PollingDelay":60000,
230            "PassiveDelay":60000,
231            "PIDInfo": {
232                "K_Po":["NAN", "NAN", 1000, "NAN", "NAN", "NAN", "NAN"],
233                "K_Pu":["NAN", "NAN", 30, "NAN", "NAN", "NAN", "NAN"],
234                "K_I":["NAN", "NAN", 40, "NAN", "NAN", "NAN", "NAN"],
235                "K_D":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"],
236                "I_Max":["NAN", "NAN", 1500, "NAN", "NAN", "NAN", "NAN"],
237                "S_Power":["NAN", "NAN", 3000, "NAN", "NAN", "NAN", "NAN"],
238                "MinAllocPower":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"],
239                "MaxAllocPower":["NAN", "NAN", 10000, "NAN", "NAN", "NAN", "NAN"],
240                "I_Cutoff":["NAN", "NAN", 14, "NAN", "NAN", "NAN", "NAN"],
241                "I_Default":1500
242            },
243            "ExcludedPowerInfo": [
244                {
245                    "PowerRail": "PARTIAL_SYSTEM_POWER",
246                    "PowerWeight": [1.6, 1.6, 1.6, 1.6, 1.6, 1.6, 1.6]
247                }
248            ],
249            "BindedCdevInfo": [
250                {
251                    "CdevRequest": "chg_mdis",
252                    "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
253                    "MaxReleaseStep": 1,
254                    "MaxThrottleStep": 2,
255                    "CdevCeiling": [0, 10, 11, 11, 12, 12, 12],
256                    "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],
269            "Multiplier":0.001
270        },
271        {
272            "Name":"VIRTUAL-USB-THROTTLING",
273            "Type":"UNKNOWN",
274            "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,
288            "PollingDelay":300000,
289            "PassiveDelay":7000
290        }
291    ],
292    "CoolingDevices":[
293        {
294            "Name":"chg_mdis",
295            "Type":"BATTERY",
296            "State2Power":[4122, 3623, 3308, 2824, 2524, 2241, 1864, 1635, 1319, 932, 632, 344, 0]
297        },
298        {
299            "Name":"usbc-port",
300            "Type":"BATTERY"
301        }
302    ],
303    "PowerRails":[
304        {
305            "Name":"PARTIAL_SYSTEM_POWER",
306            "VirtualRails":true,
307            "Formula":"WEIGHTED_AVG",
308            "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
313        }
314    ]
315}
316