thermal: Update thermal config for charging

Add a new virtual sensor VIRTUAL-SKIN-CHARGE dedicated for charging
and lower the temperature threshold for thermal severity.

Bug: 195619668
Test: Boot
Change-Id: I5e90762f2eb6e2ee55c78a23aec64102586f0143
This commit is contained in:
Jia-yi Chen 2021-09-08 16:31:27 -07:00 committed by Thierry Strudel
parent be2bde46ba
commit 4a41faabc8
2 changed files with 105 additions and 17 deletions

View file

@ -373,18 +373,66 @@
"PowerThreshold": [200, 200, 200, 200, 50, 0, 0], "PowerThreshold": [200, 200, 200, 200, 50, 0, 0],
"ReleaseLogic": "DECREASE" "ReleaseLogic": "DECREASE"
}, },
{
"CdevRequest": "tpu_cooling",
"LimitInfo": [0, 1, 2, 3, 4, 4, 4]
}
]
},
{
"Name":"VIRTUAL-SKIN-CHARGE",
"Type":"UNKNOWN",
"VirtualSensor":true,
"TriggerSensor":"quiet_therm",
"Formula":"MAXIMUM",
"Combination":[
"VIRTUAL-QI-GNSS",
"VIRTUAL-QI-BATT",
"VIRTUAL-USB2-DISP",
"VIRTUAL-QUIET-BATT"
],
"Coefficient":[
"1.0",
"1.0",
"1.0",
"1.0"
],
"HotThreshold":[
"NAN",
"39.0",
"41.0",
"43.0",
"45.0",
"47.0",
"55.0"
],
"HotHysteresis":[
0.0,
1.9,
1.9,
1.9,
1.9,
1.9,
1.9
],
"VrThreshold":"NAN",
"Multiplier":0.001,
"Monitor":true,
"PollingDelay":300000,
"PassiveDelay":7000,
"BindedCdevInfo": [
{ {
"CdevRequest": "fcc", "CdevRequest": "fcc",
"LimitInfo": [0, 2, 3, 4, 4, 4, 4], "LimitInfo": [0, 2, 3, 3, 4, 4, 4],
"BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING", "BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING",
"PowerThreshold": [500, 500, 500, 500, 0, 0, 0], "PowerThreshold": [500, 500, 500, 500, 0, 0, 0],
"CdevFloorWithPowerLink": [0, 0, 1, 2, 4 ,4 ,4], "CdevFloorWithPowerLink": [0, 0, 2, 2, 4 ,4 ,4],
"ReleaseLogic": "RELEASE_TO_FLOOR", "ReleaseLogic": "RELEASE_TO_FLOOR",
"ThrottlingWithPowerLink":true "ThrottlingWithPowerLink":true
}, },
{ {
"CdevRequest": "dc_icl", "CdevRequest": "dc_icl",
"LimitInfo": [0, 1, 2, 4, 4, 4, 4], "LimitInfo": [0, 1, 2, 3, 4, 4, 4],
"BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING", "BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING",
"PowerThreshold": [500, 500, 500, 500, 0, 0, 0], "PowerThreshold": [500, 500, 500, 500, 0, 0, 0],
"CdevFloorWithPowerLink": [0, 1, 2, 3, 4, 4, 4], "CdevFloorWithPowerLink": [0, 1, 2, 3, 4, 4, 4],
@ -393,16 +441,12 @@
}, },
{ {
"CdevRequest": "wlc_fcc", "CdevRequest": "wlc_fcc",
"LimitInfo": [0, 2, 2, 5, 5, 5, 5], "LimitInfo": [0, 2, 2, 4, 5, 5, 5],
"BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING", "BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING",
"PowerThreshold": [500, 500, 500, 500, 0, 0, 0], "PowerThreshold": [500, 500, 500, 500, 0, 0, 0],
"CdevFloorWithPowerLink": [0, 1, 1, 2, 5, 5, 5], "CdevFloorWithPowerLink": [0, 1, 1, 2, 5, 5, 5],
"ReleaseLogic": "RELEASE_TO_FLOOR", "ReleaseLogic": "RELEASE_TO_FLOOR",
"ThrottlingWithPowerLink":true "ThrottlingWithPowerLink":true
},
{
"CdevRequest": "tpu_cooling",
"LimitInfo": [0, 1, 2, 3, 4, 4, 4]
} }
] ]
}, },

