configurations: yosemite4: Add PowerState to Medusa Board
To let psusensor get real value of MEDUSA_MBX_ sensors while
corresponding chassis power state is ON.
Add "SlotId" in schemas/legacy.json to indicate corresponding chassis
slot number.
Test plan:
1. Modify property "CurrentPowerState" to
xyz.openbmc_project.State.Chassis.PowerState.Off, the sensor value of
corresponding slot should be nan.
2. Change property "CurrentPowerState" to
xyz.openbmc_project.State.Chassis.PowerState.Off, the sensor value of
corresponding slot should be real value.
Change-Id: I2d3a5f33a6091b69cb6a78357692e6066a72dcbc
Signed-off-by: Bright Cheng <bright.cheng.wiwynn@gmail.com>
diff --git a/configurations/yosemite4_medusaboard_adc_rns_hsc_adi.json b/configurations/yosemite4_medusaboard_adc_rns_hsc_adi.json
index a70f39f..1d78a54 100644
--- a/configurations/yosemite4_medusaboard_adc_rns_hsc_adi.json
+++ b/configurations/yosemite4_medusaboard_adc_rns_hsc_adi.json
@@ -321,6 +321,8 @@
"pin"
],
"Name": "MEDUSA_MB1_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "1",
"Thresholds": [
{
"Direction": "greater than",
@@ -476,6 +478,8 @@
"pin"
],
"Name": "MEDUSA_MB2_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "2",
"Thresholds": [
{
"Direction": "greater than",
@@ -631,6 +635,8 @@
"pin"
],
"Name": "MEDUSA_MB3_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "3",
"Thresholds": [
{
"Direction": "greater than",
@@ -786,6 +792,8 @@
"pin"
],
"Name": "MEDUSA_MB4_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "4",
"Thresholds": [
{
"Direction": "greater than",
@@ -941,6 +949,8 @@
"pin"
],
"Name": "MEDUSA_MB5_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "5",
"Thresholds": [
{
"Direction": "greater than",
@@ -1096,6 +1106,8 @@
"pin"
],
"Name": "MEDUSA_MB6_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "6",
"Thresholds": [
{
"Direction": "greater than",
@@ -1251,6 +1263,8 @@
"pin"
],
"Name": "MEDUSA_MB7_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "7",
"Thresholds": [
{
"Direction": "greater than",
@@ -1406,6 +1420,8 @@
"pin"
],
"Name": "MEDUSA_MB8_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "8",
"Thresholds": [
{
"Direction": "greater than",