Add LED grouping support
This enables creating custom groups and participating LEDs so that it can later
be generated from MRW. For each of the group, a dbus object is created which
will announce LED actions.
Fixes openbmc/openbmc#550
Change-Id: I7a56d08755288dcfce45ee4c6d6b6c5e5aa454f7
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/led.yaml b/led.yaml
new file mode 100755
index 0000000..0d01c96
--- /dev/null
+++ b/led.yaml
@@ -0,0 +1,119 @@
+EnclosureIdentify:
+ EnclosureIdentifyFront:
+ action: blink
+ EnclosureIdentifyBack:
+ action: blink
+
+EnclosureFault:
+ EnclosureFaultFront:
+ action: 'on'
+ EnclosureFaultBack:
+ action: 'on'
+
+PowerSupply1Identify:
+ PowerSupply_1:
+ action: blink
+ EnclosureIdentifyFront:
+ action: 'on'
+ EnclosureIdentifyBack:
+ action: 'on'
+
+PowerSupply1Fault:
+ PowerSupply_1:
+ action: 'on'
+ EnclosureFaultFront:
+ action: 'on'
+ EnclosureFaultBack:
+ action: 'on'
+
+PowerSupply2Identify:
+ PowerSupply_2:
+ action: blink
+ EnclosureIdentifyFront:
+ action: 'on'
+ EnclosureIdentifyBack:
+ action: 'on'
+
+PowerSupply2Fault:
+ PowerSupply_2:
+ action: 'on'
+ EnclosureFaultFront:
+ action: 'on'
+ EnclosureFaultBack:
+ action: 'on'
+
+FanA1Identify:
+ Fan_A1:
+ action: blink
+ EnclosureIdentifyFront:
+ action: 'on'
+ EnclosureIdentifyBack:
+ action: 'on'
+
+FanA1Fault:
+ Fan_A1:
+ action: 'on'
+ EnclosureFaultFront:
+ action: 'on'
+ EnclosureFaultBack:
+ action: 'on'
+
+FanA2Identify:
+ Fan_A2:
+ action: blink
+ EnclosureIdentifyFront:
+ action: 'on'
+ EnclosureIdentifyBack:
+ action: 'on'
+
+FanA2Fault:
+ Fan_A2:
+ action: 'on'
+ EnclosureFaultFront:
+ action: 'on'
+ EnclosureFaultBack:
+ action: 'on'
+
+FanA3Identify:
+ Fan_A3:
+ action: blink
+ EnclosureIdentifyFront:
+ action: 'on'
+ EnclosureIdentifyBack:
+ action: 'on'
+
+FanA3Fault:
+ Fan_A3:
+ action: 'on'
+ EnclosureFaultFront:
+ action: 'on'
+ EnclosureFaultBack:
+ action: 'on'
+
+FanA4Identify:
+ Fan_A4:
+ action: blink
+ EnclosureIdentifyFront:
+ action: 'on'
+ EnclosureIdentifyBack:
+ action: 'on'
+
+FanA4Fault:
+ Fan_A4:
+ action: 'on'
+ EnclosureFaultFront:
+ action: 'on'
+ EnclosureFaultBack:
+ action: 'on'
+
+PowerOn:
+ OpPanelFront:
+ action: 'on'
+ PanelPowerButtonNote1:
+ action: 'on'
+
+PowerOff:
+ OpPanelFront:
+ action: blink
+ PanelPowerButtonNote1:
+ action: blink