configurations: santabarbara: adjust pdb1 tsense scale
Use curr1 to compute the NCT thermistor for more accurate cable tsense
temperature. Since hwmon driver min unit is 1 mA but sensor requires
µA-level precision, adjust DTS rshunt to scale up readings, then convert
back in dbus-sensors for correct current.
Change-Id: I5cbd2f0e14d9b84d7716a153dcb1974e632b665b
Signed-off-by: Fred Chen <Fred.Chen@quantatw.com>
diff --git a/configurations/meta/santabarbara/santabarbara_pdb1.json b/configurations/meta/santabarbara/santabarbara_pdb1.json
index faab3e4..32f3296 100644
--- a/configurations/meta/santabarbara/santabarbara_pdb1.json
+++ b/configurations/meta/santabarbara/santabarbara_pdb1.json
@@ -70,7 +70,10 @@
],
"Name": "PDB1_BUSBAR_TSENSE_P1",
"Type": "INA238",
- "curr1_Name": "PDB1_BUSBAR_TSENSE_P1_CURR_A"
+ "curr1_Max": 0.1,
+ "curr1_Min": 0,
+ "curr1_Name": "PDB1_BUSBAR_TSENSE_P1_CURR_A",
+ "curr1_Scale": 50000
},
{
"Address": "0x4d",
@@ -80,7 +83,10 @@
],
"Name": "PDB1_BUSBAR_TSENSE_P2",
"Type": "INA238",
- "curr1_Name": "PDB1_BUSBAR_TSENSE_P2_CURR_A"
+ "curr1_Max": 0.1,
+ "curr1_Min": 0,
+ "curr1_Name": "PDB1_BUSBAR_TSENSE_P2_CURR_A",
+ "curr1_Scale": 50000
},
{
"Address": "0x45",