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: I342bcbfb5ee884aa437d4d4552aeea7d0a9df119
Signed-off-by: Peter (YM) <peterym@google.com>
This commit is contained in:
Peter (YM) 2024-08-16 06:21:35 +00:00
parent c12283dc31
commit d7ec3719ed
4 changed files with 0 additions and 24 deletions

View file

@ -3,13 +3,11 @@
{ {
"Name":"neutral_therm", "Name":"neutral_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/neutral_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
"Name":"qi_therm", "Name":"qi_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/qi_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
@ -17,7 +15,6 @@
"Type":"UNKNOWN", "Type":"UNKNOWN",
"HotThreshold":["NAN", 32.2, "NAN", "NAN", "NAN", "NAN", "NAN"], "HotThreshold":["NAN", 32.2, "NAN", "NAN", "NAN", "NAN", "NAN"],
"HotHysteresis":[0.0, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0], "HotHysteresis":[0.0, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0],
"TempPath":"/dev/thermal/tz-by-name/quiet_therm/tz_temp",
"Multiplier":0.001, "Multiplier":0.001,
"PollingDelay":60000, "PollingDelay":60000,
"PassiveDelay":7000 "PassiveDelay":7000
@ -26,7 +23,6 @@
"Name":"usb_pwr_therm", "Name":"usb_pwr_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"HotThreshold":["NAN", 35.0, "NAN", "NAN", "NAN", "NAN", "NAN"], "HotThreshold":["NAN", 35.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/tz_temp",
"Multiplier":0.001, "Multiplier":0.001,
"PollingDelay":60000, "PollingDelay":60000,
"PassiveDelay":7000 "PassiveDelay":7000
@ -34,7 +30,6 @@
{ {
"Name":"usb_pwr_therm2", "Name":"usb_pwr_therm2",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {

View file

@ -3,20 +3,17 @@
{ {
"Name":"neutral_therm", "Name":"neutral_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/neutral_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
"Name":"qi_therm", "Name":"qi_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/qi_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
"Name":"usb_pwr_therm", "Name":"usb_pwr_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"HotThreshold":["NAN", 35.0, "NAN", "NAN", "NAN", "NAN", "NAN"], "HotThreshold":["NAN", 35.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/tz_temp",
"Multiplier":0.001, "Multiplier":0.001,
"PollingDelay":60000, "PollingDelay":60000,
"PassiveDelay":7000 "PassiveDelay":7000
@ -24,7 +21,6 @@
{ {
"Name":"usb_pwr_therm2", "Name":"usb_pwr_therm2",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
@ -32,7 +28,6 @@
"Type":"UNKNOWN", "Type":"UNKNOWN",
"HotThreshold":["NAN", 32.9, "NAN", "NAN", "NAN", "NAN", "NAN"], "HotThreshold":["NAN", 32.9, "NAN", "NAN", "NAN", "NAN", "NAN"],
"HotHysteresis":[0.0, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0], "HotHysteresis":[0.0, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0],
"TempPath":"/dev/thermal/tz-by-name/quiet_therm/tz_temp",
"Multiplier":0.001, "Multiplier":0.001,
"PollingDelay":60000, "PollingDelay":60000,
"PassiveDelay":7000 "PassiveDelay":7000

View file

@ -9,19 +9,16 @@
{ {
"Name":"neutral_therm", "Name":"neutral_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/neutral_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
"Name":"gnss_tcxo_therm", "Name":"gnss_tcxo_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
"Name":"qi_therm", "Name":"qi_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/qi_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
@ -29,7 +26,6 @@
"Type":"UNKNOWN", "Type":"UNKNOWN",
"HotThreshold":["NAN", 32.2, "NAN", "NAN", "NAN", "NAN", "NAN"], "HotThreshold":["NAN", 32.2, "NAN", "NAN", "NAN", "NAN", "NAN"],
"HotHysteresis":[0.0, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0], "HotHysteresis":[0.0, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0],
"TempPath":"/dev/thermal/tz-by-name/quiet_therm/tz_temp",
"Multiplier":0.001, "Multiplier":0.001,
"PollingDelay":60000, "PollingDelay":60000,
"PassiveDelay":7000 "PassiveDelay":7000
@ -38,7 +34,6 @@
"Name":"usb_pwr_therm", "Name":"usb_pwr_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"HotThreshold":["NAN", 35.0, "NAN", "NAN", "NAN", "NAN", "NAN"], "HotThreshold":["NAN", 35.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/tz_temp",
"Multiplier":0.001, "Multiplier":0.001,
"PollingDelay":60000, "PollingDelay":60000,
"PassiveDelay":7000 "PassiveDelay":7000
@ -46,13 +41,11 @@
{ {
"Name":"usb_pwr_therm2", "Name":"usb_pwr_therm2",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
"Name":"disp_therm", "Name":"disp_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/disp_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {

View file

@ -9,26 +9,22 @@
{ {
"Name":"neutral_therm", "Name":"neutral_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/neutral_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
"Name":"gnss_tcxo_therm", "Name":"gnss_tcxo_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/gnss_tcxo_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
"Name":"qi_therm", "Name":"qi_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/qi_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
"Name":"usb_pwr_therm", "Name":"usb_pwr_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"HotThreshold":["NAN", 35.0, "NAN", "NAN", "NAN", "NAN", "NAN"], "HotThreshold":["NAN", 35.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm/tz_temp",
"Multiplier":0.001, "Multiplier":0.001,
"PollingDelay":60000, "PollingDelay":60000,
"PassiveDelay":7000 "PassiveDelay":7000
@ -36,13 +32,11 @@
{ {
"Name":"usb_pwr_therm2", "Name":"usb_pwr_therm2",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
"Name":"disp_therm", "Name":"disp_therm",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"TempPath":"/dev/thermal/tz-by-name/disp_therm/tz_temp",
"Multiplier":0.001 "Multiplier":0.001
}, },
{ {
@ -50,7 +44,6 @@
"Type":"UNKNOWN", "Type":"UNKNOWN",
"HotThreshold":["NAN", 32.9, "NAN", "NAN", "NAN", "NAN", "NAN"], "HotThreshold":["NAN", 32.9, "NAN", "NAN", "NAN", "NAN", "NAN"],
"HotHysteresis":[0.0, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0], "HotHysteresis":[0.0, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0],
"TempPath":"/dev/thermal/tz-by-name/quiet_therm/tz_temp",
"Multiplier":0.001, "Multiplier":0.001,
"PollingDelay":60000, "PollingDelay":60000,
"PassiveDelay":7000 "PassiveDelay":7000