configurations: minerva_fanboard: Add INA238 sensors
Add sensors to read the voltage and current of INA238 in front
of four fans.
Change-Id: Idb712cc757ca3b3ec1930a4d6b9c051add72a385
Signed-off-by: Yang Chen <yang.chen@quantatw.com>
diff --git a/configurations/minerva_fanboard.json b/configurations/minerva_fanboard.json
index 30ed97c..00939f7 100644
--- a/configurations/minerva_fanboard.json
+++ b/configurations/minerva_fanboard.json
@@ -240,6 +240,146 @@
}
],
"Type": "I2CFan"
+ },
+ {
+ "Address": "0x40",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_TOP_$bus * -1 + 17 FAN0",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.19
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_TOP_$bus * -1 + 17 FAN0_CURR_A",
+ "in1_Name": "FCB_TOP_$bus * -1 + 17 FAN0_VOLT_V"
+ },
+ {
+ "Address": "0x41",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_TOP_$bus * -1 + 17 FAN1",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.13
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_TOP_$bus * -1 + 17 FAN1_CURR_A",
+ "in1_Name": "FCB_TOP_$bus * -1 + 17 FAN1_VOLT_V"
+ },
+ {
+ "Address": "0x44",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_TOP_$bus * -1 + 17 FAN2",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.13
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_TOP_$bus * -1 + 17 FAN2_CURR_A",
+ "in1_Name": "FCB_TOP_$bus * -1 + 17 FAN2_VOLT_V"
+ },
+ {
+ "Address": "0x45",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_TOP_$bus * -1 + 17 FAN3",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.15
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_TOP_$bus * -1 + 17 FAN3_CURR_A",
+ "in1_Name": "FCB_TOP_$bus * -1 + 17 FAN3_VOLT_V"
}
],
"Name": "Minerva Top Fan Board $bus * -1 + 17",
@@ -497,6 +637,146 @@
}
],
"Type": "I2CFan"
+ },
+ {
+ "Address": "0x40",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_MID_$bus * -1 + 19 FAN0",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.19
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_MID_$bus * -1 + 19 FAN0_CURR_A",
+ "in1_Name": "FCB_MID_$bus * -1 + 19 FAN0_VOLT_V"
+ },
+ {
+ "Address": "0x41",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_MID_$bus * -1 + 19 FAN1",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.13
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_MID_$bus * -1 + 19 FAN1_CURR_A",
+ "in1_Name": "FCB_MID_$bus * -1 + 19 FAN1_VOLT_V"
+ },
+ {
+ "Address": "0x44",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_MID_$bus * -1 + 19 FAN2",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.13
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_MID_$bus * -1 + 19 FAN2_CURR_A",
+ "in1_Name": "FCB_MID_$bus * -1 + 19 FAN2_VOLT_V"
+ },
+ {
+ "Address": "0x45",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_MID_$bus * -1 + 19 FAN3",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.15
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_MID_$bus * -1 + 19 FAN3_CURR_A",
+ "in1_Name": "FCB_MID_$bus * -1 + 19 FAN3_VOLT_V"
}
],
"Name": "Minerva Middle Fan Board $bus * -1 + 19",
@@ -754,6 +1034,146 @@
}
],
"Type": "I2CFan"
+ },
+ {
+ "Address": "0x40",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_BOT_$bus * -1 + 21 FAN0",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.19
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_BOT_$bus * -1 + 21 FAN0_CURR_A",
+ "in1_Name": "FCB_BOT_$bus * -1 + 21 FAN0_VOLT_V"
+ },
+ {
+ "Address": "0x41",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_BOT_$bus * -1 + 21 FAN1",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.13
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_BOT_$bus * -1 + 21 FAN1_CURR_A",
+ "in1_Name": "FCB_BOT_$bus * -1 + 21 FAN1_VOLT_V"
+ },
+ {
+ "Address": "0x44",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_BOT_$bus * -1 + 21 FAN2",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.13
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_BOT_$bus * -1 + 21 FAN2_CURR_A",
+ "in1_Name": "FCB_BOT_$bus * -1 + 21 FAN2_VOLT_V"
+ },
+ {
+ "Address": "0x45",
+ "Bus": "$bus",
+ "Labels": [
+ "in1",
+ "curr1"
+ ],
+ "Name": "FCB_BOT_$bus * -1 + 21 FAN3",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 54.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1.15
+ }
+ ],
+ "Type": "INA238",
+ "curr1_Name": "FCB_BOT_$bus * -1 + 21 FAN3_CURR_A",
+ "in1_Name": "FCB_BOT_$bus * -1 + 21 FAN3_VOLT_V"
}
],
"Name": "Minerva Bottom Fan Board $bus * -1 + 21",