yosemite4 : Revise hwmon label for reading ina238 shunt voltage
Revise hwmon label to in0 for reading ina238 shunt voltage
Tested:
Get sensor reading by mfg-tool
root@bmc:~# mfg-tool sensor-display
...
"MEDUSA_ADC_48V_SENSE_Output_Voltage": {
"critical": {
"high": 0.04,
"low": -0.02
},
"hard-shutdown": {
"high": 0.04,
"low": -0.02
},
"max": 255.0,
"min": 0.0,
"status": "ok",
"unit": "Volts",
"value": 0.013,
"warning": {
"high": 0.03,
"low": -0.01
}
},
Change-Id: I7dd8b5d8ca02a3bd644c34bce754b6d526971194
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/configurations/yosemite4_medusaboard.json b/configurations/yosemite4_medusaboard.json
index ab21aeb..3791f84 100644
--- a/configurations/yosemite4_medusaboard.json
+++ b/configurations/yosemite4_medusaboard.json
@@ -1564,51 +1564,51 @@
"Address": "0x44",
"Bus": 11,
"Labels": [
- "in1"
+ "in0"
],
"Name": "MEDUSA_ADC_48V_SENSE",
"Thresholds": [
{
"Direction": "greater than",
- "Label": "in1",
+ "Label": "in0",
"Name": "upper non recoverable",
"Severity": 4,
- "Value": 60
+ "Value": 0.04
},
{
"Direction": "greater than",
- "Label": "in1",
+ "Label": "in0",
"Name": "upper critical",
"Severity": 1,
- "Value": 53.28
+ "Value": 0.04
},
{
"Direction": "greater than",
- "Label": "in1",
+ "Label": "in0",
"Name": "upper non critical",
"Severity": 0,
- "Value": 52.8
+ "Value": 0.03
},
{
"Direction": "less than",
- "Label": "in1",
+ "Label": "in0",
"Name": "lower non critical",
"Severity": 0,
- "Value": 43.2
+ "Value": -0.01
},
{
"Direction": "less than",
- "Label": "in1",
+ "Label": "in0",
"Name": "lower critical",
"Severity": 1,
- "Value": 42.72
+ "Value": -0.02
},
{
"Direction": "less than",
- "Label": "in1",
+ "Label": "in0",
"Name": "lower non recoverable",
"Severity": 4,
- "Value": 40
+ "Value": -0.02
}
],
"Type": "INA238",