Add Fault leds gpio configurations
Add DIMM/Fan fault leds gpio mapping support
Tested:
Dbus will show the fault led gpio configuration.
Change-Id: I09488f63eb446fd17854134a4ccf471b3c774a80
Signed-off-by: Zhu, Yunge <yunge.zhu@linux.intel.com>
diff --git a/configurations/WFT Baseboard.json b/configurations/WFT Baseboard.json
index 71aed66..45571dd 100644
--- a/configurations/WFT Baseboard.json
+++ b/configurations/WFT Baseboard.json
@@ -1469,8 +1469,103 @@
"Index": 295,
"Name": "CPU4 CH6 DIMM2 FAULT",
"Polarity": "Low",
- "Type": "Gpio",
- "Offset":25
+ "Type": "Gpio"
+ },
+ {
+ "FaultIndex": 0,
+ "FaultType": "faultMemory",
+ "LedGpioPins": [
+ 240,
+ 241,
+ 242,
+ 243,
+ 244,
+ 245,
+ 246,
+ 247,
+ 248,
+ 249,
+ 250,
+ 251
+ ],
+ "Name": "CPU1 DIMM FAULT LEDs",
+ "Type": "LedFault"
+ },
+ {
+ "FaultIndex": 1,
+ "FaultType": "faultMemory",
+ "LedGpioPins": [
+ 260,
+ 261,
+ 262,
+ 263,
+ 264,
+ 265,
+ 266,
+ 267,
+ 268,
+ 269,
+ 270,
+ 271
+ ],
+ "Name": "CPU2 DIMM FAULT LEDs",
+ "Type": "LedFault"
+ },
+ {
+ "FaultIndex": 2,
+ "FaultType": "faultMemory",
+ "LedGpioPins": [
+ 273,
+ 273,
+ 274,
+ 275,
+ 276,
+ 277,
+ 278,
+ 279,
+ 280,
+ 281,
+ 282,
+ 283
+ ],
+ "Name": "CPU3 DIMM FAULT LEDs",
+ "Type": "LedFault"
+ },
+ {
+ "FaultIndex": 3,
+ "FaultType": "faultMemory",
+ "LedGpioPins": [
+ 284,
+ 285,
+ 286,
+ 287,
+ 288,
+ 289,
+ 290,
+ 291,
+ 292,
+ 293,
+ 294,
+ 295
+ ],
+ "Name": "CPU4 DIMM FAULT LEDs",
+ "Type": "LedFault"
+ },
+ {
+ "FaultIndex": 0,
+ "FaultType": "faultFan",
+ "LedGpioPins": [
+ 252,
+ 253,
+ 254,
+ 255,
+ 256,
+ 257,
+ 258,
+ 259
+ ],
+ "Name": "Fan FAULT LEDs",
+ "Type": "LedFault"
},
{
"Address": "0x8",
@@ -1887,4 +1982,4 @@
"PartNumber": "$PRODUCT_PART_NUMBER",
"SerialNumber": "$PRODUCT_SERIAL_NUMBER"
}
-}
+}
\ No newline at end of file
diff --git a/schemas/global.json b/schemas/global.json
index 0068fed..c0cbcf0 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -315,6 +315,18 @@
},
"BridgeGpio": {
"type": "integer"
+ },
+ "FaultType": {
+ "type": "string"
+ },
+ "FaultIndex": {
+ "type": "integer"
+ },
+ "LedGpioIndexs": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
}
},
"required": [