yosemite4: fine tune medusa HSC power and current
ADM1272: current value*4 and power value*4.
ADM1281: current value*2 and power value*2.
Testing:
1. Unit tests passed.
2. Get sensor reading passed.
Change-Id: Ie55b8f3b55da93ffc28b82e2316ddaa9ac2d1def
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/configurations/yosemite4_medusaboard.json b/configurations/yosemite4_medusaboard.json
index d7472f9..ab21aeb 100644
--- a/configurations/yosemite4_medusaboard.json
+++ b/configurations/yosemite4_medusaboard.json
@@ -148,7 +148,9 @@
],
"Type": "ADM1272",
"iout1_Name": "MEDUSA_48VHSC0_CURR_A",
+ "iout1_Scale": 250,
"pin_Name": "MEDUSA_48VHSC0_INPUT_PWR_W",
+ "pin_Scale": 250000,
"temp1_Name": "MEDUSA_48VHSC0_TEMP_C",
"vin_Name": "MEDUSA_48VHSC0_INPUT_VOLT_V",
"vout1_Name": "MEDUSA_48VHSC0_OUTPUT_VOLT_V"
@@ -301,7 +303,9 @@
],
"Type": "ADM1272",
"iout1_Name": "MEDUSA_48VHSC1_CURR_A",
+ "iout1_Scale": 250,
"pin_Name": "MEDUSA_48VHSC1_INPUT_PWR_W",
+ "pin_Scale": 250000,
"temp1_Name": "MEDUSA_48VHSC1_TEMP_C",
"vin_Name": "MEDUSA_48VHSC1_INPUT_VOLT_V",
"vout1_Name": "MEDUSA_48VHSC1_OUTPUT_VOLT_V"
@@ -454,7 +458,9 @@
],
"Type": "ADM1281",
"iout1_Name": "MEDUSA_MB1_12VHSC_CURR_A",
+ "iout1_Scale": 500,
"pin_Name": "MEDUSA_MB1_12VHSC_INPUT_PWR_W",
+ "pin_Scale": 500000,
"temp1_Name": "MEDUSA_MB1_12VHSC_TEMP_C",
"vin_Name": "MEDUSA_MB1_12VHSC_INPUT_VOLT_V",
"vout1_Name": "MEDUSA_MB1_12VHSC_OUTPUT_VOLT_V"
@@ -607,7 +613,9 @@
],
"Type": "ADM1281",
"iout1_Name": "MEDUSA_MB2_12VHSC_CURR_A",
+ "iout1_Scale": 500,
"pin_Name": "MEDUSA_MB2_12VHSC_INPUT_PWR_W",
+ "pin_Scale": 500000,
"temp1_Name": "MEDUSA_MB2_12VHSC_TEMP_C",
"vin_Name": "MEDUSA_MB2_12VHSC_INPUT_VOLT_V",
"vout1_Name": "MEDUSA_MB2_12VHSC_OUTPUT_VOLT_V"
@@ -760,7 +768,9 @@
],
"Type": "ADM1281",
"iout1_Name": "MEDUSA_MB3_12VHSC_CURR_A",
+ "iout1_Scale": 500,
"pin_Name": "MEDUSA_MB3_12VHSC_INPUT_PWR_W",
+ "pin_Scale": 500000,
"temp1_Name": "MEDUSA_MB3_12VHSC_TEMP_C",
"vin_Name": "MEDUSA_MB3_12VHSC_INPUT_VOLT_V",
"vout1_Name": "MEDUSA_MB3_12VHSC_OUTPUT_VOLT_V"
@@ -913,7 +923,9 @@
],
"Type": "ADM1281",
"iout1_Name": "MEDUSA_MB4_12VHSC_CURR_A",
+ "iout1_Scale": 500,
"pin_Name": "MEDUSA_MB4_12VHSC_INPUT_PWR_W",
+ "pin_Scale": 500000,
"temp1_Name": "MEDUSA_MB4_12VHSC_TEMP_C",
"vin_Name": "MEDUSA_MB4_12VHSC_INPUT_VOLT_V",
"vout1_Name": "MEDUSA_MB4_12VHSC_OUTPUT_VOLT_V"
@@ -1066,7 +1078,9 @@
],
"Type": "ADM1281",
"iout1_Name": "MEDUSA_MB5_12VHSC_CURR_A",
+ "iout1_Scale": 500,
"pin_Name": "MEDUSA_MB5_12VHSC_INPUT_PWR_W",
+ "pin_Scale": 500000,
"temp1_Name": "MEDUSA_MB5_12VHSC_TEMP_C",
"vin_Name": "MEDUSA_MB5_12VHSC_INPUT_VOLT_V",
"vout1_Name": "MEDUSA_MB5_12VHSC_OUTPUT_VOLT_V"
@@ -1219,7 +1233,9 @@
],
"Type": "ADM1281",
"iout1_Name": "MEDUSA_MB6_12VHSC_CURR_A",
+ "iout1_Scale": 500,
"pin_Name": "MEDUSA_MB6_12VHSC_INPUT_PWR_W",
+ "pin_Scale": 500000,
"temp1_Name": "MEDUSA_MB6_12VHSC_TEMP_C",
"vin_Name": "MEDUSA_MB6_12VHSC_INPUT_VOLT_V",
"vout1_Name": "MEDUSA_MB6_12VHSC_OUTPUT_VOLT_V"
@@ -1372,7 +1388,9 @@
],
"Type": "ADM1281",
"iout1_Name": "MEDUSA_MB7_12VHSC_CURR_A",
+ "iout1_Scale": 500,
"pin_Name": "MEDUSA_MB7_12VHSC_INPUT_PWR_W",
+ "pin_Scale": 500000,
"temp1_Name": "MEDUSA_MB7_12VHSC_TEMP_C",
"vin_Name": "MEDUSA_MB7_12VHSC_INPUT_VOLT_V",
"vout1_Name": "MEDUSA_MB7_12VHSC_OUTPUT_VOLT_V"
@@ -1525,7 +1543,9 @@
],
"Type": "ADM1281",
"iout1_Name": "MEDUSA_MB8_12VHSC_CURR_A",
+ "iout1_Scale": 500,
"pin_Name": "MEDUSA_MB8_12VHSC_INPUT_PWR_W",
+ "pin_Scale": 500000,
"temp1_Name": "MEDUSA_MB8_12VHSC_TEMP_C",
"vin_Name": "MEDUSA_MB8_12VHSC_INPUT_VOLT_V",
"vout1_Name": "MEDUSA_MB8_12VHSC_OUTPUT_VOLT_V"
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 511799e..7330fa4 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -620,6 +620,9 @@
"iout1_Scale": {
"$ref": "#/definitions/Types/iout1_Scale"
},
+ "pin_Scale": {
+ "$ref": "#/definitions/Types/pin_Scale"
+ },
"in0_Scale": {
"$ref": "#/definitions/Types/in0_Scale"
},
@@ -1346,6 +1349,9 @@
"iout1_Scale": {
"type": "number"
},
+ "pin_Scale": {
+ "type": "number"
+ },
"in0_Scale": {
"type": "number"
},