From eab6d2496d65e0cd2b70b1b29c54210f6c48748b Mon Sep 17 00:00:00 2001 From: YiHo Cheng Date: Thu, 8 Jul 2021 10:16:27 +0800 Subject: [PATCH] thermal: Update thermal table - Add TempPath field to support force update for on-board ntc thermistors. - Update hysteresis for trigger sensors to prevent genlink storm Bug: 191971470 Test: check if thermhal polling can start in time by burn8 Change-Id: I855ccee34602268315d7cd16896cba19b954d115 --- thermal_info_config_oriole.json | 34 +++++++++++++++++++++++++++ thermal_info_config_oriole_WHI_A.json | 21 +++++++++++++++++ thermal_info_config_raven.json | 34 +++++++++++++++++++++++++++ 3 files changed, 89 insertions(+) diff --git a/thermal_info_config_oriole.json b/thermal_info_config_oriole.json index 3e9022e..f5a2fd6 100644 --- a/thermal_info_config_oriole.json +++ b/thermal_info_config_oriole.json @@ -57,6 +57,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/neutral_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -72,6 +73,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -87,6 +89,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/qi_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -102,6 +105,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -117,6 +121,16 @@ "NAN", "NAN" ], + "HotHysteresis":[ + 0.0, + 0.9, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001, "PollingDelay":60000, @@ -134,6 +148,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/disp_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -149,6 +164,16 @@ "NAN", "NAN" ], + "HotHysteresis":[ + 0.0, + 0.9, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "TempPath":"/dev/thermal/tz-by-name/quiet_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001, "PollingDelay":60000, @@ -723,6 +748,15 @@ "NAN", "NAN" ], + "HotHysteresis":[ + 0.0, + 0.0, + 0.0, + 0.0, + 100, + 0.0, + 0.0 + ], "VrThreshold":"NAN", "Multiplier":1, "Monitor":true diff --git a/thermal_info_config_oriole_WHI_A.json b/thermal_info_config_oriole_WHI_A.json index c0597b5..79f44b0 100644 --- a/thermal_info_config_oriole_WHI_A.json +++ b/thermal_info_config_oriole_WHI_A.json @@ -27,6 +27,16 @@ "NAN", "NAN" ], + "HotHysteresis":[ + 0.0, + 0.9, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "TempPath":"/dev/thermal/tz-by-name/neutral_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001, "PollingDelay":60000, @@ -44,6 +54,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -59,6 +70,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/qi_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -412,6 +424,15 @@ "NAN", "NAN" ], + "HotHysteresis":[ + 0.0, + 0.0, + 0.0, + 0.0, + 100, + 0.0, + 0.0 + ], "VrThreshold":"NAN", "Multiplier":1, "Monitor":true diff --git a/thermal_info_config_raven.json b/thermal_info_config_raven.json index 5d59943..bc94332 100644 --- a/thermal_info_config_raven.json +++ b/thermal_info_config_raven.json @@ -57,6 +57,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/neutral_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -72,6 +73,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -87,6 +89,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/qi_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -102,6 +105,16 @@ "NAN", "NAN" ], + "HotHysteresis":[ + 0.0, + 0.9, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "TempPath":"/dev/thermal/tz-by-name/quiet_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001, "PollingDelay":60000, @@ -119,6 +132,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -134,6 +148,16 @@ "NAN", "NAN" ], + "HotHysteresis":[ + 0.0, + 0.9, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001, "PollingDelay":60000, @@ -151,6 +175,7 @@ "NAN", "NAN" ], + "TempPath":"/dev/thermal/tz-by-name/disp_therm/adc_channel/channel_temp", "VrThreshold":"NAN", "Multiplier":0.001 }, @@ -723,6 +748,15 @@ "NAN", "NAN" ], + "HotHysteresis":[ + 0.0, + 0.0, + 0.0, + 0.0, + 100, + 0.0, + 0.0 + ], "VrThreshold":"NAN", "Multiplier":1, "Monitor":true