summaryrefslogtreecommitdiff
path: root/meta-ibs/meta-common/recipes-phosphor/configuration/entity-manager/0004-AS1200-JSON-Add-Thresholds-and-IPMI.patch
blob: 4ff26e146c31e2f02bb297ac1d457203ca605360 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
From 97cb0db7eb678ce5b7aff84f19c0e4c7e021834e Mon Sep 17 00:00:00 2001
From: "Evgeny Alekseev (IBS Group)" <ealekseev@ibs.sila.ru>
Date: Tue, 6 Sep 2022 09:17:51 +0300
Subject: [PATCH] AS1200 JSON Add Thresholds and IPMI

---
 configurations/ASPOWER_U1A-D11200_PSU.json | 102 ++++++++++++++++++++-
 1 file changed, 101 insertions(+), 1 deletion(-)

diff --git a/configurations/ASPOWER_U1A-D11200_PSU.json b/configurations/ASPOWER_U1A-D11200_PSU.json
index 02dc389..3651983 100644
--- a/configurations/ASPOWER_U1A-D11200_PSU.json
+++ b/configurations/ASPOWER_U1A-D11200_PSU.json
@@ -100,6 +100,20 @@
                 ],
                 "Name": "PSU$ADDRESS % 4 + 1",
                 "Thresholds": [
+                    {
+                        "Direction": "less than",
+                        "Label": "pout1",
+                        "Name": "lower critical",
+                        "Severity": 1,
+                        "Value": 0
+                    },
+                    {
+                        "Direction": "less than",
+                        "Label": "pout1",
+                        "Name": "lower non critical",
+                        "Severity": 0,
+                        "Value": 0
+                    },
                     {
                         "Direction": "greater than",
                         "Label": "pout1",
@@ -115,6 +129,20 @@
                         "Value": 1150
                     },
                     {
+                        "Direction": "less than",
+                        "Label": "pin",
+                        "Name": "lower critical",
+                        "Severity": 1,
+                        "Value": 0
+                    },
+                    {
+                        "Direction": "less than",
+                        "Label": "pin",
+                        "Name": "lower non critical",
+                        "Severity": 0,
+                        "Value": 0
+                    },
+{
                         "Direction": "greater than",
                         "Label": "pin",
                         "Name": "upper critical",
@@ -128,7 +156,21 @@
                         "Severity": 0,
                         "Value": 1150
                     },
+                    {
+                        "Direction": "less than",
+                        "Label": "iout1",
+                        "Name": "lower critical",
+                        "Severity": 1,
+                        "Value": 0
+                    },
                     {
+                        "Direction": "less than",
+                        "Label": "iout1",
+                        "Name": "lower non critical",
+                        "Severity": 0,
+                        "Value": 0
+                    },
+{
                         "Direction": "greater than",
                         "Label": "iout1",
                         "Name": "upper critical",
@@ -142,6 +184,20 @@
                         "Severity": 0,
                         "Value": 105
                     },
+                    {
+                        "Direction": "less than",
+                        "Label": "temp1",
+                        "Name": "lower critical",
+                        "Severity": 1,
+                        "Value": 0
+                    },
+                    {
+                        "Direction": "less than",
+                        "Label": "temp1",
+                        "Name": "lower non critical",
+                        "Severity": 0,
+                        "Value": 0
+                    },
                     {
                         "Direction": "greater than",
                         "Label": "temp1",
@@ -156,6 +212,20 @@
                         "Severity": 0,
                         "Value": 60
                     },
+                    {
+                        "Direction": "less than",
+                        "Label": "vout1",
+                        "Name": "lower critical",
+                        "Severity": 1,
+                        "Value": 0
+                    },
+                    {
+                        "Direction": "less than",
+                        "Label": "vout1",
+                        "Name": "lower non critical",
+                        "Severity": 0,
+                        "Value": 0
+                    },
                     {
                         "Direction": "greater than",
                         "Label": "vout1",
@@ -170,6 +240,20 @@
                         "Severity": 0,
                         "Value": 13
                     },
+                    {
+                        "Direction": "less than",
+                        "Label": "vin",
+                        "Name": "lower critical",
+                        "Severity": 1,
+                        "Value": 210
+                    },
+                    {
+                        "Direction": "less than",
+                        "Label": "vin",
+                        "Name": "lower non critical",
+                        "Severity": 0,
+                        "Value": 220
+                    },
                     {
                         "Direction": "greater than",
                         "Label": "vin",
@@ -186,6 +270,18 @@
                     }
                 ],
                 "Type": "pmbus"
+            },
+            {
+                "Name" : "PSU$ADDRESS % 4 + 1 Output Current",
+                "EntityId": "0x01",
+                "EntityInstance": "$ADDRESS % 4 + 4"
+
+            },
+            {
+                "Name" : "PSU$ADDRESS % 4 + 1 Input Current",
+                "EntityId": "0x01",
+                "EntityInstance": "$ADDRESS % 4 + 6"
+
             }
         ],
         "Name": "ASPOWER 1200W PSU $ADDRESS % 4 + 1",
@@ -196,6 +292,10 @@
             "Model": "$PRODUCT_PRODUCT_NAME",
             "PartNumber": "$PRODUCT_PART_NUMBER",
             "SerialNumber": "$PRODUCT_SERIAL_NUMBER"
-        }
+        },
+    "xyz.openbmc_project.Inventory.Decorator.Ipmi": {
+    "EntityId": "0x0A",
+    "EntityInstance": "$ADDRESS % 4 + 1"
+    }
     }
 ]