configurations: santabarbara: add scale for MB power sensors
Add scale to keep fan and E1.S current reading error within 2%
Change-Id: Ia146ae74edf377852eb457ddfb1094fbaf52cf88
Signed-off-by: Fred Chen <Fred.Chen@quantatw.com>
diff --git a/configurations/meta/santabarbara_mb.json b/configurations/meta/santabarbara_mb.json
index 22abb82..eb998d5 100644
--- a/configurations/meta/santabarbara_mb.json
+++ b/configurations/meta/santabarbara_mb.json
@@ -372,8 +372,10 @@
],
"Type": "INA230",
"curr1_Name": "MB_P12V_E1S1_CURR_A",
+ "curr1_Scale": 993.048659384,
"in1_Name": "MB_P12V_E1S1_VOLT_V",
- "power1_Name": "MB_P12V_E1S1_PWR_W"
+ "power1_Name": "MB_P12V_E1S1_PWR_W",
+ "power1_Scale": 993048.659384
},
{
"Address": "0x42",
@@ -402,8 +404,10 @@
],
"Type": "INA230",
"curr1_Name": "MB_P12V_E1S0_CURR_A",
+ "curr1_Scale": 1016.260162602,
"in1_Name": "MB_P12V_E1S0_VOLT_V",
- "power1_Name": "MB_P12V_E1S0_PWR_W"
+ "power1_Name": "MB_P12V_E1S0_PWR_W",
+ "power1_Scale": 1016260.162602
},
{
"Address": "0x44",
@@ -432,8 +436,10 @@
],
"Type": "INA230",
"curr1_Name": "MB_P12V_OCP_SFF_CURR_A",
+ "curr1_Scale": 1098.901098901,
"in1_Name": "MB_P12V_OCP_SFF_VOLT_V",
- "power1_Name": "MB_P12V_OCP_SFF_PWR_W"
+ "power1_Name": "MB_P12V_OCP_SFF_PWR_W",
+ "power1_Scale": 1098901.098901
},
{
"Address": "0x40",
@@ -462,8 +468,10 @@
],
"Type": "INA230",
"curr1_Name": "MB_P12V_FAN0_CURR_A",
+ "curr1_Scale": 1063.829787234,
"in1_Name": "MB_P12V_FAN0_VOLT_V",
- "power1_Name": "MB_P12V_FAN0_PWR_W"
+ "power1_Name": "MB_P12V_FAN0_PWR_W",
+ "power1_Scale": 1063829.787234
},
{
"Address": "0x42",
@@ -492,8 +500,10 @@
],
"Type": "INA230",
"curr1_Name": "MB_P12V_FAN1_CURR_A",
+ "curr1_Scale": 1141.552511416,
"in1_Name": "MB_P12V_FAN1_VOLT_V",
- "power1_Name": "MB_P12V_FAN1_PWR_W"
+ "power1_Name": "MB_P12V_FAN1_PWR_W",
+ "power1_Scale": 1141552.511416
},
{
"Address": "0x44",
@@ -522,8 +532,10 @@
],
"Type": "INA230",
"curr1_Name": "MB_P12V_FAN2_CURR_A",
+ "curr1_Scale": 1079.913606911,
"in1_Name": "MB_P12V_FAN2_VOLT_V",
- "power1_Name": "MB_P12V_FAN2_PWR_W"
+ "power1_Name": "MB_P12V_FAN2_PWR_W",
+ "power1_Scale": 1079913.606911
},
{
"Address": "0x46",
@@ -552,8 +564,10 @@
],
"Type": "INA230",
"curr1_Name": "MB_P12V_FAN3_CURR_A",
+ "curr1_Scale": 1144.164759725,
"in1_Name": "MB_P12V_FAN3_VOLT_V",
- "power1_Name": "MB_P12V_FAN3_PWR_W"
+ "power1_Name": "MB_P12V_FAN3_PWR_W",
+ "power1_Scale": 1144164.759725
},
{
"Address": "0x6a",