configuration: yosemite4n: correct index of ADC
`MGNT_P5V_USB_VOLT_V` Index 7 change to Index 4
`MGNT_P1V2_VOLT_V` Index 4 change to Index 5
`MGNT_P3V_BAT_VOLT_V` Index 5 change to Index 6
`MGNT_P1V07_BMC_VOLT_V` Index 6 change to Index 7
Tested:
```
root@bmc:~# busctl get-property xyz.openbmc_project.ADCSensor
/xyz/openbmc_project/sensors/voltage/MGNT_P12V_VOLT_V
xyz.openbmc_project.Sensor.Value Value
d 12.0018
root@bmc:~# busctl get-property
xyz.openbmc_project.ADCSensor
/xyz/openbmc_project/sensors/voltage/MGNT_P1V07_BMC_VOLT_V
xyz.openbmc_project.Sensor.Value Value
d 1.065
root@bmc:~# busctl get-property xyz.openbmc_project.ADCSensor
/xyz/openbmc_project/sensors/voltage/MGNT_P1V2_VOLT_V
xyz.openbmc_project.Sensor.Value Value
d 1.191
root@bmc:~# busctl get-property xyz.openbmc_project.ADCSensor
/xyz/openbmc_project/sensors/voltage/MGNT_P2V5_VOLT_V
xyz.openbmc_project.Sensor.Value Value
d 2.4982
root@bmc:~# busctl get-property xyz.openbmc_project.ADCSensor
/xyz/openbmc_project/sensors/voltage/MGNT_P3V3_VOLT_V
xyz.openbmc_project.Sensor.Value Value
d 3.2798
root@bmc:~# busctl get-property xyz.openbmc_project.ADCSensor
/xyz/openbmc_project/sensors/voltage/MGNT_P3V_BAT_VOLT_V
xyz.openbmc_project.Sensor.Value Value
d 3.0363
root@bmc:~# busctl get-property xyz.openbmc_project.ADCSensor
/xyz/openbmc_project/sensors/voltage/MGNT_P5V_USB_VOLT_V
xyz.openbmc_project.Sensor.Value Value
d 5.0534
root@bmc:~# busctl get-property xyz.openbmc_project.ADCSensor
/xyz/openbmc_project/sensors/voltage/MGNT_P5V_VOLT_V
xyz.openbmc_project.Sensor.Value Value
d 5.0755
```
Change-Id: I9b88f47bfd9b6a1a6d48f0918d6d15d0b720a302
Signed-off-by: Tim Lee <timlee660101@gmail.com>
diff --git a/configurations/yosemite4n.json b/configurations/yosemite4n.json
index 2e10ef0..9e63bb1 100644
--- a/configurations/yosemite4n.json
+++ b/configurations/yosemite4n.json
@@ -168,6 +168,50 @@
},
{
"Index": 4,
+ "Name": "MGNT_P5V_USB_VOLT_V",
+ "ScaleFactor": 0.2717,
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper non recoverable",
+ "Severity": 4,
+ "Value": 5.5
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 5.4
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 5.35
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 4.65
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 4.6
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non recoverable",
+ "Severity": 4,
+ "Value": 4.15
+ }
+ ],
+ "Type": "ADC"
+ },
+ {
+ "Index": 5,
"Name": "MGNT_P1V2_VOLT_V",
"ScaleFactor": 1,
"Thresholds": [
@@ -218,7 +262,7 @@
"SetupTime": 1
}
],
- "Index": 5,
+ "Index": 6,
"Name": "MGNT_P3V_BAT_VOLT_V",
"PollRate": 3600,
"ScaleFactor": 0.3333,
@@ -251,7 +295,7 @@
"Type": "ADC"
},
{
- "Index": 6,
+ "Index": 7,
"Name": "MGNT_P1V07_BMC_VOLT_V",
"ScaleFactor": 1,
"Thresholds": [
@@ -283,50 +327,6 @@
"Type": "ADC"
},
{
- "Index": 7,
- "Name": "MGNT_P5V_USB_VOLT_V",
- "ScaleFactor": 0.2717,
- "Thresholds": [
- {
- "Direction": "greater than",
- "Name": "upper non recoverable",
- "Severity": 4,
- "Value": 5.5
- },
- {
- "Direction": "greater than",
- "Name": "upper critical",
- "Severity": 1,
- "Value": 5.4
- },
- {
- "Direction": "greater than",
- "Name": "upper non critical",
- "Severity": 0,
- "Value": 5.35
- },
- {
- "Direction": "less than",
- "Name": "lower non critical",
- "Severity": 0,
- "Value": 4.65
- },
- {
- "Direction": "less than",
- "Name": "lower critical",
- "Severity": 1,
- "Value": 4.6
- },
- {
- "Direction": "less than",
- "Name": "lower non recoverable",
- "Severity": 4,
- "Value": 4.15
- }
- ],
- "Type": "ADC"
- },
- {
"Address": "0x1D",
"Bus": 34,
"Labels": [