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_12vhsc_adi_48vhsc_inf.json b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_adi_48vhsc_inf.json
index 10b3cf1..f60f4f4 100644
--- a/configurations/yosemite4_medusaboard_adc_rns_12vhsc_adi_48vhsc_inf.json
+++ b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_adi_48vhsc_inf.json
@@ -11,6 +11,8 @@
"pin"
],
"Name": "MEDUSA_MB1_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "1",
"Thresholds": [
{
"Direction": "greater than",
@@ -166,6 +168,8 @@
"pin"
],
"Name": "MEDUSA_MB2_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "2",
"Thresholds": [
{
"Direction": "greater than",
@@ -321,6 +325,8 @@
"pin"
],
"Name": "MEDUSA_MB3_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "3",
"Thresholds": [
{
"Direction": "greater than",
@@ -476,6 +482,8 @@
"pin"
],
"Name": "MEDUSA_MB4_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "4",
"Thresholds": [
{
"Direction": "greater than",
@@ -631,6 +639,8 @@
"pin"
],
"Name": "MEDUSA_MB5_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "5",
"Thresholds": [
{
"Direction": "greater than",
@@ -786,6 +796,8 @@
"pin"
],
"Name": "MEDUSA_MB6_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "6",
"Thresholds": [
{
"Direction": "greater than",
@@ -941,6 +953,8 @@
"pin"
],
"Name": "MEDUSA_MB7_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "7",
"Thresholds": [
{
"Direction": "greater than",
@@ -1096,6 +1110,8 @@
"pin"
],
"Name": "MEDUSA_MB8_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "8",
"Thresholds": [
{
"Direction": "greater than",
diff --git a/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_adi.json b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_adi.json
index 351cced..7f56566 100644
--- a/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_adi.json
+++ b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_adi.json
@@ -528,6 +528,8 @@
"pin"
],
"Name": "MEDUSA_MB1_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "1",
"Thresholds": [
{
"Direction": "greater than",
@@ -683,6 +685,8 @@
"pin"
],
"Name": "MEDUSA_MB2_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "2",
"Thresholds": [
{
"Direction": "greater than",
@@ -838,6 +842,8 @@
"pin"
],
"Name": "MEDUSA_MB3_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "3",
"Thresholds": [
{
"Direction": "greater than",
@@ -993,6 +999,8 @@
"pin"
],
"Name": "MEDUSA_MB4_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "4",
"Thresholds": [
{
"Direction": "greater than",
@@ -1148,6 +1156,8 @@
"pin"
],
"Name": "MEDUSA_MB5_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "5",
"Thresholds": [
{
"Direction": "greater than",
@@ -1303,6 +1313,8 @@
"pin"
],
"Name": "MEDUSA_MB6_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "6",
"Thresholds": [
{
"Direction": "greater than",
@@ -1458,6 +1470,8 @@
"pin"
],
"Name": "MEDUSA_MB7_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "7",
"Thresholds": [
{
"Direction": "greater than",
@@ -1613,6 +1627,8 @@
"pin"
],
"Name": "MEDUSA_MB8_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "8",
"Thresholds": [
{
"Direction": "greater than",
diff --git a/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_inf.json b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_inf.json
index e979d0b..c074f5e 100644
--- a/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_inf.json
+++ b/configurations/yosemite4_medusaboard_adc_rns_12vhsc_mps_48vhsc_inf.json
@@ -218,6 +218,8 @@
"pin"
],
"Name": "MEDUSA_MB1_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "1",
"Thresholds": [
{
"Direction": "greater than",
@@ -373,6 +375,8 @@
"pin"
],
"Name": "MEDUSA_MB2_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "2",
"Thresholds": [
{
"Direction": "greater than",
@@ -528,6 +532,8 @@
"pin"
],
"Name": "MEDUSA_MB3_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "3",
"Thresholds": [
{
"Direction": "greater than",
@@ -683,6 +689,8 @@
"pin"
],
"Name": "MEDUSA_MB4_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "4",
"Thresholds": [
{
"Direction": "greater than",
@@ -838,6 +846,8 @@
"pin"
],
"Name": "MEDUSA_MB5_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "5",
"Thresholds": [
{
"Direction": "greater than",
@@ -993,6 +1003,8 @@
"pin"
],
"Name": "MEDUSA_MB6_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "6",
"Thresholds": [
{
"Direction": "greater than",
@@ -1148,6 +1160,8 @@
"pin"
],
"Name": "MEDUSA_MB7_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "7",
"Thresholds": [
{
"Direction": "greater than",
@@ -1303,6 +1317,8 @@
"pin"
],
"Name": "MEDUSA_MB8_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "8",
"Thresholds": [
{
"Direction": "greater than",
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",
diff --git a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_adi_48vhsc_inf.json b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_adi_48vhsc_inf.json
index 3e2709d..d760bab 100644
--- a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_adi_48vhsc_inf.json
+++ b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_adi_48vhsc_inf.json
@@ -11,6 +11,8 @@
"pin"
],
"Name": "MEDUSA_MB1_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "1",
"Thresholds": [
{
"Direction": "greater than",
@@ -166,6 +168,8 @@
"pin"
],
"Name": "MEDUSA_MB2_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "2",
"Thresholds": [
{
"Direction": "greater than",
@@ -321,6 +325,8 @@
"pin"
],
"Name": "MEDUSA_MB3_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "3",
"Thresholds": [
{
"Direction": "greater than",
@@ -476,6 +482,8 @@
"pin"
],
"Name": "MEDUSA_MB4_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "4",
"Thresholds": [
{
"Direction": "greater than",
@@ -631,6 +639,8 @@
"pin"
],
"Name": "MEDUSA_MB5_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "5",
"Thresholds": [
{
"Direction": "greater than",
@@ -786,6 +796,8 @@
"pin"
],
"Name": "MEDUSA_MB6_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "6",
"Thresholds": [
{
"Direction": "greater than",
@@ -941,6 +953,8 @@
"pin"
],
"Name": "MEDUSA_MB7_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "7",
"Thresholds": [
{
"Direction": "greater than",
@@ -1096,6 +1110,8 @@
"pin"
],
"Name": "MEDUSA_MB8_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "8",
"Thresholds": [
{
"Direction": "greater than",
diff --git a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_adi.json b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_adi.json
index fdecea9..537aaa0 100644
--- a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_adi.json
+++ b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_adi.json
@@ -538,6 +538,8 @@
"pin"
],
"Name": "MEDUSA_MB1_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "1",
"Thresholds": [
{
"Direction": "greater than",
@@ -693,6 +695,8 @@
"pin"
],
"Name": "MEDUSA_MB2_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "2",
"Thresholds": [
{
"Direction": "greater than",
@@ -848,6 +852,8 @@
"pin"
],
"Name": "MEDUSA_MB3_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "3",
"Thresholds": [
{
"Direction": "greater than",
@@ -1003,6 +1009,8 @@
"pin"
],
"Name": "MEDUSA_MB4_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "4",
"Thresholds": [
{
"Direction": "greater than",
@@ -1158,6 +1166,8 @@
"pin"
],
"Name": "MEDUSA_MB5_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "5",
"Thresholds": [
{
"Direction": "greater than",
@@ -1313,6 +1323,8 @@
"pin"
],
"Name": "MEDUSA_MB6_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "6",
"Thresholds": [
{
"Direction": "greater than",
@@ -1468,6 +1480,8 @@
"pin"
],
"Name": "MEDUSA_MB7_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "7",
"Thresholds": [
{
"Direction": "greater than",
@@ -1623,6 +1637,8 @@
"pin"
],
"Name": "MEDUSA_MB8_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "8",
"Thresholds": [
{
"Direction": "greater than",
diff --git a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_inf.json b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_inf.json
index a1c9c33..5b5c159 100644
--- a/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_inf.json
+++ b/configurations/yosemite4_medusaboard_adc_ti_12vhsc_mps_48vhsc_inf.json
@@ -228,6 +228,8 @@
"pin"
],
"Name": "MEDUSA_MB1_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "1",
"Thresholds": [
{
"Direction": "greater than",
@@ -383,6 +385,8 @@
"pin"
],
"Name": "MEDUSA_MB2_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "2",
"Thresholds": [
{
"Direction": "greater than",
@@ -538,6 +542,8 @@
"pin"
],
"Name": "MEDUSA_MB3_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "3",
"Thresholds": [
{
"Direction": "greater than",
@@ -693,6 +699,8 @@
"pin"
],
"Name": "MEDUSA_MB4_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "4",
"Thresholds": [
{
"Direction": "greater than",
@@ -848,6 +856,8 @@
"pin"
],
"Name": "MEDUSA_MB5_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "5",
"Thresholds": [
{
"Direction": "greater than",
@@ -1003,6 +1013,8 @@
"pin"
],
"Name": "MEDUSA_MB6_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "6",
"Thresholds": [
{
"Direction": "greater than",
@@ -1158,6 +1170,8 @@
"pin"
],
"Name": "MEDUSA_MB7_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "7",
"Thresholds": [
{
"Direction": "greater than",
@@ -1313,6 +1327,8 @@
"pin"
],
"Name": "MEDUSA_MB8_12VHSC",
+ "PowerState": "ChassisOn",
+ "SlotId": "8",
"Thresholds": [
{
"Direction": "greater than",
diff --git a/configurations/yosemite4_medusaboard_adc_ti_hsc_adi.json b/configurations/yosemite4_medusaboard_adc_ti_hsc_adi.json
index 44284e4..381920b 100644
--- a/configurations/yosemite4_medusaboard_adc_ti_hsc_adi.json
+++ b/configurations/yosemite4_medusaboard_adc_ti_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",
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 683afed..37bf0b9 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -218,6 +218,9 @@
"SensorType": {
"$ref": "#/definitions/Types/SensorType"
},
+ "SlotId": {
+ "$ref": "#/definitions/Types/SlotId"
+ },
"TachMaxPercent": {
"$ref": "#/definitions/Types/TachMaxPercent"
},
@@ -1041,6 +1044,9 @@
"SensorType": {
"type": "string"
},
+ "SlotId": {
+ "type": "string"
+ },
"TachMaxPercent": {
"type": "number"
},