configurations: catalina_pdb: Use current reading for cable tsense
The Catalina system previously used shunt voltage (`in0`) to calculate
the NCT thermistor value for the cable temperature sensor. However, the
hwmon driver represents voltage in millivolts (mV), while the shunt
voltage for the cable tsense is typically less than 1 mV.
Switch to using the current (`curr1`) reading to compute the NCT
thermistor value, providing more accurate and reliable temperature
measurements for the cable tsense sensors.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I8a7db00a7dcb209a3b739bf6d53b219c06671f0c
diff --git a/configurations/meta/catalina_pdb.json b/configurations/meta/catalina_pdb.json
index 10b6ea7..842bede 100644
--- a/configurations/meta/catalina_pdb.json
+++ b/configurations/meta/catalina_pdb.json
@@ -628,25 +628,27 @@
"Address": "0x44",
"Bus": 23,
"Labels": [
- "in0"
+ "curr1"
],
"Name": "PDB_CABLE_TSENSE_POSITIVE",
"Type": "INA238",
- "in0_Max": 1,
- "in0_Min": -1,
- "in0_Name": "PDB_CABLE_TSENSE_POSITIVE_VOLT_V"
+ "curr1_Max": 0.1,
+ "curr1_Min": 0,
+ "curr1_Name": "PDB_CABLE_TSENSE_POSITIVE_CURR_A",
+ "curr1_Scale": 50000
},
{
"Address": "0x42",
"Bus": 23,
"Labels": [
- "in0"
+ "curr1"
],
"Name": "PDB_CABLE_TSENSE_NEGATIVE",
"Type": "INA238",
- "in0_Max": 1,
- "in0_Min": -1,
- "in0_Name": "PDB_CABLE_TSENSE_NEGATIVE_VOLT_V"
+ "curr1_Max": 0.1,
+ "curr1_Min": 0,
+ "curr1_Name": "PDB_CABLE_TSENSE_NEGATIVE_CURR_A",
+ "curr1_Scale": 50000
},
{
"Address": "0x42",
diff --git a/schemas/legacy.json b/schemas/legacy.json
index d62cd77..4722b4b 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -389,6 +389,12 @@
"curr1_Name": {
"$ref": "#/$defs/Types/curr1_Name"
},
+ "curr1_Max": {
+ "$ref": "#/$defs/Types/curr1_Max"
+ },
+ "curr1_Min": {
+ "$ref": "#/$defs/Types/curr1_Min"
+ },
"curr2_Name": {
"$ref": "#/$defs/Types/curr2_Name"
},
@@ -1421,6 +1427,12 @@
"curr1_Name": {
"type": "string"
},
+ "curr1_Max": {
+ "type": "number"
+ },
+ "curr1_Min": {
+ "type": "number"
+ },
"curr2_Name": {
"type": "string"
},