thermal: support usb overheat protection
Base on EVT 1.0 test result to support the USB thermal protection 1. When usb_therm > 46 degC start monitor 2. When usb_therm - charger_therm >= 10 degC, change usbc-port to 1 3. When usb_therm - charger_therm >= 13 degC, trigger VIRTUAL-USB-UI polling 4. When usb_therm - charger_therm <= 7 degC, change usbc_prot to 0 Create thermal config for proto to prevent wrong usb throttle on proto device Bug: 278035350 Test: push the test script into device and run thermal_recorder to record the behavior. Detail is in the bug Change-Id: I326dc22083efc1bd1af9a47451bf927e26006b85 Signed-off-by: Peter (YM) <peterym@google.com>
This commit is contained in:
parent
dd450afe80
commit
c2010f1a9b
6 changed files with 885 additions and 8 deletions
|
@ -20,7 +20,7 @@
|
|||
{
|
||||
"Name":"usb_conn_therm",
|
||||
"Type":"UNKNOWN",
|
||||
"HotThreshold":["NAN", 40.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
|
||||
"HotThreshold":["NAN", 46.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
|
||||
"TempPath":"/dev/thermal/tz-by-name/usb_conn_therm/tz_temp",
|
||||
"Multiplier":0.001,
|
||||
"PollingDelay":60000,
|
||||
|
@ -215,12 +215,12 @@
|
|||
"Formula":"COUNT_THRESHOLD",
|
||||
"TriggerSensor": "usb_conn_therm",
|
||||
"Combination":["usb_conn_therm", "USB-MINUS-CHARGER"],
|
||||
"Coefficient":[40000, 10000],
|
||||
"Coefficient":[46000, 10000],
|
||||
"HotThreshold":["NAN", "NAN", "NAN", "NAN", "2.0", "NAN", "NAN"],
|
||||
"BindedCdevInfo": [
|
||||
{
|
||||
"CdevRequest": "usbc-port",
|
||||
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
|
||||
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
||||
}
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue