From 1ef4072ac601d476fb230ba037201dc1f734a67d Mon Sep 17 00:00:00 2001 From: "Peter (YM)" Date: Fri, 17 May 2024 10:27:47 +0000 Subject: [PATCH] thermal: init WLC themral throttle - Init vskin-wlc v1 - init wlc thermal throttle with last generation algorithm Bug: 341236825 Test: Build and boot to home Change-Id: Iac66f0a13d94bf1e94744f7954775f0a91cbde0b Signed-off-by: Peter (YM) --- thermal/thermal_info_config_charge_tegu.json | 44 ++++++++++++++++++++ thermal/thermal_info_config_tegu.json | 44 ++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/thermal/thermal_info_config_charge_tegu.json b/thermal/thermal_info_config_charge_tegu.json index ccb685f..72d2a54 100644 --- a/thermal/thermal_info_config_charge_tegu.json +++ b/thermal/thermal_info_config_charge_tegu.json @@ -138,6 +138,50 @@ "LimitInfo": [0, 0, 0, 0, 0, 26, 26] } ] + }, + { + "Name":"VIRTUAL-SKIN-CHARGE-WLC", + "Type":"UNKNOWN", + "Version":"0.1", + "VirtualSensor":true, + "TriggerSensor":"charging_therm", + "Formula":"WEIGHTED_AVG", + "Combination":["charging_therm", "usb_pwr_therm", "soc_therm"], + "Coefficient":[0.259, 0.418, 0.23], + "Offset":2146, + "HotThreshold":["NAN", 34.0, 38.0, 41.0, 45.0, 47.0, 55.0], + "HotHysteresis":[0.0, 1.9, 3.9, 2.9, 3.9, 1.9, 1.9], + "Multiplier":0.001, + "PollingDelay":300000, + "PassiveDelay":7000, + "PIDInfo": { + "K_Po":["NAN", "NAN", 600, "NAN", "NAN", "NAN", "NAN"], + "K_Pu":["NAN", "NAN", 200, "NAN", "NAN", "NAN", "NAN"], + "K_I":["NAN", "NAN", 21, "NAN", "NAN", "NAN", "NAN"], + "K_D":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], + "I_Max":["NAN", "NAN", 400, "NAN", "NAN", "NAN", "NAN"], + "S_Power":["NAN", "NAN", 1400, "NAN", "NAN", "NAN", "NAN"], + "MinAllocPower":["NAN", "NAN", 300, "NAN", "NAN", "NAN", "NAN"], + "MaxAllocPower":["NAN", "NAN", 6000, "NAN", "NAN", "NAN", "NAN"], + "I_Cutoff":["NAN", "NAN", 6, "NAN", "NAN", "NAN", "NAN"], + "I_Default":400 + }, + "ExcludedPowerInfo": [ + { + "PowerRail": "PARTIAL_SYSTEM_POWER", + "PowerWeight": [0.1, 0.1, 0.05, 0.05, 0.2, 0.2, 0.2] + } + ], + "BindedCdevInfo": [ + { + "CdevRequest": "dc_icl", + "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], + "MaxReleaseStep": 1, + "MaxThrottleStep": 1, + "CdevCeiling": [0, 25, 25, 25, 26, 26, 26], + "LimitInfo": [0, 1, 1, 1, 1, 26, 26] + } + ] } ], "CoolingDevices":[ diff --git a/thermal/thermal_info_config_tegu.json b/thermal/thermal_info_config_tegu.json index 3281a05..d89db0d 100644 --- a/thermal/thermal_info_config_tegu.json +++ b/thermal/thermal_info_config_tegu.json @@ -844,6 +844,50 @@ } ] }, + { + "Name":"VIRTUAL-SKIN-CHARGE-WLC", + "Type":"UNKNOWN", + "Version":"0.1", + "VirtualSensor":true, + "TriggerSensor":"charging_therm", + "Formula":"WEIGHTED_AVG", + "Combination":["charging_therm", "usb_pwr_therm", "soc_therm"], + "Coefficient":[0.259, 0.418, 0.23], + "Offset":2146, + "HotThreshold":["NAN", 34.0, 38.0, 41.0, 45.0, 47.0, 55.0], + "HotHysteresis":[0.0, 1.9, 3.9, 2.9, 3.9, 1.9, 1.9], + "Multiplier":0.001, + "PollingDelay":300000, + "PassiveDelay":7000, + "PIDInfo": { + "K_Po":["NAN", "NAN", 600, "NAN", "NAN", "NAN", "NAN"], + "K_Pu":["NAN", "NAN", 200, "NAN", "NAN", "NAN", "NAN"], + "K_I":["NAN", "NAN", 21, "NAN", "NAN", "NAN", "NAN"], + "K_D":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], + "I_Max":["NAN", "NAN", 400, "NAN", "NAN", "NAN", "NAN"], + "S_Power":["NAN", "NAN", 1400, "NAN", "NAN", "NAN", "NAN"], + "MinAllocPower":["NAN", "NAN", 300, "NAN", "NAN", "NAN", "NAN"], + "MaxAllocPower":["NAN", "NAN", 6000, "NAN", "NAN", "NAN", "NAN"], + "I_Cutoff":["NAN", "NAN", 6, "NAN", "NAN", "NAN", "NAN"], + "I_Default":400 + }, + "ExcludedPowerInfo": [ + { + "PowerRail": "PARTIAL_SYSTEM_POWER", + "PowerWeight": [0.1, 0.1, 0.05, 0.05, 0.2, 0.2, 0.2] + } + ], + "BindedCdevInfo": [ + { + "CdevRequest": "dc_icl", + "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], + "MaxReleaseStep": 1, + "MaxThrottleStep": 1, + "CdevCeiling": [0, 25, 25, 25, 26, 26, 26], + "LimitInfo": [0, 1, 1, 1, 1, 26, 26] + } + ] + }, { "Name":"USB-MINUS-CHARGER", "Type":"UNKNOWN",