thermal: read thermistor temp from sysfs

- avoid wrong sensor value reading for thermalHAL

Bug: 327327502
Test: Build to boot to home
Flag: EXEMPT (bug 337358613)
Change-Id: Ie14fa095f695aa6d02f9a73016fe1952943b8b71
Signed-off-by: Peter (YM) <peterym@google.com>
This commit is contained in:
Peter (YM) 2024-08-16 06:17:39 +00:00
parent 944eebcd15
commit 031d28881e
5 changed files with 0 additions and 30 deletions

View file

@ -27,7 +27,6 @@
"NAN",
"NAN"
],
"TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001
},
@ -43,7 +42,6 @@
"NAN",
"NAN"
],
"TempPath":"/dev/thermal/tz-by-name/qi_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001
},
@ -59,7 +57,6 @@
"NAN",
"NAN"
],
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001
},
@ -84,7 +81,6 @@
0.0,
0.0
],
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001,
"PollingDelay":60000,
@ -102,7 +98,6 @@
"NAN",
"NAN"
],
"TempPath":"/dev/thermal/tz-by-name/disp_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001
},
@ -127,7 +122,6 @@
0.0,
0.0
],
"TempPath":"/dev/thermal/tz-by-name/quiet_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001,
"PollingDelay":60000,

View file

@ -27,7 +27,6 @@
"NAN",
"NAN"
],
"TempPath":"/dev/thermal/tz-by-name/neutral_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001
},
@ -43,7 +42,6 @@
"NAN",
"NAN"
],
"TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001
},
@ -59,7 +57,6 @@
"NAN",
"NAN"
],
"TempPath":"/dev/thermal/tz-by-name/qi_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001
},
@ -84,7 +81,6 @@
0.0,
0.0
],
"TempPath":"/dev/thermal/tz-by-name/quiet_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001,
"PollingDelay":60000,
@ -102,7 +98,6 @@
"NAN",
"NAN"
],
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001
},
@ -127,7 +122,6 @@
0.0,
0.0
],
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001,
"PollingDelay":60000,
@ -145,7 +139,6 @@
"NAN",
"NAN"
],
"TempPath":"/dev/thermal/tz-by-name/disp_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001
},

View file

@ -19,25 +19,21 @@
{
"Name":"neutral_therm",
"Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/neutral_therm/adc_channel/channel_temp",
"Multiplier":0.001
},
{
"Name":"gnss_tcxo_therm",
"Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/adc_channel/channel_temp",
"Multiplier":0.001
},
{
"Name":"qi_therm",
"Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/qi_therm/adc_channel/channel_temp",
"Multiplier":0.001
},
{
"Name":"usb_pwr_therm",
"Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/adc_channel/channel_temp",
"Multiplier":0.001
},
{
@ -45,7 +41,6 @@
"Type":"UNKNOWN",
"HotThreshold":["NAN", "35.0", "NAN","NAN", "NAN", "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",
"Multiplier":0.001,
"PollingDelay":60000,
"PassiveDelay":7000
@ -53,7 +48,6 @@
{
"Name":"disp_therm",
"Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/disp_therm/adc_channel/channel_temp",
"Multiplier":0.001
},
{
@ -61,7 +55,6 @@
"Type":"UNKNOWN",
"HotThreshold":["NAN", "32.9", "NAN", "NAN", "NAN", "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",
"Multiplier":0.001,
"PollingDelay":60000,
"PassiveDelay":7000

View file

@ -36,7 +36,6 @@
0.0,
0.0
],
"TempPath":"/dev/thermal/tz-by-name/neutral_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001,
"PollingDelay":60000,
@ -54,7 +53,6 @@
"NAN",
"NAN"
],
"TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001
},
@ -70,7 +68,6 @@
"NAN",
"NAN"
],
"TempPath":"/dev/thermal/tz-by-name/qi_therm/adc_channel/channel_temp",
"VrThreshold":"NAN",
"Multiplier":0.001
},

View file

@ -19,19 +19,16 @@
{
"Name":"neutral_therm",
"Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/neutral_therm/adc_channel/channel_temp",
"Multiplier":0.001
},
{
"Name":"gnss_tcxo_therm",
"Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/adc_channel/channel_temp",
"Multiplier":0.001
},
{
"Name":"qi_therm",
"Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/qi_therm/adc_channel/channel_temp",
"Multiplier":0.001
},
{
@ -39,7 +36,6 @@
"Type":"UNKNOWN",
"HotThreshold":["NAN", "32.2", "NAN", "NAN", "NAN", "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",
"Multiplier":0.001,
"PollingDelay":60000,
"PassiveDelay":7000
@ -47,7 +43,6 @@
{
"Name":"usb_pwr_therm",
"Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/adc_channel/channel_temp",
"Multiplier":0.001
},
{
@ -55,7 +50,6 @@
"Type":"UNKNOWN",
"HotThreshold":["NAN", "40.0", "NAN","NAN", "NAN", "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",
"Multiplier":0.001,
"PollingDelay":60000,
"PassiveDelay":7000
@ -63,7 +57,6 @@
{
"Name":"disp_therm",
"Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/disp_therm/adc_channel/channel_temp",
"Multiplier":0.001
},
{