summaryrefslogtreecommitdiff
path: root/meta-ibs/meta-common/recipes-phosphor/configuration/entity-manager/0005-Add-AS1200-PSU-PowerState-Flag.patch
blob: 15375a823ff0f7d4afcaf98ecbd637ed77c2a69a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
From 91c823bc14c7665fbe3f5729028cdc79bc2bc077 Mon Sep 17 00:00:00 2001
From: "Evgeny Alekseev (IBS Group)" <ealekseev@ibs.sila.ru>
Date: Fri, 30 Sep 2022 12:48:00 +0300
Subject: [PATCH] Add AS1200 PSU PowerState Flag

---
 configurations/aspower_u1a-d11200_psu.json | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/configurations/aspower_u1a-d11200_psu.json b/configurations/aspower_u1a-d11200_psu.json
index 7b9ad79..8d46f30 100644
--- a/configurations/aspower_u1a-d11200_psu.json
+++ b/configurations/aspower_u1a-d11200_psu.json
@@ -98,6 +98,7 @@
                     "temp1",
                     "fan1"
                 ],
+                "PowerState" : "On",
                 "Name": "PSU$ADDRESS % 4 + 1",
                 "Thresholds": [
                     {
@@ -142,7 +143,7 @@
                         "Severity": 0,
                         "Value": 0
                     },
-{
+                    {
                         "Direction": "greater than",
                         "Label": "pin",
                         "Name": "upper critical",
@@ -170,7 +171,7 @@
                         "Severity": 0,
                         "Value": 0
                     },
-{
+                    {
                         "Direction": "greater than",
                         "Label": "iout1",
                         "Name": "upper critical",
@@ -274,7 +275,8 @@
             {
                 "Name" : "PSU$ADDRESS % 4 + 1 Output Current",
                 "EntityId": "0x01",
-                "EntityInstance": "$ADDRESS % 4 + 4"
+                "EntityInstance": "$ADDRESS % 4 + 4",
+                "PowerState" : "On"
 
             },
             {
@@ -282,7 +284,18 @@
                 "EntityId": "0x01",
                 "EntityInstance": "$ADDRESS % 4 + 6"
 
+            },
+            {
+                "Name" : "PSU$ADDRESS % 4 + 1 Output Voltage",
+                "PowerState" : "On"
+
+            },
+            {
+                "Name" : "PSU$ADDRESS % 4 + 1 Output Power",
+                "PowerState" : "On"
+
             }
+
         ],
         "Name": "ASPOWER 1200W PSU $ADDRESS % 4 + 1",
         "Probe": "xyz.openbmc_project.FruDevice({'PRODUCT_PRODUCT_NAME': 'U1A-D11200-DRB'})",