configurations: yosemite4: Set fan current sensors max value
Set fan current sensors max value to an appropriate value.
Otherwise, fan current sensors value might remain unchanged when the fan
maintains a constant speed.
Test Case: Maxvalue is set and can be read from PSU sensor service.
Change-Id: I1b63eca5b8a16bc1babfb068ab764722f15f421d
Signed-off-by: Ian Chien <ianchien.wiwynn@gmail.com>
diff --git a/configurations/yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_max.json b/configurations/yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_max.json
index d58cac9..4e28769 100644
--- a/configurations/yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_max.json
+++ b/configurations/yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_max.json
@@ -227,16 +227,22 @@
}
],
"Type": "ADC128D818",
+ "in0_Max": 2.5,
"in0_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 8 CURR_A",
"in0_Scale": 240,
+ "in1_Max": 2.5,
"in1_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 4 CURR_A",
"in1_Scale": 240,
+ "in2_Max": 2.5,
"in2_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 0 CURR_A",
"in2_Scale": 240,
+ "in3_Max": 2.5,
"in3_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 9 CURR_A",
"in3_Scale": 240,
+ "in4_Max": 2.5,
"in4_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 5 CURR_A",
"in4_Scale": 240,
+ "in5_Max": 2.5,
"in5_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 1 CURR_A",
"in5_Scale": 240,
"in6_Name": "FANBOARD$bus % 30 ADC_48V_AUX_VOLT_V",
diff --git a/configurations/yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_mps.json b/configurations/yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_mps.json
index 498f863..d0e20c6 100644
--- a/configurations/yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_mps.json
+++ b/configurations/yosemite4_fanboard_fsc_max_adc_ti_led_nxp_efuse_mps.json
@@ -227,16 +227,22 @@
}
],
"Type": "ADC128D818",
+ "in0_Max": 2.5,
"in0_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 8 CURR_A",
"in0_Scale": 300,
+ "in1_Max": 2.5,
"in1_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 4 CURR_A",
"in1_Scale": 300,
+ "in2_Max": 2.5,
"in2_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 0 CURR_A",
"in2_Scale": 300,
+ "in3_Max": 2.5,
"in3_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 9 CURR_A",
"in3_Scale": 300,
+ "in4_Max": 2.5,
"in4_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 5 CURR_A",
"in4_Scale": 300,
+ "in5_Max": 2.5,
"in5_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 1 CURR_A",
"in5_Scale": 300,
"in6_Name": "FANBOARD$bus % 30 ADC_48V_AUX_VOLT_V",
diff --git a/configurations/yosemite4_fanboard_fsc_nct_adc_max_led_ons_efuse_max.json b/configurations/yosemite4_fanboard_fsc_nct_adc_max_led_ons_efuse_max.json
index 24f8a28..828922c 100644
--- a/configurations/yosemite4_fanboard_fsc_nct_adc_max_led_ons_efuse_max.json
+++ b/configurations/yosemite4_fanboard_fsc_nct_adc_max_led_ons_efuse_max.json
@@ -665,16 +665,22 @@
}
],
"Type": "MAX11615",
+ "in_voltage0_Max": 2.5,
"in_voltage0_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 8 CURR_A",
"in_voltage0_Scale": 480,
+ "in_voltage1_Max": 2.5,
"in_voltage1_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 4 CURR_A",
"in_voltage1_Scale": 480,
+ "in_voltage2_Max": 2.5,
"in_voltage2_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 0 CURR_A",
"in_voltage2_Scale": 480,
+ "in_voltage3_Max": 2.5,
"in_voltage3_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 9 CURR_A",
"in_voltage3_Scale": 480,
+ "in_voltage4_Max": 2.5,
"in_voltage4_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 5 CURR_A",
"in_voltage4_Scale": 480,
+ "in_voltage5_Max": 2.5,
"in_voltage5_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 1 CURR_A",
"in_voltage5_Scale": 480,
"in_voltage6_Name": "FANBOARD$bus % 30 ADC_48V_AUX_VOLT_V",
diff --git a/configurations/yosemite4_fanboard_fsc_nct_adc_max_led_ons_efuse_mps.json b/configurations/yosemite4_fanboard_fsc_nct_adc_max_led_ons_efuse_mps.json
index 3e5a19e..22e1933 100644
--- a/configurations/yosemite4_fanboard_fsc_nct_adc_max_led_ons_efuse_mps.json
+++ b/configurations/yosemite4_fanboard_fsc_nct_adc_max_led_ons_efuse_mps.json
@@ -665,16 +665,22 @@
}
],
"Type": "MAX11615",
+ "in_voltage0_Max": 2.5,
"in_voltage0_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 8 CURR_A",
"in_voltage0_Scale": 599.88,
+ "in_voltage1_Max": 2.5,
"in_voltage1_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 4 CURR_A",
"in_voltage1_Scale": 599.88,
+ "in_voltage2_Max": 2.5,
"in_voltage2_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 0 CURR_A",
"in_voltage2_Scale": 599.88,
+ "in_voltage3_Max": 2.5,
"in_voltage3_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 9 CURR_A",
"in_voltage3_Scale": 599.88,
+ "in_voltage4_Max": 2.5,
"in_voltage4_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 5 CURR_A",
"in_voltage4_Scale": 599.88,
+ "in_voltage5_Max": 2.5,
"in_voltage5_Name": "FANBOARD$bus % 30 ADC_48V_FAN$bus % 30 * 2 + 1 CURR_A",
"in_voltage5_Scale": 599.88,
"in_voltage6_Name": "FANBOARD$bus % 30 ADC_48V_AUX_VOLT_V",
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 50c3122..f5ac45b 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -260,21 +260,39 @@
"iin_Name": {
"$ref": "#/definitions/Types/iin_Name"
},
+ "in0_Max": {
+ "$ref": "#/definitions/Types/in0_Max"
+ },
"in0_Name": {
"$ref": "#/definitions/Types/in0_Name"
},
+ "in1_Max": {
+ "$ref": "#/definitions/Types/in1_Max"
+ },
"in1_Name": {
"$ref": "#/definitions/Types/in1_Name"
},
+ "in2_Max": {
+ "$ref": "#/definitions/Types/in2_Max"
+ },
"in2_Name": {
"$ref": "#/definitions/Types/in2_Name"
},
+ "in3_Max": {
+ "$ref": "#/definitions/Types/in3_Max"
+ },
"in3_Name": {
"$ref": "#/definitions/Types/in3_Name"
},
+ "in4_Max": {
+ "$ref": "#/definitions/Types/in4_Max"
+ },
"in4_Name": {
"$ref": "#/definitions/Types/in4_Name"
},
+ "in5_Max": {
+ "$ref": "#/definitions/Types/in5_Max"
+ },
"in5_Name": {
"$ref": "#/definitions/Types/in5_Name"
},
@@ -284,21 +302,39 @@
"in7_Name": {
"$ref": "#/definitions/Types/in7_Name"
},
+ "in_voltage0_Max": {
+ "$ref": "#/definitions/Types/in_voltage0_Max"
+ },
"in_voltage0_Name": {
"$ref": "#/definitions/Types/in_voltage0_Name"
},
+ "in_voltage1_Max": {
+ "$ref": "#/definitions/Types/in_voltage1_Max"
+ },
"in_voltage1_Name": {
"$ref": "#/definitions/Types/in_voltage1_Name"
},
+ "in_voltage2_Max": {
+ "$ref": "#/definitions/Types/in_voltage2_Max"
+ },
"in_voltage2_Name": {
"$ref": "#/definitions/Types/in_voltage2_Name"
},
+ "in_voltage3_Max": {
+ "$ref": "#/definitions/Types/in_voltage3_Max"
+ },
"in_voltage3_Name": {
"$ref": "#/definitions/Types/in_voltage3_Name"
},
+ "in_voltage4_Max": {
+ "$ref": "#/definitions/Types/in_voltage4_Max"
+ },
"in_voltage4_Name": {
"$ref": "#/definitions/Types/in_voltage4_Name"
},
+ "in_voltage5_Max": {
+ "$ref": "#/definitions/Types/in_voltage5_Max"
+ },
"in_voltage5_Name": {
"$ref": "#/definitions/Types/in_voltage5_Name"
},
@@ -1064,21 +1100,39 @@
"iin_Name": {
"type": "string"
},
+ "in0_Max": {
+ "type": "number"
+ },
"in0_Name": {
"type": "string"
},
+ "in1_Max": {
+ "type": "number"
+ },
"in1_Name": {
"type": "string"
},
+ "in2_Max": {
+ "type": "number"
+ },
"in2_Name": {
"type": "string"
},
+ "in3_Max": {
+ "type": "number"
+ },
"in3_Name": {
"type": "string"
},
+ "in4_Max": {
+ "type": "number"
+ },
"in4_Name": {
"type": "string"
},
+ "in5_Max": {
+ "type": "number"
+ },
"in5_Name": {
"type": "string"
},
@@ -1088,21 +1142,39 @@
"in7_Name": {
"type": "string"
},
+ "in_voltage0_Max": {
+ "type": "number"
+ },
"in_voltage0_Name": {
"type": "string"
},
+ "in_voltage1_Max": {
+ "type": "number"
+ },
"in_voltage1_Name": {
"type": "string"
},
+ "in_voltage2_Max": {
+ "type": "number"
+ },
"in_voltage2_Name": {
"type": "string"
},
+ "in_voltage3_Max": {
+ "type": "number"
+ },
"in_voltage3_Name": {
"type": "string"
},
+ "in_voltage4_Max": {
+ "type": "number"
+ },
"in_voltage4_Name": {
"type": "string"
},
+ "in_voltage5_Max": {
+ "type": "number"
+ },
"in_voltage5_Name": {
"type": "string"
},