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: I8b6c828896159af3d4a0fbe6023a1097b0d6dc77
Signed-off-by: Peter (YM) <peterym@google.com>
This commit is contained in:
Peter (YM) 2024-08-16 06:51:14 +00:00
parent 4a15f39063
commit 959543581d

View file

@ -38,32 +38,27 @@
{ {
"Name": "soc_therm", "Name": "soc_therm",
"Type": "UNKNOWN", "Type": "UNKNOWN",
"TempPath": "/dev/thermal/tz-by-name/soc_therm/tz_temp",
"Multiplier": 0.001 "Multiplier": 0.001
}, },
{ {
"Name": "rffe_therm", "Name": "rffe_therm",
"Type": "UNKNOWN", "Type": "UNKNOWN",
"TempPath": "/dev/thermal/tz-by-name/rffe_therm/tz_temp",
"Multiplier": 0.001 "Multiplier": 0.001
}, },
{ {
"Name": "modem_therm", "Name": "modem_therm",
"Type": "UNKNOWN", "Type": "UNKNOWN",
"TempPath": "/dev/thermal/tz-by-name/modem_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": "usb_conn_therm", "Name": "usb_conn_therm",
"Type": "UNKNOWN", "Type": "UNKNOWN",
"HotThreshold": ["NAN", 30.79, "NAN", "NAN", "NAN", "NAN", "NAN"], "HotThreshold": ["NAN", 30.79, "NAN", "NAN", "NAN", "NAN", "NAN"],
"TempPath": "/dev/thermal/tz-by-name/usb_conn_therm/tz_temp",
"Multiplier": 0.001, "Multiplier": 0.001,
"PollingDelay": 300000, "PollingDelay": 300000,
"PassiveDelay": 7000 "PassiveDelay": 7000
@ -72,7 +67,6 @@
"Name": "charger_therm", "Name": "charger_therm",
"Type": "UNKNOWN", "Type": "UNKNOWN",
"HotThreshold": ["NAN", 34.89, "NAN", "NAN", "NAN", "NAN", "NAN"], "HotThreshold": ["NAN", 34.89, "NAN", "NAN", "NAN", "NAN", "NAN"],
"TempPath": "/dev/thermal/tz-by-name/charger_therm/tz_temp",
"Multiplier": 0.001, "Multiplier": 0.001,
"PollingDelay": 300000, "PollingDelay": 300000,
"PassiveDelay": 7000 "PassiveDelay": 7000