Add HSC configuration
This feature adds the adm1278 Hot Swap Controller configuration
to Facebook YosemiteV2 platform.
The below PSU values added in configuration
Input voltage
Output current
Input power
Temperature
Max input voltage
Max output current
Max input power
Max temperature
Tested:
export bmc_ip=xx.xx.xx.xx
export token=`curl -k -H "Content-Type: application/json" \
-X POST https://${bmc_ip}/login -d '{"username" : "root", \
"password" :"0penBmc"}' | grep token | awk '{print $2;}' | tr -d '"'`
curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/json" \
-X GET https://${bmc_ip}/xyz/openbmc_project/sensors/enumerate
Signed-off-by: Manikandan Elumalai <manikandan.hcl.ers.epl@gmail.com>
Change-Id: I3a6cef88b8fd73ba132a94197bb1831cf5e88cfd
diff --git a/configurations/FBYV2.json b/configurations/FBYV2.json
index d72a29c..aa7969f 100644
--- a/configurations/FBYV2.json
+++ b/configurations/FBYV2.json
@@ -484,6 +484,87 @@
}
],
"Type": "TMP421"
+ },
+ {
+ "Address": "0x40",
+ "Bus": 10,
+ "Labels": [
+ "vin",
+ "iout1",
+ "pin",
+ "temp1",
+ "maxvin",
+ "maxiout1",
+ "maxpin",
+ "maxtemp1"
+ ],
+ "Name": "HSC",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Label": "vin",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 13.75
+ },
+ {
+ "Direction": "less than",
+ "Label": "vin",
+ "Name": "lower critical",
+ "Severity": 0,
+ "Value": 11.25
+ },
+ {
+ "Direction": "greater than",
+ "Label": "iout1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 52
+ },
+ {
+ "Direction": "greater than",
+ "Label": "pin",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 625
+ },
+ {
+ "Direction": "less than",
+ "Label": "temp1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 105
+ },
+ {
+ "Direction": "less than",
+ "Label": "peakvin",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ },
+ {
+ "Direction": "less than",
+ "Label": "maxiout1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ },
+ {
+ "Direction": "less than",
+ "Label": "maxpin",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ },
+ {
+ "Direction": "less than",
+ "Label": "maxtemp1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "pmbus"
}
],
"Name": "Yosemite V2 Baseboard",