View file

@ -373,18 +373,66 @@
"PowerThreshold": [200, 200, 200, 200, 50, 0, 0], "PowerThreshold": [200, 200, 200, 200, 50, 0, 0],
"ReleaseLogic": "DECREASE" "ReleaseLogic": "DECREASE"
}, },
{
"CdevRequest": "tpu_cooling",
"LimitInfo": [0, 1, 2, 3, 4, 4, 4]
}
]
},
{
"Name":"VIRTUAL-SKIN-CHARGE",
"Type":"UNKNOWN",
"VirtualSensor":true,
"TriggerSensor":"quiet_therm",
"Formula":"MAXIMUM",
"Combination":[
"VIRTUAL-NEUTRAL-QI",
"VIRTUAL-USB2-BATT",
"VIRTUAL-GNSS-BATT",
"VIRTUAL-QI-DISP"
],
"Coefficient":[
"1.0",
"1.0",
"1.0",
"1.0"
],
"HotThreshold":[
"NAN",
"39.0",
"41.0",
"43.0",
"45.0",
"47.0",
"55.0"
],
"HotHysteresis":[
0.0,
1.9,
1.9,
1.9,
1.9,
1.9,
1.9
],
"VrThreshold":"NAN",
"Multiplier":0.001,
"Monitor":true,
"PollingDelay":300000,
"PassiveDelay":7000,
"BindedCdevInfo": [
{ {
"CdevRequest": "fcc", "CdevRequest": "fcc",
"LimitInfo": [0, 2, 3, 4, 4, 4, 4], "LimitInfo": [0, 2, 3, 3, 4, 4, 4],
"BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING", "BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING",
"PowerThreshold": [500, 500, 500, 500, 500, 0, 0], "PowerThreshold": [500, 500, 500, 500, 500, 0, 0],
"CdevFloorWithPowerLink": [0, 0, 1, 2, 3 ,4 ,4], "CdevFloorWithPowerLink": [0, 0, 2, 2, 3 ,4 ,4],
"ReleaseLogic": "RELEASE_TO_FLOOR", "ReleaseLogic": "RELEASE_TO_FLOOR",
"ThrottlingWithPowerLink":true "ThrottlingWithPowerLink":true
}, },
{ {
"CdevRequest": "dc_icl", "CdevRequest": "dc_icl",
"LimitInfo": [0, 1, 2, 4, 4, 4, 4], "LimitInfo": [0, 1, 2, 3, 4, 4, 4],
"BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING", "BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING",
"PowerThreshold": [500, 500, 500, 500, 500, 0, 0], "PowerThreshold": [500, 500, 500, 500, 500, 0, 0],
"CdevFloorWithPowerLink": [0, 1, 2, 3, 4, 4, 4], "CdevFloorWithPowerLink": [0, 1, 2, 3, 4, 4, 4],
@ -393,16 +441,12 @@
}, },
{ {
"CdevRequest": "wlc_fcc", "CdevRequest": "wlc_fcc",
"LimitInfo": [0, 2, 2, 3, 4, 4, 4], "LimitInfo": [0, 3, 3, 4, 5, 5, 5],
"BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING", "BindedPowerRail": "POWER_FOR_CHARGING_THROTTLING",
"PowerThreshold": [500, 500, 500, 500, 500, 0, 0], "PowerThreshold": [500, 500, 500, 500, 500, 0, 0],
"CdevFloorWithPowerLink": [0, 1, 1, 2, 3, 4, 4], "CdevFloorWithPowerLink": [0, 1, 2, 3, 4, 5, 5],
"ReleaseLogic": "RELEASE_TO_FLOOR", "ReleaseLogic": "RELEASE_TO_FLOOR",
"ThrottlingWithPowerLink":true "ThrottlingWithPowerLink":true
},
{
"CdevRequest": "tpu_cooling",
"LimitInfo": [0, 1, 2, 3, 4, 4, 4]
} }
] ]
}, },